summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-11 06:43:05 +0200
committerJasmine Hassan <[email protected]>2012-11-11 08:01:22 +0200
commit6e90196244e02b7203c77de3568f8c4dcc8dc65a (patch)
tree0b8bc61de03bdfd9649e727c328b0a7e66627b16
parentbfc5cbef4b0d3a95246d38af041f668068afda57 (diff)
downloadmate-desktop-6e90196244e02b7203c77de3568f8c4dcc8dc65a.tar.bz2
mate-desktop-6e90196244e02b7203c77de3568f8c4dcc8dc65a.tar.xz
[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. http://git.gnome.org/browse/gnome-desktop/commit/?id=7fcbb6d90d2c6251434dfac19364b39af21dceed
-rw-r--r--configure.ac18
-rw-r--r--libmate-desktop/Makefile.am2
2 files changed, 10 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index eb7894d..6114659 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,14 +60,14 @@ MATE_DEBUG_CHECK
MATE_COMPILE_WARNINGS([maximum])
MATE_MAINTAINER_MODE_DEFINES
-# As a special favour for vuntz, support --disable-deprecations
-
-AC_ARG_ENABLE([deprecations],
- [AS_HELP_STRING([--disable-deprecations],[dont 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 mate-about or the shared desktop docs? Useful for people who
@@ -333,7 +333,7 @@ mate-desktop $VERSION `echo mate-desktop $VERSION | sed "s/./=/g"`
compiler: ${CC}
cflags: ${CFLAGS}
Maintainer mode: ${USE_MAINTAINER_MODE}
- Warn about deprecations: ${enable_deprecations}
+ Use *_DISABLE_DEPRECATED: ${enable_deprecation_flags}
Gtk+ version: ${GTK_API_VERSION}
Build mate-about: ${enable_mate_about}
diff --git a/libmate-desktop/Makefile.am b/libmate-desktop/Makefile.am
index 4007291..878303d 100644
--- a/libmate-desktop/Makefile.am
+++ b/libmate-desktop/Makefile.am
@@ -8,7 +8,7 @@ AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"MateDesktop\" \
-DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale\"" \
-DPNP_IDS=\""$(PNP_IDS)"\" \
- $(DISABLE_DEPRECATED)
+ $(DISABLE_DEPRECATED_CFLAGS)
AM_CFLAGS = $(WARN_CFLAGS)