check if we need libdl...
authorraster <raster>
Tue, 29 Jun 2004 04:37:17 +0000 (04:37 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 29 Jun 2004 04:37:17 +0000 (04:37 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@10619 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.in
src/lib/Makefile.am

index 497eea8..23c499d 100644 (file)
@@ -161,6 +161,9 @@ AC_SUBST(xine_cflags)
 AC_SUBST(xine_libs)
 AC_SUBST(xine_plugins)
 
+AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
+AC_SUBST(dlopen_libs)
+
 AC_OUTPUT([
 Makefile
 src/Makefile
index 83e2bc3..2193058 100644 (file)
@@ -16,6 +16,6 @@ libemotion_la_SOURCES  = \
 emotion_smart.c \
 emotion_private.h
 
-libemotion_la_LIBADD       = $(LDFLAGS) @my_libs@ -ldl
+libemotion_la_LIBADD       = $(LDFLAGS) @my_libs@ @dlopen_libs@
 libemotion_la_DEPENDENCIES = $(top_builddir)/config.h
 libemotion_la_LDFLAGS      = -version-info 0:1:0