pygobject r805 - trunk



Author: johan
Date: Mon Jul 14 21:56:55 2008
New Revision: 805
URL: http://svn.gnome.org/viewvc/pygobject?rev=805&view=rev

Log:
2008-07-14  Johan Dahlin  <johan gnome org>

        Bug 448173 â use python-config to get python includes   

        * configure.ac:
        Really close the by, patch by Matthias Klose



Modified:
   trunk/ChangeLog
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Mon Jul 14 21:56:55 2008
@@ -9,8 +9,8 @@
 
 dnl versions of packages we require ...
 m4_define(glib_required_version, 2.8.0)
-m4_define(gio_required_version, 2.15.7)
-m4_define(giounix_required_version, 2.15.7)
+m4_define(gio_required_version, 2.16.0)
+m4_define(giounix_required_version, 2.16.0)
 
 AC_INIT(pygobject, pygobject_version,
         [http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject])
@@ -73,7 +73,11 @@
 
 AC_MSG_CHECKING([for PySignal_SetWakeupFd in Python.h])
 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
+if test -x "$PYTHON-config"; then
+PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
+else
 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+fi
 old_CPPFLAGS=$CPPFLAGS
 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
 AC_TRY_COMPILE([#include <Python.h>],



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