diff options
author | markm <markm@FreeBSD.org> | 2000-01-09 20:58:00 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-01-09 20:58:00 +0000 |
commit | 5f68254a360fdb4f3ebc30f6ad6507556425dd0a (patch) | |
tree | a96b9cd24173c10bba3fd7e2acf5d68e5bb0773e /crypto/heimdal/cf/check-netinet-ip-and-tcp.m4 | |
parent | d88c9767e1793993cc2242ccfb9a8ba002a061c6 (diff) | |
parent | 4ecbd6db44d79348bc815f31096e53104f50838b (diff) | |
download | FreeBSD-src-5f68254a360fdb4f3ebc30f6ad6507556425dd0a.zip FreeBSD-src-5f68254a360fdb4f3ebc30f6ad6507556425dd0a.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r55682,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/heimdal/cf/check-netinet-ip-and-tcp.m4')
-rw-r--r-- | crypto/heimdal/cf/check-netinet-ip-and-tcp.m4 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/crypto/heimdal/cf/check-netinet-ip-and-tcp.m4 b/crypto/heimdal/cf/check-netinet-ip-and-tcp.m4 new file mode 100644 index 0000000..8cb529d --- /dev/null +++ b/crypto/heimdal/cf/check-netinet-ip-and-tcp.m4 @@ -0,0 +1,38 @@ +dnl +dnl $Id: check-netinet-ip-and-tcp.m4,v 1.2 1999/05/14 13:15:40 assar Exp $ +dnl + +dnl extra magic check for netinet/{ip.h,tcp.h} because on irix 6.5.3 +dnl you have to include standards.h before including these files + +AC_DEFUN(CHECK_NETINET_IP_AND_TCP, +[ +AC_CHECK_HEADERS(standards.h) +for i in netinet/ip.h netinet/tcp.h; do + +cv=`echo "$i" | sed 'y%./+-%__p_%'` + +AC_MSG_CHECKING([for $i]) +AC_CACHE_VAL([ac_cv_header_$cv], +[AC_TRY_CPP([\ +#ifdef HAVE_STANDARDS_H +#include <standards.h> +#endif +#include <$i> +], +eval "ac_cv_header_$cv=yes", +eval "ac_cv_header_$cv=no")]) +AC_MSG_RESULT(`eval echo \\$ac_cv_header_$cv`) +changequote(, )dnl +if test `eval echo \\$ac_cv_header_$cv` = yes; then + ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_hdr, 1) +fi +done +dnl autoheader tricks *sigh* +: << END +@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@ +END + +]) |