2 # From configure.in Revision: 1.168 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev/null 6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix=/usr/local
565 ac_config_libobj_dir=.
571 SHELL=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
678 HAVE_LINUX_TPACKET_AUXDATA
700 PCAP_SUPPORT_NETFILTER
711 ac_precious_vars='build_alias
722 # Initialize some variables set by options.
724 ac_init_version=false
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
734 program_transform_name=s,x,x,
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE}'
759 infodir='${datarootdir}/info'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
780 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 # Accept the important Cygnus configure options, so we can diagnose typos.
786 case $ac_dashdash$ac_option in
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
808 cache_file=config.cache ;;
810 -datadir | --datadir | --datadi | --datad)
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
822 -disable-* | --disable-*)
823 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
826 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
827 { (exit 1); exit 1; }; }
828 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
829 eval enable_$ac_feature=no ;;
831 -docdir | --docdir | --docdi | --doc | --do)
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841 -enable-* | --enable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=\$ac_optarg ;;
850 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852 | --exec | --exe | --ex)
853 ac_prev=exec_prefix ;;
854 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856 | --exec=* | --exe=* | --ex=*)
857 exec_prefix=$ac_optarg ;;
859 -gas | --gas | --ga | --g)
860 # Obsolete; use --with-gas.
863 -help | --help | --hel | --he | -h)
865 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866 ac_init_help=recursive ;;
867 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868 ac_init_help=short ;;
870 -host | --host | --hos | --ho)
871 ac_prev=host_alias ;;
872 -host=* | --host=* | --hos=* | --ho=*)
873 host_alias=$ac_optarg ;;
875 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
877 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
879 htmldir=$ac_optarg ;;
881 -includedir | --includedir | --includedi | --included | --include \
882 | --includ | --inclu | --incl | --inc)
883 ac_prev=includedir ;;
884 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885 | --includ=* | --inclu=* | --incl=* | --inc=*)
886 includedir=$ac_optarg ;;
888 -infodir | --infodir | --infodi | --infod | --info | --inf)
890 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891 infodir=$ac_optarg ;;
893 -libdir | --libdir | --libdi | --libd)
895 -libdir=* | --libdir=* | --libdi=* | --libd=*)
898 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899 | --libexe | --libex | --libe)
900 ac_prev=libexecdir ;;
901 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902 | --libexe=* | --libex=* | --libe=*)
903 libexecdir=$ac_optarg ;;
905 -localedir | --localedir | --localedi | --localed | --locale)
907 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908 localedir=$ac_optarg ;;
910 -localstatedir | --localstatedir | --localstatedi | --localstated \
911 | --localstate | --localstat | --localsta | --localst | --locals)
912 ac_prev=localstatedir ;;
913 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915 localstatedir=$ac_optarg ;;
917 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
919 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923 # Obsolete; use --without-fp.
926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927 | --no-cr | --no-c | -n)
930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936 | --oldin | --oldi | --old | --ol | --o)
937 ac_prev=oldincludedir ;;
938 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941 oldincludedir=$ac_optarg ;;
943 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
945 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948 -program-prefix | --program-prefix | --program-prefi | --program-pref \
949 | --program-pre | --program-pr | --program-p)
950 ac_prev=program_prefix ;;
951 -program-prefix=* | --program-prefix=* | --program-prefi=* \
952 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953 program_prefix=$ac_optarg ;;
955 -program-suffix | --program-suffix | --program-suffi | --program-suff \
956 | --program-suf | --program-su | --program-s)
957 ac_prev=program_suffix ;;
958 -program-suffix=* | --program-suffix=* | --program-suffi=* \
959 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960 program_suffix=$ac_optarg ;;
962 -program-transform-name | --program-transform-name \
963 | --program-transform-nam | --program-transform-na \
964 | --program-transform-n | --program-transform- \
965 | --program-transform | --program-transfor \
966 | --program-transfo | --program-transf \
967 | --program-trans | --program-tran \
968 | --progr-tra | --program-tr | --program-t)
969 ac_prev=program_transform_name ;;
970 -program-transform-name=* | --program-transform-name=* \
971 | --program-transform-nam=* | --program-transform-na=* \
972 | --program-transform-n=* | --program-transform-=* \
973 | --program-transform=* | --program-transfor=* \
974 | --program-transfo=* | --program-transf=* \
975 | --program-trans=* | --program-tran=* \
976 | --progr-tra=* | --program-tr=* | --program-t=*)
977 program_transform_name=$ac_optarg ;;
979 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
981 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984 -psdir | --psdir | --psdi | --psd | --ps)
986 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
993 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
995 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
997 sbindir=$ac_optarg ;;
999 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001 | --sharedst | --shareds | --shared | --share | --shar \
1003 ac_prev=sharedstatedir ;;
1004 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1008 sharedstatedir=$ac_optarg ;;
1010 -site | --site | --sit)
1012 -site=* | --site=* | --sit=*)
1015 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1017 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018 srcdir=$ac_optarg ;;
1020 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021 | --syscon | --sysco | --sysc | --sys | --sy)
1022 ac_prev=sysconfdir ;;
1023 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025 sysconfdir=$ac_optarg ;;
1027 -target | --target | --targe | --targ | --tar | --ta | --t)
1028 ac_prev=target_alias ;;
1029 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030 target_alias=$ac_optarg ;;
1032 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035 -version | --version | --versio | --versi | --vers | -V)
1036 ac_init_version=: ;;
1039 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045 eval with_$ac_package=\$ac_optarg ;;
1047 -without-* | --without-*)
1048 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=no ;;
1057 # Obsolete; use --with-x.
1060 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061 | --x-incl | --x-inc | --x-in | --x-i)
1062 ac_prev=x_includes ;;
1063 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065 x_includes=$ac_optarg ;;
1067 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069 ac_prev=x_libraries ;;
1070 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072 x_libraries=$ac_optarg ;;
1074 -*) { echo "$as_me: error: unrecognized option: $ac_option
1075 Try \`$0 --help' for more information." >&2
1076 { (exit 1); exit 1; }; }
1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1084 { (exit 1); exit 1; }; }
1085 eval $ac_envvar=\$ac_optarg
1086 export $ac_envvar ;;
1089 # FIXME: should be removed in autoconf 3.0.
1090 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1099 if test -n "$ac_prev"; then
1100 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101 { echo "$as_me: error: missing argument to $ac_option" >&2
1102 { (exit 1); exit 1; }; }
1105 # Be sure to have absolute directory names.
1106 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107 datadir sysconfdir sharedstatedir localstatedir includedir \
1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109 libdir localedir mandir
1111 eval ac_val=\$$ac_var
1113 [\\/$]* | ?:[\\/]* ) continue;;
1114 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1116 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1117 { (exit 1); exit 1; }; }
1120 # There might be people who depend on the old broken behavior: `$host'
1121 # used to hold the argument of --host etc.
1122 # FIXME: To remove some day.
1125 target=$target_alias
1127 # FIXME: To remove some day.
1128 if test "x$host_alias" != x; then
1129 if test "x$build_alias" = x; then
1130 cross_compiling=maybe
1131 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1132 If a cross compiler is detected then cross compile mode will be used." >&2
1133 elif test "x$build_alias" != "x$host_alias"; then
1139 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1141 test "$silent" = yes && exec 6>/dev/null
1144 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1145 ac_ls_di=`ls -di .` &&
1146 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1147 { echo "$as_me: error: Working directory cannot be determined" >&2
1148 { (exit 1); exit 1; }; }
1149 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1150 { echo "$as_me: error: pwd does not report name of working directory" >&2
1151 { (exit 1); exit 1; }; }
1154 # Find the source files, if location was not specified.
1155 if test -z "$srcdir"; then
1156 ac_srcdir_defaulted=yes
1157 # Try the directory containing this script, then the parent directory.
1158 ac_confdir=`$as_dirname -- "$0" ||
1159 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160 X"$0" : 'X\(//\)[^/]' \| \
1161 X"$0" : 'X\(//\)$' \| \
1162 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1186 ac_srcdir_defaulted=no
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1191 { (exit 1); exit 1; }; }
1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1195 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1196 { (exit 1); exit 1; }; }
1198 # When building in place, set srcdir=.
1199 if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 # Remove unnecessary trailing slashes from srcdir.
1203 # Double slashes in file names in object file debugging info
1204 # mess up M-x gdb in Emacs.
1206 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1208 for ac_var in $ac_precious_vars; do
1209 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_env_${ac_var}_value=\$${ac_var}
1211 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216 # Report the --help message.
1218 if test "$ac_init_help" = "long"; then
1219 # Omit some internal or obsolete options to make the list less imposing.
1220 # This message is too long to be a string in the A/UX 3.1 sh.
1222 \`configure' configures this package to adapt to many kinds of systems.
1224 Usage: $0 [OPTION]... [VAR=VALUE]...
1226 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227 VAR=VALUE. See below for descriptions of some of the useful variables.
1229 Defaults for the options are specified in brackets.
1232 -h, --help display this help and exit
1233 --help=short display options specific to this package
1234 --help=recursive display the short help of all the included packages
1235 -V, --version display version information and exit
1236 -q, --quiet, --silent do not print \`checking...' messages
1237 --cache-file=FILE cache test results in FILE [disabled]
1238 -C, --config-cache alias for \`--cache-file=config.cache'
1239 -n, --no-create do not create output files
1240 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1242 Installation directories:
1243 --prefix=PREFIX install architecture-independent files in PREFIX
1244 [$ac_default_prefix]
1245 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1248 By default, \`make install' will install all the files in
1249 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1250 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251 for instance \`--prefix=\$HOME'.
1253 For better control, use the options below.
1255 Fine tuning of the installation directories:
1256 --bindir=DIR user executables [EPREFIX/bin]
1257 --sbindir=DIR system admin executables [EPREFIX/sbin]
1258 --libexecdir=DIR program executables [EPREFIX/libexec]
1259 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1260 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1261 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1262 --libdir=DIR object code libraries [EPREFIX/lib]
1263 --includedir=DIR C header files [PREFIX/include]
1264 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1265 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1266 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1267 --infodir=DIR info documentation [DATAROOTDIR/info]
1268 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1269 --mandir=DIR man documentation [DATAROOTDIR/man]
1270 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1271 --htmldir=DIR html documentation [DOCDIR]
1272 --dvidir=DIR dvi documentation [DOCDIR]
1273 --pdfdir=DIR pdf documentation [DOCDIR]
1274 --psdir=DIR ps documentation [DOCDIR]
1280 --build=BUILD configure for building on BUILD [guessed]
1281 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1282 --target=TARGET configure for building compilers for TARGET [HOST]
1286 if test -n "$ac_init_help"; then
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --disable-largefile omit support for large files
1294 --disable-protochain disable \"protochain\" insn
1295 --enable-ipv6 build IPv6-capable version [default=yes, if
1296 getaddrinfo available]
1297 --enable-optimizer-dbg build optimizer debugging code
1298 --enable-yydebug build parser debugging code
1299 --disable-universal don't build universal on OS X
1300 --enable-bluetooth enable Bluetooth support [default=yes, if support
1302 --enable-can enable CAN support [default=yes, if support
1306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1308 --without-gcc don't use gcc
1309 --with-sita include SITA support
1310 --with-pcap=TYPE use packet capture TYPE
1311 --without-libnl disable libnl support [default=yes, on Linux, if
1313 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1314 default="yes" on BSD and Linux if present]
1315 --with-dag-includes=DIR Endace DAG include directory
1316 --with-dag-libraries=DIR
1317 Endace DAG library directory
1318 --with-septel[=DIR] include Septel support (located in directory DIR, if
1319 supplied). [default=yes, on Linux, if present]
1320 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1321 default="yes" on BSD and Linux if present]
1322 --with-snf-includes=DIR Myricom SNF include directory
1323 --with-snf-libraries=DIR
1324 Myricom SNF library directory
1325 --without-flex don't use flex
1326 --without-bison don't use bison
1328 Some influential environment variables:
1329 CC C compiler command
1330 CFLAGS C compiler flags
1331 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1332 nonstandard directory <lib dir>
1333 LIBS libraries to pass to the linker, e.g. -l<library>
1334 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1335 you have headers in a nonstandard directory <include dir>
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1345 if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348 test -d "$ac_dir" || continue
1352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362 ac_abs_top_builddir=$ac_pwd
1363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir=$ac_top_build_prefix
1368 .) # We are building in place.
1370 ac_top_srcdir=$ac_top_builddir_sub
1371 ac_abs_top_srcdir=$ac_pwd ;;
1372 [\\/]* | ?:[\\/]* ) # Absolute name.
1373 ac_srcdir=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir=$srcdir
1375 ac_abs_top_srcdir=$srcdir ;;
1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1383 cd "$ac_dir" || { ac_status=$?; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1392 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1394 cd "$ac_pwd" || { ac_status=$?; break; }
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1402 generated by GNU Autoconf 2.61
1404 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1405 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1406 This configure script is free software; the Free Software Foundation
1407 gives unlimited permission to copy, distribute and modify it.
1411 cat >config.log <<_ACEOF
1412 This file contains any messages produced by compilers while
1413 running configure, to aid debugging if configure makes a mistake.
1415 It was created by $as_me, which was
1416 generated by GNU Autoconf 2.61. Invocation command line was
1428 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1429 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1430 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1431 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1432 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1434 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1435 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1437 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1438 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1439 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1440 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1441 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1442 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1443 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 echo "PATH: $as_dir"
1468 # Keep a trace of the command line.
1469 # Strip out --no-create and --no-recursion so they do not pile up.
1470 # Strip out --silent because we don't want to record it for future runs.
1471 # Also quote any args containing shell meta-characters.
1472 # Make two passes to allow for proper duplicate-argument suppression.
1476 ac_must_keep_next=false
1482 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484 | -silent | --silent | --silen | --sile | --sil)
1487 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1490 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1492 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1493 if test $ac_must_keep_next = true; then
1494 ac_must_keep_next=false # Got value, back to normal.
1497 *=* | --config-cache | -C | -disable-* | --disable-* \
1498 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1499 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1500 | -with-* | --with-* | -without-* | --without-* | --x)
1501 case "$ac_configure_args0 " in
1502 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1505 -* ) ac_must_keep_next=true ;;
1508 ac_configure_args="$ac_configure_args '$ac_arg'"
1513 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1514 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1516 # When interrupted or exit'd, cleanup temporary files, and complete
1517 # config.log. We remove comments because anyway the quotes in there
1518 # would cause problems or look ugly.
1519 # WARNING: Use '\'' to represent an apostrophe within the trap.
1520 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1521 trap 'exit_status=$?
1522 # Save into config.log some information that might help in debugging.
1527 ## ---------------- ##
1528 ## Cache variables. ##
1529 ## ---------------- ##
1532 # The following way of writing the cache mishandles newlines in values,
1534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1535 eval ac_val=\$$ac_var
1539 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1540 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1543 _ | IFS | as_nl) ;; #(
1544 *) $as_unset $ac_var ;;
1549 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1550 *${as_nl}ac_space=\ *)
1552 "s/'\''/'\''\\\\'\'''\''/g;
1553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1564 ## ----------------- ##
1565 ## Output variables. ##
1566 ## ----------------- ##
1569 for ac_var in $ac_subst_vars
1571 eval ac_val=\$$ac_var
1573 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575 echo "$ac_var='\''$ac_val'\''"
1579 if test -n "$ac_subst_files"; then
1581 ## ------------------- ##
1582 ## File substitutions. ##
1583 ## ------------------- ##
1586 for ac_var in $ac_subst_files
1588 eval ac_val=\$$ac_var
1590 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1592 echo "$ac_var='\''$ac_val'\''"
1597 if test -s confdefs.h; then
1607 test "$ac_signal" != 0 &&
1608 echo "$as_me: caught signal $ac_signal"
1609 echo "$as_me: exit $exit_status"
1611 rm -f core *.core core.conftest.* &&
1612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1615 for ac_signal in 1 2 13 15; do
1616 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1621 rm -f -r conftest* confdefs.h
1623 # Predefined preprocessor variables.
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_NAME "$PACKAGE_NAME"
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_STRING "$PACKAGE_STRING"
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1650 # Let the site file select an alternate cache file if it wants to.
1651 # Prefer explicitly selected file to automatically selected ones.
1652 if test -n "$CONFIG_SITE"; then
1653 set x "$CONFIG_SITE"
1654 elif test "x$prefix" != xNONE; then
1655 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1657 set x "$ac_default_prefix/share/config.site" \
1658 "$ac_default_prefix/etc/config.site"
1663 if test -r "$ac_site_file"; then
1664 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1665 echo "$as_me: loading site script $ac_site_file" >&6;}
1666 sed 's/^/| /' "$ac_site_file" >&5
1671 if test -r "$cache_file"; then
1672 # Some versions of bash will fail to source /dev/null (special
1673 # files actually), so we avoid doing that.
1674 if test -f "$cache_file"; then
1675 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1676 echo "$as_me: loading cache $cache_file" >&6;}
1678 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1679 *) . "./$cache_file";;
1683 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1684 echo "$as_me: creating cache $cache_file" >&6;}
1688 # Check that the precious variables saved in the cache have kept the same
1690 ac_cache_corrupted=false
1691 for ac_var in $ac_precious_vars; do
1692 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1693 eval ac_new_set=\$ac_env_${ac_var}_set
1694 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1695 eval ac_new_val=\$ac_env_${ac_var}_value
1696 case $ac_old_set,$ac_new_set in
1698 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1699 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1700 ac_cache_corrupted=: ;;
1702 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1703 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1704 ac_cache_corrupted=: ;;
1707 if test "x$ac_old_val" != "x$ac_new_val"; then
1708 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1709 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1710 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1711 echo "$as_me: former value: $ac_old_val" >&2;}
1712 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1713 echo "$as_me: current value: $ac_new_val" >&2;}
1714 ac_cache_corrupted=:
1717 # Pass precious variables to config.status.
1718 if test "$ac_new_set" = set; then
1720 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 *) ac_arg=$ac_var=$ac_new_val ;;
1723 case " $ac_configure_args " in
1724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1725 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1729 if $ac_cache_corrupted; then
1730 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1731 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1732 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1733 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1734 { (exit 1); exit 1; }; }
1754 ac_cpp='$CPP $CPPFLAGS'
1755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1762 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1763 if test -f "$ac_dir/install-sh"; then
1765 ac_install_sh="$ac_aux_dir/install-sh -c"
1767 elif test -f "$ac_dir/install.sh"; then
1769 ac_install_sh="$ac_aux_dir/install.sh -c"
1771 elif test -f "$ac_dir/shtool"; then
1773 ac_install_sh="$ac_aux_dir/shtool install -c"
1777 if test -z "$ac_aux_dir"; then
1778 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1779 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1780 { (exit 1); exit 1; }; }
1783 # These three variables are undocumented and unsupported,
1784 # and are intended to be withdrawn in a future Autoconf release.
1785 # They can cause serious problems if a builder's source tree is in a directory
1786 # whose full name contains unusual characters.
1787 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1788 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1789 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1792 # Make sure we can run config.sub.
1793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1794 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1795 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1796 { (exit 1); exit 1; }; }
1798 { echo "$as_me:$LINENO: checking build system type" >&5
1799 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1800 if test "${ac_cv_build+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 ac_build_alias=$build_alias
1804 test "x$ac_build_alias" = x &&
1805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1806 test "x$ac_build_alias" = x &&
1807 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1809 { (exit 1); exit 1; }; }
1810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1811 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1813 { (exit 1); exit 1; }; }
1816 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1817 echo "${ECHO_T}$ac_cv_build" >&6; }
1818 case $ac_cv_build in
1820 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1821 echo "$as_me: error: invalid value of canonical build" >&2;}
1822 { (exit 1); exit 1; }; };;
1825 ac_save_IFS=$IFS; IFS='-'
1831 # Remember, the first character of IFS is used to create $*,
1832 # except with old shells:
1835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1838 { echo "$as_me:$LINENO: checking host system type" >&5
1839 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1840 if test "${ac_cv_host+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test "x$host_alias" = x; then
1844 ac_cv_host=$ac_cv_build
1846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1847 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1849 { (exit 1); exit 1; }; }
1853 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1854 echo "${ECHO_T}$ac_cv_host" >&6; }
1857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1858 echo "$as_me: error: invalid value of canonical host" >&2;}
1859 { (exit 1); exit 1; }; };;
1862 ac_save_IFS=$IFS; IFS='-'
1868 # Remember, the first character of IFS is used to create $*,
1869 # except with old shells:
1872 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1875 { echo "$as_me:$LINENO: checking target system type" >&5
1876 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1877 if test "${ac_cv_target+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test "x$target_alias" = x; then
1881 ac_cv_target=$ac_cv_host
1883 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1884 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1886 { (exit 1); exit 1; }; }
1890 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1891 echo "${ECHO_T}$ac_cv_target" >&6; }
1892 case $ac_cv_target in
1894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1895 echo "$as_me: error: invalid value of canonical target" >&2;}
1896 { (exit 1); exit 1; }; };;
1898 target=$ac_cv_target
1899 ac_save_IFS=$IFS; IFS='-'
1905 # Remember, the first character of IFS is used to create $*,
1906 # except with old shells:
1909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1912 # The aliases save the names the user supplied, while $host etc.
1913 # will get canonicalized.
1914 test -n "$target_alias" &&
1915 test "$program_prefix$program_suffix$program_transform_name" = \
1917 program_prefix=${target_alias}-
1925 # Check whether --with-gcc was given.
1926 if test "${with_gcc+set}" = set; then
1932 if test "${srcdir}" != "." ; then
1933 V_INCLS="-I\$(srcdir)"
1935 if test "${CFLAGS+set}" = set; then
1936 LBL_CFLAGS="$CFLAGS"
1938 if test -z "$CC" ; then
1942 # Extract the first word of "shlicc2", so it can be a program name with args.
1943 set dummy shlicc2; ac_word=$2
1944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1946 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 if test -n "$SHLICC2"; then
1950 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1959 ac_cv_prog_SHLICC2="yes"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1970 SHLICC2=$ac_cv_prog_SHLICC2
1971 if test -n "$SHLICC2"; then
1972 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1973 echo "${ECHO_T}$SHLICC2" >&6; }
1975 { echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6; }
1980 if test $SHLICC2 = yes ; then
1987 if test -z "$CC" -a "$with_gcc" = no ; then
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 if test -n "$ac_tool_prefix"; then
1998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 if test -n "$CC"; then
2027 { echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6; }
2030 { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2036 if test -z "$ac_cv_prog_CC"; then
2038 # Extract the first word of "gcc", so it can be a program name with args.
2039 set dummy gcc; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_CC"; then
2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_prog_ac_ct_CC="gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2074 if test "x$ac_ct_CC" = x; then
2077 case $cross_compiling:$ac_tool_warned in
2079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2080 whose name does not start with the host triplet. If you think this
2081 configuration is useful to you, please write to autoconf@gnu.org." >&5
2082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2083 whose name does not start with the host triplet. If you think this
2084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2085 ac_tool_warned=yes ;;
2093 if test -z "$CC"; then
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}cc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 ac_cv_prog_CC="${ac_tool_prefix}cc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test -n "$CC"; then
2124 { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2127 { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2134 if test -z "$CC"; then
2135 # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2154 ac_prog_rejected=yes
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 if test $ac_prog_rejected = yes; then
2166 # We found a bogon in the path, so make sure we never use it.
2167 set dummy $ac_cv_prog_CC
2169 if test $# != 0; then
2170 # We chose a different compiler from the bogus one.
2171 # However, it has the same basename, so the bogon will be chosen
2172 # first if we set CC to just the basename; use the full file name.
2174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2180 if test -n "$CC"; then
2181 { echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6; }
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2192 for ac_prog in cl.exe
2194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 if test -n "$CC"; then
2223 { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2231 test -n "$CC" && break
2234 if test -z "$CC"; then
2236 for ac_prog in cl.exe
2238 # Extract the first word of "$ac_prog", so it can be a program name with args.
2239 set dummy $ac_prog; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$ac_ct_CC"; then
2246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_ac_ct_CC="$ac_prog"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266 if test -n "$ac_ct_CC"; then
2267 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268 echo "${ECHO_T}$ac_ct_CC" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2275 test -n "$ac_ct_CC" && break
2278 if test "x$ac_ct_CC" = x; then
2281 case $cross_compiling:$ac_tool_warned in
2283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2284 whose name does not start with the host triplet. If you think this
2285 configuration is useful to you, please write to autoconf@gnu.org." >&5
2286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2287 whose name does not start with the host triplet. If you think this
2288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2289 ac_tool_warned=yes ;;
2298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: no acceptable C compiler found in \$PATH
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2304 # Provide some information about the compiler.
2305 echo "$as_me:$LINENO: checking for C compiler version" >&5
2306 ac_compiler=`set X $ac_compile; echo $2`
2307 { (ac_try="$ac_compiler --version >&5"
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313 (eval "$ac_compiler --version >&5") 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2317 { (ac_try="$ac_compiler -v >&5"
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_compiler -v >&5") 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (ac_try="$ac_compiler -V >&5"
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333 (eval "$ac_compiler -V >&5") 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.$ac_ext <<_ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2358 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2362 # List of possible output files, starting from the most likely.
2363 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2364 # only as a last resort. b.out is created by i960 compilers.
2365 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2367 # The IRIX 6 linker writes into existing files which may not be
2368 # executable, retaining their permissions. Remove them first so a
2369 # subsequent execution test works.
2371 for ac_file in $ac_files
2374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2375 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2380 if { (ac_try="$ac_link_default"
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_link_default") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2391 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2392 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2393 # so that the user can short-circuit this test for compilers unknown to
2395 for ac_file in $ac_files ''
2397 test -f "$ac_file" || continue
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2402 # We found the default executable, but exeext='' is most
2406 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2408 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 # We set ac_cv_exeext here because the later test for it is not
2411 # safe: cross compilers may not add the suffix if given an `-o'
2412 # argument, so we may need to know it at that point already.
2413 # Even if this section looks crufty: it has the advantage of
2420 test "$ac_cv_exeext" = no && ac_cv_exeext=
2426 { echo "$as_me:$LINENO: result: $ac_file" >&5
2427 echo "${ECHO_T}$ac_file" >&6; }
2428 if test -z "$ac_file"; then
2429 echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2432 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&2;}
2436 { (exit 77); exit 77; }; }
2439 ac_exeext=$ac_cv_exeext
2441 # Check that the compiler produces executables we can run. If not, either
2442 # the compiler is broken, or we cross compile.
2443 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2444 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2445 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2446 # If not cross compiling, check that we can run a simple program.
2447 if test "$cross_compiling" != yes; then
2448 if { ac_try='./$ac_file'
2449 { (case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_try") 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2460 if test "$cross_compiling" = maybe; then
2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2473 { echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6; }
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check that the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2482 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6; }
2485 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2487 if { (ac_try="$ac_link"
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_link") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; then
2497 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2498 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2499 # work properly (i.e., refer to `conftest.exe'), while it won't with
2501 for ac_file in conftest.exe conftest conftest.*; do
2502 test -f "$ac_file" || continue
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2511 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2514 See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2518 rm -f conftest$ac_cv_exeext
2519 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2520 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2522 rm -f conftest.$ac_ext
2523 EXEEXT=$ac_cv_exeext
2525 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2526 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2527 if test "${ac_cv_objext+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.o conftest.obj
2546 if { (ac_try="$ac_compile"
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; then
2556 for ac_file in conftest.o conftest.obj conftest.*; do
2557 test -f "$ac_file" || continue;
2559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2577 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2578 echo "${ECHO_T}$ac_cv_objext" >&6; }
2579 OBJEXT=$ac_cv_objext
2581 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2604 rm -f conftest.$ac_objext
2605 if { (ac_try="$ac_compile"
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_compile") 2>conftest.er1
2613 grep -v '^ *+' conftest.er1 >conftest.err
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } && {
2618 test -z "$ac_c_werror_flag" ||
2619 test ! -s conftest.err
2620 } && test -s conftest.$ac_objext; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2633 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2635 GCC=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CFLAGS=${CFLAGS+set}
2637 ac_save_CFLAGS=$CFLAGS
2638 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2639 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_cc_g+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 ac_save_c_werror_flag=$ac_c_werror_flag
2644 ac_c_werror_flag=yes
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2662 rm -f conftest.$ac_objext
2663 if { (ac_try="$ac_compile"
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_compile") 2>conftest.er1
2671 grep -v '^ *+' conftest.er1 >conftest.err
2673 cat conftest.err >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } && {
2676 test -z "$ac_c_werror_flag" ||
2677 test ! -s conftest.err
2678 } && test -s conftest.$ac_objext; then
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_c_werror_flag=$ac_save_c_werror_flag
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } && {
2753 test -z "$ac_c_werror_flag" ||
2754 test ! -s conftest.err
2755 } && test -s conftest.$ac_objext; then
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_c_werror_flag=$ac_save_c_werror_flag
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2775 if test "$ac_test_CFLAGS" = set; then
2776 CFLAGS=$ac_save_CFLAGS
2777 elif test $ac_cv_prog_cc_g = yes; then
2778 if test "$GCC" = yes; then
2784 if test "$GCC" = yes; then
2790 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2791 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_cc_c89+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 ac_cv_prog_cc_c89=no
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2805 #include <sys/types.h>
2806 #include <sys/stat.h>
2807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2808 struct buf { int x; };
2809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2810 static char *e (p, i)
2816 static char *f (char * (*g) (char **, int), char **p, ...)
2821 s = g (p, va_arg (v,int));
2826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2827 function prototypes and stuff, but not '\xHH' hex character constants.
2828 These don't provoke an error unfortunately, instead are silently treated
2829 as 'x'. The following induces an error, until -std is added to get
2830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2831 array size at least. It's necessary to write '\x00'==0 to get something
2832 that's true only with -std. */
2833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2836 inside strings and character constants. */
2838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2840 int test (int i, double x);
2841 struct s1 {int (*f) (int a);};
2842 struct s2 {int (*f) (double a);};
2843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2857 CC="$ac_save_CC $ac_arg"
2858 rm -f conftest.$ac_objext
2859 if { (ac_try="$ac_compile"
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compile") 2>conftest.er1
2867 grep -v '^ *+' conftest.er1 >conftest.err
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } && {
2872 test -z "$ac_c_werror_flag" ||
2873 test ! -s conftest.err
2874 } && test -s conftest.$ac_objext; then
2875 ac_cv_prog_cc_c89=$ac_arg
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2883 rm -f core conftest.err conftest.$ac_objext
2884 test "x$ac_cv_prog_cc_c89" != "xno" && break
2886 rm -f conftest.$ac_ext
2891 case "x$ac_cv_prog_cc_c89" in
2893 { echo "$as_me:$LINENO: result: none needed" >&5
2894 echo "${ECHO_T}none needed" >&6; } ;;
2896 { echo "$as_me:$LINENO: result: unsupported" >&5
2897 echo "${ECHO_T}unsupported" >&6; } ;;
2899 CC="$CC $ac_cv_prog_cc_c89"
2900 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 if test "$GCC" = yes ; then
2916 if test "$SHLICC2" = yes ; then
2917 ac_cv_lbl_gcc_vers=2
2920 { echo "$as_me:$LINENO: checking gcc version" >&5
2921 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2922 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2926 sed -e '/^gcc version /!d' \
2927 -e 's/^gcc version //' \
2928 -e 's/ .*//' -e 's/^[^0-9]*//' \
2932 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2933 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2934 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2939 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2940 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2941 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <sys/types.h>
2955 int frob(int, char *)
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
2977 ac_cv_lbl_cc_ansi_prototypes=yes
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 ac_cv_lbl_cc_ansi_prototypes=no
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2989 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2990 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2994 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2995 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2996 savedcflags="$CFLAGS"
2997 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2998 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 #include <sys/types.h>
3011 int frob(int, char *)
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3033 ac_cv_lbl_cc_hpux_cc_aa=yes
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 ac_cv_lbl_cc_hpux_cc_aa=no
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3045 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3046 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3047 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3048 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3049 { (exit 1); exit 1; }; }
3051 CFLAGS="$savedcflags"
3052 V_CCOPT="-Aa $V_CCOPT"
3054 cat >>confdefs.h <<\_ACEOF
3055 #define _HPUX_SOURCE 1
3061 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3062 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3063 savedcflags="$CFLAGS"
3065 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <sys/types.h>
3078 int frob(int, char *)
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_cv_lbl_cc_osf1_cc_std1=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_cv_lbl_cc_osf1_cc_std1=no
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3113 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3114 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3115 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3116 { (exit 1); exit 1; }; }
3118 CFLAGS="$savedcflags"
3119 V_CCOPT="-std1 $V_CCOPT"
3123 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3124 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3125 { (exit 1); exit 1; }; }
3129 V_INCLS="$V_INCLS -I/usr/local/include"
3130 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3135 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3140 # Presumed to be DEC OSF/1, Digital UNIX, or
3143 V_CCOPT="$V_CCOPT -g3"
3147 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3148 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3149 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3158 #include <sys/types.h>
3162 struct a { int b; };
3163 void c(const struct a *)
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
3185 ac_cv_lbl_cc_const_proto=yes
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 ac_cv_lbl_cc_const_proto=no
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3197 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3198 if test $ac_cv_lbl_cc_const_proto = no ; then
3200 cat >>confdefs.h <<\_ACEOF
3210 if test "$GCC" = yes ; then
3212 # On platforms where we build a shared library:
3214 # add options to generate position-independent code,
3215 # if necessary (it's the default in AIX and Darwin/OS X);
3217 # define option to set the soname of the shared library,
3218 # if the OS supports that;
3220 # add options to specify, at link time, a directory to
3221 # add to the run-time search path, if that's necessary.
3223 V_SHLIB_CMD="\$(CC)"
3224 V_SHLIB_OPT="-shared"
3230 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3232 # Platforms where the linker is the GNU linker
3233 # or accepts command-line arguments like
3234 # those the GNU linker accepts.
3236 # Some instruction sets require -fPIC on some
3237 # operating systems. Check for them. If you
3238 # have a combination that requires it, add it
3253 V_CCOPT="$V_CCOPT $PIC_OPT"
3254 V_SONAME_OPT="-Wl,-soname,"
3255 V_RPATH_OPT="-Wl,-rpath,"
3259 V_CCOPT="$V_CCOPT -fpic"
3261 # XXX - this assumes GCC is using the HP linker,
3262 # rather than the GNU linker, and that the "+h"
3263 # option is used on all HP-UX platforms, both .sl
3266 V_SONAME_OPT="-Wl,+h,"
3268 # By default, directories specifed with -L
3269 # are added to the run-time search path, so
3270 # we don't add them in pcap-config.
3275 V_CCOPT="$V_CCOPT -fpic"
3277 # XXX - this assumes GCC is using the Sun linker,
3278 # rather than the GNU linker.
3280 V_SONAME_OPT="-Wl,-h,"
3281 V_RPATH_OPT="-Wl,-R,"
3286 # Set the appropriate compiler flags and, on platforms
3287 # where we build a shared library:
3289 # add options to generate position-independent code,
3290 # if necessary (it's the default in Darwin/OS X);
3292 # if we generate ".so" shared libraries, define the
3293 # appropriate options for building the shared library;
3295 # add options to specify, at link time, a directory to
3296 # add to the run-time search path, if that's necessary.
3298 # Note: spaces after V_SONAME_OPT are significant; on
3299 # some platforms the soname is passed with a GCC-like
3300 # "-Wl,-soname,{soname}" option, with the soname part
3301 # of the option, while on other platforms the C compiler
3302 # driver takes it as a regular option with the soname
3303 # following the option. The same applies to V_RPATH_OPT.
3308 V_SHLIB_CMD="\$(CC)"
3309 V_SHLIB_OPT="-G -bnoentry -bexpall"
3312 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3316 V_CCOPT="$V_CCOPT -fpic"
3317 V_SHLIB_CMD="\$(CC)"
3318 V_SHLIB_OPT="-shared"
3319 V_SONAME_OPT="-Wl,-soname,"
3320 V_RPATH_OPT="-Wl,-rpath,"
3324 V_CCOPT="$V_CCOPT +z"
3325 V_SHLIB_CMD="\$(LD)"
3329 # By default, directories specifed with -L
3330 # are added to the run-time search path, so
3331 # we don't add them in pcap-config.
3337 # Presumed to be DEC OSF/1, Digital UNIX, or
3340 V_SHLIB_CMD="\$(CC)"
3341 V_SHLIB_OPT="-shared"
3342 V_SONAME_OPT="-soname "
3343 V_RPATH_OPT="-rpath "
3347 V_CCOPT="$V_CCOPT -Kpic"
3348 V_SHLIB_CMD="\$(CC)"
3356 { echo "$as_me:$LINENO: checking for inline" >&5
3357 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3358 save_CFLAGS="$CFLAGS"
3360 if test "${ac_cv_lbl_inline+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 for ac_lbl_inline in inline __inline__ __inline
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #define inline $ac_lbl_inline
3375 static inline struct iltest *foo(void);
3381 static inline struct iltest *
3384 static struct iltest xxx;
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3413 ac_lbl_cc_inline=yes
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 if test "$ac_lbl_cc_inline" = yes ; then
3426 if test "$ac_lbl_cc_inline" = yes ; then
3427 ac_cv_lbl_inline=$ac_lbl_inline
3431 CFLAGS="$save_CFLAGS"
3432 if test ! -z "$ac_cv_lbl_inline" ; then
3433 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3434 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3440 cat >>confdefs.h <<_ACEOF
3441 #define inline $ac_cv_lbl_inline
3445 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3446 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3447 if test "${ac_cv___attribute__+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 cat >conftest.$ac_ext <<_ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3460 static void foo(void) __attribute__ ((noreturn));
3469 main(int argc, char **argv)
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_compile") 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && {
3489 test -z "$ac_c_werror_flag" ||
3490 test ! -s conftest.err
3491 } && test -s conftest.$ac_objext; then
3492 ac_cv___attribute__=yes
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 ac_cv___attribute__=no
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 if test "$ac_cv___attribute__" = "yes"; then
3505 cat >>confdefs.h <<\_ACEOF
3506 #define HAVE___ATTRIBUTE__ 1
3509 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3511 V_DEFS="$V_DEFS -D_U_=\"\""
3513 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3514 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3523 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3528 if test -z "$CPP"; then
3529 if test "${ac_cv_prog_CPP+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 # Double quotes because CPP needs to be expanded
3533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3536 for ac_c_preproc_warn_flag in '' yes
3538 # Use a header file that comes with gcc, so configuring glibc
3539 # with a fresh cross-compiler works.
3540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541 # <limits.h> exists even on freestanding compilers.
3542 # On the NeXT, cc -E runs the code through the compiler's parser,
3543 # not just through cpp. "Syntax error" is here to catch this case.
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3551 # include <limits.h>
3553 # include <assert.h>
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null && {
3570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 # Broken: fails on valid input.
3582 rm -f conftest.err conftest.$ac_ext
3584 # OK, works on sane cases. Now check whether nonexistent headers
3585 # can be detected and how.
3586 cat >conftest.$ac_ext <<_ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #include <ac_nonexistent.h>
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3610 # Broken: success on invalid input.
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 # Passes both tests.
3621 rm -f conftest.err conftest.$ac_ext
3624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3625 rm -f conftest.err conftest.$ac_ext
3626 if $ac_preproc_ok; then
3638 { echo "$as_me:$LINENO: result: $CPP" >&5
3639 echo "${ECHO_T}$CPP" >&6; }
3641 for ac_c_preproc_warn_flag in '' yes
3643 # Use a header file that comes with gcc, so configuring glibc
3644 # with a fresh cross-compiler works.
3645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646 # <limits.h> exists even on freestanding compilers.
3647 # On the NeXT, cc -E runs the code through the compiler's parser,
3648 # not just through cpp. "Syntax error" is here to catch this case.
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3656 # include <limits.h>
3658 # include <assert.h>
3662 if { (ac_try="$ac_cpp conftest.$ac_ext"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } >/dev/null && {
3675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 # Broken: fails on valid input.
3687 rm -f conftest.err conftest.$ac_ext
3689 # OK, works on sane cases. Now check whether nonexistent headers
3690 # can be detected and how.
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #include <ac_nonexistent.h>
3699 if { (ac_try="$ac_cpp conftest.$ac_ext"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null && {
3712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3715 # Broken: success on invalid input.
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 # Passes both tests.
3726 rm -f conftest.err conftest.$ac_ext
3729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730 rm -f conftest.err conftest.$ac_ext
3731 if $ac_preproc_ok; then
3734 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&2;}
3738 { (exit 1); exit 1; }; }
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750 if test "${ac_cv_path_GREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 # Extract the first word of "grep ggrep" to use in msg output
3754 if test -z "$GREP"; then
3755 set dummy grep ggrep; ac_prog_name=$2
3756 if test "${ac_cv_path_GREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_path_GREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in grep ggrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3769 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3770 # Check for GNU ac_path_GREP and select it if it is found.
3771 # Check for GNU $ac_path_GREP
3772 case `"$ac_path_GREP" --version 2>&1` in
3774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'GREP' >> "conftest.nl"
3784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_GREP="$ac_path_GREP"
3790 ac_path_GREP_max=$ac_count
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 $ac_path_GREP_found && break 3
3809 GREP="$ac_cv_path_GREP"
3810 if test -z "$GREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3817 ac_cv_path_GREP=$GREP
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824 GREP="$ac_cv_path_GREP"
3827 { echo "$as_me:$LINENO: checking for egrep" >&5
3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829 if test "${ac_cv_path_EGREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833 then ac_cv_path_EGREP="$GREP -E"
3835 # Extract the first word of "egrep" to use in msg output
3836 if test -z "$EGREP"; then
3837 set dummy egrep; ac_prog_name=$2
3838 if test "${ac_cv_path_EGREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 ac_count=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881 $ac_path_EGREP_found && break 3
3891 EGREP="$ac_cv_path_EGREP"
3892 if test -z "$EGREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3899 ac_cv_path_EGREP=$EGREP
3905 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912 if test "${ac_cv_header_stdc+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3951 ac_cv_header_stdc=yes
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 ac_cv_header_stdc=no
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 if test $ac_cv_header_stdc = yes; then
3962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973 $EGREP "memchr" >/dev/null 2>&1; then
3976 ac_cv_header_stdc=no
3982 if test $ac_cv_header_stdc = yes; then
3983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994 $EGREP "free" >/dev/null 2>&1; then
3997 ac_cv_header_stdc=no
4003 if test $ac_cv_header_stdc = yes; then
4004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4005 if test "$cross_compiling" = yes; then
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4016 #if ((' ' & 0x0FF) == 0x020)
4017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4020 # define ISLOWER(c) \
4021 (('a' <= (c) && (c) <= 'i') \
4022 || ('j' <= (c) && (c) <= 'r') \
4023 || ('s' <= (c) && (c) <= 'z'))
4024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4032 for (i = 0; i < 256; i++)
4033 if (XOR (islower (i), ISLOWER (i))
4034 || toupper (i) != TOUPPER (i))
4039 rm -f conftest$ac_exeext
4040 if { (ac_try="$ac_link"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_link") 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4050 { (case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_try") 2>&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4061 echo "$as_me: program exited with status $ac_status" >&5
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4066 ac_cv_header_stdc=no
4068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4074 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4075 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4076 if test $ac_cv_header_stdc = yes; then
4078 cat >>confdefs.h <<\_ACEOF
4079 #define STDC_HEADERS 1
4084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095 inttypes.h stdint.h unistd.h
4097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 $ac_includes_default
4111 #include <$ac_header>
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 eval "$as_ac_Header=yes"
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 eval "$as_ac_Header=no"
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 ac_res=`eval echo '${'$as_ac_Header'}'`
4141 { echo "$as_me:$LINENO: result: $ac_res" >&5
4142 echo "${ECHO_T}$ac_res" >&6; }
4143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144 cat >>confdefs.h <<_ACEOF
4145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4154 for ac_header in sys/bitypes.h
4156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 ac_res=`eval echo '${'$as_ac_Header'}'`
4164 { echo "$as_me:$LINENO: result: $ac_res" >&5
4165 echo "${ECHO_T}$ac_res" >&6; }
4167 # Is the header compilable?
4168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 $ac_includes_default
4177 #include <$ac_header>
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_compile") 2>conftest.er1
4188 grep -v '^ *+' conftest.er1 >conftest.err
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && {
4193 test -z "$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 } && test -s conftest.$ac_objext; then
4196 ac_header_compiler=yes
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_header_compiler=no
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4206 echo "${ECHO_T}$ac_header_compiler" >&6; }
4208 # Is the header present?
4209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <$ac_header>
4219 if { (ac_try="$ac_cpp conftest.$ac_ext"
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4235 ac_header_preproc=yes
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ac_header_preproc=no
4243 rm -f conftest.err conftest.$ac_ext
4244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4245 echo "${ECHO_T}$ac_header_preproc" >&6; }
4247 # So? What about this header?
4248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4254 ac_header_preproc=yes
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 eval "$as_ac_Header=\$ac_header_preproc"
4279 ac_res=`eval echo '${'$as_ac_Header'}'`
4280 { echo "$as_me:$LINENO: result: $ac_res" >&5
4281 echo "${ECHO_T}$ac_res" >&6; }
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 { echo "$as_me:$LINENO: checking for int8_t" >&5
4295 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4296 if test "${ac_cv_type_int8_t+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4306 #ifdef HAVE_SYS_BITYPES_H
4307 #include <sys/bitypes.h>
4310 typedef int8_t ac__type_new_;
4314 if ((ac__type_new_ *) 0)
4316 if (sizeof (ac__type_new_))
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4339 ac_cv_type_int8_t=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_cv_type_int8_t=no
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4350 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4351 if test $ac_cv_type_int8_t = yes; then
4355 cat >>confdefs.h <<\_ACEOF
4356 #define int8_t signed char
4361 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4362 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4363 if test "${ac_cv_type_u_int8_t+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 $ac_includes_default
4373 #ifdef HAVE_SYS_BITYPES_H
4374 #include <sys/bitypes.h>
4377 typedef u_int8_t ac__type_new_;
4381 if ((ac__type_new_ *) 0)
4383 if (sizeof (ac__type_new_))
4389 rm -f conftest.$ac_objext
4390 if { (ac_try="$ac_compile"
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_compile") 2>conftest.er1
4398 grep -v '^ *+' conftest.er1 >conftest.err
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && {
4403 test -z "$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 } && test -s conftest.$ac_objext; then
4406 ac_cv_type_u_int8_t=yes
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_type_u_int8_t=no
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4417 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4418 if test $ac_cv_type_u_int8_t = yes; then
4422 cat >>confdefs.h <<\_ACEOF
4423 #define u_int8_t unsigned char
4428 { echo "$as_me:$LINENO: checking for int16_t" >&5
4429 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4430 if test "${ac_cv_type_int16_t+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4440 typedef int16_t ac__type_new_;
4444 if ((ac__type_new_ *) 0)
4446 if (sizeof (ac__type_new_))
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 ac_cv_type_int16_t=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_cv_type_int16_t=no
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4480 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4481 if test $ac_cv_type_int16_t = yes; then
4485 cat >>confdefs.h <<\_ACEOF
4486 #define int16_t short
4489 $ac_includes_default
4490 #ifdef HAVE_SYS_BITYPES_H
4491 #include <sys/bitypes.h>
4495 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4496 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4497 if test "${ac_cv_type_u_int16_t+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4507 #ifdef HAVE_SYS_BITYPES_H
4508 #include <sys/bitypes.h>
4511 typedef u_int16_t ac__type_new_;
4515 if ((ac__type_new_ *) 0)
4517 if (sizeof (ac__type_new_))
4523 rm -f conftest.$ac_objext
4524 if { (ac_try="$ac_compile"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_compile") 2>conftest.er1
4532 grep -v '^ *+' conftest.er1 >conftest.err
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && {
4537 test -z "$ac_c_werror_flag" ||
4538 test ! -s conftest.err
4539 } && test -s conftest.$ac_objext; then
4540 ac_cv_type_u_int16_t=yes
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 ac_cv_type_u_int16_t=no
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4551 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4552 if test $ac_cv_type_u_int16_t = yes; then
4556 cat >>confdefs.h <<\_ACEOF
4557 #define u_int16_t unsigned short
4562 { echo "$as_me:$LINENO: checking for int32_t" >&5
4563 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4564 if test "${ac_cv_type_int32_t+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4574 #ifdef HAVE_SYS_BITYPES_H
4575 #include <sys/bitypes.h>
4578 typedef int32_t ac__type_new_;
4582 if ((ac__type_new_ *) 0)
4584 if (sizeof (ac__type_new_))
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } && {
4604 test -z "$ac_c_werror_flag" ||
4605 test ! -s conftest.err
4606 } && test -s conftest.$ac_objext; then
4607 ac_cv_type_int32_t=yes
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 ac_cv_type_int32_t=no
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4618 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4619 if test $ac_cv_type_int32_t = yes; then
4623 cat >>confdefs.h <<\_ACEOF
4629 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4630 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4631 if test "${ac_cv_type_u_int32_t+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 $ac_includes_default
4641 #ifdef HAVE_SYS_BITYPES_H
4642 #include <sys/bitypes.h>
4645 typedef u_int32_t ac__type_new_;
4649 if ((ac__type_new_ *) 0)
4651 if (sizeof (ac__type_new_))
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest.$ac_objext; then
4674 ac_cv_type_u_int32_t=yes
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_cv_type_u_int32_t=no
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4685 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4686 if test $ac_cv_type_u_int32_t = yes; then
4690 cat >>confdefs.h <<\_ACEOF
4691 #define u_int32_t unsigned int
4696 { echo "$as_me:$LINENO: checking for int64_t" >&5
4697 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4698 if test "${ac_cv_type_int64_t+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 $ac_includes_default
4708 #ifdef HAVE_SYS_BITYPES_H
4709 #include <sys/bitypes.h>
4712 typedef int64_t ac__type_new_;
4716 if ((ac__type_new_ *) 0)
4718 if (sizeof (ac__type_new_))
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest.$ac_objext; then
4741 ac_cv_type_int64_t=yes
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_cv_type_int64_t=no
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4752 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4753 if test $ac_cv_type_int64_t = yes; then
4757 cat >>confdefs.h <<\_ACEOF
4758 #define int64_t long long
4763 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4764 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4765 if test "${ac_cv_type_u_int64_t+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 $ac_includes_default
4775 #ifdef HAVE_SYS_BITYPES_H
4776 #include <sys/bitypes.h>
4779 typedef u_int64_t ac__type_new_;
4783 if ((ac__type_new_ *) 0)
4785 if (sizeof (ac__type_new_))
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_type_u_int64_t=yes
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_type_u_int64_t=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4819 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4820 if test $ac_cv_type_u_int64_t = yes; then
4824 cat >>confdefs.h <<\_ACEOF
4825 #define u_int64_t unsigned long long
4832 # Try to arrange for large file support.
4834 # Check whether --enable-largefile was given.
4835 if test "${enable_largefile+set}" = set; then
4836 enableval=$enable_largefile;
4839 if test "$enable_largefile" != no; then
4841 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4842 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4843 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 ac_cv_sys_largefile_CC=no
4847 if test "$GCC" != yes; then
4850 # IRIX 6.2 and later do not support large files by default,
4851 # so use the C compiler's -n32 option if that helps.
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <sys/types.h>
4859 /* Check that off_t can represent 2**63 - 1 correctly.
4860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861 since some C++ compilers masquerading as C compilers
4862 incorrectly reject 9223372036854775807. */
4863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865 && LARGE_OFF_T % 2147483647 == 1)
4875 rm -f conftest.$ac_objext
4876 if { (ac_try="$ac_compile"
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_compile") 2>conftest.er1
4884 grep -v '^ *+' conftest.er1 >conftest.err
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && {
4889 test -z "$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 } && test -s conftest.$ac_objext; then
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4900 rm -f core conftest.err conftest.$ac_objext
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_compile") 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } && {
4916 test -z "$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4918 } && test -s conftest.$ac_objext; then
4919 ac_cv_sys_largefile_CC=' -n32'; break
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4927 rm -f core conftest.err conftest.$ac_objext
4931 rm -f conftest.$ac_ext
4934 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4935 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4936 if test "$ac_cv_sys_largefile_CC" != no; then
4937 CC=$CC$ac_cv_sys_largefile_CC
4940 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4941 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4942 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <sys/types.h>
4953 /* Check that off_t can represent 2**63 - 1 correctly.
4954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4955 since some C++ compilers masquerading as C compilers
4956 incorrectly reject 9223372036854775807. */
4957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4959 && LARGE_OFF_T % 2147483647 == 1)
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4986 ac_cv_sys_file_offset_bits=no; break
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 cat >conftest.$ac_ext <<_ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #define _FILE_OFFSET_BITS 64
5002 #include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005 since some C++ compilers masquerading as C compilers
5006 incorrectly reject 9223372036854775807. */
5007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009 && LARGE_OFF_T % 2147483647 == 1)
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 ac_cv_sys_file_offset_bits=64; break
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 ac_cv_sys_file_offset_bits=unknown
5049 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5050 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5051 case $ac_cv_sys_file_offset_bits in #(
5054 cat >>confdefs.h <<_ACEOF
5055 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5060 if test $ac_cv_sys_file_offset_bits = unknown; then
5061 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5062 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5063 if test "${ac_cv_sys_large_files+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <sys/types.h>
5074 /* Check that off_t can represent 2**63 - 1 correctly.
5075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5076 since some C++ compilers masquerading as C compilers
5077 incorrectly reject 9223372036854775807. */
5078 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5080 && LARGE_OFF_T % 2147483647 == 1)
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compile") 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && {
5104 test -z "$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 } && test -s conftest.$ac_objext; then
5107 ac_cv_sys_large_files=no; break
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #define _LARGE_FILES 1
5123 #include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126 since some C++ compilers masquerading as C compilers
5127 incorrectly reject 9223372036854775807. */
5128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130 && LARGE_OFF_T % 2147483647 == 1)
5140 rm -f conftest.$ac_objext
5141 if { (ac_try="$ac_compile"
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_compile") 2>conftest.er1
5149 grep -v '^ *+' conftest.er1 >conftest.err
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && {
5154 test -z "$ac_c_werror_flag" ||
5155 test ! -s conftest.err
5156 } && test -s conftest.$ac_objext; then
5157 ac_cv_sys_large_files=1; break
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 ac_cv_sys_large_files=unknown
5170 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5171 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5172 case $ac_cv_sys_large_files in #(
5175 cat >>confdefs.h <<_ACEOF
5176 #define _LARGE_FILES $ac_cv_sys_large_files
5184 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5185 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5186 if test "${ac_cv_sys_largefile_source+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5200 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (ac_try="$ac_link"
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_link") 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest$ac_exeext &&
5222 $as_test_x conftest$ac_exeext; then
5223 ac_cv_sys_largefile_source=no; break
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5232 conftest$ac_exeext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #define _LARGEFILE_SOURCE 1
5244 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_link") 2>conftest.er1
5258 grep -v '^ *+' conftest.er1 >conftest.err
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && {
5263 test -z "$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 } && test -s conftest$ac_exeext &&
5266 $as_test_x conftest$ac_exeext; then
5267 ac_cv_sys_largefile_source=1; break
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5276 conftest$ac_exeext conftest.$ac_ext
5277 ac_cv_sys_largefile_source=unknown
5281 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5282 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5283 case $ac_cv_sys_largefile_source in #(
5286 cat >>confdefs.h <<_ACEOF
5287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5294 # in glibc 2.1.3, but that breaks too many other things.
5295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5296 if test $ac_cv_sys_largefile_source != unknown; then
5298 cat >>confdefs.h <<\_ACEOF
5299 #define HAVE_FSEEKO 1
5309 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_res=`eval echo '${'$as_ac_Header'}'`
5319 { echo "$as_me:$LINENO: result: $ac_res" >&5
5320 echo "${ECHO_T}$ac_res" >&6; }
5322 # Is the header compilable?
5323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5332 #include <$ac_header>
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5351 ac_header_compiler=yes
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ac_header_compiler=no
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5361 echo "${ECHO_T}$ac_header_compiler" >&6; }
5363 # Is the header present?
5364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <$ac_header>
5374 if { (ac_try="$ac_cpp conftest.$ac_ext"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } >/dev/null && {
5387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5390 ac_header_preproc=yes
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_header_preproc=no
5398 rm -f conftest.err conftest.$ac_ext
5399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5400 echo "${ECHO_T}$ac_header_preproc" >&6; }
5402 # So? What about this header?
5403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5409 ac_header_preproc=yes
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 eval "$as_ac_Header=\$ac_header_preproc"
5434 ac_res=`eval echo '${'$as_ac_Header'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5449 for ac_header in linux/types.h
5451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 ac_res=`eval echo '${'$as_ac_Header'}'`
5459 { echo "$as_me:$LINENO: result: $ac_res" >&5
5460 echo "${ECHO_T}$ac_res" >&6; }
5462 # Is the header compilable?
5463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 $ac_includes_default
5472 #include <$ac_header>
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5483 grep -v '^ *+' conftest.er1 >conftest.err
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_header_compiler=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_header_compiler=no
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501 echo "${ECHO_T}$ac_header_compiler" >&6; }
5503 # Is the header present?
5504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <$ac_header>
5514 if { (ac_try="$ac_cpp conftest.$ac_ext"
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev/null && {
5527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5530 ac_header_preproc=yes
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_header_preproc=no
5538 rm -f conftest.err conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540 echo "${ECHO_T}$ac_header_preproc" >&6; }
5542 # So? What about this header?
5543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5549 ac_header_preproc=yes
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 eval "$as_ac_Header=\$ac_header_preproc"
5574 ac_res=`eval echo '${'$as_ac_Header'}'`
5575 { echo "$as_me:$LINENO: result: $ac_res" >&5
5576 echo "${ECHO_T}$ac_res" >&6; }
5579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
5593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 ac_res=`eval echo '${'$as_ac_Header'}'`
5601 { echo "$as_me:$LINENO: result: $ac_res" >&5
5602 echo "${ECHO_T}$ac_res" >&6; }
5604 # Is the header compilable?
5605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 #include <$ac_header>
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5625 grep -v '^ *+' conftest.er1 >conftest.err
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_c_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.$ac_objext; then
5633 ac_header_compiler=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_header_compiler=no
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5643 echo "${ECHO_T}$ac_header_compiler" >&6; }
5645 # Is the header present?
5646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <$ac_header>
5656 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null && {
5669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5672 ac_header_preproc=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_header_preproc=no
5680 rm -f conftest.err conftest.$ac_ext
5681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5682 echo "${ECHO_T}$ac_header_preproc" >&6; }
5684 # So? What about this header?
5685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5691 ac_header_preproc=yes
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 eval "$as_ac_Header=\$ac_header_preproc"
5716 ac_res=`eval echo '${'$as_ac_Header'}'`
5717 { echo "$as_me:$LINENO: result: $ac_res" >&5
5718 echo "${ECHO_T}$ac_res" >&6; }
5721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5722 cat >>confdefs.h <<_ACEOF
5723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5731 for ac_header in net/pfvar.h
5733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 #include <sys/socket.h>
5749 #include <$ac_header>
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 eval "$as_ac_Header=yes"
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 eval "$as_ac_Header=no"
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 ac_res=`eval echo '${'$as_ac_Header'}'`
5779 { echo "$as_me:$LINENO: result: $ac_res" >&5
5780 echo "${ECHO_T}$ac_res" >&6; }
5781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5782 cat >>confdefs.h <<_ACEOF
5783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5790 if test "$ac_cv_header_net_pfvar_h" = yes; then
5792 # Check for various PF actions.
5794 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5795 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5796 cat >conftest.$ac_ext <<_ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <sys/types.h>
5803 #include <sys/socket.h>
5805 #include <net/pfvar.h>
5809 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5823 grep -v '^ *+' conftest.er1 >conftest.err
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && {
5828 test -z "$ac_c_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.$ac_objext; then
5832 { echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6; }
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 for ac_header in netinet/if_ether.h
5853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <sys/types.h>
5866 #include <sys/socket.h>
5868 #include <$ac_header>
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5879 grep -v '^ *+' conftest.er1 >conftest.err
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.$ac_objext; then
5887 eval "$as_ac_Header=yes"
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 eval "$as_ac_Header=no"
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 ac_res=`eval echo '${'$as_ac_Header'}'`
5898 { echo "$as_me:$LINENO: result: $ac_res" >&5
5899 echo "${ECHO_T}$ac_res" >&6; }
5900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5911 # The simple test didn't work.
5912 # Do we need to include <net/if.h> first?
5913 # Unset ac_cv_header_netinet_if_ether_h so we don't
5914 # treat the previous failure as a cached value and
5915 # suppress the next test.
5917 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5918 echo "$as_me: Rechecking with some additional includes" >&6;}
5919 unset ac_cv_header_netinet_if_ether_h
5921 for ac_header in netinet/if_ether.h
5923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #include <sys/types.h>
5936 #include <sys/socket.h>
5937 #include <netinet/in.h>
5942 #include <$ac_header>
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5953 grep -v '^ *+' conftest.er1 >conftest.err
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.$ac_objext; then
5961 eval "$as_ac_Header=yes"
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 eval "$as_ac_Header=no"
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 ac_res=`eval echo '${'$as_ac_Header'}'`
5972 { echo "$as_me:$LINENO: result: $ac_res" >&5
5973 echo "${ECHO_T}$ac_res" >&6; }
5974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5975 cat >>confdefs.h <<_ACEOF
5976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5985 if test "$GCC" = yes ; then
5986 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5987 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5988 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5998 * This generates a "duplicate case value" when fixincludes
6001 # include <sys/types.h>
6002 # include <sys/time.h>
6003 # include <sys/ioctl.h>
6004 # ifdef HAVE_SYS_IOCCOM_H
6005 # include <sys/ioccom.h>
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6027 grep -v '^ *+' conftest.er1 >conftest.err
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
6035 ac_cv_lbl_gcc_fixincludes=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_cv_lbl_gcc_fixincludes=no
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
6047 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
6048 if test $ac_cv_lbl_gcc_fixincludes = no ; then
6049 # Don't cache failure
6050 unset ac_cv_lbl_gcc_fixincludes
6051 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
6052 echo "$as_me: error: see the INSTALL for more info" >&2;}
6053 { (exit 1); exit 1; }; }
6059 for ac_func in strerror strlcpy
6061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 cat >conftest.$ac_ext <<_ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6075 #define $ac_func innocuous_$ac_func
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char $ac_func (); below.
6079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 <limits.h> exists even on freestanding compilers. */
6083 # include <limits.h>
6085 # include <assert.h>
6090 /* Override any GCC internal prototype to avoid an error.
6091 Use char because int might match the return type of a GCC
6092 builtin and then its argument prototype would still apply. */
6097 /* The GNU C library defines this for functions which it implements
6098 to always fail with ENOSYS. Some functions are actually named
6099 something starting with __ and the normal name is an alias. */
6100 #if defined __stub_$ac_func || defined __stub___$ac_func
6112 rm -f conftest.$ac_objext conftest$ac_exeext
6113 if { (ac_try="$ac_link"
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_link") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest$ac_exeext &&
6129 $as_test_x conftest$ac_exeext; then
6130 eval "$as_ac_var=yes"
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 eval "$as_ac_var=no"
6138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6139 conftest$ac_exeext conftest.$ac_ext
6141 ac_res=`eval echo '${'$as_ac_var'}'`
6142 { echo "$as_me:$LINENO: result: $ac_res" >&5
6143 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_var'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6156 for ac_func in vsnprintf snprintf
6158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 cat >conftest.$ac_ext <<_ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6172 #define $ac_func innocuous_$ac_func
6174 /* System header to define __stub macros and hopefully few prototypes,
6175 which can conflict with char $ac_func (); below.
6176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6177 <limits.h> exists even on freestanding compilers. */
6180 # include <limits.h>
6182 # include <assert.h>
6187 /* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined __stub_$ac_func || defined __stub___$ac_func
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (ac_try="$ac_link"
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_link") 2>conftest.er1
6218 grep -v '^ *+' conftest.er1 >conftest.err
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest$ac_exeext &&
6226 $as_test_x conftest$ac_exeext; then
6227 eval "$as_ac_var=yes"
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 eval "$as_ac_var=no"
6235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6236 conftest$ac_exeext conftest.$ac_ext
6238 ac_res=`eval echo '${'$as_ac_var'}'`
6239 { echo "$as_me:$LINENO: result: $ac_res" >&5
6240 echo "${ECHO_T}$ac_res" >&6; }
6241 if test `eval echo '${'$as_ac_var'}'` = yes; then
6242 cat >>confdefs.h <<_ACEOF
6243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6251 if test $needsnprintf = yes; then
6252 case " $LIBOBJS " in
6253 *" snprintf.$ac_objext "* ) ;;
6254 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6261 # Do this before checking for ether_hostton(), as it's a
6262 # "gethostbyname() -ish function".
6265 # Most operating systems have gethostbyname() in the default searched
6266 # libraries (i.e. libc):
6267 # Some OSes (eg. Solaris) place it in libnsl
6268 # Some strange OSes (SINIX) have it in libsocket:
6269 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6270 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6271 if test "${ac_cv_search_gethostbyname+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_func_search_save_LIBS=$LIBS
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6282 /* Override any GCC internal prototype to avoid an error.
6283 Use char because int might match the return type of a GCC
6284 builtin and then its argument prototype would still apply. */
6288 char gethostbyname ();
6292 return gethostbyname ();
6297 for ac_lib in '' nsl socket resolv; do
6298 if test -z "$ac_lib"; then
6299 ac_res="none required"
6302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (ac_try="$ac_link"
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_link") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest$ac_exeext &&
6321 $as_test_x conftest$ac_exeext; then
6322 ac_cv_search_gethostbyname=$ac_res
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6332 if test "${ac_cv_search_gethostbyname+set}" = set; then
6336 if test "${ac_cv_search_gethostbyname+set}" = set; then
6339 ac_cv_search_gethostbyname=no
6342 LIBS=$ac_func_search_save_LIBS
6344 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6345 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6346 ac_res=$ac_cv_search_gethostbyname
6347 if test "$ac_res" != no; then
6348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6352 # Unfortunately libsocket sometimes depends on libnsl and
6353 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6354 if test "$ac_cv_search_gethostbyname" = "no"
6356 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6357 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6358 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_check_lib_save_LIBS=$LIBS
6362 LIBS="-lsocket -lnsl $LIBS"
6363 cat >conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6370 /* Override any GCC internal prototype to avoid an error.
6371 Use char because int might match the return type of a GCC
6372 builtin and then its argument prototype would still apply. */
6376 char gethostbyname ();
6380 return gethostbyname ();
6385 rm -f conftest.$ac_objext conftest$ac_exeext
6386 if { (ac_try="$ac_link"
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_link") 2>conftest.er1
6394 grep -v '^ *+' conftest.er1 >conftest.err
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest$ac_exeext &&
6402 $as_test_x conftest$ac_exeext; then
6403 ac_cv_lib_socket_gethostbyname=yes
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 ac_cv_lib_socket_gethostbyname=no
6411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6412 conftest$ac_exeext conftest.$ac_ext
6413 LIBS=$ac_check_lib_save_LIBS
6415 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6416 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6417 if test $ac_cv_lib_socket_gethostbyname = yes; then
6418 LIBS="-lsocket -lnsl $LIBS"
6422 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6423 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6424 if test "${ac_cv_search_socket+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 ac_func_search_save_LIBS=$LIBS
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6435 /* Override any GCC internal prototype to avoid an error.
6436 Use char because int might match the return type of a GCC
6437 builtin and then its argument prototype would still apply. */
6450 for ac_lib in '' socket; do
6451 if test -z "$ac_lib"; then
6452 ac_res="none required"
6455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1 >conftest.err
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext &&
6474 $as_test_x conftest$ac_exeext; then
6475 ac_cv_search_socket=$ac_res
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6485 if test "${ac_cv_search_socket+set}" = set; then
6489 if test "${ac_cv_search_socket+set}" = set; then
6492 ac_cv_search_socket=no
6495 LIBS=$ac_func_search_save_LIBS
6497 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6498 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6499 ac_res=$ac_cv_search_socket
6500 if test "$ac_res" != no; then
6501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6504 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6505 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6506 if test "${ac_cv_lib_socket_socket+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 ac_check_lib_save_LIBS=$LIBS
6510 LIBS="-lsocket -lnsl $LIBS"
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6518 /* Override any GCC internal prototype to avoid an error.
6519 Use char because int might match the return type of a GCC
6520 builtin and then its argument prototype would still apply. */
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest$ac_exeext &&
6550 $as_test_x conftest$ac_exeext; then
6551 ac_cv_lib_socket_socket=yes
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_cv_lib_socket_socket=no
6559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6560 conftest$ac_exeext conftest.$ac_ext
6561 LIBS=$ac_check_lib_save_LIBS
6563 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6564 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6565 if test $ac_cv_lib_socket_socket = yes; then
6566 LIBS="-lsocket -lnsl $LIBS"
6571 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6572 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6573 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6574 if test "${ac_cv_search_putmsg+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 ac_func_search_save_LIBS=$LIBS
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6585 /* Override any GCC internal prototype to avoid an error.
6586 Use char because int might match the return type of a GCC
6587 builtin and then its argument prototype would still apply. */
6600 for ac_lib in '' str; do
6601 if test -z "$ac_lib"; then
6602 ac_res="none required"
6605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>conftest.er1
6616 grep -v '^ *+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest$ac_exeext &&
6624 $as_test_x conftest$ac_exeext; then
6625 ac_cv_search_putmsg=$ac_res
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6635 if test "${ac_cv_search_putmsg+set}" = set; then
6639 if test "${ac_cv_search_putmsg+set}" = set; then
6642 ac_cv_search_putmsg=no
6645 LIBS=$ac_func_search_save_LIBS
6647 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6648 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6649 ac_res=$ac_cv_search_putmsg
6650 if test "$ac_res" != no; then
6651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6658 # You are in a twisty little maze of UN*Xes, all different.
6659 # Some might not have ether_hostton().
6660 # Some might have it, but not declare it in any header file.
6661 # Some might have it, but declare it in <netinet/if_ether.h>.
6662 # Some might have it, but declare it in <netinet/ether.h>
6663 # (And some might have it but document it as something declared in
6664 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6666 # Before you is a C compiler.
6669 for ac_func in ether_hostton
6671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6685 #define $ac_func innocuous_$ac_func
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func (); below.
6689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6690 <limits.h> exists even on freestanding compilers. */
6693 # include <limits.h>
6695 # include <assert.h>
6700 /* Override any GCC internal prototype to avoid an error.
6701 Use char because int might match the return type of a GCC
6702 builtin and then its argument prototype would still apply. */
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined __stub_$ac_func || defined __stub___$ac_func
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_link") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest$ac_exeext &&
6739 $as_test_x conftest$ac_exeext; then
6740 eval "$as_ac_var=yes"
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 eval "$as_ac_var=no"
6748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749 conftest$ac_exeext conftest.$ac_ext
6751 ac_res=`eval echo '${'$as_ac_var'}'`
6752 { echo "$as_me:$LINENO: result: $ac_res" >&5
6753 echo "${ECHO_T}$ac_res" >&6; }
6754 if test `eval echo '${'$as_ac_var'}'` = yes; then
6755 cat >>confdefs.h <<_ACEOF
6756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6762 if test "$ac_cv_func_ether_hostton" = yes; then
6764 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6766 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6768 # Yes. Does it declare ether_hostton()?
6770 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6771 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6772 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.$ac_ext <<_ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <sys/socket.h>
6784 #include <netinet/in.h>
6785 #include <arpa/inet.h>
6789 #include <netinet/if_ether.h>
6795 #ifndef ether_hostton
6796 (void) ether_hostton;
6803 rm -f conftest.$ac_objext
6804 if { (ac_try="$ac_compile"
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_compile") 2>conftest.er1
6812 grep -v '^ *+' conftest.er1 >conftest.err
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && {
6817 test -z "$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 } && test -s conftest.$ac_objext; then
6820 ac_cv_have_decl_ether_hostton=yes
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_cv_have_decl_ether_hostton=no
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6831 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6832 if test $ac_cv_have_decl_ether_hostton = yes; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6846 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6848 # No, how about <netinet/ether.h>, as on Linux?
6851 for ac_header in netinet/ether.h
6853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_res=`eval echo '${'$as_ac_Header'}'`
6861 { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6864 # Is the header compilable?
6865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6874 #include <$ac_header>
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6893 ac_header_compiler=yes
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_header_compiler=no
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6903 echo "${ECHO_T}$ac_header_compiler" >&6; }
6905 # Is the header present?
6906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <$ac_header>
6916 if { (ac_try="$ac_cpp conftest.$ac_ext"
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1 >conftest.err
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } >/dev/null && {
6929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6932 ac_header_preproc=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_header_preproc=no
6940 rm -f conftest.err conftest.$ac_ext
6941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6942 echo "${ECHO_T}$ac_header_preproc" >&6; }
6944 # So? What about this header?
6945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6951 ac_header_preproc=yes
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 eval "$as_ac_Header=\$ac_header_preproc"
6976 ac_res=`eval echo '${'$as_ac_Header'}'`
6977 { echo "$as_me:$LINENO: result: $ac_res" >&5
6978 echo "${ECHO_T}$ac_res" >&6; }
6981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 if test "$ac_cv_header_netinet_ether_h" = yes; then
6992 # We have it - does it declare ether_hostton()?
6993 # Unset ac_cv_have_decl_ether_hostton so we don't
6994 # treat the previous failure as a cached value and
6995 # suppress the next test.
6997 unset ac_cv_have_decl_ether_hostton
6998 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6999 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
7000 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 cat >conftest.$ac_ext <<_ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 #include <netinet/ether.h>
7016 #ifndef ether_hostton
7017 (void) ether_hostton;
7024 rm -f conftest.$ac_objext
7025 if { (ac_try="$ac_compile"
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 (eval "$ac_compile") 2>conftest.er1
7033 grep -v '^ *+' conftest.er1 >conftest.err
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } && {
7038 test -z "$ac_c_werror_flag" ||
7039 test ! -s conftest.err
7040 } && test -s conftest.$ac_objext; then
7041 ac_cv_have_decl_ether_hostton=yes
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7046 ac_cv_have_decl_ether_hostton=no
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
7052 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
7053 if test $ac_cv_have_decl_ether_hostton = yes; then
7056 cat >>confdefs.h <<\_ACEOF
7057 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
7066 # Is ether_hostton() declared?
7068 if test "$ac_cv_have_decl_ether_hostton" != yes; then
7070 # No, we'll have to declare it ourselves.
7071 # Do we have "struct ether_addr"?
7073 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
7074 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
7075 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7085 #include <sys/types.h>
7086 #include <sys/socket.h>
7087 #include <netinet/in.h>
7088 #include <arpa/inet.h>
7092 #include <netinet/if_ether.h>
7095 typedef struct ether_addr ac__type_new_;
7099 if ((ac__type_new_ *) 0)
7101 if (sizeof (ac__type_new_))
7107 rm -f conftest.$ac_objext
7108 if { (ac_try="$ac_compile"
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7116 grep -v '^ *+' conftest.er1 >conftest.err
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
7124 ac_cv_type_struct_ether_addr=yes
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7129 ac_cv_type_struct_ether_addr=no
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
7135 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
7136 if test $ac_cv_type_struct_ether_addr = yes; then
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_STRUCT_ETHER_ADDR 1
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DECL_ETHER_HOSTTON 0
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_DECL_ETHER_HOSTTON 1
7159 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
7160 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
7161 # Check whether --enable-protochain was given.
7162 if test "${enable_protochain+set}" = set; then
7163 enableval=$enable_protochain;
7166 case "x$enable_protochain" in
7167 xyes) enable_protochain=enabled ;;
7168 xno) enable_protochain=disabled ;;
7169 x) enable_protochain=enabled ;;
7172 if test "$enable_protochain" = "disabled"; then
7174 cat >>confdefs.h <<\_ACEOF
7175 #define NO_PROTOCHAIN 1
7179 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
7180 echo "${ECHO_T}${enable_protochain}" >&6; }
7183 # SITA support is mutually exclusive with native capture support;
7184 # "--with-sita" selects SITA support.
7187 # Check whether --with-sita was given.
7188 if test "${with_sita+set}" = set; then
7190 if test ! "x$withval" = "xno" ; then
7192 cat >>confdefs.h <<\_ACEOF
7196 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
7197 echo "$as_me: Enabling SITA ACN support" >&6;}
7204 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
7205 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
7206 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
7207 { (exit 1); exit 1; }; }
7210 # Check whether --with-pcap was given.
7211 if test "${with_pcap+set}" = set; then
7215 { echo "$as_me:$LINENO: checking packet capture type" >&5
7216 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
7217 if test ! -z "$with_pcap" ; then
7219 elif test -r /dev/bpf -o -h /dev/bpf ; then
7221 # Cloning BPF device.
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_CLONING_BPF 1
7229 elif test -r /dev/bpf0 ; then
7231 elif test -r /usr/include/net/pfilt.h ; then
7233 elif test -r /dev/enet ; then
7235 elif test -r /dev/nit ; then
7237 elif test -r /usr/include/sys/net/nit.h ; then
7239 elif test -r /usr/include/linux/socket.h ; then
7241 elif test -r /usr/include/net/raw.h ; then
7243 elif test -r /usr/include/odmi.h ; then
7245 # On AIX, the BPF devices might not yet be present - they're
7246 # created the first time libpcap runs after booting.
7247 # We check for odmi.h instead.
7250 elif test -c /dev/bpf0 ; then # check again in case not readable
7252 elif test -r /usr/include/sys/dlpi.h ; then
7254 elif test -c /dev/enet ; then # check again in case not readable
7256 elif test -c /dev/nit ; then # check again in case not readable
7261 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
7262 echo "${ECHO_T}$V_PCAP" >&6; }
7265 # Do capture-mechanism-dependent tests.
7270 # Checks to see if Solaris has the public libdlpi(3LIB) library.
7271 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
7272 # public libdlpi(3LIB) version. Before libdlpi was made public, a
7273 # private version also existed, which did not have the same APIs.
7274 # Due to a gcc bug, the default search path for 32-bit libraries does
7275 # not include /lib, we add it explicitly here.
7276 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
7277 # Also, due to the bug above applications that link to libpcap with
7278 # libdlpi will have to add "-L/lib" option to "configure".
7280 saved_ldflags=$LDFLAGS
7281 LDFLAGS="$LIBS -L/lib"
7282 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
7283 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7284 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_check_lib_save_LIBS=$LIBS
7289 cat >conftest.$ac_ext <<_ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7296 /* Override any GCC internal prototype to avoid an error.
7297 Use char because int might match the return type of a GCC
7298 builtin and then its argument prototype would still apply. */
7306 return dlpi_walk ();
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (ac_try="$ac_link"
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_link") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest$ac_exeext &&
7328 $as_test_x conftest$ac_exeext; then
7329 ac_cv_lib_dlpi_dlpi_walk=yes
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_cv_lib_dlpi_dlpi_walk=no
7337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7338 conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7341 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7342 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7343 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_LIBDLPI 1
7355 LDFLAGS=$saved_ldflags
7358 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7361 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7362 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7363 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7373 #include <sys/types.h>
7374 #include <sys/time.h>
7375 #include <sys/dlpi.h>
7380 int i = DL_PROMISC_PHYS;
7385 rm -f conftest.$ac_objext
7386 if { (ac_try="$ac_compile"
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7394 grep -v '^ *+' conftest.er1 >conftest.err
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.$ac_objext; then
7402 ac_cv_sys_dlpi_usable=yes
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 ac_cv_sys_dlpi_usable=no
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7414 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7415 if test $ac_cv_sys_dlpi_usable = no ; then
7416 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7417 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7418 { (exit 1); exit 1; }; }
7422 # Check whether we have a /dev/dlpi device or have multiple devices.
7424 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7425 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7426 if test -c /dev/dlpi ; then
7427 { echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6; }
7430 cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_DEV_DLPI 1
7435 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7438 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7439 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7440 if test -d $dir ; then
7441 { echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6; }
7444 cat >>confdefs.h <<_ACEOF
7445 #define PCAP_DEV_PREFIX "$dir"
7449 { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7455 # This check is for Solaris with DLPI support for passive modes.
7456 # See dlpi(7P) for more details.
7458 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7459 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7460 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7470 # include <sys/types.h>
7471 # include <sys/dlpi.h>
7475 u_int i = sizeof(dl_passive_req_t)
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7497 ac_cv_lbl_has_dl_passive_req_t=yes
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7502 ac_cv_lbl_has_dl_passive_req_t=no
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7509 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7510 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_DLPI_PASSIVE 1
7521 # Do we have the wireless extensions?
7524 for ac_header in linux/wireless.h
7526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 cat >conftest.$ac_ext <<_ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7539 #include <sys/socket.h>
7540 #include <linux/if.h>
7541 #include <linux/types.h>
7544 #include <$ac_header>
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553 (eval "$ac_compile") 2>conftest.er1
7555 grep -v '^ *+' conftest.er1 >conftest.err
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } && {
7560 test -z "$ac_c_werror_flag" ||
7561 test ! -s conftest.err
7562 } && test -s conftest.$ac_objext; then
7563 eval "$as_ac_Header=yes"
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 eval "$as_ac_Header=no"
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 ac_res=`eval echo '${'$as_ac_Header'}'`
7574 { echo "$as_me:$LINENO: result: $ac_res" >&5
7575 echo "${ECHO_T}$ac_res" >&6; }
7576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7577 cat >>confdefs.h <<_ACEOF
7578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7590 # Check whether --with-libnl was given.
7591 if test "${with_libnl+set}" = set; then
7592 withval=$with_libnl; with_libnl=$withval
7596 if test x$with_libnl != xno ; then
7598 # Try libnl 2.x first.
7600 { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7601 echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7602 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_check_lib_save_LIBS=$LIBS
7607 cat >conftest.$ac_ext <<_ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7614 /* Override any GCC internal prototype to avoid an error.
7615 Use char because int might match the return type of a GCC
7616 builtin and then its argument prototype would still apply. */
7620 char nl_socket_alloc ();
7624 return nl_socket_alloc ();
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_link") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest$ac_exeext &&
7646 $as_test_x conftest$ac_exeext; then
7647 ac_cv_lib_nl_nl_socket_alloc=yes
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_cv_lib_nl_nl_socket_alloc=no
7655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7656 conftest$ac_exeext conftest.$ac_ext
7657 LIBS=$ac_check_lib_save_LIBS
7659 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7660 echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7661 if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7664 # Yes, we have libnl 2.x.
7666 LIBS="-lnl-genl -lnl $LIBS"
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_LIBNL 1
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_LIBNL_2_x 1
7681 # No, we don't; do we have libnl 1.x?
7683 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7684 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7685 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 ac_check_lib_save_LIBS=$LIBS
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7697 /* Override any GCC internal prototype to avoid an error.
7698 Use char because int might match the return type of a GCC
7699 builtin and then its argument prototype would still apply. */
7703 char nl_handle_alloc ();
7707 return nl_handle_alloc ();
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (ac_try="$ac_link"
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_link") 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_c_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest$ac_exeext &&
7729 $as_test_x conftest$ac_exeext; then
7730 ac_cv_lib_nl_nl_handle_alloc=yes
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_cv_lib_nl_nl_handle_alloc=no
7738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7739 conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7742 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7743 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7744 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7751 cat >>confdefs.h <<\_ACEOF
7752 #define HAVE_LIBNL 1
7759 # No, we don't have libnl at all.
7761 if test x$with_libnl = xyes ; then
7762 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7763 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7764 { (exit 1); exit 1; }; }
7775 for ac_header in linux/ethtool.h
7777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7790 $ac_includes_default
7791 #include <linux/types.h>
7794 #include <$ac_header>
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 eval "$as_ac_Header=no"
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 ac_res=`eval echo '${'$as_ac_Header'}'`
7824 { echo "$as_me:$LINENO: result: $ac_res" >&5
7825 echo "${ECHO_T}$ac_res" >&6; }
7826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827 cat >>confdefs.h <<_ACEOF
7828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7835 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7836 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7837 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7847 # include <linux/if_packet.h>
7851 struct tpacket_stats stats
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_lbl_tpacket_stats=yes
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_cv_lbl_tpacket_stats=no
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7885 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7886 if test $ac_cv_lbl_tpacket_stats = yes; then
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_TPACKET_STATS 1
7893 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7894 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7895 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7905 # include <sys/types.h>
7906 # include <linux/if_packet.h>
7910 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7944 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7945 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7946 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7949 cat >>confdefs.h <<\_ACEOF
7950 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7958 # Check whether we have the *BSD-style ioctls.
7961 for ac_header in net/if_media.h
7963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 ac_res=`eval echo '${'$as_ac_Header'}'`
7971 { echo "$as_me:$LINENO: result: $ac_res" >&5
7972 echo "${ECHO_T}$ac_res" >&6; }
7974 # Is the header compilable?
7975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7984 #include <$ac_header>
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest.$ac_objext; then
8003 ac_header_compiler=yes
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_header_compiler=no
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8013 echo "${ECHO_T}$ac_header_compiler" >&6; }
8015 # Is the header present?
8016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 #include <$ac_header>
8026 if { (ac_try="$ac_cpp conftest.$ac_ext"
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } >/dev/null && {
8039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8042 ac_header_preproc=yes
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 ac_header_preproc=no
8050 rm -f conftest.err conftest.$ac_ext
8051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6; }
8054 # So? What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8061 ac_header_preproc=yes
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 eval "$as_ac_Header=\$ac_header_preproc"
8086 ac_res=`eval echo '${'$as_ac_Header'}'`
8087 { echo "$as_me:$LINENO: result: $ac_res" >&5
8088 echo "${ECHO_T}$ac_res" >&6; }
8091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8092 cat >>confdefs.h <<_ACEOF
8093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8101 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
8102 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
8103 cat >conftest.$ac_ext <<_ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 #include <sys/socket.h>
8110 #include <sys/ioctl.h>
8112 #include <net/bpf.h>
8116 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then
8139 { echo "$as_me:$LINENO: result: yes" >&5
8140 echo "${ECHO_T}yes" >&6; }
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_ZEROCOPY_BPF 1
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 { echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6; }
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 # Check whether we have struct BPF_TIMEVAL.
8160 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
8161 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
8162 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8172 #include <sys/types.h>
8173 #include <sys/ioctl.h>
8174 #ifdef HAVE_SYS_IOCCOM_H
8175 #include <sys/ioccom.h>
8177 #include <net/bpf.h>
8180 typedef struct BPF_TIMEVAL ac__type_new_;
8184 if ((ac__type_new_ *) 0)
8186 if (sizeof (ac__type_new_))
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
8209 ac_cv_type_struct_BPF_TIMEVAL=yes
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 ac_cv_type_struct_BPF_TIMEVAL=no
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8220 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8221 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_STRUCT_BPF_TIMEVAL 1
8233 V_DEFS="$V_DEFS -DDAG_ONLY"
8237 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8241 V_DEFS="$V_DEFS -DSNF_ONLY"
8245 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8246 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8248 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8252 if test "$V_PCAP" = null
8255 # We can't capture, so we can't open any capture
8256 # devices, so we won't return any interfaces.
8260 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
8261 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8262 if test "${ac_cv_func_getifaddrs+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8273 #define getifaddrs innocuous_getifaddrs
8275 /* System header to define __stub macros and hopefully few prototypes,
8276 which can conflict with char getifaddrs (); below.
8277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8278 <limits.h> exists even on freestanding compilers. */
8281 # include <limits.h>
8283 # include <assert.h>
8288 /* Override any GCC internal prototype to avoid an error.
8289 Use char because int might match the return type of a GCC
8290 builtin and then its argument prototype would still apply. */
8295 /* The GNU C library defines this for functions which it implements
8296 to always fail with ENOSYS. Some functions are actually named
8297 something starting with __ and the normal name is an alias. */
8298 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8305 return getifaddrs ();
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_link") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest$ac_exeext &&
8327 $as_test_x conftest$ac_exeext; then
8328 ac_cv_func_getifaddrs=yes
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 ac_cv_func_getifaddrs=no
8336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8337 conftest$ac_exeext conftest.$ac_ext
8339 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8340 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8341 if test $ac_cv_func_getifaddrs = yes; then
8344 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
8345 # as well, just in case some platform is really weird.
8347 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8348 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8349 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8350 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8354 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8356 # Is the header compilable?
8357 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8358 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 #include <ifaddrs.h>
8368 rm -f conftest.$ac_objext
8369 if { (ac_try="$ac_compile"
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 ac_header_compiler=yes
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 ac_header_compiler=no
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8395 echo "${ECHO_T}$ac_header_compiler" >&6; }
8397 # Is the header present?
8398 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8399 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <ifaddrs.h>
8408 if { (ac_try="$ac_cpp conftest.$ac_ext"
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } >/dev/null && {
8421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8424 ac_header_preproc=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_header_preproc=no
8432 rm -f conftest.err conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6; }
8436 # So? What about this header?
8437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8439 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8442 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8443 ac_header_preproc=yes
8446 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8451 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
8453 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8455 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8457 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8461 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8462 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8463 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 ac_cv_header_ifaddrs_h=$ac_header_preproc
8468 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8469 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8472 if test $ac_cv_header_ifaddrs_h = yes; then
8475 # We have the header, so we use "getifaddrs()" to
8476 # get the list of interfaces.
8483 # We don't have the header - give up.
8484 # XXX - we could also fall back on some other
8485 # mechanism, but, for now, this'll catch this
8486 # problem so that we can at least try to figure
8487 # out something to do on systems with "getifaddrs()"
8488 # but without "ifaddrs.h", if there is something
8489 # we can do on those systems.
8491 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8492 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8493 { (exit 1); exit 1; }; }
8502 # Well, we don't have "getifaddrs()", so we have to use
8503 # some other mechanism; determine what that mechanism is.
8505 # The first thing we use is the type of capture mechanism,
8506 # which is somewhat of a proxy for the OS we're using.
8513 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 ac_res=`eval echo '${'$as_ac_Header'}'`
8523 { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8526 # Is the header compilable?
8527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #include <$ac_header>
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8547 grep -v '^ *+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && {
8552 test -z "$ac_c_werror_flag" ||
8553 test ! -s conftest.err
8554 } && test -s conftest.$ac_objext; then
8555 ac_header_compiler=yes
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8560 ac_header_compiler=no
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8565 echo "${ECHO_T}$ac_header_compiler" >&6; }
8567 # Is the header present?
8568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8570 cat >conftest.$ac_ext <<_ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 #include <$ac_header>
8578 if { (ac_try="$ac_cpp conftest.$ac_ext"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } >/dev/null && {
8591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8594 ac_header_preproc=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_header_preproc=no
8602 rm -f conftest.err conftest.$ac_ext
8603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8604 echo "${ECHO_T}$ac_header_preproc" >&6; }
8606 # So? What about this header?
8607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8613 ac_header_preproc=yes
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 eval "$as_ac_Header=\$ac_header_preproc"
8638 ac_res=`eval echo '${'$as_ac_Header'}'`
8639 { echo "$as_me:$LINENO: result: $ac_res" >&5
8640 echo "${ECHO_T}$ac_res" >&6; }
8643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644 cat >>confdefs.h <<_ACEOF
8645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8653 # This might be Solaris 8 or later, with
8654 # SIOCGLIFCONF, or it might be some other OS
8655 # or some older version of Solaris, with
8658 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8659 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8660 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 cat >conftest.$ac_ext <<_ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 #include <sys/param.h>
8670 #include <sys/file.h>
8671 #include <sys/ioctl.h>
8672 #include <sys/socket.h>
8673 #include <sys/sockio.h>
8677 ioctl(0, SIOCGLIFCONF, (char *)0);
8682 rm -f conftest.$ac_objext
8683 if { (ac_try="$ac_compile"
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8691 grep -v '^ *+' conftest.er1 >conftest.err
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 ac_cv_lbl_have_siocglifconf=yes
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_cv_lbl_have_siocglifconf=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8711 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8712 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8718 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8725 # Assume we just have SIOCGIFCONF.
8726 # (XXX - on at least later Linux kernels, there's
8727 # another mechanism, and we should be using that
8740 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8741 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8749 #include <sys/types.h>
8750 #include <sys/socket.h>
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_compile") 2>conftest.er1
8769 grep -v '^ *+' conftest.er1 >conftest.err
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest.$ac_objext; then
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 if test "x$have_socklen_t" = "xyes"; then
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_SOCKLEN_T 1
8793 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8794 echo "${ECHO_T}$have_socklen_t" >&6; }
8796 # Check whether --enable-ipv6 was given.
8797 if test "${enable_ipv6+set}" = set; then
8798 enableval=$enable_ipv6;
8800 enable_ipv6=ifavailable
8803 if test "$enable_ipv6" != "no"; then
8804 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8805 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8806 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8817 #define getaddrinfo innocuous_getaddrinfo
8819 /* System header to define __stub macros and hopefully few prototypes,
8820 which can conflict with char getaddrinfo (); below.
8821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822 <limits.h> exists even on freestanding compilers. */
8825 # include <limits.h>
8827 # include <assert.h>
8832 /* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8838 char getaddrinfo ();
8839 /* The GNU C library defines this for functions which it implements
8840 to always fail with ENOSYS. Some functions are actually named
8841 something starting with __ and the normal name is an alias. */
8842 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8849 return getaddrinfo ();
8854 rm -f conftest.$ac_objext conftest$ac_exeext
8855 if { (ac_try="$ac_link"
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_link") 2>conftest.er1
8863 grep -v '^ *+' conftest.er1 >conftest.err
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && {
8868 test -z "$ac_c_werror_flag" ||
8869 test ! -s conftest.err
8870 } && test -s conftest$ac_exeext &&
8871 $as_test_x conftest$ac_exeext; then
8872 ac_cv_func_getaddrinfo=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_cv_func_getaddrinfo=no
8880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8881 conftest$ac_exeext conftest.$ac_ext
8883 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8884 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8885 if test $ac_cv_func_getaddrinfo = yes; then
8888 cat >>confdefs.h <<\_ACEOF
8895 if test "$enable_ipv6" != "ifavailable"; then
8896 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8897 See \`config.log' for more details." >&5
8898 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8899 See \`config.log' for more details." >&2;}
8900 { (exit 1); exit 1; }; }
8907 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8908 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8909 # Check whether --enable-optimizer-dbg was given.
8910 if test "${enable_optimizer_dbg+set}" = set; then
8911 enableval=$enable_optimizer_dbg;
8914 if test "$enable_optimizer_dbg" = "yes"; then
8916 cat >>confdefs.h <<\_ACEOF
8921 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8922 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8924 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8925 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8926 # Check whether --enable-yydebug was given.
8927 if test "${enable_yydebug+set}" = set; then
8928 enableval=$enable_yydebug;
8931 if test "$enable_yydebug" = "yes"; then
8933 cat >>confdefs.h <<\_ACEOF
8938 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8939 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8941 # Check for Endace DAG card support.
8943 # Check whether --with-dag was given.
8944 if test "${with_dag+set}" = set; then
8946 if test "$withval" = no
8948 # User doesn't want DAG support.
8950 elif test "$withval" = yes
8952 # User wants DAG support but hasn't specified a directory.
8955 # User wants DAG support and has specified a directory, so use the provided value.
8963 # Use DAG API if present, otherwise don't
8971 # Check whether --with-dag-includes was given.
8972 if test "${with_dag_includes+set}" = set; then
8973 withval=$with_dag_includes;
8974 # User wants DAG support and has specified a header directory, so use the provided value.
8976 dag_include_dir=$withval
8982 # Check whether --with-dag-libraries was given.
8983 if test "${with_dag_libraries+set}" = set; then
8984 withval=$with_dag_libraries;
8985 # User wants DAG support and has specified a library directory, so use the provided value.
8987 dag_lib_dir=$withval
8995 # We support the DAG API if we're on Linux or BSD, or if we're
8996 # building a DAG-only libpcap.
9001 # If the user explicitly requested DAG, tell them it's not
9004 # If they expressed no preference, don't include it.
9006 if test $want_dag = yes; then
9007 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
9008 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
9009 { (exit 1); exit 1; }; }
9010 elif test $want_dag = yes; then
9016 ac_cv_lbl_dag_api=no
9017 if test "$want_dag" != no; then
9019 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
9020 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
9022 # If necessary, set default paths for DAG API headers and libraries.
9023 if test -z "$dag_root"; then
9027 if test -z "$dag_include_dir"; then
9028 dag_include_dir="$dag_root/include"
9031 if test -z "$dag_lib_dir"; then
9032 dag_lib_dir="$dag_root/lib"
9035 if test -z "$dag_tools_dir"; then
9036 dag_tools_dir="$dag_root/tools"
9039 if test -r $dag_include_dir/dagapi.h; then
9040 ac_cv_lbl_dag_api=yes
9042 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9043 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9046 if test $ac_cv_lbl_dag_api = yes; then
9047 V_INCLS="$V_INCLS -I$dag_include_dir"
9049 if test $V_PCAP != dag ; then
9053 # See if we can find a general version string.
9054 # Don't need to save and restore LIBS to prevent -ldag being
9055 # included if there's a found-action (arg 3).
9056 saved_ldflags=$LDFLAGS
9057 LDFLAGS="-L$dag_lib_dir"
9058 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
9059 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
9060 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 ac_check_lib_save_LIBS=$LIBS
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9078 char dag_attach_stream ();
9082 return dag_attach_stream ();
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (ac_try="$ac_link"
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_link") 2>conftest.er1
9096 grep -v '^ *+' conftest.er1 >conftest.err
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } && {
9101 test -z "$ac_c_werror_flag" ||
9102 test ! -s conftest.err
9103 } && test -s conftest$ac_exeext &&
9104 $as_test_x conftest$ac_exeext; then
9105 ac_cv_lib_dag_dag_attach_stream=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_cv_lib_dag_dag_attach_stream=no
9113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9114 conftest$ac_exeext conftest.$ac_ext
9115 LIBS=$ac_check_lib_save_LIBS
9117 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
9118 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9119 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9125 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
9126 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
9127 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 ac_check_lib_save_LIBS=$LIBS
9132 cat >conftest.$ac_ext <<_ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9145 char dag_get_erf_types ();
9149 return dag_get_erf_types ();
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_link") 2>conftest.er1
9163 grep -v '^ *+' conftest.er1 >conftest.err
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest$ac_exeext &&
9171 $as_test_x conftest$ac_exeext; then
9172 ac_cv_lib_dag_dag_get_erf_types=yes
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_cv_lib_dag_dag_get_erf_types=no
9180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9181 conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
9185 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9186 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9189 cat >>confdefs.h <<\_ACEOF
9190 #define HAVE_DAG_GET_ERF_TYPES 1
9195 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
9196 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
9197 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 ac_check_lib_save_LIBS=$LIBS
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9209 /* Override any GCC internal prototype to avoid an error.
9210 Use char because int might match the return type of a GCC
9211 builtin and then its argument prototype would still apply. */
9215 char dag_get_stream_erf_types ();
9219 return dag_get_stream_erf_types ();
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_link") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest$ac_exeext &&
9241 $as_test_x conftest$ac_exeext; then
9242 ac_cv_lib_dag_dag_get_stream_erf_types=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_cv_lib_dag_dag_get_stream_erf_types=no
9250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251 conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9255 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9256 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9259 cat >>confdefs.h <<\_ACEOF
9260 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9266 LDFLAGS=$saved_ldflags
9268 if test "$dag_streams" = 1; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_DAG_STREAMS_API 1
9275 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9277 { echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9278 echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9279 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 ac_check_lib_save_LIBS=$LIBS
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9297 char vdag_set_device_info ();
9301 return vdag_set_device_info ();
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_link") 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } && {
9320 test -z "$ac_c_werror_flag" ||
9321 test ! -s conftest.err
9322 } && test -s conftest$ac_exeext &&
9323 $as_test_x conftest$ac_exeext; then
9324 ac_cv_lib_vdag_vdag_set_device_info=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_lib_vdag_vdag_set_device_info=no
9332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333 conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9336 { echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9337 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9338 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9339 ac_dag_have_vdag="1"
9341 ac_dag_have_vdag="0"
9344 if test "$ac_dag_have_vdag" = 1; then
9346 cat >>confdefs.h <<\_ACEOF
9347 #define HAVE_DAG_VDAG 1
9350 LIBS="$LIBS -lpthread"
9355 cat >>confdefs.h <<\_ACEOF
9356 #define HAVE_DAG_API 1
9361 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9362 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9364 if test $ac_cv_lbl_dag_api = no; then
9365 { echo "$as_me:$LINENO: result: no" >&5
9366 echo "${ECHO_T}no" >&6; }
9367 if test "$want_dag" = yes; then
9368 # User wanted DAG support but we couldn't find it.
9369 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9370 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9371 { (exit 1); exit 1; }; }
9374 if test "$V_PCAP" = dag; then
9375 # User requested "dag" capture type but the DAG API wasn't
9377 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
9378 echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
9379 { (exit 1); exit 1; }; }
9382 { echo "$as_me:$LINENO: result: yes" >&5
9383 echo "${ECHO_T}yes" >&6; }
9387 # Check whether --with-septel was given.
9388 if test "${with_septel+set}" = set; then
9389 withval=$with_septel;
9390 if test "$withval" = no
9393 elif test "$withval" = yes
9399 septel_root=$withval
9405 # Use Septel API if present, otherwise don't
9407 want_septel=ifpresent
9408 septel_root=./../septel
9412 ac_cv_lbl_septel_api=no
9416 # We support the Septel API if we're on Linux, or if we're building
9417 # a Septel-only libpcap.
9422 # If the user explicitly requested Septel, tell them it's not
9425 # If they expressed no preference, don't include it.
9427 if test $want_septel = yes; then
9428 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9429 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9430 { (exit 1); exit 1; }; }
9431 elif test $want_septel = yes; then
9437 if test "$with_septel" != no; then
9438 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9439 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9441 if test -z "$septel_root"; then
9442 septel_root=$srcdir/../septel
9445 septel_tools_dir="$septel_root"
9446 septel_include_dir="$septel_root/INC"
9448 ac_cv_lbl_septel_api=no
9449 if test -r "$septel_include_dir/msg.h"; then
9450 V_INCLS="$V_INCLS -I$septel_include_dir"
9451 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9452 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9454 if test "$V_PCAP" != septel ; then
9455 SSRC="pcap-septel.c"
9457 ac_cv_lbl_septel_api=yes
9460 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9461 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9462 if test $ac_cv_lbl_septel_api = no; then
9463 if test "$want_septel" = yes; then
9464 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9465 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9466 { (exit 1); exit 1; }; }
9470 cat >>confdefs.h <<\_ACEOF
9471 #define HAVE_SEPTEL_API 1
9477 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9478 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9479 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9480 { (exit 1); exit 1; }; }
9483 # Check for Myricom SNF support.
9485 # Check whether --with-snf was given.
9486 if test "${with_snf+set}" = set; then
9488 if test "$withval" = no
9490 # User explicitly doesn't want SNF
9492 elif test "$withval" = yes
9494 # User wants SNF support but hasn't specific a directory.
9497 # User wants SNF support with a specified directory.
9505 # Use Sniffer API if present, otherwise don't
9513 # Check whether --with-snf-includes was given.
9514 if test "${with_snf_includes+set}" = set; then
9515 withval=$with_snf_includes;
9516 # User wants SNF with specific header directory
9518 snf_include_dir=$withval
9524 # Check whether --with-snf-libraries was given.
9525 if test "${with_snf_libraries+set}" = set; then
9526 withval=$with_snf_libraries;
9527 # User wants SNF with specific lib directory
9529 snf_lib_dir=$withval
9537 # We support the Sniffer API if we're on BSD, Linux, or if we're
9538 # building a Sniffer-only libpcap.
9543 # If the user explicitly requested Sniffer, tell them it's not
9546 # If they expressed no preference, don't include it.
9548 if test $want_snf = yes; then
9549 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9550 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9551 { (exit 1); exit 1; }; }
9552 elif test $want_snf = yes; then
9558 ac_cv_lbl_snf_api=no
9559 if test "$with_snf" != no; then
9561 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9562 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9564 if test -z "$snf_root"; then
9568 if test -z "$snf_include_dir"; then
9569 snf_include_dir="$snf_root/include"
9572 if test -z "$snf_lib_dir"; then
9573 snf_lib_dir="$snf_root/lib"
9576 if test -f "$snf_include_dir/snf.h"; then
9577 ac_cv_lbl_snf_api=yes
9579 { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9580 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9582 if test $ac_cv_lbl_snf_api = no; then
9583 if test "$want_snf" = yes; then
9584 { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9585 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9586 { (exit 1); exit 1; }; }
9589 saved_ldflags=$LDFLAGS
9590 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9591 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9592 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9593 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 ac_check_lib_save_LIBS=$LIBS
9598 cat >conftest.$ac_ext <<_ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9605 /* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_link") 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest$ac_exeext &&
9637 $as_test_x conftest$ac_exeext; then
9638 ac_cv_lib_snf_snf_init=yes
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9643 ac_cv_lib_snf_snf_init=no
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9650 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9651 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9652 if test $ac_cv_lib_snf_snf_init = yes; then
9653 ac_cv_lbl_snf_api="yes"
9655 ac_cv_lbl_snf_api="no"
9658 LDFLAGS="$saved_ldflags"
9660 if test $ac_cv_lbl_snf_api = no; then
9661 if test "$want_snf" = yes; then
9662 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9663 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9664 { (exit 1); exit 1; }; }
9667 V_INCLS="$V_INCLS -I$snf_include_dir"
9669 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9670 if test "$V_PCAP" != snf ; then
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE_SNF_API 1
9682 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9683 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9684 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9685 { (exit 1); exit 1; }; }
9689 # Check whether --with-flex was given.
9690 if test "${with_flex+set}" = set; then
9695 # Check whether --with-bison was given.
9696 if test "${with_bison+set}" = set; then
9697 withval=$with_bison;
9700 if test "$with_flex" = no ; then
9705 # Extract the first word of "$ac_prog", so it can be a program name with args.
9706 set dummy $ac_prog; ac_word=$2
9707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9709 if test "${ac_cv_prog_V_LEX+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 if test -n "$V_LEX"; then
9713 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9722 ac_cv_prog_V_LEX="$ac_prog"
9723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 V_LEX=$ac_cv_prog_V_LEX
9733 if test -n "$V_LEX"; then
9734 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9735 echo "${ECHO_T}$V_LEX" >&6; }
9737 { echo "$as_me:$LINENO: result: no" >&5
9738 echo "${ECHO_T}no" >&6; }
9742 test -n "$V_LEX" && break
9744 test -n "$V_LEX" || V_LEX="lex"
9747 if test "$V_LEX" = flex ; then
9748 # The -V flag was added in 2.4
9749 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9750 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9751 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 if flex -V >/dev/null 2>&1; then
9755 ac_cv_lbl_flex_v24=yes
9757 ac_cv_lbl_flex_v24=no
9761 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9762 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9763 if test $ac_cv_lbl_flex_v24 = no ; then
9764 s="2.4 or higher required"
9765 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9766 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9770 if test "$with_bison" = no ; then
9773 for ac_prog in bison
9775 # Extract the first word of "$ac_prog", so it can be a program name with args.
9776 set dummy $ac_prog; ac_word=$2
9777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9779 if test "${ac_cv_prog_V_YACC+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 if test -n "$V_YACC"; then
9783 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792 ac_cv_prog_V_YACC="$ac_prog"
9793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 V_YACC=$ac_cv_prog_V_YACC
9803 if test -n "$V_YACC"; then
9804 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9805 echo "${ECHO_T}$V_YACC" >&6; }
9807 { echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6; }
9812 test -n "$V_YACC" && break
9814 test -n "$V_YACC" || V_YACC="yacc"
9817 if test "$V_YACC" = bison ; then
9820 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9821 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9822 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9826 if test "$V_LEX" = flex -a -n "pcap_" ; then
9827 V_LEX="$V_LEX -Ppcap_"
9828 V_YACC="$V_YACC -p pcap_"
9830 if test "$V_LEX" = lex ; then
9831 # Some versions of lex can't handle the definitions section of scanner.l .
9832 # Try lexing it and complain if it can't deal.
9833 { echo "$as_me:$LINENO: checking for capable lex" >&5
9834 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9835 if test "${tcpdump_cv_capable_lex+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 if lex -t scanner.l > /dev/null 2>&1; then
9839 tcpdump_cv_capable_lex=yes
9841 tcpdump_cv_capable_lex=insufficient
9844 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9845 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9846 if test $tcpdump_cv_capable_lex = insufficient ; then
9847 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9848 libpcap. flex is a lex replacement that has many advantages, including
9849 being able to compile libpcap. For more information, see
9850 http://www.gnu.org/software/flex/flex.html ." >&5
9851 echo "$as_me: error: Your operating system's lex is insufficient to compile
9852 libpcap. flex is a lex replacement that has many advantages, including
9853 being able to compile libpcap. For more information, see
9854 http://www.gnu.org/software/flex/flex.html ." >&2;}
9855 { (exit 1); exit 1; }; }
9860 # Assume, by default, no support for shared libraries and V7/BSD convention
9861 # for man pages (file formats in section 5, miscellaneous info in section 7).
9862 # Individual cases can override this.
9871 cat >>confdefs.h <<\_ACEOF
9877 # AIX makes it fun to build shared and static libraries,
9878 # because they're *both* ".a" archive libraries. We
9879 # build the static library for the benefit of the traditional
9880 # scheme of building libpcap and tcpdump in subdirectories of
9881 # the same directory, with tcpdump statically linked with the
9882 # libpcap in question, but we also build a shared library as
9883 # "libpcap.shareda" and install *it*, rather than the static
9884 # library, as "libpcap.a".
9892 # If we're using DLPI, applications will need to
9893 # use /lib/pse.exp if present, as we use the
9896 pseexe="/lib/pse.exp"
9897 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9898 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9899 if test -f $pseexe ; then
9900 { echo "$as_me:$LINENO: result: yes" >&5
9901 echo "${ECHO_T}yes" >&6; }
9908 # If we're using BPF, we need "-lodm" and "-lcfg", as
9909 # we use them to load the BPF module.
9918 V_CCOPT="$V_CCOPT -fno-common"
9919 # Check whether --enable-universal was given.
9920 if test "${enable_universal+set}" = set; then
9921 enableval=$enable_universal;
9924 if test "$enable_universal" != "no"; then
9929 # Leopard. Build for 32-bit PowerPC, 64-bit
9930 # PowerPC, x86, and x86-64, with 32-bit PowerPC
9931 # first. (That's what Apple does.)
9933 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9934 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9939 # Snow Leopard. Build for x86-64, x86, and
9940 # 32-bit PowerPC, with x86-64 first. (That's
9941 # what Apple does, even though Snow Leopard
9942 # doesn't run on PPC, so PPC libpcap runs under
9943 # Rosetta, and Rosetta doesn't support BPF
9944 # ioctls, so PPC programs can't do live
9947 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
9948 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
9953 # Lion. Build for x86-64 and x86, with x86-64
9954 # first. (That's probably what Apple does,
9955 # given that Rosetta is gone.)
9957 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
9958 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
9966 cat >>confdefs.h <<\_ACEOF
9967 #define HAVE_HPUX9 1
9972 # Use System V conventions for man pages.
9981 # Use System V conventions for man pages.
9990 # Use System V conventions for man pages.
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_HPUX10_20_OR_LATER 1
10002 if test "`uname -m`" = "ia64"; then
10009 # "-b" builds a shared library; "+h" sets the soname.
10015 # Use System V conventions for man pages.
10023 # Use System V conventions for man pages.
10029 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
10033 # Compiler assumed to be GCC; run-time linker may require a -R
10036 if test "$libdir" != "/usr/lib"; then
10037 V_RFLAGS=-Wl,-R$libdir
10045 # Use System V conventions for man pages.
10052 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
10053 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
10054 if test "${ac_cv_cc_sinix_defined+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10072 rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_compile") 2>conftest.er1
10081 grep -v '^ *+' conftest.er1 >conftest.err
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } && {
10086 test -z "$ac_c_werror_flag" ||
10087 test ! -s conftest.err
10088 } && test -s conftest.$ac_objext; then
10089 ac_cv_cc_sinix_defined=yes
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ac_cv_cc_sinix_defined=no
10097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
10101 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10102 if test $ac_cv_cc_sinix_defined = no ; then
10104 cat >>confdefs.h <<\_ACEOF
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_SOLARIS 1
10120 # Use System V conventions for man pages.
10127 if test -n "$ac_tool_prefix"; then
10128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10132 if test "${ac_cv_prog_RANLIB+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 if test -n "$RANLIB"; then
10136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 RANLIB=$ac_cv_prog_RANLIB
10156 if test -n "$RANLIB"; then
10157 { echo "$as_me:$LINENO: result: $RANLIB" >&5
10158 echo "${ECHO_T}$RANLIB" >&6; }
10160 { echo "$as_me:$LINENO: result: no" >&5
10161 echo "${ECHO_T}no" >&6; }
10166 if test -z "$ac_cv_prog_RANLIB"; then
10167 ac_ct_RANLIB=$RANLIB
10168 # Extract the first word of "ranlib", so it can be a program name with args.
10169 set dummy ranlib; ac_word=$2
10170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 if test -n "$ac_ct_RANLIB"; then
10176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_prog_ac_ct_RANLIB="ranlib"
10186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10196 if test -n "$ac_ct_RANLIB"; then
10197 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10198 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10200 { echo "$as_me:$LINENO: result: no" >&5
10201 echo "${ECHO_T}no" >&6; }
10204 if test "x$ac_ct_RANLIB" = x; then
10207 case $cross_compiling:$ac_tool_warned in
10209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10210 whose name does not start with the host triplet. If you think this
10211 configuration is useful to you, please write to autoconf@gnu.org." >&5
10212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10213 whose name does not start with the host triplet. If you think this
10214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10215 ac_tool_warned=yes ;;
10217 RANLIB=$ac_ct_RANLIB
10220 RANLIB="$ac_cv_prog_RANLIB"
10223 if test -n "$ac_tool_prefix"; then
10224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10225 set dummy ${ac_tool_prefix}ar; ac_word=$2
10226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10228 if test "${ac_cv_prog_AR+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 if test -n "$AR"; then
10232 ac_cv_prog_AR="$AR" # Let the user override the test.
10234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235 for as_dir in $PATH
10238 test -z "$as_dir" && as_dir=.
10239 for ac_exec_ext in '' $ac_executable_extensions; do
10240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10241 ac_cv_prog_AR="${ac_tool_prefix}ar"
10242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 if test -n "$AR"; then
10253 { echo "$as_me:$LINENO: result: $AR" >&5
10254 echo "${ECHO_T}$AR" >&6; }
10256 { echo "$as_me:$LINENO: result: no" >&5
10257 echo "${ECHO_T}no" >&6; }
10262 if test -z "$ac_cv_prog_AR"; then
10264 # Extract the first word of "ar", so it can be a program name with args.
10265 set dummy ar; ac_word=$2
10266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10268 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 if test -n "$ac_ct_AR"; then
10272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281 ac_cv_prog_ac_ct_AR="ar"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10292 if test -n "$ac_ct_AR"; then
10293 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10294 echo "${ECHO_T}$ac_ct_AR" >&6; }
10296 { echo "$as_me:$LINENO: result: no" >&5
10297 echo "${ECHO_T}no" >&6; }
10300 if test "x$ac_ct_AR" = x; then
10303 case $cross_compiling:$ac_tool_warned in
10305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10306 whose name does not start with the host triplet. If you think this
10307 configuration is useful to you, please write to autoconf@gnu.org." >&5
10308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10309 whose name does not start with the host triplet. If you think this
10310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10311 ac_tool_warned=yes ;;
10316 AR="$ac_cv_prog_AR"
10321 if test "${LBL_CFLAGS+set}" = set; then
10322 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10324 if test -f .devel ; then
10325 if test "$GCC" = yes ; then
10326 if test "${LBL_CFLAGS+set}" != set; then
10327 if test "$ac_cv_prog_cc_g" = yes ; then
10328 V_CCOPT="-g $V_CCOPT"
10330 V_CCOPT="$V_CCOPT -Wall"
10331 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10332 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10339 V_CCOPT="$V_CCOPT -n32"
10346 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10347 name="lbl/os-$os.h"
10348 if test -f $name ; then
10349 ln -s $name os-proto.h
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_OS_PROTO_H 1
10356 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10357 echo "$as_me: WARNING: can't find $name" >&2;}
10361 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10362 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10363 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 # include <sys/types.h>
10374 # include <sys/socket.h>
10378 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10383 rm -f conftest.$ac_objext
10384 if { (ac_try="$ac_compile"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_compile") 2>conftest.er1
10392 grep -v '^ *+' conftest.er1 >conftest.err
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest.$ac_objext; then
10400 ac_cv_lbl_sockaddr_has_sa_len=yes
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10405 ac_cv_lbl_sockaddr_has_sa_len=no
10408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10412 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10413 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10415 cat >>confdefs.h <<\_ACEOF
10416 #define HAVE_SOCKADDR_SA_LEN 1
10421 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10422 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10423 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 cat >conftest.$ac_ext <<_ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10433 # include <sys/types.h>
10434 # include <sys/socket.h>
10438 u_int i = sizeof (struct sockaddr_storage)
10443 rm -f conftest.$ac_objext
10444 if { (ac_try="$ac_compile"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_compile") 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest.$ac_objext; then
10460 ac_cv_lbl_has_sockaddr_storage=yes
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_cv_lbl_has_sockaddr_storage=no
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10472 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10473 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_SOCKADDR_STORAGE 1
10481 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10482 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10483 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10493 # include <sys/types.h>
10494 # include <sys/dlpi.h>
10495 # include <sys/dlpi_ext.h>
10499 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10504 rm -f conftest.$ac_objext
10505 if { (ac_try="$ac_compile"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_compile") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest.$ac_objext; then
10521 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10533 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10534 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10542 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10543 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10544 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 case "$host_cpu" in
10550 # These are CPU types where:
10552 # the CPU faults on an unaligned access, but at least some
10553 # OSes that support that CPU catch the fault and simulate
10554 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10555 # the simulation is slow, so we don't want to use it;
10557 # the CPU, I infer (from the old
10559 # XXX: should also check that they don't do weird things (like on arm)
10561 # comment) doesn't fault on unaligned accesses, but doesn't
10562 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10564 # for whatever reason, the test program doesn't work
10565 # (this has been claimed to be the case for several of those
10566 # CPUs - I don't know what the problem is; the problem
10567 # was reported as "the test program dumps core" for SuperH,
10568 # but that's what the test program is *supposed* to do -
10569 # it dumps core before it writes anything, so the test
10570 # for an empty output file should find an empty output
10571 # file and conclude that unaligned accesses don't work).
10573 # This run-time test won't work if you're cross-compiling, so
10574 # in order to support cross-compiling for a particular CPU,
10575 # we have to wire in the list of CPU types anyway, as far as
10576 # I know, so perhaps we should just have a set of CPUs on
10577 # which we know it doesn't work, a set of CPUs on which we
10578 # know it does work, and have the script just fail on other
10579 # cpu types and update it when such a failure occurs.
10581 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10582 ac_cv_lbl_unaligned_fail=yes
10586 cat >conftest.c <<EOF
10587 # include <sys/types.h>
10588 # include <sys/wait.h>
10589 # include <stdio.h>
10590 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10595 /* avoid "core dumped" message */
10601 pid = waitpid(pid, &status, 0);
10604 exit(!WIFEXITED(status));
10607 i = *(unsigned int *)&a[1];
10612 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10613 conftest.c $LIBS >/dev/null 2>&1
10614 if test ! -x conftest ; then
10615 ac_cv_lbl_unaligned_fail=yes
10617 ./conftest >conftest.out
10618 if test ! -s conftest.out ; then
10619 ac_cv_lbl_unaligned_fail=yes
10621 ac_cv_lbl_unaligned_fail=no
10624 rm -f -r conftest* core core.conftest
10629 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10630 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10631 if test $ac_cv_lbl_unaligned_fail = yes ; then
10633 cat >>confdefs.h <<\_ACEOF
10634 #define LBL_ALIGN 1
10640 # Makefile.in includes rules to generate version.h, so we assume
10641 # that it will be generated if autoconf is used.
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_VERSION_H 1
10650 ln -s ${srcdir}/bpf/net net
10670 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10671 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10675 cat >>confdefs.h <<\_ACEOF
10676 #define PCAP_SUPPORT_USB 1
10679 USB_SRC=pcap-usb-linux.c
10680 { echo "$as_me:$LINENO: result: yes" >&5
10681 echo "${ECHO_T}yes" >&6; }
10682 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10683 if test $? -ne 0 ; then
10684 ac_usb_dev_name="usbmon"
10687 cat >>confdefs.h <<_ACEOF
10688 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10691 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10692 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10694 # Do we have a version of <linux/compiler.h> available?
10695 # If so, we might need it for <linux/usbdevice_fs.h>.
10698 for ac_header in linux/compiler.h
10700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 ac_res=`eval echo '${'$as_ac_Header'}'`
10708 { echo "$as_me:$LINENO: result: $ac_res" >&5
10709 echo "${ECHO_T}$ac_res" >&6; }
10711 # Is the header compilable?
10712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10714 cat >conftest.$ac_ext <<_ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 $ac_includes_default
10721 #include <$ac_header>
10723 rm -f conftest.$ac_objext
10724 if { (ac_try="$ac_compile"
10725 case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_compile") 2>conftest.er1
10732 grep -v '^ *+' conftest.er1 >conftest.err
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && {
10737 test -z "$ac_c_werror_flag" ||
10738 test ! -s conftest.err
10739 } && test -s conftest.$ac_objext; then
10740 ac_header_compiler=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev/null && {
10776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10779 ac_header_preproc=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_header_preproc=no
10787 rm -f conftest.err conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6; }
10791 # So? What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 eval "$as_ac_Header=\$ac_header_preproc"
10823 ac_res=`eval echo '${'$as_ac_Header'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10829 cat >>confdefs.h <<_ACEOF
10830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 if test "$ac_cv_header_linux_compiler_h" = yes; then
10839 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10842 for ac_header in linux/usbdevice_fs.h
10844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 cat >conftest.$ac_ext <<_ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include <linux/compiler.h>
10858 #include <$ac_header>
10860 rm -f conftest.$ac_objext
10861 if { (ac_try="$ac_compile"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_compile") 2>conftest.er1
10869 grep -v '^ *+' conftest.er1 >conftest.err
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && {
10874 test -z "$ac_c_werror_flag" ||
10875 test ! -s conftest.err
10876 } && test -s conftest.$ac_objext; then
10877 eval "$as_ac_Header=yes"
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10882 eval "$as_ac_Header=no"
10885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 ac_res=`eval echo '${'$as_ac_Header'}'`
10888 { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891 cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 for ac_header in linux/usbdevice_fs.h
10903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 ac_res=`eval echo '${'$as_ac_Header'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10914 # Is the header compilable?
10915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 $ac_includes_default
10924 #include <$ac_header>
10926 rm -f conftest.$ac_objext
10927 if { (ac_try="$ac_compile"
10928 case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_compile") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } && {
10940 test -z "$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10942 } && test -s conftest.$ac_objext; then
10943 ac_header_compiler=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_header_compiler=no
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10953 echo "${ECHO_T}$ac_header_compiler" >&6; }
10955 # Is the header present?
10956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 #include <$ac_header>
10966 if { (ac_try="$ac_cpp conftest.$ac_ext"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10974 grep -v '^ *+' conftest.er1 >conftest.err
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } >/dev/null && {
10979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10980 test ! -s conftest.err
10982 ac_header_preproc=yes
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10987 ac_header_preproc=no
10990 rm -f conftest.err conftest.$ac_ext
10991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10992 echo "${ECHO_T}$ac_header_preproc" >&6; }
10994 # So? What about this header?
10995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11001 ac_header_preproc=yes
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 eval "$as_ac_Header=\$ac_header_preproc"
11026 ac_res=`eval echo '${'$as_ac_Header'}'`
11027 { echo "$as_me:$LINENO: result: $ac_res" >&5
11028 echo "${ECHO_T}$ac_res" >&6; }
11031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11032 cat >>confdefs.h <<_ACEOF
11033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11041 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11043 # OK, does it define bRequestType? Older versions of the kernel
11044 # define fields with names like "requesttype, "request", and
11045 # "value", rather than "bRequestType", "bRequest", and
11048 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11049 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11050 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 cat >conftest.$ac_ext <<_ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11060 $ac_includes_default
11061 #ifdef HAVE_SYS_BITYPES_H
11062 #include <sys/bitypes.h>
11064 #ifdef HAVE_LINUX_COMPILER_H
11065 #include <linux/compiler.h>
11067 #include <linux/usbdevice_fs.h>
11071 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11076 rm -f conftest.$ac_objext
11077 if { (ac_try="$ac_compile"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_compile") 2>conftest.er1
11085 grep -v '^ *+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } && {
11090 test -z "$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 } && test -s conftest.$ac_objext; then
11093 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11105 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11106 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11116 { echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6; }
11123 { echo "$as_me:$LINENO: checking whether the platform could support netfilter sniffing" >&5
11124 echo $ECHO_N "checking whether the platform could support netfilter sniffing... $ECHO_C" >&6; }
11127 { echo "$as_me:$LINENO: result: yes" >&5
11128 echo "${ECHO_T}yes" >&6; }
11130 # Life's too short to deal with trying to get this to compile
11131 # if you don't get the right types defined with
11132 # __KERNEL_STRICT_NAMES getting defined by some other include.
11134 # Check whether the includes Just Work. If not, don't turn on
11135 # netfilter support.
11137 { echo "$as_me:$LINENO: checking whether we can compile the netfilter support" >&5
11138 echo $ECHO_N "checking whether we can compile the netfilter support... $ECHO_C" >&6; }
11139 if test "${ac_cv_netfilter_can_compile+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 $ac_includes_default
11150 #include <sys/socket.h>
11151 #include <linux/types.h>
11153 #include <linux/netlink.h>
11154 #include <linux/netfilter/nfnetlink.h>
11155 #include <linux/netfilter/nfnetlink_log.h>
11164 rm -f conftest.$ac_objext
11165 if { (ac_try="$ac_compile"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_compile") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest.$ac_objext; then
11181 ac_cv_netfilter_can_compile=yes
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11186 ac_cv_netfilter_can_compile=no
11189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result: $ac_cv_netfilter_can_compile" >&5
11193 echo "${ECHO_T}$ac_cv_netfilter_can_compile" >&6; }
11194 if test $ac_cv_netfilter_can_compile = yes ; then
11196 cat >>confdefs.h <<\_ACEOF
11197 #define PCAP_SUPPORT_NETFILTER 1
11200 NETFILTER_SRC=pcap-netfilter-linux.c
11204 { echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6; }
11211 # Check whether --enable-bluetooth was given.
11212 if test "${enable_bluetooth+set}" = set; then
11213 enableval=$enable_bluetooth;
11215 enable_bluetooth=yes
11219 if test "x$enable_bluetooth" != "xno" ; then
11222 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11223 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11224 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11225 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11229 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11231 # Is the header compilable?
11232 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11233 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 $ac_includes_default
11241 #include <bluetooth/bluetooth.h>
11243 rm -f conftest.$ac_objext
11244 if { (ac_try="$ac_compile"
11245 case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_compile") 2>conftest.er1
11252 grep -v '^ *+' conftest.er1 >conftest.err
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && {
11257 test -z "$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest.$ac_objext; then
11260 ac_header_compiler=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_header_compiler=no
11268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11270 echo "${ECHO_T}$ac_header_compiler" >&6; }
11272 # Is the header present?
11273 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11274 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <bluetooth/bluetooth.h>
11283 if { (ac_try="$ac_cpp conftest.$ac_ext"
11284 case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1 >conftest.err
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } >/dev/null && {
11296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11299 ac_header_preproc=yes
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 ac_header_preproc=no
11307 rm -f conftest.err conftest.$ac_ext
11308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6; }
11311 # So? What about this header?
11312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11317 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11318 ac_header_preproc=yes
11321 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11322 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
11324 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11326 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
11328 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11330 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11332 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11336 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11337 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11338 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11343 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11344 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11347 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define PCAP_SUPPORT_BT 1
11354 BT_SRC=pcap-bt-linux.c
11355 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11356 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11359 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11360 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11367 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11368 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11375 # Check whether --enable-can was given.
11376 if test "${enable_can+set}" = set; then
11377 enableval=$enable_can;
11383 if test "x$enable_can" != "xno" ; then
11386 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11387 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11388 if test "${ac_cv_header_linux_can_h+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 cat >conftest.$ac_ext <<_ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 #include <sys/socket.h>
11400 #include <linux/can.h>
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 ac_cv_header_linux_can_h=yes
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_cv_header_linux_can_h=no
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11430 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11431 if test $ac_cv_header_linux_can_h = yes; then
11433 cat >>confdefs.h <<\_ACEOF
11434 #define PCAP_SUPPORT_CAN 1
11437 CAN_SRC=pcap-can-linux.c
11438 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11439 echo "$as_me: CAN sniffing is supported" >&6;}
11441 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11442 echo "$as_me: CAN sniffing is not supported" >&6;}
11448 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11449 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11459 for ac_header in linux/net_tstamp.h
11461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 ac_res=`eval echo '${'$as_ac_Header'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11472 # Is the header compilable?
11473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11475 cat >conftest.$ac_ext <<_ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 $ac_includes_default
11482 #include <$ac_header>
11484 rm -f conftest.$ac_objext
11485 if { (ac_try="$ac_compile"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_compile") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && {
11498 test -z "$ac_c_werror_flag" ||
11499 test ! -s conftest.err
11500 } && test -s conftest.$ac_objext; then
11501 ac_header_compiler=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_header_compiler=no
11509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11511 echo "${ECHO_T}$ac_header_compiler" >&6; }
11513 # Is the header present?
11514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11516 cat >conftest.$ac_ext <<_ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 #include <$ac_header>
11524 if { (ac_try="$ac_cpp conftest.$ac_ext"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11532 grep -v '^ *+' conftest.er1 >conftest.err
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } >/dev/null && {
11537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11538 test ! -s conftest.err
11540 ac_header_preproc=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_preproc=no
11548 rm -f conftest.err conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6; }
11552 # So? What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559 ac_header_preproc=yes
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 eval "$as_ac_Header=\$ac_header_preproc"
11584 ac_res=`eval echo '${'$as_ac_Header'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11590 cat >>confdefs.h <<_ACEOF
11591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11600 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11601 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11605 # Find a good install program. We prefer a C program (faster),
11606 # so one script is as good as another. But avoid the broken or
11607 # incompatible versions:
11608 # SysV /etc/install, /usr/sbin/install
11609 # SunOS /usr/etc/install
11610 # IRIX /sbin/install
11612 # AmigaOS /C/install, which installs bootblocks on floppy discs
11613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11616 # OS/2's system install, which has a completely different semantic
11617 # ./install, which can be erroneously created by make from ./install.sh.
11618 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11619 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11620 if test -z "$INSTALL"; then
11621 if test "${ac_cv_path_install+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11628 test -z "$as_dir" && as_dir=.
11629 # Account for people who put trailing slashes in PATH elements.
11631 ./ | .// | /cC/* | \
11632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11633 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11636 # OSF1 and SCO ODT 3.0 have their own names for install.
11637 # Don't use installbsd from OSF since it installs stuff as root
11639 for ac_prog in ginstall scoinst install; do
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11642 if test $ac_prog = install &&
11643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11644 # AIX install. It has an incompatible calling convention.
11646 elif test $ac_prog = install &&
11647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11648 # program-specific install script used by HP pwplus--don't use.
11651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11664 if test "${ac_cv_path_install+set}" = set; then
11665 INSTALL=$ac_cv_path_install
11667 # As a last resort, use the slow shell script. Don't cache a
11668 # value for INSTALL within a source directory, because that will
11669 # break other packages using the cache if that directory is
11670 # removed, or if the value is a relative name.
11671 INSTALL=$ac_install_sh
11674 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11675 echo "${ECHO_T}$INSTALL" >&6; }
11677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11678 # It thinks the first close brace ends the variable substitution.
11679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11686 ac_config_headers="$ac_config_headers config.h"
11689 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
11691 cat >confcache <<\_ACEOF
11692 # This file is a shell script that caches the results of configure
11693 # tests run on this system so they can be shared between configure
11694 # scripts and configure runs, see configure's option --config-cache.
11695 # It is not useful on other systems. If it contains results you don't
11696 # want to keep, you may remove or edit it.
11698 # config.status only pays attention to the cache file if you give it
11699 # the --recheck option to rerun configure.
11701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11703 # following values.
11707 # The following way of writing the cache mishandles newlines in values,
11708 # but we know of no workaround that is simple, portable, and efficient.
11709 # So, we kill variables containing newlines.
11710 # Ultrix sh set writes to stderr and can't be redirected directly,
11711 # and sets the high bit in the cache file unless we assign to the vars.
11713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11714 eval ac_val=\$$ac_var
11718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11722 _ | IFS | as_nl) ;; #(
11723 *) $as_unset $ac_var ;;
11729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11730 *${as_nl}ac_space=\ *)
11731 # `set' does not quote correctly, so add quotes (double-quote
11732 # substitution turns \\\\ into \\, and sed turns \\ into \).
11735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11738 # `set' quotes correctly as required by POSIX, so do not add quotes.
11739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11753 if test -w "$cache_file"; then
11754 test "x$cache_file" != "x/dev/null" &&
11755 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11756 echo "$as_me: updating cache $cache_file" >&6;}
11757 cat confcache >$cache_file
11759 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11760 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11766 # Let make expand exec_prefix.
11767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11769 DEFS=-DHAVE_CONFIG_H
11773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11774 # 1. Remove the extension, and $U if already installed.
11775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11776 ac_i=`echo "$ac_i" | sed "$ac_script"`
11777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11778 # will be set to the directory where LIBOBJS objects are built.
11779 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11780 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11782 LIBOBJS=$ac_libobjs
11784 LTLIBOBJS=$ac_ltlibobjs
11788 : ${CONFIG_STATUS=./config.status}
11789 ac_clean_files_save=$ac_clean_files
11790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11792 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11793 cat >$CONFIG_STATUS <<_ACEOF
11795 # Generated by $as_me.
11796 # Run this file to recreate the current configuration.
11797 # Compiler output produced by configure, useful for debugging
11798 # configure, is in config.log if it exists.
11801 ac_cs_recheck=false
11803 SHELL=\${CONFIG_SHELL-$SHELL}
11806 cat >>$CONFIG_STATUS <<\_ACEOF
11807 ## --------------------- ##
11808 ## M4sh Initialization. ##
11809 ## --------------------- ##
11811 # Be more Bourne compatible
11812 DUALCASE=1; export DUALCASE # for MKS sh
11813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11816 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11817 # is contrary to our usage. Disable this feature.
11818 alias -g '${1+"$@"}'='"$@"'
11819 setopt NO_GLOB_SUBST
11821 case `(set -o) 2>/dev/null` in
11822 *posix*) set -o posix ;;
11831 # Avoid depending upon Character Ranges.
11832 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11833 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11834 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11835 as_cr_digits='0123456789'
11836 as_cr_alnum=$as_cr_Letters$as_cr_digits
11838 # The user is always right.
11839 if test "${PATH_SEPARATOR+set}" != set; then
11840 echo "#! /bin/sh" >conf$$.sh
11841 echo "exit 0" >>conf$$.sh
11843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11851 # Support unset when possible.
11852 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11860 # We need space, tab and new line, in precisely that order. Quoting is
11861 # there to prevent editors from complaining about space-tab.
11862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11863 # splitting by setting IFS to empty value.)
11868 # Find who we are. Look in the path if we contain no directory separator.
11870 *[\\/]* ) as_myself=$0 ;;
11871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11875 test -z "$as_dir" && as_dir=.
11876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11882 # We did not find ourselves, most probably we were run as `sh COMMAND'
11883 # in which case we are not to be found in the path.
11884 if test "x$as_myself" = x; then
11887 if test ! -f "$as_myself"; then
11888 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11889 { (exit 1); exit 1; }
11892 # Work around bugs in pre-3.0 UWIN ksh.
11893 for as_var in ENV MAIL MAILPATH
11894 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11902 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11903 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11904 LC_TELEPHONE LC_TIME
11906 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11907 eval $as_var=C; export $as_var
11909 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11913 # Required to use basename.
11914 if expr a : '\(a\)' >/dev/null 2>&1 &&
11915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11922 as_basename=basename
11928 # Name of the executable.
11929 as_me=`$as_basename -- "$0" ||
11930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11931 X"$0" : 'X\(//\)$' \| \
11932 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11934 sed '/^.*\/\([^/][^/]*\)\/*$/{
11953 as_lineno_1=$LINENO
11954 as_lineno_2=$LINENO
11955 test "x$as_lineno_1" != "x$as_lineno_2" &&
11956 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11958 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11959 # uniformly replaced by the line number. The first 'sed' inserts a
11960 # line-number line after each line using $LINENO; the second 'sed'
11961 # does the real work. The second script uses 'N' to pair each
11962 # line-number line with the line containing $LINENO, and appends
11963 # trailing '-' during substitution so that $LINENO is not a special
11964 # case at line end.
11965 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11966 # scripts with optimization help from Paolo Bonzini. Blame Lee
11967 # E. McMahon (1931-1989) for sed's syntax. :-)
11979 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11982 ' >$as_me.lineno &&
11983 chmod +x "$as_me.lineno" ||
11984 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11985 { (exit 1); exit 1; }; }
11987 # Don't try to exec as it changes $[0], causing all sort of problems
11988 # (the dirname of $[0] is not the place where we might find the
11989 # original and so on. Autoconf is especially sensitive to this).
11990 . "./$as_me.lineno"
11991 # Exit status is that of the last command.
11996 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12002 ECHO_C= ECHO_N= ECHO_T=
12003 case `echo -n x` in
12005 case `echo 'x\c'` in
12006 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12013 if expr a : '\(a\)' >/dev/null 2>&1 &&
12014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12020 rm -f conf$$ conf$$.exe conf$$.file
12021 if test -d conf$$.dir; then
12022 rm -f conf$$.dir/conf$$.file
12028 if ln -s conf$$.file conf$$ 2>/dev/null; then
12030 # ... but there are two gotchas:
12031 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12032 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12033 # In both cases, we have to default to `cp -p'.
12034 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12036 elif ln conf$$.file conf$$ 2>/dev/null; then
12041 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12042 rmdir conf$$.dir 2>/dev/null
12044 if mkdir -p . 2>/dev/null; then
12047 test -d ./-p && rmdir ./-p
12051 if test -x / >/dev/null 2>&1; then
12052 as_test_x='test -x'
12054 if ls -dL / >/dev/null 2>&1; then
12061 if test -d "$1"; then
12067 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12068 ???[sx]*):;;*)false;;esac;fi
12072 as_executable_p=$as_test_x
12074 # Sed expression to map a string onto a valid CPP name.
12075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12077 # Sed expression to map a string onto a valid variable name.
12078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12083 # Save the log message, to keep $[0] and so on meaningful, and to
12084 # report actual input values of CONFIG_FILES etc. instead of their
12085 # values after options handling.
12087 This file was extended by $as_me, which was
12088 generated by GNU Autoconf 2.61. Invocation command line was
12090 CONFIG_FILES = $CONFIG_FILES
12091 CONFIG_HEADERS = $CONFIG_HEADERS
12092 CONFIG_LINKS = $CONFIG_LINKS
12093 CONFIG_COMMANDS = $CONFIG_COMMANDS
12096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12101 cat >>$CONFIG_STATUS <<_ACEOF
12102 # Files that config.status was made for.
12103 config_files="$ac_config_files"
12104 config_headers="$ac_config_headers"
12108 cat >>$CONFIG_STATUS <<\_ACEOF
12110 \`$as_me' instantiates files from templates according to the
12111 current configuration.
12113 Usage: $0 [OPTIONS] [FILE]...
12115 -h, --help print this help, then exit
12116 -V, --version print version number and configuration settings, then exit
12117 -q, --quiet do not print progress messages
12118 -d, --debug don't remove temporary files
12119 --recheck update $as_me by reconfiguring in the same conditions
12120 --file=FILE[:TEMPLATE]
12121 instantiate the configuration file FILE
12122 --header=FILE[:TEMPLATE]
12123 instantiate the configuration header FILE
12125 Configuration files:
12128 Configuration headers:
12131 Report bugs to <bug-autoconf@gnu.org>."
12134 cat >>$CONFIG_STATUS <<_ACEOF
12137 configured by $0, generated by GNU Autoconf 2.61,
12138 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12140 Copyright (C) 2006 Free Software Foundation, Inc.
12141 This config.status script is free software; the Free Software Foundation
12142 gives unlimited permission to copy, distribute and modify it."
12149 cat >>$CONFIG_STATUS <<\_ACEOF
12150 # If no file are specified by the user, then we need to provide default
12151 # value. By we need to know if files were specified by the user.
12157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12169 # Handling of the options.
12170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12173 echo "$ac_cs_version"; exit ;;
12174 --debug | --debu | --deb | --de | --d | -d )
12176 --file | --fil | --fi | --f )
12178 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12179 ac_need_defaults=false;;
12180 --header | --heade | --head | --hea )
12182 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12183 ac_need_defaults=false;;
12185 # Conflict between --help and --header
12186 { echo "$as_me: error: ambiguous option: $1
12187 Try \`$0 --help' for more information." >&2
12188 { (exit 1); exit 1; }; };;
12189 --help | --hel | -h )
12190 echo "$ac_cs_usage"; exit ;;
12191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12192 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12195 # This is an error.
12196 -*) { echo "$as_me: error: unrecognized option: $1
12197 Try \`$0 --help' for more information." >&2
12198 { (exit 1); exit 1; }; } ;;
12200 *) ac_config_targets="$ac_config_targets $1"
12201 ac_need_defaults=false ;;
12207 ac_configure_extra_args=
12209 if $ac_cs_silent; then
12211 ac_configure_extra_args="$ac_configure_extra_args --silent"
12215 cat >>$CONFIG_STATUS <<_ACEOF
12216 if \$ac_cs_recheck; then
12217 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12218 CONFIG_SHELL=$SHELL
12219 export CONFIG_SHELL
12220 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12224 cat >>$CONFIG_STATUS <<\_ACEOF
12228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12229 ## Running $as_me. ##
12235 cat >>$CONFIG_STATUS <<_ACEOF
12238 cat >>$CONFIG_STATUS <<\_ACEOF
12240 # Handling of arguments.
12241 for ac_config_target in $ac_config_targets
12243 case $ac_config_target in
12244 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12246 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
12247 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
12248 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12249 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
12250 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
12251 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
12252 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
12253 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12254 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12255 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12256 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12257 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12258 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12260 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12261 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12262 { (exit 1); exit 1; }; };;
12267 # If the user did not use the arguments to specify the items to instantiate,
12268 # then the envvar interface is used. Set only those that are not.
12269 # We use the long form for the default assignment because of an extremely
12270 # bizarre bug on SunOS 4.1.3.
12271 if $ac_need_defaults; then
12272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12276 # Have a temporary directory for convenience. Make it in the build tree
12277 # simply because there is no reason against having it here, and in addition,
12278 # creating and moving files from /tmp can sometimes cause problems.
12279 # Hook for its removal unless debugging.
12280 # Note that there is a small window in which the directory will not be cleaned:
12281 # after its creation but before its name has been assigned to `$tmp'.
12285 trap 'exit_status=$?
12286 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12288 trap '{ (exit 1); exit 1; }' 1 2 13 15
12290 # Create a (secure) tmp directory for tmp files.
12293 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12294 test -n "$tmp" && test -d "$tmp"
12297 tmp=./conf$$-$RANDOM
12298 (umask 077 && mkdir "$tmp")
12301 echo "$me: cannot create a temporary directory in ." >&2
12302 { (exit 1); exit 1; }
12306 # Set up the sed scripts for CONFIG_FILES section.
12309 # No need to generate the scripts if there are no CONFIG_FILES.
12310 # This happens for instance when ./config.status config.h
12311 if test -n "$CONFIG_FILES"; then
12318 for ac_last_try in false false false false false :; do
12319 cat >conf$$subs.sed <<_ACEOF
12320 SHELL!$SHELL$ac_delim
12321 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12322 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12323 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12324 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12325 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12326 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12327 exec_prefix!$exec_prefix$ac_delim
12328 prefix!$prefix$ac_delim
12329 program_transform_name!$program_transform_name$ac_delim
12330 bindir!$bindir$ac_delim
12331 sbindir!$sbindir$ac_delim
12332 libexecdir!$libexecdir$ac_delim
12333 datarootdir!$datarootdir$ac_delim
12334 datadir!$datadir$ac_delim
12335 sysconfdir!$sysconfdir$ac_delim
12336 sharedstatedir!$sharedstatedir$ac_delim
12337 localstatedir!$localstatedir$ac_delim
12338 includedir!$includedir$ac_delim
12339 oldincludedir!$oldincludedir$ac_delim
12340 docdir!$docdir$ac_delim
12341 infodir!$infodir$ac_delim
12342 htmldir!$htmldir$ac_delim
12343 dvidir!$dvidir$ac_delim
12344 pdfdir!$pdfdir$ac_delim
12345 psdir!$psdir$ac_delim
12346 libdir!$libdir$ac_delim
12347 localedir!$localedir$ac_delim
12348 mandir!$mandir$ac_delim
12349 DEFS!$DEFS$ac_delim
12350 ECHO_C!$ECHO_C$ac_delim
12351 ECHO_N!$ECHO_N$ac_delim
12352 ECHO_T!$ECHO_T$ac_delim
12353 LIBS!$LIBS$ac_delim
12354 build_alias!$build_alias$ac_delim
12355 host_alias!$host_alias$ac_delim
12356 target_alias!$target_alias$ac_delim
12357 build!$build$ac_delim
12358 build_cpu!$build_cpu$ac_delim
12359 build_vendor!$build_vendor$ac_delim
12360 build_os!$build_os$ac_delim
12361 host!$host$ac_delim
12362 host_cpu!$host_cpu$ac_delim
12363 host_vendor!$host_vendor$ac_delim
12364 host_os!$host_os$ac_delim
12365 target!$target$ac_delim
12366 target_cpu!$target_cpu$ac_delim
12367 target_vendor!$target_vendor$ac_delim
12368 target_os!$target_os$ac_delim
12369 SHLICC2!$SHLICC2$ac_delim
12371 CFLAGS!$CFLAGS$ac_delim
12372 LDFLAGS!$LDFLAGS$ac_delim
12373 CPPFLAGS!$CPPFLAGS$ac_delim
12374 ac_ct_CC!$ac_ct_CC$ac_delim
12375 EXEEXT!$EXEEXT$ac_delim
12376 OBJEXT!$OBJEXT$ac_delim
12378 GREP!$GREP$ac_delim
12379 EGREP!$EGREP$ac_delim
12380 LIBOBJS!$LIBOBJS$ac_delim
12381 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12382 V_LEX!$V_LEX$ac_delim
12383 V_YACC!$V_YACC$ac_delim
12384 RANLIB!$RANLIB$ac_delim
12386 V_CCOPT!$V_CCOPT$ac_delim
12387 V_DEFS!$V_DEFS$ac_delim
12388 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12389 V_INCLS!$V_INCLS$ac_delim
12390 V_PCAP!$V_PCAP$ac_delim
12391 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12392 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12393 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12394 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12395 ADDLOBJS!$ADDLOBJS$ac_delim
12396 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12397 SSRC!$SSRC$ac_delim
12398 DYEXT!$DYEXT$ac_delim
12399 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12400 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12401 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12402 USB_SRC!$USB_SRC$ac_delim
12403 PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12404 NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12405 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12406 BT_SRC!$BT_SRC$ac_delim
12407 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12408 CAN_SRC!$CAN_SRC$ac_delim
12409 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12410 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12411 INSTALL_DATA!$INSTALL_DATA$ac_delim
12412 LTLIBOBJS!$LTLIBOBJS$ac_delim
12415 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
12417 elif $ac_last_try; then
12418 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12420 { (exit 1); exit 1; }; }
12422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12427 if test -n "$ac_eof"; then
12428 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12429 ac_eof=`expr $ac_eof + 1`
12432 cat >>$CONFIG_STATUS <<_ACEOF
12433 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12438 s/^/s,@/; s/!/@,|#_!!_#|/
12441 s/'"$ac_delim"'$/,g/; t
12443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12444 ' >>$CONFIG_STATUS <conf$$subs.sed
12445 rm -f conf$$subs.sed
12446 cat >>$CONFIG_STATUS <<_ACEOF
12453 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12454 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12455 # trailing colons and then remove the whole line if VPATH becomes empty
12456 # (actually we leave an empty line to preserve line numbers).
12457 if test "x$srcdir" = x.; then
12458 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12459 s/:*\$(srcdir):*/:/
12460 s/:*\${srcdir}:*/:/
12462 s/^\([^=]*=[ ]*\):*/\1/
12468 cat >>$CONFIG_STATUS <<\_ACEOF
12469 fi # test -n "$CONFIG_FILES"
12472 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12475 :[FHLC]) ac_mode=$ac_tag; continue;;
12477 case $ac_mode$ac_tag in
12479 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12480 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12481 { (exit 1); exit 1; }; };;
12482 :[FH]-) ac_tag=-:-;;
12483 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12500 -) ac_f="$tmp/stdin";;
12501 *) # Look for the file first in the build tree, then in the source tree
12502 # (if the path is not absolute). The absolute path cannot be DOS-style,
12503 # because $ac_f cannot contain `:'.
12507 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12509 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12510 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12511 { (exit 1); exit 1; }; };;
12513 ac_file_inputs="$ac_file_inputs $ac_f"
12516 # Let's still pretend it is `configure' which instantiates (i.e., don't
12517 # use $as_me), people would be surprised to read:
12518 # /* config.h. Generated by config.status. */
12519 configure_input="Generated from "`IFS=:
12520 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12521 if test x"$ac_file" != x-; then
12522 configure_input="$ac_file. $configure_input"
12523 { echo "$as_me:$LINENO: creating $ac_file" >&5
12524 echo "$as_me: creating $ac_file" >&6;}
12528 *:-:* | *:-) cat >"$tmp/stdin";;
12533 ac_dir=`$as_dirname -- "$ac_file" ||
12534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12535 X"$ac_file" : 'X\(//\)[^/]' \| \
12536 X"$ac_file" : 'X\(//\)$' \| \
12537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12543 /^X\(\/\/\)[^/].*/{
12558 -*) as_dir=./$as_dir;;
12560 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12564 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12565 *) as_qdir=$as_dir;;
12567 as_dirs="'$as_qdir' $as_dirs"
12568 as_dir=`$as_dirname -- "$as_dir" ||
12569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12570 X"$as_dir" : 'X\(//\)[^/]' \| \
12571 X"$as_dir" : 'X\(//\)$' \| \
12572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12578 /^X\(\/\/\)[^/].*/{
12591 test -d "$as_dir" && break
12593 test -z "$as_dirs" || eval "mkdir $as_dirs"
12594 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12596 { (exit 1); exit 1; }; }; }
12600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12603 # A ".." for each directory in $ac_dir_suffix.
12604 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12605 case $ac_top_builddir_sub in
12606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12610 ac_abs_top_builddir=$ac_pwd
12611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12612 # for backward compatibility:
12613 ac_top_builddir=$ac_top_build_prefix
12616 .) # We are building in place.
12618 ac_top_srcdir=$ac_top_builddir_sub
12619 ac_abs_top_srcdir=$ac_pwd ;;
12620 [\\/]* | ?:[\\/]* ) # Absolute name.
12621 ac_srcdir=$srcdir$ac_dir_suffix;
12622 ac_top_srcdir=$srcdir
12623 ac_abs_top_srcdir=$srcdir ;;
12624 *) # Relative name.
12625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12626 ac_top_srcdir=$ac_top_build_prefix$srcdir
12627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12639 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12640 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12644 cat >>$CONFIG_STATUS <<\_ACEOF
12645 # If the template does not know about datarootdir, expand it.
12646 # FIXME: This hack should be removed a few years after 2.60.
12647 ac_datarootdir_hack=; ac_datarootdir_seen=
12649 case `sed -n '/datarootdir/ {
12658 ' $ac_file_inputs` in
12659 *datarootdir*) ac_datarootdir_seen=yes;;
12660 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12661 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12662 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12664 cat >>$CONFIG_STATUS <<_ACEOF
12665 ac_datarootdir_hack='
12666 s&@datadir@&$datadir&g
12667 s&@docdir@&$docdir&g
12668 s&@infodir@&$infodir&g
12669 s&@localedir@&$localedir&g
12670 s&@mandir@&$mandir&g
12671 s&\\\${datarootdir}&$datarootdir&g' ;;
12675 # Neutralize VPATH when `$srcdir' = `.'.
12676 # Shell code in configure.ac might set extrasub.
12677 # FIXME: do we really want to maintain this feature?
12678 cat >>$CONFIG_STATUS <<_ACEOF
12682 cat >>$CONFIG_STATUS <<\_ACEOF
12684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12685 s&@configure_input@&$configure_input&;t t
12686 s&@top_builddir@&$ac_top_builddir_sub&;t t
12687 s&@srcdir@&$ac_srcdir&;t t
12688 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12689 s&@top_srcdir@&$ac_top_srcdir&;t t
12690 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12691 s&@builddir@&$ac_builddir&;t t
12692 s&@abs_builddir@&$ac_abs_builddir&;t t
12693 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12694 s&@INSTALL@&$ac_INSTALL&;t t
12695 $ac_datarootdir_hack
12696 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12699 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12701 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12702 which seems to be undefined. Please make sure it is defined." >&5
12703 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12704 which seems to be undefined. Please make sure it is defined." >&2;}
12708 -) cat "$tmp/out"; rm -f "$tmp/out";;
12709 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12718 # Transform confdefs.h into a sed script `conftest.defines', that
12719 # substitutes the proper values into config.h.in to produce config.h.
12720 rm -f conftest.defines conftest.tail
12721 # First, append a space to every undef/define line, to ease matching.
12722 echo 's/$/ /' >conftest.defines
12723 # Then, protect against being on the right side of a sed subst, or in
12724 # an unquoted here document, in config.status. If some macros were
12725 # called several times there might be several #defines for the same
12726 # symbol, which is useless. But do not sort them, since the last
12727 # AC_DEFINE must be honored.
12728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12729 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12730 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12731 # PARAMS is the parameter list in the macro definition--in most cases, it's
12732 # just an empty string.
12733 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12734 ac_dB='\\)[ (].*,\\1define\\2'
12742 s/^[ ]*#[ ]*define[ ][ ]*//
12747 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12748 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12749 ' >>conftest.defines
12751 # Remove the space that was appended to ease matching.
12752 # Then replace #undef with comments. This is necessary, for
12753 # example, in the case of _POSIX_SOURCE, which is predefined and required
12754 # on some systems where configure will not decide to define it.
12755 # (The regexp can be short, since the line contains either #define or #undef.)
12757 s,^[ #]*u.*,/* & */,' >>conftest.defines
12759 # Break up conftest.defines:
12760 ac_max_sed_lines=50
12762 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12763 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12764 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12766 ac_in='$ac_file_inputs'
12767 ac_out='"$tmp/out1"'
12768 ac_nxt='"$tmp/out2"'
12772 # Write a here document:
12773 cat >>$CONFIG_STATUS <<_ACEOF
12774 # First, check the format of the line:
12775 cat >"\$tmp/defines.sed" <<\\CEOF
12776 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12777 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12781 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12783 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12784 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12785 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12786 grep . conftest.tail >/dev/null || break
12787 rm -f conftest.defines
12788 mv conftest.tail conftest.defines
12790 rm -f conftest.defines conftest.tail
12792 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12793 cat >>$CONFIG_STATUS <<\_ACEOF
12794 if test x"$ac_file" != x-; then
12795 echo "/* $configure_input */" >"$tmp/config.h"
12796 cat "$ac_result" >>"$tmp/config.h"
12797 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12798 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12799 echo "$as_me: $ac_file is unchanged" >&6;}
12802 mv "$tmp/config.h" $ac_file
12805 echo "/* $configure_input */"
12817 { (exit 0); exit 0; }
12819 chmod +x $CONFIG_STATUS
12820 ac_clean_files=$ac_clean_files_save
12823 # configure is writing to config.log, and then calls config.status.
12824 # config.status does its own redirection, appending to config.log.
12825 # Unfortunately, on DOS this fails, as config.log is still kept open
12826 # by configure, so config.status won't be able to write to it; its
12827 # output is simply discarded. So we exec the FD to /dev/null,
12828 # effectively closing config.log, so it can be properly (re)opened and
12829 # appended to by config.status. When coming back to configure, we
12830 # need to make the FD available again.
12831 if test "$no_create" != yes; then
12833 ac_config_status_args=
12834 test "$silent" = yes &&
12835 ac_config_status_args="$ac_config_status_args --quiet"
12837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12840 # would make configure fail if this is the last instruction.
12841 $ac_cs_success || { (exit 1); exit 1; }
12845 if test -f .devel ; then