lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--configure.ac 15
1 files changed, 10 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index e764808..8100162 100644
--- a/configure.ac
+++ b/configure.ac
@@ -196,11 +196,16 @@ else
fi
AM_CONDITIONAL(strong_type_checking, [test $STRONG_TYPE_CHECKING = yes])
-case "$host_os" in
- *bsd*|osf*) SHLIB="" ;;
- *hpux*) SHLIB="-ldld" ;;
- *) SHLIB="-ldl" ;;
-esac
+AC_CHECK_LIB(dl, dlopen, [HAVE_LIBDL="yes"])
+AC_CHECK_LIB(dld, dlopen, [HAVE_LIBDLD="yes"])
+
+if test "x$HAVE_LIBDL" = xyes; then
+ SHLIB="-ldl";
+elif test "x$HAVE_LIBDLD" = xyes; then
+ SHLIB="-ldld";
+else
+ SHLIB="";
+fi
AC_SUBST(SHLIB)
cpu=
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月17日 04:06:36 +0000

AltStyle によって変換されたページ (->オリジナル) /