diff options
author | infirit <[email protected]> | 2013-10-22 00:02:10 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-22 11:14:59 +0200 |
commit | 187b768096a517b7bd89497ff906bd108a15ecdb (patch) | |
tree | 80d6df4e3974fc012424cf2a868b214be6dc8050 | |
parent | af315766b53c41beb45c7cc522974c421551e52f (diff) | |
download | mate-media-187b768096a517b7bd89497ff906bd108a15ecdb.tar.bz2 mate-media-187b768096a517b7bd89497ff906bd108a15ecdb.tar.xz |
Add option to enable deprecated
-rw-r--r-- | configure.ac | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index ec7d743..00f2e96 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 GTK_REQUIRED_VERSION=2.18.0 GIO_REQUIRED_VERSION=2.25.0 @@ -249,6 +246,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], |