diff options
author | Ted Gould <ted@gould.cx> | 2010-11-11 09:38:43 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-11-11 09:38:43 -0600 |
commit | 75672d53ab18c2e057927e610ea22890fbb102a2 (patch) | |
tree | 8b62906375974f2fd492a6c8a05211bd152fdee6 | |
parent | 5c848a14979bf12357c88a7e90422d1deb045ed5 (diff) | |
download | libayatana-indicator-75672d53ab18c2e057927e610ea22890fbb102a2.tar.gz libayatana-indicator-75672d53ab18c2e057927e610ea22890fbb102a2.tar.bz2 libayatana-indicator-75672d53ab18c2e057927e610ea22890fbb102a2.zip |
Checking for deprecations and making sure we check on distcheck
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index f290d63..c955c6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,8 @@ SUBDIRS = \ tests \ tools +DISTCHECK_CONFIGURE_FLAGS = --disable-deprecations + DISTCLEANFILES = \ libindicator-*.tar.gz diff --git a/configure.ac b/configure.ac index 86eec72..8b4a709 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,15 @@ AC_CONFIG_MACRO_DIR([m4]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) +AC_ARG_ENABLE([deprecations], + [AS_HELP_STRING([--enable-deprecations], + [allow deprecated API usage @<:@default=yes@:>@])], + [], + [enable_deprecations=yes]) +AS_IF([test "x$enable_deprecations" = xno], + [CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGTK_DISABLE_SINGLE_INCLUDES"] +) + ############################## # Dependencies ############################## |