configure.ac: add --enable-gtk-warnings
So you can see what is deprecated in GTK2...
@@ -28,10 +28,16 @@ AC_ARG_ENABLE(gtkport,
enable_gtkport=$enableval,
enable_gtkport="yes")
+AC_ARG_ENABLE(gtk_warnings,
+ [ --enable-gtk-warnings So you can see what is deprecated in GTK2...],
+ gtk_warnings=$enableval,
+ gtk_warnings='np')
+
AC_ARG_ENABLE(textport,
[ --disable-textport Disable compiling the text port],
enable_textport=$enableval,
enable_textport="yes")
+
AC_ARG_ENABLE(ssl,
[ --disable-ssl Disable SSL support],
enable_ssl=$enableval,
@@ -176,6 +182,10 @@ case "$CC" in
*) ;;
esac
+if test x"$gtk_warnings" = x"yes"; then
+ CPPFLAGS="$CPPFLAGS -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES"
+fi
+
AC_CHECK_PROG(DB2HTML, db2html, true, false)
AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
