summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-17 03:12:47 -0800
committerStefano Karapetsas <[email protected]>2014-01-17 03:12:47 -0800
commit7c67131606ad0172720317beda93f9819741cfaa (patch)
tree7163dc07f42a015224230765ab57b766ccead8a5
parent719ddc54545812e474ee0d5c2d7c309e8a45db82 (diff)
parent8487a25cd8e68505bcfdee5d2cf2622568d6976d (diff)
downloadmate-power-manager-7c67131606ad0172720317beda93f9819741cfaa.tar.bz2
mate-power-manager-7c67131606ad0172720317beda93f9819741cfaa.tar.xz
Merge pull request #92 from infirit/master
Reverse configure logic for --enable-deprecated
-rw-r--r--configure.ac13
1 files changed, 2 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 1a6e96a..9465070 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,17 +49,8 @@ AC_ARG_ENABLE(deprecated,
[Warn about deprecated usages [default=no]])],,
[enable_deprecated=no])
-if test "x$enable_deprecated" = "xno"; then
- DISABLE_DEPRECATED=" \
- -DG_DISABLE_SINGLE_INCLUDES \
- -DGTK_DISABLE_SINGLE_INCLUDES \
- -DG_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_MULTIHEAD_SAFE \
- -DGTK_MULTIHEAD_SAFE \
- -DGSEAL_ENABLE"
-
+if test "x$enable_deprecated" = "xyes"; then
+ DISABLE_DEPRECATED=""
CPPFLAGS="$CPPFLAGS $DISABLE_DEPRECATED"
fi