* configure.ac: Check for libdl.
authortwisti <none@none>
Sat, 6 Jan 2007 14:29:26 +0000 (14:29 +0000)
committertwisti <none@none>
Sat, 6 Jan 2007 14:29:26 +0000 (14:29 +0000)
configure.ac

index 81448f96f32a5c4da82c51a8c430fe1ed84cc130..ff305268777d545e4490444f8ffeac4e8d174982 100644 (file)
@@ -948,6 +948,9 @@ if test x"${WITH_STATIC_CLASSPATH}" = "xyes"; then
     dnl check for some classpath related stuff when we link statically
     AM_ICONV_LINK
 else
+    dnl we need this check for --enable-staticvm, otherwise ltdl can't find dlopen
+    AC_CHECK_LIB(dl, dlopen,, [AC_MSG_ERROR(cannot find libdl)])
+
     AC_CHECK_HEADERS([ltdl.h],, [AC_MSG_ERROR(cannot find ltdl.h)])
     AC_CHECK_LIB(ltdl, lt_dlopen,, [AC_MSG_ERROR(cannot find libltdl)])
 fi