summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-08-27 15:42:32 +0200
committerinfirit <[email protected]>2015-08-27 15:42:32 +0200
commitcafa9b4b2f9dabbe069f42158c74cc001c4d9ca0 (patch)
tree170b3ee5f251958eeded2f09642a8d9d24bed2a2
parent7debab2d7074cd7a12362afd78cd7b1b3b16ac04 (diff)
downloadmate-settings-daemon-cafa9b4b2f9dabbe069f42158c74cc001c4d9ca0.tar.bz2
mate-settings-daemon-cafa9b4b2f9dabbe069f42158c74cc001c4d9ca0.tar.xz
Define max/min version of GLib
This warns us of using symbols like g_assert_null not available in GLib 2.36
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
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)