From: Michael Adam Date: Tue, 27 Jan 2009 14:46:25 +0000 (+0100) Subject: libreplace: fix detection of netinet/ip.h on solaris 8 X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=86ed67f0737aa309014b93860ccc6c79e3cc6ea5 libreplace: fix detection of netinet/ip.h on solaris 8 (The test needs to additionally include .) Michael --- diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 index 8d8379a566ac..30be30f4ab1b 100644 --- a/lib/replace/libreplace_network.m4 +++ b/lib/replace/libreplace_network.m4 @@ -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 +#endif +#ifdef HAVE_NETINET_IN_SYSTM_H +#include #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