5 dnl extra magic check for netinet/{ip.h,tcp.h} because on irix 6.5.3
6 dnl you have to include standards.h before including these files
8 AC_DEFUN(CHECK_NETINET_IP_AND_TCP,
10 AC_CHECK_HEADERS(standards.h)
11 for i in netinet/ip.h netinet/tcp.h; do
13 cv=`echo "$i" | sed 'y%./+-%__p_%'`
15 AC_MSG_CHECKING([for $i])
16 AC_CACHE_VAL([ac_cv_header_$cv],
18 #ifdef HAVE_STANDARDS_H
19 #include <standards.h>
23 eval "ac_cv_header_$cv=yes",
24 eval "ac_cv_header_$cv=no")])
25 AC_MSG_RESULT(`eval echo \\$ac_cv_header_$cv`)
27 if test `eval echo \\$ac_cv_header_$cv` = yes; then
28 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
30 AC_DEFINE_UNQUOTED($ac_tr_hdr, 1)
33 dnl autoheader tricks *sigh*
35 @@@headers="$headers netinet/ip.h netinet/tcp.h"@@@