summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-08-07 12:06:52 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-08-26 19:50:34 +0200
commitdb09dab2dbdf5c2ac620aed8d671992e9d25d3bb (patch)
tree16285ea41d1a12531a338da564449ee16e2a765f
parent01a9d48d94bcbb45bea0f290d04b4b14a907563d (diff)
Check for assert.h header and allow to disable assertions.
In recent versions of autoconf, the AC_HEADER_ASSERT check not only makes sure that the assert.h header is found but it also allows the user to decide whether to enable or disable assertions at ./configure (rather than having to pass -DNDEBUG manually).
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 05a22e7..54c12ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,7 @@ if test "x$GCC" = "xyes" ; then
fi
# Checks for header files.
+AC_HEADER_ASSERT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h stdlib.h string.h sys/socket.h unistd.h sys/prctl.h netinet/in.h])