From: Alexander Barton Date: Fri, 23 Apr 2010 08:55:50 +0000 (+0200) Subject: Include netinet/{in.h, in_systm.h} when checking for netinet/ip.h X-Git-Tag: rel-16-rc2~8 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=6b0bb665c3cb31ba93fb5ac8197f033532614fd4 Include netinet/{in.h, in_systm.h} when checking for netinet/ip.h This solves warning messages of autoconf on e.g. FreeBSD 8: configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? --- diff --git a/configure.in b/configure.in index 153ec579..b053c416 100644 --- a/configure.in +++ b/configure.in @@ -101,12 +101,19 @@ AC_HEADER_TIME AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([ \ - ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \ - strings.h sys/socket.h sys/time.h unistd.h \ + ctype.h errno.h fcntl.h netdb.h netinet/in.h netinet/in_systm.h \ + stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h \ ],,AC_MSG_ERROR([required C header missing!])) AC_CHECK_HEADERS([ \ - arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h]) + arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h \ + ],[],[],[[ + #include + #ifdef HAVE_NETINET_IN_SYSTM_H + #include + #endif + ]] +) # -- Datatypes --