put back this cruft until a better solution presents itself
authorPaul <paul@claws-mail.org>
Wed, 29 May 2013 17:26:39 +0000 (18:26 +0100)
committerPaul <paul@claws-mail.org>
Wed, 29 May 2013 17:26:39 +0000 (18:26 +0100)
configure.ac

index 56dd35a759bee5533d1572d7e5dad17d8b4fc108..fe478cd20e2bb8602ba10092bdc414712212769c 100644 (file)
@@ -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