* #6902: build client with stricter deprecation flags

Specifically, compiles with the flags:
-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-DGTK_DISABLE_SINGLE_INCLUDES

See:
http://developer.gnome.org/gtk3/3.3/gtk-migrating-2-to-3.html#id1539429
This commit is contained in:
Tristan Matthews
2011-11-14 16:43:26 -05:00
parent 1a307971b6
commit 3f76621874
24 changed files with 156 additions and 133 deletions

View File

@ -15,11 +15,6 @@ AC_ARG_WITH(debug,
[with_debug=${withval}],
[with_debug=no]
)
if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
CFLAGS="-g -O0 -DDEBUG -Wall -Wextra"
else
CFLAGS="$CFLAGS -Wall -Wextra"
fi
AC_PROG_CC_C99
dnl For target specific flags
@ -28,6 +23,14 @@ AC_PROG_INSTALL
AC_HEADER_STDC
LT_INIT
MIGRATION_FLAGS="-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES"
if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
CFLAGS="-g -O0 -DDEBUG -Wall -Wextra $MIGRATION_FLAGS"
else
CFLAGS="$CFLAGS -g -Wall -Wextra -Wshadow $MIGRATION_FLAGS"
fi
dnl GCONF utilities
AM_GCONF_SOURCE_2