From 6e7f3de25626c60a6f56d86c85ed4fc2cbd8eeed Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Fri, 12 Apr 2013 19:59:26 +0200 Subject: [PATCH] Specify targeted GLib version range Mainly to avoid deprecation warnings about g_type_init(). https://bugs.freedesktop.org/show_bug.cgi?id=63440 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index a9c24c4..73a978e 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,10 @@ fi PKG_CHECK_MODULES(GLIB, [gmodule-2.0 gio-2.0 >= 2.30.0]) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) +AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_30], + [Avoid warning spew about g_type_init() being deprecated]) +AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [G_ENCODE_VERSION(2,34)], + [Notify us when we'll need to transition away from g_type_init()]) PKG_CHECK_MODULES(LIBJS, [mozjs185]) AC_SUBST(LIBJS_CFLAGS) -- 1.8.2