--- ircd-hybrid/trunk/configure 2018/02/28 19:53:02 8326 +++ ircd-hybrid/trunk/configure 2018/02/28 21:32:12 8330 @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Id: configure.ac 8325 2018-02-28 19:52:33Z michael . +# From configure.ac Id: configure.ac 8329 2018-02-28 21:31:17Z michael . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. # @@ -812,6 +812,7 @@ enable_poll enable_assert enable_debugging enable_warnings +enable_efence enable_mempool enable_openssl enable_gnutls @@ -1468,6 +1469,8 @@ Optional Features: --enable-assert Enable assert() statements --enable-debugging Enable debugging. --enable-warnings Enable compiler warnings. + --enable-efence Enable linking with Electric Fence 'efence' memory + debugger library. --disable-mempool Disables the memory pooling allocator. --enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional). --disable-openssl Disable LibreSSL/OpenSSL support. @@ -16547,6 +16550,81 @@ done fi + + + # Check whether --enable-efence was given. +if test "${enable_efence+set}" = set; then : + enableval=$enable_efence; efence="$enableval" +else + efence="no" +fi + + + if test "$efence" = "yes"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5 +$as_echo_n "checking for library containing EF_Print... " >&6; } +if ${ac_cv_search_EF_Print+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char EF_Print (); +int +main () +{ +return EF_Print (); + ; + return 0; +} +_ACEOF +for ac_lib in '' efence; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_EF_Print=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_EF_Print+:} false; then : + break +fi +done +if ${ac_cv_search_EF_Print+:} false; then : + +else + ac_cv_search_EF_Print=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5 +$as_echo "$ac_cv_search_EF_Print" >&6; } +ac_res=$ac_cv_search_EF_Print +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "Electric Fence 'efence' library not found +See \`config.log' for more details" "$LINENO" 5; } +fi + + +fi # Check whether --enable-mempool was given.