]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: remove explicit check for libdl (#1963)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Mon, 16 Dec 2024 14:49:55 +0000 (14:49 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 16 Dec 2024 16:54:29 +0000 (16:54 +0000)
OpenBSD does not have libdl, as it has dlopen() in libc.
It is not really needed, and force-requiring the presence of libdl
causes ./configure to fail on openbsd:

    checking for dlopen in -ldl... no
    configure: error: Required library 'dl' not found

configure.ac

index 2cbd317cf05e5d6e7a8145b096ac17061a751e73..3b06f8bae72cdb1bf04cb4157760d04a6a27b80f 100644 (file)
@@ -403,13 +403,6 @@ AS_IF([test "x$squid_opt_aufs_threads" != "x"],[
     [Defines how many threads aufs uses for I/O])
 ])
 
-## TODO check if this is necessary, LT_INIT does these checks
-SQUID_AUTO_LIB(dl,[dynamic linking],[LIBDL])
-SQUID_CHECK_LIB_WORKS(dl,[
-  LDFLAGS="$LIBDL_PATH $LDFLAGS"
-  AC_CHECK_LIB(dl, dlopen,[LIBDL_LIBS="-ldl"])
-])
-
 AC_DEFUN([LIBATOMIC_CHECKER],[
   AC_MSG_CHECKING(whether linking $1 -latomic works)
   AC_LINK_IFELSE([