From: Paul Date: Wed, 29 May 2013 17:26:39 +0000 (+0100) Subject: put back this cruft until a better solution presents itself X-Git-Tag: 3.9.2~1^2~6 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=f1444e9e56554bcb83efe8cf4c98ec5138cf3d35 put back this cruft until a better solution presents itself (cherry picked from commit 533722f52efcce1117503d5263efbbd4702c9c09) --- diff --git a/configure.ac b/configure.ac index 56dd35a75..fe478cd20 100644 --- a/configure.ac +++ b/configure.ac @@ -1240,7 +1240,15 @@ AM_PATH_PYTHON([2.5], [ 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_SO_FILE_LOCATION/$PYTHON_SO_FILE"; then + if test -f "$PYTHON_PREFIX/lib/$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 x"$found_libpython_so" != x"yes" && 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\"))"` + fi + if test x"$found_libpython_so" != x"yes" && 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_SO_FILE_LOCATION/$PYTHON_SO_FILE\"))"` fi