aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index d17fc25..43d737f 100644
--- a/configure.in
+++ b/configure.in
@@ -83,11 +83,10 @@ AC_CHECK_FUNC(regcomp,AC_DEFINE(USE_REGEXP))
AC_CHECK_FUNC(lrand48,,AC_DEFINE(USE_RANDOM))
# Dynamic modules
-dl_ldflags=
+AC_SEARCH_LIBS(dlopen,[dl],[
+ AC_DEFINE(HAVE_LIBDL)
+ dl_ldflags="-rdynamic"])
AC_SUBST(dl_ldflags)
-AC_CHECK_LIB(dl,dlopen,
- AC_DEFINE(HAVE_LIBDL)
- AC_SUBST(dl_ldflags,"-rdynamic -ldl"))
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h unistd.h])