]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2196: configure: net*/*.h present but cannot be compiled
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 12 May 2008 01:48:26 +0000 (13:48 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 12 May 2008 01:48:26 +0000 (13:48 +1200)
This moves critical net*/*.h file tests from the general location
and use testign to the *BSD special testing which accounts for
system file dependencies.

TODO: some files are still missing dependencies even with the *BSD test
      their brokenness will be fixed at a later point. (bug 2206)

configure.in

index 9dcbe67ee9cc943c5609579302e29a573b316245..eac737b4aa6374d239e700f0066a5b6d4fed16fc 100644 (file)
@@ -1862,8 +1862,6 @@ AC_CHECK_HEADERS( \
        math.h \
        memory.h \
        mount.h \
-       net/if.h \
-       net/pfvar.h \
        netdb.h \
        netinet/in.h \
        netinet/ip_fil_compat.h \
@@ -1933,10 +1931,16 @@ SQUID_DEFAULT_INCLUDES
 #endif
 )
 
-AC_CHECK_HEADERS(net/if.h \
+dnl *BSD dont include the depenencies for all their net/ and netinet/ files
+dnl We must include a few basic type headers for them to work.
+AC_CHECK_HEADERS( \
+       net/if.h \
+       net/pfvar.h \
        netinet/if_ether.h\
+       netinet/ip.h\
        netinet/ip_compat.h\
        netinet/ip_fil.h\
+       netinet/ip_icmp.h\
        netinet/ip_nat.h\
        netinet/ipl.h \
        sys/mount.h\