From e4c5c1f56e27da22aa0cd7960eee723750d6f3fe Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 28 Oct 2010 13:55:21 +0000 Subject: Fix problem on linux not detecting netfilter header. --- configure.in | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'configure.in') 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 - #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 + #endif + #include + #include + ]] +) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST -- cgit v1.2.3