|
@@ -183,7 +183,19 @@ dnl -------------------------------------------------------------------
|
|
|
dnl Check for functions before libevent, since libevent-1.2 apparently
|
|
|
dnl exports strlcpy without defining it in a header.
|
|
|
|
|
|
-AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit strlcat strlcpy strtoull ftello getaddrinfo localtime_r gmtime_r memmem strtok_r inet_pton inet_ntop mallinfo malloc_good_size malloc_usable_size)
|
|
|
+AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit strlcat strlcpy strtoull ftello getaddrinfo localtime_r gmtime_r memmem strtok_r inet_pton inet_ntop)
|
|
|
+
|
|
|
+using_custom_malloc=no
|
|
|
+if test x$enable_openbsd_malloc = xyes ; then
|
|
|
+ AC_DEFINE(HAVE_MALLOC_GOOD_SIZE, 1, [Defined if we have the malloc_good_size function])
|
|
|
+ using_custom_malloc=yes
|
|
|
+fi
|
|
|
+if test x$tcmalloc = xyes ; then
|
|
|
+ using_custom_malloc=yes
|
|
|
+fi
|
|
|
+if test $using_custom_malloc = no ; then
|
|
|
+ AC_CHECK_FUNCS(mallinfo malloc_good_size malloc_usable_size)
|
|
|
+fi
|
|
|
|
|
|
if test "$enable_threads" = "yes"; then
|
|
|
AC_CHECK_HEADERS(pthread.h)
|