add doxygen support and json export document support
[heimdal.git] / cf / check-netinet-ip-and-tcp.m4
blob65c5f6450047e735459c9efed494801a77593fb0
1 dnl
2 dnl $Id$
3 dnl
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_CACHE_CHECK([for $i],ac_cv_header_$cv,
16 [AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
17 #ifdef HAVE_STANDARDS_H
18 #include <standards.h>
19 #endif
20 #include <$i>
21 ]])],
22 [eval "ac_cv_header_$cv=yes"],
23 [eval "ac_cv_header_$cv=no"])])
24 ac_res=`eval echo \\$ac_cv_header_$cv`
25 if test "$ac_res" = yes; then
26         ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
27         AC_DEFINE_UNQUOTED($ac_tr_hdr, 1)
29 done
30 if false;then
31         AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h)