[gedit] Do not tie deprecations to maintainer mode



commit fcfad0a4b535a02407b8a680158f1b7ddf23b8af
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Jul 21 11:01:11 2013 +0200

    Do not tie deprecations to maintainer mode
    
    It caused deprecations to be on by default, and right now with UIManager
    deprecated that's just too much pain for no gain.

 configure.ac |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 08fc148..0bcf8fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -380,18 +380,14 @@ AC_DEFINE(GDK_VERSION_MIN_REQUIRED, GDK_VERSION_3_8, [minimum gdk version])
 
 GNOME_COMPILE_WARNINGS([maximum])
 
-if test "$USE_MAINTAINER_MODE" = "yes"; then
-       enable_deprecations=yes
-else
-       enable_deprecations=no
-fi
-
 AC_ARG_ENABLE(deprecations,
               [AS_HELP_STRING([--enable-deprecations],
                               [warn about deprecated usages [default=no]])],
               [enable_deprecations=$enableval], [])
 
+AC_MSG_CHECKING([whether to forbid deprecated symbols])
 if test "$enable_deprecations" = "yes"; then
+       AC_MSG_RESULT(yes)
        DISABLE_DEPRECATED_CFLAGS="\
 -DGSEAL_ENABLE \
 -DG_DISABLE_DEPRECATED \
@@ -402,6 +398,8 @@ if test "$enable_deprecations" = "yes"; then
 -DPEAS_DISABLE_DEPRECATED"
 
        AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
+else
+       AC_MSG_RESULT(no)
 fi
 
 # on win32 plugins must be able to resolve all symbols at link time


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