diff configure.in @ 570:04d6411da49d

ate: Thu, 16 Jan 2003 13:48:31 +0200 From: "Mike Gorchak" added support for checking libtool's version of libdl for dlopen.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 20 Jan 2003 01:37:07 +0000
parents 969fbd4dcd4e
children 16cc97387d52
line wrap: on
line diff
--- 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
 }