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

Michael

source/lib/replace/libreplace.m4

index d41a86450d497bf1a2b5958302234fa27c9d8ba7..bad541ab0e42323e1808dec485e91c7faea026b1 100644 (file)
@@ -97,10 +97,14 @@ AC_CHECK_HEADERS(sys/syslog.h syslog.h)
 AC_CHECK_HEADERS(sys/time.h time.h)
 AC_CHECK_HEADERS(stdarg.h vararg.h)
 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)
 AC_CHECK_HEADERS(stropts.h)