summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2010-10-28 13:55:21 +0000
committerStef Walter <stef@thewalter.net>2011-01-23 15:47:45 -0600
commite4c5c1f56e27da22aa0cd7960eee723750d6f3fe (patch)
tree8cdd759b94bca96688bab3260e32dd3ae78718ac /configure.in
parent4337c7c0506800ff662e55806eb1867812b9802b (diff)
Fix problem on linux not detecting netfilter header.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 11 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 8073a2f..321c0a3 100644
--- a/configure.in
+++ b/configure.in
@@ -75,14 +75,17 @@ AC_CHECK_HEADERS([unistd.h stdio.h stddef.h fcntl.h stdlib.h assert.h errno.h st
[echo "ERROR: Required C header missing"; exit 1])
# Check for linux type transparent proxy support
-AC_CHECK_HEADERS([linux/netfilter_ipv4.h],
- AC_DEFINE(LINUX_TRANSPARENT_PROXY, 1, [Whether the system supports a linux type transparent proxy]),
- ,
- [[
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #endif
- ]] )
+AC_CHECK_HEADERS([linux/types.h linux/netfilter_ipv4.h],
+ AC_DEFINE(LINUX_NETFILTER, 1, [Whether the system supports a linux type transparent proxy]),
+ ,
+ [[
+ #ifdef HAVE_LIMITS_H
+ #include <limits.h>
+ #endif
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ ]]
+)
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST