telepathy-gabble: use new GLib API checking macros

Simon McVittie smcv at kemper.freedesktop.org
Tue Sep 11 04:26:44 PDT 2012


Module: telepathy-gabble
Branch: master
Commit: 0015b83d5746ec5fab3e4205c56ec599a5726bfa
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=0015b83d5746ec5fab3e4205c56ec599a5726bfa

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Wed Apr  4 09:49:48 2012 +0200

use new GLib API checking macros

---

 configure.ac |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 58d78b9..ed987cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,10 +148,6 @@ if test -n "$with_ca_certificates"; then
     fi
 fi
 
-# We are still using GValueArray which has been deprecated in GLib. Disable
-# GLib deprecation warnings as the only way to fix this is to switch to GDBus.
-AC_DEFINE(GLIB_DISABLE_DEPRECATION_WARNINGS, 1, [Build with GLib deprecated])
-
 AC_ARG_ENABLE(debug,
   AC_HELP_STRING([--disable-debug],[compile without debug code]),
     enable_debug=$enableval, enable_debug=yes )
@@ -231,6 +227,9 @@ PKG_CHECK_MODULES(GLIB,
     [glib-2.0 >= 2.30, gobject-2.0 >= 2.30, gthread-2.0 >= 2.30, gio-2.0])
 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.30])
 
+AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_30, [Ignore post 2.30 deprecations])
+AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_30, [Prevent post 2.30 APIs])
+
 AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
 



More information about the telepathy-commits mailing list