talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 7a8ee419bf23dd5d84275e29cdd04bbb35d47b8d
parent 7e2654802e7eb97090da16bdf0fc3e4adf4fd283
Author: Paul <paul@claws-mail.org>
Date:   Mon, 27 May 2013 13:52:48 +0100

fix locating of pythonXX.so, with thanks to Ricardo

Diffstat:
Mconfigure.ac | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -1237,15 +1237,12 @@ AM_PATH_PYTHON([2.5], [ if test x"$HAVE_PYTHON" = xyes; then # libpython.so + PYTHON_SO_FILE_LOCATION=`python-config --ldflags|sed 's/-L//'|awk '{print $1}'` PYTHON_SO_FILE="libpython${PYTHON_VERSION}.so" found_libpython_so="no" - if test -f "$PYTHON_PREFIX/lib/$PYTHON_SO_FILE"; then + if test -f "$PYTHON_SO_FILE_LOCATION/$PYTHON_SO_FILE"; then found_libpython_so="yes" - PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib/$PYTHON_SO_FILE\"))"` - fi - if test -f "$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE"; then - found_libpython_so="yes" - PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE\"))"` + PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_SO_FILE_LOCATION/$PYTHON_SO_FILE\"))"` fi if test x"$found_libpython_so" != x"yes"; then AC_MSG_WARN(Could not find Python shared libary: $PYTHON_SO_FILE does not exist. Maybe you need to install development packages for Python.)