summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-01 16:07:54 +0200
committerinfirit <[email protected]>2014-05-01 16:10:25 +0200
commit9ebd6f842860bda0e14dce138acf88d6af3b4b29 (patch)
tree68c01cdc17045f8930c7002e7d8e025cb26bb894 /configure.ac
parent0771a7b064de0215f5a2805b7ae192c4ae8a1397 (diff)
downloadmate-utils-9ebd6f842860bda0e14dce138acf88d6af3b4b29.tar.bz2
mate-utils-9ebd6f842860bda0e14dce138acf88d6af3b4b29.tar.xz
Add configure option to en/disable deprecations
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9c0bfe62..a9e38012 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,6 +75,15 @@ GIO_UNIX_REQUIRED=2.18.0
LIBMATE_PANEL_APPLET_REQUIRED=1.7.0
LIBGTOP_REQUIRED=2.12.0
+AC_ARG_ENABLE(deprecation_flags,
+ [AC_HELP_STRING([--enable-deprecation-flags],
+ [use *_DISABLE_DEPRECATED flags @<:@default=no@:>@])],,
+ [enable_deprecation_flags=no])
+
+if test "x$enable_deprecated" = "xyes"; then
+ DISABLE_DEPRECATED=""
+fi
+
dnl GTK library version
AC_MSG_CHECKING([which gtk+ version to compile against])