[Pkg-telepathy-commits] [libnice] 04/265: Set the minimum GLib version to 2.30 to disable deprecated warnings on newer GLib versions and make sure the maximum allowed GLib version is 2.32

Simon McVittie smcv at debian.org
Wed May 14 12:04:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit 3dd87082756d78118ef0f1094fc19e18e6ef3ae1
Author: Rohan Garg <rohangarg at kubuntu.org>
Date:   Fri Mar 22 11:23:31 2013 +0530

    Set the minimum GLib version to 2.30 to disable deprecated warnings on newer GLib versions and make sure the maximum allowed GLib version is 2.32
    
    Also actually require 2.30
---
 configure.ac | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index ed38b76..cf3048e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,7 +90,10 @@ AC_CHECK_HEADERS([ifaddrs.h], \
 		      [AC_DEFINE(HAVE_GETIFADDRS, [1], \
 		       [Whether getifaddrs() is available on the system])])
 
-LIBNICE_CFLAGS="-Wall"
+# Also put matching version in LIBNICE_CFLAGS
+GLIB_REQ=2.30
+
+LIBNICE_CFLAGS="-Wall -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_30 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32"
 dnl if asked for, add -Werror if supported
 if test "x$LIBNICE_RELEASE" != "xyes"; then
   LIBNICE_CFLAGS="$LIBNICE_CFLAGS -Werror"
@@ -105,10 +108,10 @@ AC_CHECK_FUNCS([poll])
 AC_SUBST(LIBRT)
 
 PKG_CHECK_MODULES(GLIB, [dnl
-	glib-2.0 >= 2.13 dnl
-	gobject-2.0 >= 2.13 dnl
-	gthread-2.0 >= 2.13 dnl
-	gio-2.0 >= 2.13 dnl
+	glib-2.0 >= $GLIB_REQ dnl
+	gobject-2.0 >= $GLIB_REQ dnl
+	gthread-2.0 >= $GLIB_REQ dnl
+	gio-2.0 >= $GLIB_REQ dnl
 	])
 
 AC_ARG_WITH(gstreamer, 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list