[dia/dia-0-97] [build] Decouple --enable-debug and --enable-deprecation
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/dia-0-97] [build] Decouple --enable-debug and --enable-deprecation
- Date: Fri, 7 Jan 2011 12:18:26 +0000 (UTC)
commit ea14bff5fbce6eb56fc79b5c91798d147627d2a3
Author: Hans Breuer <hans breuer org>
Date: Fri Oct 29 19:24:38 2010 +0200
[build] Decouple --enable-debug and --enable-deprecation
There wont be any more deprecation work on dia-0-97 but
maybe some debugging ;)
configure.in | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index e368c5b..548d854 100644
--- a/configure.in
+++ b/configure.in
@@ -250,7 +250,7 @@ AC_ARG_ENABLE(debug,
enable_debug=minimum)
if test "x$enable_debug" = "xyes"; then
- DEBUG_FLAGS="-g -DENABLE_DEBUG -DGTK_DISABLE_DEPRECATED"
+ DEBUG_FLAGS="-g -DENABLE_DEBUG"
else
if test "x$enable_debug" = "xno"; then
DEBUG_FLAGS=""
@@ -258,6 +258,32 @@ else
DEBUG_FLAGS=""
fi
fi
+
+dnl
+dnl Deprecation
+dnl
+AC_ARG_ENABLE(deprecation,
+[ --enable-deprecation=[no,glib,pango,gtk,yes] turn on glib/pango/gtk deprecations [default=no]],
+ ,
+ enable_deprecation=no)
+if test "x$enable_deprecation" != "xno"; then
+ if test "x$enable_deprecation" = "xglib"; then
+ DEBUG_FLAGS="$DEBUG_FLAGS -DG_DISABLE_DEPRECATED"
+ else
+ if test "x$enable_deprecation" = "xpango"; then
+ DEBUG_FLAGS="$DEBUG_FLAGS -DPANGO_DISABLE_DEPRECATED"
+ else
+ if test "x$enable_deprecation" = "xgtk"; then
+ DEBUG_FLAGS="$DEBUG_FLAGS -DGTK_DISABLE_DEPRECATED"
+ else
+ DEBUG_FLAGS="$DEBUG_FLAGS -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+ fi
+ fi
+ fi
+ enable_deprecation=yes
+fi
+
+dnl Used for both
AC_SUBST(DEBUG_FLAGS)
dnl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]