|
@@ -152,7 +152,7 @@ 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)
|
|
|
+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)
|
|
|
|
|
|
if test $enable_threads = "yes"; then
|
|
|
AC_CHECK_HEADERS(pthread.h)
|
|
@@ -244,7 +244,7 @@ AC_CHECK_HEADERS(netdb.h sys/ioctl.h sys/socket.h arpa/inet.h netinet/in.h pwd.h
|
|
|
|
|
|
dnl These headers are not essential
|
|
|
|
|
|
-AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netintet/in.h netinet/in6.h)
|
|
|
+AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netintet/in.h netinet/in6.h malloc.h)
|
|
|
|
|
|
AC_CHECK_HEADERS(net/if.h, net_if_found=1, net_if_found=0,
|
|
|
[#ifdef HAVE_SYS_TYPES_H
|
|
@@ -623,7 +623,8 @@ if test x$enable_gcc_warnings = xyes; then
|
|
|
#error
|
|
|
#endif]), have_gcc42=yes, have_gcc42=no)
|
|
|
|
|
|
- CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
|
|
|
+ CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
|
|
|
+ # Disabled, so we can use mallinfo(): -Waggregate-return
|
|
|
|
|
|
if test x$have_gcc4 = xyes ; then
|
|
|
# These warnings break gcc 3.3.5 and work on gcc 4.0.2
|