diff --git a/Changes b/Changes index 737488553..f74847641 100644 --- a/Changes +++ b/Changes @@ -1403,3 +1403,4 @@ seen. gmtime warning still there - Made ./configure remove uscore.c and uscore binary after test - Removed mutex.c - Credits changes, various tweaks mzp ftq Gzdqmx qhqdk dqxqmeq oapq otmxxqzsq. Tmbbk tgzfuzs. +- Fixed some ./configure errors diff --git a/autoconf/configure.in b/autoconf/configure.in index 189e96c6b..f0aa3a9e3 100644 --- a/autoconf/configure.in +++ b/autoconf/configure.in @@ -72,7 +72,12 @@ fi dnl module checking based on Hyb7's module checking code AC_DEFUN(AC_ENABLE_DYN, [ -AC_CHECK_FUNC(dlopen,, AC_CHECK_LIB(dl, dlopen,IRCDLIBS="$IRCDLIBS-ldl",AC_MSG_WARN(Dynamic linking is not enabled because dlopen was not found) AC_DEFINE(STATIC_LINKING))) +AC_CHECK_FUNC(dlopen,, AC_CHECK_LIB(dl, dlopen,IRCDLIBS="$IRCDLIBS-ldl", +[ +AC_MSG_WARN(Dynamic linking is not enabled because dlopen was not found) +AC_DEFINE(STATIC_LINKING) +])) + hold_cflags=$CFLAGS CFLAGS="$CFLAGS -export-dynamic" AC_CACHE_CHECK(if we need the -export-dynamic flag, ac_cv_export_dynamic, [ diff --git a/configure b/configure index fc74f7e00..c817649df 100755 --- a/configure +++ b/configure @@ -9446,15 +9446,19 @@ echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then IRCDLIBS="$IRCDLIBS-ldl" else - { echo "$as_me:$LINENO: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5 -echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;} cat >>confdefs.h <<\_ACEOF + +{ echo "$as_me:$LINENO: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5 +echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;} +cat >>confdefs.h <<\_ACEOF #define STATIC_LINKING 1 _ACEOF + fi fi + hold_cflags=$CFLAGS CFLAGS="$CFLAGS -export-dynamic" echo "$as_me:$LINENO: checking if we need the -export-dynamic flag" >&5