From cafa9b4b2f9dabbe069f42158c74cc001c4d9ca0 Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 27 Aug 2015 15:42:32 +0200 Subject: Define max/min version of GLib This warns us of using symbols like g_assert_null not available in GLib 2.36 --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 7aa6301..ea0ef95 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,13 @@ AS_AC_EXPAND(LIBEXECDIR, "$libexecdir") MSD_INTLTOOL_PLUGIN_RULE='%.mate-settings-plugin: %.mate-settings-plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' AC_SUBST([MSD_INTLTOOL_PLUGIN_RULE]) + +# GLib min/max required versions +AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_36], + [Warn on use of APIs added after GLib 2.36]) +AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_36], + [Warn on use of APIs deprecated before GLib 2.36]) + dnl Unconditionally use this dir to avoid a circular dep with matecc MATE_KEYBINDINGS_KEYSDIR="${datadir}/mate-control-center/keybindings" AC_SUBST(MATE_KEYBINDINGS_KEYSDIR) -- cgit v1.2.1