[gtkhtml] Add an option for disabling deprecated warning flags. We would handle the deprecated gdk gc past evo



commit 87ace71b701e0e9b05c965475691a41f4b3b74e5
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Thu Aug 12 13:21:20 2010 +0530

    Add an option for disabling deprecated warning flags. We would handle the deprecated gdk gc past evolution-2.32

 configure.ac |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d0d0d68..3cf2bdf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,15 +67,24 @@ AM_GLIB_GNU_GETTEXT
 dnl **********************************
 dnl Compiler Warning Flags
 dnl **********************************
-dnl GDK_DISABLE_DEPRECATED is excluded until
-dnl we can port the GDK drawing code to cairo.
+AC_ARG_ENABLE([deprecated_warning_flags],
+	AS_HELP_STRING([--enable-deprecated-warning-flags],
+	[Enable warning flags for deprecated apis]),
+	[enable_deprecated_flags=$enableval],[enable_deprecated_flags=yes])
+
+if test "x${enable_deprecated_flags}" = "xyes"; then
+	AS_COMPILER_FLAGS(DEPRECATED_WARNING_FLAGS,
+		"-DG_DISABLE_DEPRECATED
+		-DPANGO_DISABLE_DEPRECATED
+		-DGDK_DISABLE_DEPRECATED
+		-DGDK_PIXBUF_DISABLE_DEPRECATED
+		-DGTK_DISABLE_DEPRECATED
+		-DGNOME_DISABLE_DEPRECATED")
+	AC_SUBST(WARNING_FLAGS)
+fi
+
 AS_COMPILER_FLAGS(WARNING_FLAGS,
-	"-DG_DISABLE_DEPRECATED
-	-DPANGO_DISABLE_DEPRECATED
-	-DGDK_PIXBUF_DISABLE_DEPRECATED
-	-DGTK_DISABLE_DEPRECATED
-	-DGNOME_DISABLE_DEPRECATED
-	-DG_DISABLE_SINGLE_INCLUDES
+	"-DG_DISABLE_SINGLE_INCLUDES
 	-DGTK_DISABLE_SINGLE_INCLUDES
 	-Wall -Wextra
 	-Wno-missing-field-initializers
@@ -98,7 +107,7 @@ dnl	-Wshadow
 dnl	-Wstrict-aliasing=2
 
 dnl XXX This really belongs in AM_CPPFLAGS.
-CFLAGS="$CFLAGS $WARNING_FLAGS"
+CFLAGS="$CFLAGS $DEPRECATED_WARNING_FLAGS  $WARNING_FLAGS"
 
 dnl *********************
 dnl Necessary programs



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