From: Diego Elio 'Flameeyes' Pettenò Date: Fri, 27 Aug 2010 14:44:45 +0000 (+0200) Subject: build system: use AC_SEARCH_LIBS rather than assuming -ldl is needed. X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/7fe9c9511349b78f04aa97d3f47868dbf6c76b80?hp=a120a113216001e3fe8156ad0ab23d188b7d36c4 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 --- 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])