libreplace: fix detection of netinet/ip.h on solaris 8
authorMichael Adam <obnox@samba.org>
Tue, 27 Jan 2009 14:46:25 +0000 (15:46 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 27 Jan 2009 14:48:54 +0000 (15:48 +0100)
(The test needs to additionally include <netinet/in_systm.h>.)

Michael

lib/replace/libreplace_network.m4

index 8d8379a566acda57cd090b3ff1738063e0796da8..30be30f4ab1b8986b1544165c2062b28f12592b3 100644 (file)
@@ -7,10 +7,14 @@ LIBREPLACE_NETWORK_OBJS=""
 LIBREPLACE_NETWORK_LIBS=""
 
 AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
+AC_CHECK_HEADERS(netinet/in_systm.h)
 AC_CHECK_HEADERS([netinet/ip.h], [], [],[#ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
 #endif])
-AC_CHECK_HEADERS(netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS(netinet/tcp.h netinet/in_ip.h)
 AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
 
 dnl we need to check that net/if.h really can be used, to cope with hpux