diff options
author | Stefano Karapetsas <[email protected]> | 2013-10-21 18:01:06 -0700 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-21 18:01:06 -0700 |
commit | 7a7f6468053be81849716cb34f04d50e72af6c30 (patch) | |
tree | eb995605ac5808d3c4c67db49277f5974f0b41fb /configure.ac | |
parent | f31f20ccb561eabb3c00f975838ebaddbeedbe55 (diff) | |
parent | 647d9cf9f67351b6d3b30d79b0b89ea3b64b0834 (diff) | |
download | mate-media-7a7f6468053be81849716cb34f04d50e72af6c30.tar.bz2 mate-media-7a7f6468053be81849716cb34f04d50e72af6c30.tar.xz |
Merge pull request #35 from infirit/master
Add --enable-deprecated and put it in DISTCHECK_CONFIGURE_FLAGS
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 174c0ec..b6533be 100644 --- a/configure.ac +++ b/configure.ac @@ -43,9 +43,6 @@ AC_TYPE_SIZE_T AC_PROG_GCC_TRADITIONAL AC_FUNC_MMAP -# CFLAGS -MATE_COMPILE_WARNINGS(maximum) - GLIB_REQUIRED_VERSION=2.18.2 GIO_REQUIRED_VERSION=2.25.0 PA_REQUIRED_VERSION=0.9.16 @@ -268,6 +265,20 @@ MATE_MAINTAINER_MODE_DEFINES MATE_COMPILE_WARNINGS([maximum]) MATE_CXX_WARNINGS +AC_ARG_ENABLE(deprecated, + [AS_HELP_STRING([--enable-deprecated], + [warn about deprecated usages [default=no]])],, + [enable_deprecated=no]) + +if test "x$enable_deprecated" = "xyes"; then + DISABLE_DEPRECATED="\ + -DMATE_DISABLE_DEPRECATED \ + -DGDK_PIXBUF_DISABLE_DEPRECATED \ + -DGTK_DISABLE_DEPRECATED \ + -DGDK_DISABLE_DEPRECATED" + AC_SUBST(DISABLE_DEPRECATED) +fi + # Turn on the additional warnings last, so warnings don't affect other tests. AC_ARG_ENABLE(more-warnings, [AC_HELP_STRING([--enable-more-warnings], |