configure.in
changeset 570 04d6411da49d
parent 567 969fbd4dcd4e
child 582 16cc97387d52
--- a/configure.in	Mon Jan 20 01:36:28 2003 +0000
+++ b/configure.in	Mon Jan 20 01:37:07 2003 +0000
@@ -1044,6 +1044,9 @@
         if test x$video_opengl = xyes; then
             CFLAGS="$CFLAGS -DHAVE_OPENGL"
             SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
+            if test x$use_dlopen != xyes; then
+                AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl")
+            fi
         fi
     fi
 }
@@ -1558,7 +1561,7 @@
 
         if test x$use_dlopen = xyes; then
             CFLAGS="$CFLAGS -DUSE_DLOPEN"
-            AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl")
+            AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl", AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl"))
         fi
     fi
 }