[dia] Fix Python detection for my gentoo box
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Fix Python detection for my gentoo box
- Date: Fri, 6 Aug 2010 11:43:21 +0000 (UTC)
commit 97121ac243167e4e5ed0da2132a02316871bb7c7
Author: Hans Breuer <hans breuer org>
Date: Tue Aug 3 19:33:24 2010 +0200
Fix Python detection for my gentoo box
Also updated to a more relevant Python version. I seriously doubt Dia
would still work with Python 1.5.2, but I'm sure it does with 2.3
acinclude.m4 | 6 +++---
configure.in | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/acinclude.m4 b/acinclude.m4
index 09026f7..f2bbc6e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -238,15 +238,15 @@ dnl now the actual libpython
if test -e "$PYTHON_PREFIX/${py_lib}/libpython${PYTHON_VERSION}.so"; then
PYTHON_LIBS="-L${py_config_dir} -lpython${PYTHON_VERSION} $py_basemodlibs $py_other_libs"
AC_MSG_RESULT(found)
- elif test -e "${py_config_dir}/libpython${PYTHON_VERSION}.a"; then
+ elif test -e "${py_prefix}/${py_lib}/libpython${PYTHON_VERSION}.a"; then
dnl Same as above, but looking into the previous location: bug #581533
PYTHON_LIBS="-L${py_config_dir} -lpython${PYTHON_VERSION} $py_basemodlibs $py_other_libs"
AC_MSG_RESULT(found)
else
- AC_MSG_RESULT(not found)
+ AC_MSG_RESULT(not found lib)
fi
else
- AC_MSG_RESULT(not found)
+ AC_MSG_RESULT(not found config)
fi
AC_SUBST(PYTHON_LIBS)])
diff --git a/configure.in b/configure.in
index 57c80de..abdf56f 100644
--- a/configure.in
+++ b/configure.in
@@ -496,7 +496,7 @@ AC_ARG_WITH(python,
[ --with-python compile python plug-in],,with_python=no)
if test "x$with_python" != xno; then
- AM_PATH_PYTHON(1.5.2)
+ AM_PATH_PYTHON(2.3.0)
AM_CHECK_PYMOD(gtk,,,[AC_MSG_RESULT(could not find pygtk module)])
AM_CHECK_PYTHON_HEADERS
AM_CHECK_PYTHON_LIB
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]