[Xfce4-commits] <exo:master> Fix gio-unix 2.27 detection (bug #7124).

Nick Schermer noreply at xfce.org
Sun Jan 30 00:20:02 CET 2011


Updating branch refs/heads/master
         to acc27174635e14f63d5b4143d8a3775f01a54c0d (commit)
       from d7299c288171891c3a4cbcffcfd31ddf8537ded5 (commit)

commit acc27174635e14f63d5b4143d8a3775f01a54c0d
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Jan 30 00:19:16 2011 +0100

    Fix gio-unix 2.27 detection (bug #7124).

 configure.in.in |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure.in.in b/configure.in.in
index 8652d3a..677f80a 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -155,10 +155,9 @@ XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0], [2.18.0], [gio-unix], [GI
 GIOMODULEDIR=""
 BUILD_GIOMODULE=""
 if test x"$GIO_UNIX_FOUND" = x"yes"; then
-  dnl Do not build the module after GIO 2.27
-  XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX_227], [gio-unix-2.0], [2.27.0], [gio-unix], [GIO-Unix too new], [yes])
-
-  if test x"$GIO_UNIX_227_FOUND" != x"yes"; then
+  if $PKG_CONFIG "--atleast-version=2.27.0" "gio-unix-2.0" >/dev/null 2>&1; then
+    BUILD_GIOMODULE="no"
+  else
     dnl A GIO version >= 2.18 and < 2.27 was found
     BUILD_GIOMODULE="yes"
 
@@ -176,7 +175,7 @@ if test x"$GIO_UNIX_FOUND" = x"yes"; then
 fi
 AC_SUBST([GIOMODULEDIR])
 AM_CONDITIONAL([HAVE_GIOMODULEDIR], [test x"$GIOMODULEDIR" != x""])
-AM_CONDITIONAL([BUILD_GIOMODULE], [test x"$BUILD_GIOMODULE" != x""])
+AM_CONDITIONAL([BUILD_GIOMODULE], [test x"$BUILD_GIOMODULE" = x"yes"])
 
 dnl *********************
 dnl *** Check for X11 ***
@@ -358,7 +357,7 @@ dnl ***************************
 echo
 echo "Build Configuration:"
 echo
-if test x"$GIO_UNIX_227_FOUND" = x"yes"; then
+if test x"$BUILD_GIOMODULE" = x"no"; then
 echo "* Build GIO module:     no (not needed after glib 2.27)"
 elif test x"$GIO_UNIX_FOUND" = x"yes"; then
 echo "* Build GIO module:     yes"



More information about the Xfce4-commits mailing list