summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c6bbc33f0..ad1c92f11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -847,6 +847,13 @@ if test "x$enable_strict_build" != "xno"; then
fi
fi
+# Disable all deprecated symbols if very strict build is requested.
+# TODO: Make this a default option for Gtk+ 2 or 3 builds as soon as
+# possible.
+if test "x$enable_strict_build" = "xhigh"; then
+ CPPFLAGS="-Werror=deprecated-declarations $CPPFLAGS"
+fi
+
# Check for Apple Mac OS X Carbon framework
carbon_ok=no
AC_MSG_CHECKING([for Mac OS X Carbon support])