Fix python check resetting LIBS on win32
[claws.git] / configure.ac
index 23b0d207b84b027262d5ea7a0d2c67f11c6b67ce..5d493aa2c0008d65348524109ed00e9461610e02 100644 (file)
@@ -1198,10 +1198,10 @@ AM_PATH_PYTHON([2.5], [
        fi
 
        if test x"$HAVE_PYTHON" = xyes; then
+               _save_libs="$LIBS"
                if test x"$platform_win32" = xno; then
                        # libpython.so
                        PYTHON_SHARED_LIB="libpython${PYTHON_VERSION}.so"
-                       _save_libs="$LIBS"
                        LIBS="-ldl"
                        AC_MSG_CHECKING([whether to dlopen $PYTHON_SHARED_LIB works])
                        AC_RUN_IFELSE(