[gnome-desktop] misc: Rename --enable-deprecations to --enable-deprecation-flags



commit 7fcbb6d90d2c6251434dfac19364b39af21dceed
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Sep 27 12:43:37 2010 +0200

    misc: Rename --enable-deprecations to --enable-deprecation-flags
    
    This is a better name for this configure option, since it's really about
    enabling the use of the deprecation flags, not allowing the use of
    deprecated API.

 configure.ac                 |   18 +++++++++---------
 libgnome-desktop/Makefile.am |    2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 043f10c..b4e78a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,14 +81,14 @@ GNOME_DEBUG_CHECK
 GNOME_COMPILE_WARNINGS([maximum])
 GNOME_MAINTAINER_MODE_DEFINES
 
-# As a special favour for vuntz, support --disable-deprecations
-
-AC_ARG_ENABLE([deprecations],
-	[AS_HELP_STRING([--disable-deprecations],[don't warn about deprecated usages])],
-	[],[enable_deprecations=yes])
-if test "$enable_deprecations" = "no"; then
-	DISABLE_DEPRECATED=""
-	AC_SUBST([DISABLE_DEPRECATED])
+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_deprecation_flags" = "xyes"; then
+   DISABLE_DEPRECATED_CFLAGS=$DISABLE_DEPRECATED
+   AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 fi
 
 # Should we build gnome-about or the shared desktop docs? Useful for people who
@@ -268,7 +268,7 @@ echo "
         compiler:                     ${CC}
         cflags:                       ${CFLAGS}
         Maintainer mode:              ${USE_MAINTAINER_MODE}
-        Warn about deprecations:      ${enable_deprecations}
+        Use *_DISABLE_DEPRECATED:     ${enable_deprecation_flags}
 
         GNOME Distributor:            ${GNOME_DISTRIBUTOR}
         Build gnome-about:            ${enable_gnome_about}
diff --git a/libgnome-desktop/Makefile.am b/libgnome-desktop/Makefile.am
index 9c775c6..a98bc74 100644
--- a/libgnome-desktop/Makefile.am
+++ b/libgnome-desktop/Makefile.am
@@ -8,7 +8,7 @@ AM_CPPFLAGS =							\
 	-DG_LOG_DOMAIN=\"GnomeDesktop\"				\
 	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale\""	\
 	-DPNP_IDS=\""$(PNP_IDS)"\"				\
-	$(DISABLE_DEPRECATED)
+	$(DISABLE_DEPRECATED_CFLAGS)
 
 AM_CFLAGS = $(WARN_CFLAGS)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]