X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=configure.ac;h=56dd35a759bee5533d1572d7e5dad17d8b4fc108;hp=07cda6f48a8f7ae155cc263234b1b5a8c5a64b5e;hb=af939383eb0ec7b279fa3af0b21bb92a7475e280;hpb=b94dcc446c466bc41e4f1e5222c516db6d70b60e diff --git a/configure.ac b/configure.ac index 07cda6f48..56dd35a75 100644 --- 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.)