From: Timur Date: Tue, 17 Mar 2009 21:45:28 +0000 (+0100) Subject: build: format the header check for netinet/ip.h more nicely X-Git-Tag: build_3.3.2_ctdb_1~15 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=6c6e12534dd66f7ee98c024b36a288cfe150434a;p=obnox%2Fsamba-ctdb.git build: format the header check for netinet/ip.h more nicely Signed-off-by: Michael Adam (cherry picked from commit e8aa7169a6672bd32af6c5580f6e8ec7e99511bc) --- diff --git a/source/lib/replace/libreplace_network.m4 b/source/lib/replace/libreplace_network.m4 index 9b921a064f..2032dfd3ff 100644 --- a/source/lib/replace/libreplace_network.m4 +++ b/source/lib/replace/libreplace_network.m4 @@ -8,12 +8,14 @@ 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/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_ip.h) AC_CHECK_HEADERS(sys/sockio.h sys/un.h)