PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/crypto/heimdal/cf/check-netinet-ip-and-tcp.m4

https://bitbucket.org/freebsd/freebsd-head/
m4 | 33 lines | 25 code | 4 blank | 4 comment | 0 complexity | 74977bd02234c970d99bb11518a7c4c2 MD5 | raw file
 1dnl
 2dnl $Id: check-netinet-ip-and-tcp.m4 14162 2004-08-26 11:27:32Z joda $
 3dnl
 4
 5dnl extra magic check for netinet/{ip.h,tcp.h} because on irix 6.5.3
 6dnl you have to include standards.h before including these files
 7
 8AC_DEFUN([CHECK_NETINET_IP_AND_TCP],
 9[
10AC_CHECK_HEADERS(standards.h)
11for i in netinet/ip.h netinet/tcp.h; do
12
13cv=`echo "$i" | sed 'y%./+-%__p_%'`
14
15AC_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"])])
24ac_res=`eval echo \\$ac_cv_header_$cv`
25if test "$ac_res" = yes; then
26	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
27	AC_DEFINE_UNQUOTED($ac_tr_hdr, 1)
28fi
29done
30if false;then
31	AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h)
32fi
33])