Fix python check for systems with dlopen(3) in libc (BSD family)
authorPawel Pekala <c0rn@o2.pl>
Fri, 13 Dec 2013 19:58:41 +0000 (20:58 +0100)
committerPawel Pekala <c0rn@o2.pl>
Fri, 13 Dec 2013 19:58:41 +0000 (20:58 +0100)
configure.ac

index d957f80..4b78704 100644 (file)
@@ -1202,7 +1202,7 @@ AM_PATH_PYTHON([2.5], [
                if test x"$platform_win32" = xno; then
                        # libpython.so
                        PYTHON_SHARED_LIB="libpython${PYTHON_VERSION}.so"
-                       LIBS="-ldl"
+                       LIBS="$lt_cv_dlopen_libs"
                        AC_MSG_CHECKING([whether to dlopen $PYTHON_SHARED_LIB works])
                        AC_RUN_IFELSE(
                                [AC_LANG_PROGRAM(