[gnome-games] configure.in: Accept either pygobject-2.0 or 3.0 pkgconfig files



commit c5f1e793ebee4f0c6205e8e41b05bfa5c2463316
Author: Jason D. Clinton <jclinton google com>
Date:   Mon Sep 26 14:19:48 2011 -0500

    configure.in: Accept either pygobject-2.0 or 3.0 pkgconfig files
    
    The pygobject release bumped their major version to 3.0 which altered
    the pkgconfig file name even though the API hasn't changed in a back-
    ward incompatible way. This allows us to accept either version.

 configure.in |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index a4d32da..9d92366 100644
--- a/configure.in
+++ b/configure.in
@@ -484,10 +484,14 @@ AM_CONDITIONAL([HAVE_CLUTTER],[test "$need_clutter" = "yes"])
 
 # Check for PyGObject
 
+# This is madness because the interface didn't change from 2.0 to 3.0
 if test "$have_python" = "yes"; then
   PKG_CHECK_MODULES([PYGOBJECT],[
-    pygobject-2.0 >= $PYGOBJECT_REQUIRED],
-    [have_pygtk=yes],[have_pygtk=no])
+    pygobject-3.0 >= $PYGOBJECT_REQUIRED],
+    [have_pygtk=yes],[PKG_CHECK_MODULES([PYGOBJECT],[
+      pygobject-2.0 >= $PYGOBJECT_REQUIRED],
+      [have_pygtk=yes],[have_pygtk=no])
+    ])
 fi
 
 enable_python=no



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]