From 7fe9c9511349b78f04aa97d3f47868dbf6c76b80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 27 Aug 2010 16:44:45 +0200 Subject: [PATCH] build system: use AC_SEARCH_LIBS rather than assuming -ldl is needed. On a number of operating systems, such as the *BSD, the dlopen() function is present in the standard C library, not in a separate libdl library. Signed-off-by: Greg Kroah-Hartman --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index a415f3f..bc2bb3a 100644 --- a/configure.ac +++ b/configure.ac @@ -23,9 +23,7 @@ PKG_CHECK_MODULES(LIBPCRE, libpcre) PKG_CHECK_MODULES([LIBCURL], [libcurl]) PKG_CHECK_MODULES([XML], [libxml-2.0]) -# explicitly link DSOs -LIBS="$LIBS -ldl" - +AC_SEARCH_LIBS([dlopen], [dl]) dnl Checks for header files. #AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h unistd.h]) -- 2.20.1