[anjuta] configure: Detect python more robust
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] configure: Detect python more robust
- Date: Mon, 21 May 2012 20:46:59 +0000 (UTC)
commit afdc2ce12765fe100126f6468b792293af2aebc0
Author: Johannes Schmid <jhs gnome org>
Date: Mon May 21 22:18:48 2012 +0200
configure: Detect python more robust
Some distributions (like Fedora) rename python-config to something like
python2.7-config which we didn't consider yet and which could cause
disabled python support even if python is available. We now also
show the status of python support in the summary.
configure.ac | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ac86fbb..d0bf1f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -302,8 +302,14 @@ if test x$have_python = xyes; then
PYTHON_LIBS=`$PYTHON-config --libs`
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON_LIBS)
+ elif test -x $PYTHON$PYTHON_VERSION-config; then
+ PYTHON_CFLAGS=`$PYTHON$PYTHON_VERSION-config --cflags`
+ PYTHON_LIBS=`$PYTHON$PYTHON_VERSION-config --libs`
+ AC_SUBST(PYTHON_CFLAGS)
+ AC_SUBST(PYTHON_LIBS)
else
have_python="no"
+ echo "$PYTHON-config or $PYTHON$PYTHON_VERSION-config not found - disabling python"
fi
fi
@@ -931,6 +937,12 @@ else
echo "Building class inheritance plugin: .....................NO"
echo " Requires graphviz (>= 2.6.0); http://graphviz.org"
fi
+if [ test x$have_python = xyes]; then
+ echo "Building python plugin loaeder: ........................YES"
+else
+ echo "Building python plugin loaeder: ........................NO"
+ echo " Requires python"
+fi
echo "-------------------------------------------------------------------"
echo "AM_CFLAGS = $AM_CFLAGS"
echo "AM_CXXFLAGS = $AM_CXXFLAGS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]