[pygobject] Make AM_CHECK_PYTHON_LIBS not depend on AM_CHECK_PYTHON_HEADERS



commit 4799ef1d0cb9a4b27c7952585d33b58ea9ec34ca
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Thu Apr 4 10:08:38 2013 +0200

    Make AM_CHECK_PYTHON_LIBS not depend on AM_CHECK_PYTHON_HEADERS
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696648#c6

 m4/python.m4 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/m4/python.m4 b/m4/python.m4
index 11d966d..95ae809 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -68,10 +68,10 @@ dnl a macro to check for ability to embed python
 dnl  AM_CHECK_PYTHON_LIBS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
 dnl function also defines PYTHON_LIBS
 AC_DEFUN([AM_CHECK_PYTHON_LIBS],
-[AC_REQUIRE([AM_CHECK_PYTHON_HEADERS])
+[AC_REQUIRE([AM_PATH_PYTHON])
 AC_MSG_CHECKING(for libraries required to embed python)
 dnl deduce PYTHON_LIBS
-py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
+py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
 if test "x$PYTHON_LIBS" = x; then
        PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
 fi


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