summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-10-22 00:02:10 +0200
committerinfirit <[email protected]>2013-10-22 00:02:10 +0200
commitbb7cce9df923fc040a018618335186763b234cc7 (patch)
tree80c21a9fbf5fa98576ef3426687627bfcd35bfb1
parent0984bba3c88293a611fdf509954b28db8b6452ed (diff)
downloadmate-media-bb7cce9df923fc040a018618335186763b234cc7.tar.bz2
mate-media-bb7cce9df923fc040a018618335186763b234cc7.tar.xz
Add option to enable deprecated
-rw-r--r--configure.ac17
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],