summaryrefslogtreecommitdiff
path: root/macros2/gnome-common.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros2/gnome-common.m4')
-rw-r--r--macros2/gnome-common.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/macros2/gnome-common.m4 b/macros2/gnome-common.m4
index 20302d1f..3a94d703 100644
--- a/macros2/gnome-common.m4
+++ b/macros2/gnome-common.m4
@@ -28,3 +28,16 @@ AC_DEFUN([GNOME_DEBUG_CHECK],
[Enable additional debugging at the expense of performance and size])
fi
])
+
+dnl AM_DISABLE_DEPRECATED ()
+dnl define DISABLE_DEPRECATED
+dnl
+AC_DEFUN([AM_DISABLE_DEPRECATED],
+[
+ if test $USE_MAINTAINER_MODE = yes; then
+ DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED"
+ else
+ DISABLE_DEPRECATED=""
+ fi
+ AC_SUBST(DISABLE_DEPRECATED)
+])