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
/xpg
4/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
/xpg
4/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 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7779 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7780 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7781 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7782 echo $ECHO_N "(cached
) $ECHO_C" >&6
7784 ac_res=`eval echo '${'$as_ac_Header'}'`
7785 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7786 echo "${ECHO_T}$ac_res" >&6; }
7788 # Is the header compilable?
7789 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7790 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7798 #include <$ac_header>
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7809 grep -v '^ *+' conftest.er1 >conftest.err
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
7817 ac_header_compiler=yes
7819 echo "$as_me: failed program was
:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 ac_header_compiler=no
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7827 echo "${ECHO_T}$ac_header_compiler" >&6; }
7829 # Is the header present?
7830 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7831 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 #include <$ac_header>
7840 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7848 grep -v '^ *+' conftest.er1 >conftest.err
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7852 (exit $ac_status); } >/dev/null && {
7853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7854 test ! -s conftest.err
7856 ac_header_preproc=yes
7858 echo "$as_me: failed program was
:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_header_preproc=no
7864 rm -f conftest.err conftest.$ac_ext
7865 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7866 echo "${ECHO_T}$ac_header_preproc" >&6; }
7868 # So? What about this header?
7869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7871 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7872 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7873 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7875 ac_header_preproc=yes
7878 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7879 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7880 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7881 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7882 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7883 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7884 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7885 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7886 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7888 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7889 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7893 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7894 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7895 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7896 echo $ECHO_N "(cached
) $ECHO_C" >&6
7898 eval "$as_ac_Header=\
$ac_header_preproc"
7900 ac_res=`eval echo '${'$as_ac_Header'}'`
7901 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7902 echo "${ECHO_T}$ac_res" >&6; }
7905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7914 { echo "$as_me:$LINENO: checking
if if_packet.h has tpacket_stats defined
" >&5
7915 echo $ECHO_N "checking
if if_packet.h has tpacket_stats defined...
$ECHO_C" >&6; }
7916 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7917 echo $ECHO_N "(cached
) $ECHO_C" >&6
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7926 # include <linux/if_packet.h>
7930 struct tpacket_stats stats
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_compile") 2>conftest.er1
7944 grep -v '^ *+' conftest.er1 >conftest.err
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
7952 ac_cv_lbl_tpacket_stats=yes
7954 echo "$as_me: failed program was
:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 ac_cv_lbl_tpacket_stats=no
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_tpacket_stats" >&5
7964 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7965 if test $ac_cv_lbl_tpacket_stats = yes; then
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_TPACKET_STATS 1
7972 { echo "$as_me:$LINENO: checking
if tpacket_auxdata struct has tp_vlan_tci member
" >&5
7973 echo $ECHO_N "checking
if tpacket_auxdata struct has tp_vlan_tci member...
$ECHO_C" >&6; }
7974 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
7975 echo $ECHO_N "(cached
) $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. */
7984 # include <sys/types.h>
7985 # include <linux/if_packet.h>
7989 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
8013 echo "$as_me: failed program was
:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
8023 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
8024 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
8025 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
8028 cat >>confdefs.h <<\_ACEOF
8029 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
8037 # Check whether we have the *BSD-style ioctls.
8040 for ac_header in net/if_media.h
8042 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8044 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8045 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8047 echo $ECHO_N "(cached
) $ECHO_C" >&6
8049 ac_res=`eval echo '${'$as_ac_Header'}'`
8050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8051 echo "${ECHO_T}$ac_res" >&6; }
8053 # Is the header compilable?
8054 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8055 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8063 #include <$ac_header>
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8082 ac_header_compiler=yes
8084 echo "$as_me: failed program was
:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_header_compiler=no
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8092 echo "${ECHO_T}$ac_header_compiler" >&6; }
8094 # Is the header present?
8095 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8096 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <$ac_header>
8105 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8117 (exit $ac_status); } >/dev/null && {
8118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8121 ac_header_preproc=yes
8123 echo "$as_me: failed program was
:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 ac_header_preproc=no
8129 rm -f conftest.err conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8131 echo "${ECHO_T}$ac_header_preproc" >&6; }
8133 # So? What about this header?
8134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8136 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8137 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8140 ac_header_preproc=yes
8143 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8144 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8145 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8146 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8147 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8148 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8149 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8150 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8151 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8153 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8154 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8158 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8159 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8160 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8161 echo $ECHO_N "(cached
) $ECHO_C" >&6
8163 eval "$as_ac_Header=\
$ac_header_preproc"
8165 ac_res=`eval echo '${'$as_ac_Header'}'`
8166 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8167 echo "${ECHO_T}$ac_res" >&6; }
8170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8171 cat >>confdefs.h <<_ACEOF
8172 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8180 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF
" >&5
8181 echo $ECHO_N "checking whether the system supports zerocopy BPF...
$ECHO_C" >&6; }
8182 cat >conftest.$ac_ext <<_ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <sys/socket.h>
8189 #include <sys/ioctl.h>
8191 #include <net/bpf.h>
8195 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8218 { echo "$as_me:$LINENO: result
: yes" >&5
8219 echo "${ECHO_T}yes" >&6; }
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_ZEROCOPY_BPF 1
8227 echo "$as_me: failed program was
:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 { echo "$as_me:$LINENO: result
: no
" >&5
8231 echo "${ECHO_T}no
" >&6; }
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 # Check whether we have struct BPF_TIMEVAL.
8239 { echo "$as_me:$LINENO: checking
for struct BPF_TIMEVAL
" >&5
8240 echo $ECHO_N "checking
for struct BPF_TIMEVAL...
$ECHO_C" >&6; }
8241 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8242 echo $ECHO_N "(cached
) $ECHO_C" >&6
8244 cat >conftest.$ac_ext <<_ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8251 #include <sys/types.h>
8252 #include <sys/ioctl.h>
8253 #ifdef HAVE_SYS_IOCCOM_H
8254 #include <sys/ioccom.h>
8256 #include <net/bpf.h>
8259 typedef struct BPF_TIMEVAL ac__type_new_;
8263 if ((ac__type_new_ *) 0)
8265 if (sizeof (ac__type_new_))
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_compile") 2>conftest.er1
8280 grep -v '^ *+' conftest.er1 >conftest.err
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8284 (exit $ac_status); } && {
8285 test -z "$ac_c_werror_flag" ||
8286 test ! -s conftest.err
8287 } && test -s conftest.$ac_objext; then
8288 ac_cv_type_struct_BPF_TIMEVAL=yes
8290 echo "$as_me: failed program was
:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 ac_cv_type_struct_BPF_TIMEVAL=no
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 { echo "$as_me:$LINENO: result
: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8299 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8300 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8302 cat >>confdefs.h <<_ACEOF
8303 #define HAVE_STRUCT_BPF_TIMEVAL 1
8312 V_DEFS="$V_DEFS -DDAG_ONLY"
8316 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8320 V_DEFS="$V_DEFS -DSNF_ONLY"
8324 { echo "$as_me:$LINENO: WARNING
: cannot determine packet capture interface
" >&5
8325 echo "$as_me: WARNING
: cannot determine packet capture interface
" >&2;}
8326 { echo "$as_me:$LINENO: WARNING
: (see the INSTALL doc
for more info
)" >&5
8327 echo "$as_me: WARNING
: (see the INSTALL doc
for more info
)" >&2;}
8331 if test "$V_PCAP" = null
8334 # We can't capture, so we can't open any capture
8335 # devices, so we won't return any interfaces.
8339 { echo "$as_me:$LINENO: checking
for getifaddrs
" >&5
8340 echo $ECHO_N "checking
for getifaddrs...
$ECHO_C" >&6; }
8341 if test "${ac_cv_func_getifaddrs+set}" = set; then
8342 echo $ECHO_N "(cached
) $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8352 #define getifaddrs innocuous_getifaddrs
8354 /* System header to define __stub macros and hopefully few prototypes,
8355 which can conflict with char getifaddrs (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8360 # include <limits.h>
8362 # include <assert.h>
8367 /* Override any GCC internal prototype to avoid an error.
8368 Use char because int might match the return type of a GCC
8369 builtin and then its argument prototype would still apply. */
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8384 return getifaddrs ();
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 ac_cv_func_getifaddrs=yes
8409 echo "$as_me: failed program was
:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_func_getifaddrs=no
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416 conftest$ac_exeext conftest.$ac_ext
8418 { echo "$as_me:$LINENO: result
: $ac_cv_func_getifaddrs" >&5
8419 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8420 if test $ac_cv_func_getifaddrs = yes; then
8423 # We have "getifaddrs
()"; make sure we have <ifaddrs.h>
8424 # as well, just in case some platform is really weird.
8426 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8427 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
8428 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
8429 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8430 echo $ECHO_N "(cached
) $ECHO_C" >&6
8432 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
8433 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8435 # Is the header compilable?
8436 { echo "$as_me:$LINENO: checking ifaddrs.h usability
" >&5
8437 echo $ECHO_N "checking ifaddrs.h usability...
$ECHO_C" >&6; }
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #include <ifaddrs.h>
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
8464 ac_header_compiler=yes
8466 echo "$as_me: failed program was
:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_header_compiler=no
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8474 echo "${ECHO_T}$ac_header_compiler" >&6; }
8476 # Is the header present?
8477 { echo "$as_me:$LINENO: checking ifaddrs.h presence
" >&5
8478 echo $ECHO_N "checking ifaddrs.h presence...
$ECHO_C" >&6; }
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 #include <ifaddrs.h>
8487 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8499 (exit $ac_status); } >/dev/null && {
8500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8503 ac_header_preproc=yes
8505 echo "$as_me: failed program was
:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_header_preproc=no
8511 rm -f conftest.err conftest.$ac_ext
8512 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6; }
8515 # So? What about this header?
8516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8518 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
8519 echo "$as_me: WARNING
: ifaddrs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the compiler
's result" >&5
8521 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result
" >&2;}
8522 ac_header_preproc=yes
8525 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&5
8526 echo "$as_me: WARNING
: ifaddrs.h
: present but cannot be compiled
" >&2;}
8527 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&5
8528 echo "$as_me: WARNING
: ifaddrs.h
: check
for missing prerequisite headers?
" >&2;}
8529 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&5
8530 echo "$as_me: WARNING
: ifaddrs.h
: see the Autoconf documentation
" >&2;}
8531 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
8532 echo "$as_me: WARNING
: ifaddrs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
8533 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: proceeding with the preprocessor
's result" >&5
8534 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result
" >&2;}
8535 { echo "$as_me:$LINENO: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&5
8536 echo "$as_me: WARNING
: ifaddrs.h
: in the future
, the compiler will take precedence
" >&2;}
8540 { echo "$as_me:$LINENO: checking
for ifaddrs.h
" >&5
8541 echo $ECHO_N "checking
for ifaddrs.h...
$ECHO_C" >&6; }
8542 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8543 echo $ECHO_N "(cached
) $ECHO_C" >&6
8545 ac_cv_header_ifaddrs_h=$ac_header_preproc
8547 { echo "$as_me:$LINENO: result
: $ac_cv_header_ifaddrs_h" >&5
8548 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8551 if test $ac_cv_header_ifaddrs_h = yes; then
8554 # We have the header, so we use "getifaddrs
()" to
8555 # get the list of interfaces.
8562 # We don't have the header - give up.
8563 # XXX - we could also fall back on some other
8564 # mechanism, but, for now, this'll catch this
8565 # problem so that we can at least try to figure
8566 # out something to do on systems with "getifaddrs
()"
8567 # but without "ifaddrs.h
", if there is something
8568 # we can do on those systems.
8570 { { echo "$as_me:$LINENO: error
: Your system has getifaddrs
() but doesn
't have a usable <ifaddrs.h>." >&5
8571 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable
<ifaddrs.h
>.
" >&2;}
8572 { (exit 1); exit 1; }; }
8581 # Well, we don't have "getifaddrs
()", so we have to use
8582 # some other mechanism; determine what that mechanism is.
8584 # The first thing we use is the type of capture mechanism,
8585 # which is somewhat of a proxy for the OS we're using.
8592 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8594 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8595 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8596 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8597 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8598 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8599 echo $ECHO_N "(cached
) $ECHO_C" >&6
8601 ac_res=`eval echo '${'$as_ac_Header'}'`
8602 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8603 echo "${ECHO_T}$ac_res" >&6; }
8605 # Is the header compilable?
8606 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8607 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #include <$ac_header>
8617 rm -f conftest.$ac_objext
8618 if { (ac_try="$ac_compile"
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_compile") 2>conftest.er1
8626 grep -v '^ *+' conftest.er1 >conftest.err
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8630 (exit $ac_status); } && {
8631 test -z "$ac_c_werror_flag" ||
8632 test ! -s conftest.err
8633 } && test -s conftest.$ac_objext; then
8634 ac_header_compiler=yes
8636 echo "$as_me: failed program was
:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 ac_header_compiler=no
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8644 echo "${ECHO_T}$ac_header_compiler" >&6; }
8646 # Is the header present?
8647 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8648 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 #include <$ac_header>
8657 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8669 (exit $ac_status); } >/dev/null && {
8670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8673 ac_header_preproc=yes
8675 echo "$as_me: failed program was
:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 ac_header_preproc=no
8681 rm -f conftest.err conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8683 echo "${ECHO_T}$ac_header_preproc" >&6; }
8685 # So? What about this header?
8686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8688 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8689 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8690 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8692 ac_header_preproc=yes
8695 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8696 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8697 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8698 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8699 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8700 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8701 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8702 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8703 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8705 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8706 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8710 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8711 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8712 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8713 echo $ECHO_N "(cached
) $ECHO_C" >&6
8715 eval "$as_ac_Header=\
$ac_header_preproc"
8717 ac_res=`eval echo '${'$as_ac_Header'}'`
8718 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8719 echo "${ECHO_T}$ac_res" >&6; }
8722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8723 cat >>confdefs.h <<_ACEOF
8724 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8732 # This might be Solaris 8 or later, with
8733 # SIOCGLIFCONF, or it might be some other OS
8734 # or some older version of Solaris, with
8737 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF
" >&5
8738 echo $ECHO_N "checking whether we have SIOCGLIFCONF...
$ECHO_C" >&6; }
8739 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8740 echo $ECHO_N "(cached
) $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. */
8748 #include <sys/param.h>
8749 #include <sys/file.h>
8750 #include <sys/ioctl.h>
8751 #include <sys/socket.h>
8752 #include <sys/sockio.h>
8756 ioctl(0, SIOCGLIFCONF, (char *)0);
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_lbl_have_siocglifconf=yes
8780 echo "$as_me: failed program was
:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_lbl_have_siocglifconf=no
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_siocglifconf" >&5
8790 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8791 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8797 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8804 # Assume we just have SIOCGIFCONF.
8805 # (XXX - on at least later Linux kernels, there's
8806 # another mechanism, and we should be using that
8819 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
8820 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
8821 cat >conftest.$ac_ext <<_ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8828 #include <sys/types.h>
8829 #include <sys/socket.h>
8839 rm -f conftest.$ac_objext
8840 if { (ac_try="$ac_compile"
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8858 echo "$as_me: failed program was
:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 if test "x
$have_socklen_t" = "xyes
"; then
8867 cat >>confdefs.h <<\_ACEOF
8868 #define HAVE_SOCKLEN_T 1
8872 { echo "$as_me:$LINENO: result
: $have_socklen_t" >&5
8873 echo "${ECHO_T}$have_socklen_t" >&6; }
8875 # Check whether --enable-ipv6 was given.
8876 if test "${enable_ipv6+set}" = set; then
8877 enableval=$enable_ipv6;
8879 enable_ipv6=ifavailable
8882 if test "$enable_ipv6" != "no
"; then
8883 { echo "$as_me:$LINENO: checking
for getaddrinfo
" >&5
8884 echo $ECHO_N "checking
for getaddrinfo...
$ECHO_C" >&6; }
8885 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8886 echo $ECHO_N "(cached
) $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8896 #define getaddrinfo innocuous_getaddrinfo
8898 /* System header to define __stub macros and hopefully few prototypes,
8899 which can conflict with char getaddrinfo (); below.
8900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8901 <limits.h> exists even on freestanding compilers. */
8904 # include <limits.h>
8906 # include <assert.h>
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8917 char getaddrinfo ();
8918 /* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */
8921 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8928 return getaddrinfo ();
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_link") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8946 (exit $ac_status); } && {
8947 test -z "$ac_c_werror_flag" ||
8948 test ! -s conftest.err
8949 } && test -s conftest$ac_exeext &&
8950 $as_test_x conftest$ac_exeext; then
8951 ac_cv_func_getaddrinfo=yes
8953 echo "$as_me: failed program was
:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_func_getaddrinfo=no
8959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8960 conftest$ac_exeext conftest.$ac_ext
8962 { echo "$as_me:$LINENO: result
: $ac_cv_func_getaddrinfo" >&5
8963 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8964 if test $ac_cv_func_getaddrinfo = yes; then
8967 cat >>confdefs.h <<\_ACEOF
8974 if test "$enable_ipv6" != "ifavailable
"; then
8975 { { echo "$as_me:$LINENO: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8976 See \`config.log' for more details.
" >&5
8977 echo "$as_me: error
: --enable-ipv6 was given
, but getaddrinfo isn
't available
8978 See \`config.log' for more details.
" >&2;}
8979 { (exit 1); exit 1; }; }
8986 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code
" >&5
8987 echo $ECHO_N "checking whether to build optimizer debugging code...
$ECHO_C" >&6; }
8988 # Check whether --enable-optimizer-dbg was given.
8989 if test "${enable_optimizer_dbg+set}" = set; then
8990 enableval=$enable_optimizer_dbg;
8993 if test "$enable_optimizer_dbg" = "yes"; then
8995 cat >>confdefs.h <<\_ACEOF
9000 { echo "$as_me:$LINENO: result
: ${enable_optimizer_dbg-no}" >&5
9001 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
9003 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
9004 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
9005 # Check whether --enable-yydebug was given.
9006 if test "${enable_yydebug+set}" = set; then
9007 enableval
=$enable_yydebug;
9010 if test "$enable_yydebug" = "yes"; then
9012 cat >>confdefs.h
<<\_ACEOF
9017 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
9018 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
9020 # Check for Endace DAG card support.
9022 # Check whether --with-dag was given.
9023 if test "${with_dag+set}" = set; then
9025 if test "$withval" = no
9027 # User doesn't want DAG support.
9029 elif test "$withval" = yes
9031 # User wants DAG support but hasn't specified a directory.
9034 # User wants DAG support and has specified a directory, so use the provided value.
9042 # Use DAG API if present, otherwise don't
9050 # Check whether --with-dag-includes was given.
9051 if test "${with_dag_includes+set}" = set; then
9052 withval=$with_dag_includes;
9053 # User wants DAG support and has specified a header directory, so use the provided value.
9055 dag_include_dir=$withval
9061 # Check whether --with-dag-libraries was given.
9062 if test "${with_dag_libraries+set}" = set; then
9063 withval=$with_dag_libraries;
9064 # User wants DAG support and has specified a library directory, so use the provided value.
9066 dag_lib_dir=$withval
9074 # We support the DAG API if we're on Linux or BSD, or if we're
9075 # building a DAG-only libpcap.
9080 # If the user explicitly requested DAG, tell them it's not
9083 # If they expressed no preference, don't include it.
9085 if test $want_dag = yes; then
9086 { { echo "$as_me:$LINENO: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&5
9087 echo "$as_me: error
: DAG support is only available with
'linux' 'bpf' and
'dag' packet capture types
" >&2;}
9088 { (exit 1); exit 1; }; }
9089 elif test $want_dag = yes; then
9095 ac_cv_lbl_dag_api=no
9096 if test "$want_dag" != no; then
9098 { echo "$as_me:$LINENO: checking whether we have DAG API headers
" >&5
9099 echo $ECHO_N "checking whether we have DAG API headers...
$ECHO_C" >&6; }
9101 # If necessary, set default paths for DAG API headers and libraries.
9102 if test -z "$dag_root"; then
9106 if test -z "$dag_include_dir"; then
9107 dag_include_dir="$dag_root/include
"
9110 if test -z "$dag_lib_dir"; then
9111 dag_lib_dir="$dag_root/lib
"
9114 if test -z "$dag_tools_dir"; then
9115 dag_tools_dir="$dag_root/tools
"
9118 if test -r $dag_include_dir/dagapi.h; then
9119 ac_cv_lbl_dag_api=yes
9121 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9122 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9125 if test $ac_cv_lbl_dag_api = yes; then
9126 V_INCLS="$V_INCLS -I$dag_include_dir"
9128 if test $V_PCAP != dag ; then
9132 # See if we can find a general version string.
9133 # Don't need to save and restore LIBS to prevent -ldag being
9134 # included if there's a found-action (arg 3).
9135 saved_ldflags=$LDFLAGS
9136 LDFLAGS="-L$dag_lib_dir"
9137 { echo "$as_me:$LINENO: checking
for dag_attach_stream
in -ldag" >&5
9138 echo $ECHO_N "checking
for dag_attach_stream
in -ldag...
$ECHO_C" >&6; }
9139 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9140 echo $ECHO_N "(cached
) $ECHO_C" >&6
9142 ac_check_lib_save_LIBS=$LIBS
9144 cat >conftest.$ac_ext <<_ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9151 /* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9157 char dag_attach_stream ();
9161 return dag_attach_stream ();
9166 rm -f conftest.$ac_objext conftest$ac_exeext
9167 if { (ac_try="$ac_link"
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_link") 2>conftest.er1
9175 grep -v '^ *+' conftest.er1 >conftest.err
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9179 (exit $ac_status); } && {
9180 test -z "$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9182 } && test -s conftest$ac_exeext &&
9183 $as_test_x conftest$ac_exeext; then
9184 ac_cv_lib_dag_dag_attach_stream=yes
9186 echo "$as_me: failed program was
:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_cv_lib_dag_dag_attach_stream=no
9192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9193 conftest$ac_exeext conftest.$ac_ext
9194 LIBS=$ac_check_lib_save_LIBS
9196 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_attach_stream" >&5
9197 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9198 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9204 { echo "$as_me:$LINENO: checking
for dag_get_erf_types
in -ldag" >&5
9205 echo $ECHO_N "checking
for dag_get_erf_types
in -ldag...
$ECHO_C" >&6; }
9206 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9207 echo $ECHO_N "(cached
) $ECHO_C" >&6
9209 ac_check_lib_save_LIBS=$LIBS
9211 cat >conftest.$ac_ext <<_ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9224 char dag_get_erf_types ();
9228 return dag_get_erf_types ();
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_link") 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest$ac_exeext &&
9250 $as_test_x conftest$ac_exeext; then
9251 ac_cv_lib_dag_dag_get_erf_types=yes
9253 echo "$as_me: failed program was
:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_cv_lib_dag_dag_get_erf_types=no
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9263 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_erf_types" >&5
9264 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9265 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9268 cat >>confdefs.h <<\_ACEOF
9269 #define HAVE_DAG_GET_ERF_TYPES 1
9274 { echo "$as_me:$LINENO: checking
for dag_get_stream_erf_types
in -ldag" >&5
9275 echo $ECHO_N "checking
for dag_get_stream_erf_types
in -ldag...
$ECHO_C" >&6; }
9276 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9277 echo $ECHO_N "(cached
) $ECHO_C" >&6
9279 ac_check_lib_save_LIBS=$LIBS
9281 cat >conftest.$ac_ext <<_ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9294 char dag_get_stream_erf_types ();
9298 return dag_get_stream_erf_types ();
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_link") 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9316 (exit $ac_status); } && {
9317 test -z "$ac_c_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest$ac_exeext &&
9320 $as_test_x conftest$ac_exeext; then
9321 ac_cv_lib_dag_dag_get_stream_erf_types=yes
9323 echo "$as_me: failed program was
:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_lib_dag_dag_get_stream_erf_types=no
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9333 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9334 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9335 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9345 LDFLAGS=$saved_ldflags
9347 if test "$dag_streams" = 1; then
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_DAG_STREAMS_API 1
9354 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9356 { echo "$as_me:$LINENO: checking
for vdag_set_device_info
in -lvdag" >&5
9357 echo $ECHO_N "checking
for vdag_set_device_info
in -lvdag...
$ECHO_C" >&6; }
9358 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9359 echo $ECHO_N "(cached
) $ECHO_C" >&6
9361 ac_check_lib_save_LIBS=$LIBS
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9376 char vdag_set_device_info ();
9380 return vdag_set_device_info ();
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_link") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest$ac_exeext &&
9402 $as_test_x conftest$ac_exeext; then
9403 ac_cv_lib_vdag_vdag_set_device_info=yes
9405 echo "$as_me: failed program was
:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_lib_vdag_vdag_set_device_info=no
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412 conftest$ac_exeext conftest.$ac_ext
9413 LIBS=$ac_check_lib_save_LIBS
9415 { echo "$as_me:$LINENO: result
: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9416 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9417 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9418 ac_dag_have_vdag="1"
9420 ac_dag_have_vdag="0"
9423 if test "$ac_dag_have_vdag" = 1; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_DAG_VDAG 1
9429 LIBS="$LIBS -lpthread"
9434 cat >>confdefs.h <<\_ACEOF
9435 #define HAVE_DAG_API 1
9440 { echo "$as_me:$LINENO: checking whether we have the DAG API
" >&5
9441 echo $ECHO_N "checking whether we have the DAG API...
$ECHO_C" >&6; }
9443 if test $ac_cv_lbl_dag_api = no; then
9444 { echo "$as_me:$LINENO: result
: no
" >&5
9445 echo "${ECHO_T}no
" >&6; }
9446 if test "$want_dag" = yes; then
9447 # User wanted DAG support but we couldn't find it.
9448 { { echo "$as_me:$LINENO: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&5
9449 echo "$as_me: error
: DAG API requested
, but not found
at $dag_root: use
--without-dag" >&2;}
9450 { (exit 1); exit 1; }; }
9453 if test "$V_PCAP" = dag; then
9454 # User requested "dag
" capture type but the DAG API wasn't
9456 { { 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
9457 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;}
9458 { (exit 1); exit 1; }; }
9461 { echo "$as_me:$LINENO: result
: yes" >&5
9462 echo "${ECHO_T}yes" >&6; }
9466 # Check whether --with-septel was given.
9467 if test "${with_septel+set}" = set; then
9468 withval=$with_septel;
9469 if test "$withval" = no
9472 elif test "$withval" = yes
9478 septel_root=$withval
9484 # Use Septel API if present, otherwise don't
9486 want_septel=ifpresent
9487 septel_root=./../septel
9491 ac_cv_lbl_septel_api=no
9495 # We support the Septel API if we're on Linux, or if we're building
9496 # a Septel-only libpcap.
9501 # If the user explicitly requested Septel, tell them it's not
9504 # If they expressed no preference, don't include it.
9506 if test $want_septel = yes; then
9507 { { echo "$as_me:$LINENO: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&5
9508 echo "$as_me: error
: Septel support only available with
'linux' and
'septel' packet capture types
" >&2;}
9509 { (exit 1); exit 1; }; }
9510 elif test $want_septel = yes; then
9516 if test "$with_septel" != no; then
9517 { echo "$as_me:$LINENO: checking whether we have Septel API
" >&5
9518 echo $ECHO_N "checking whether we have Septel API...
$ECHO_C" >&6; }
9520 if test -z "$septel_root"; then
9521 septel_root=$srcdir/../septel
9524 septel_tools_dir="$septel_root"
9525 septel_include_dir="$septel_root/INC
"
9527 ac_cv_lbl_septel_api=no
9528 if test -r "$septel_include_dir/msg.h
"; then
9529 V_INCLS="$V_INCLS -I$septel_include_dir"
9530 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
"
9531 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
"
9533 if test "$V_PCAP" != septel ; then
9534 SSRC="pcap-septel.c
"
9536 ac_cv_lbl_septel_api=yes
9539 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_septel_api" >&5
9540 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9541 if test $ac_cv_lbl_septel_api = no; then
9542 if test "$want_septel" = yes; then
9543 { { echo "$as_me:$LINENO: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&5
9544 echo "$as_me: error
: Septel API not found under directory
$septel_root; use
--without-septel" >&2;}
9545 { (exit 1); exit 1; }; }
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_SEPTEL_API 1
9556 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9557 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&5
9558 echo "$as_me: error
: Specifying the capture
type as
'septel' requires the Septel API to be present
; use
--with-septel=DIR
" >&2;}
9559 { (exit 1); exit 1; }; }
9562 # Check for Myricom SNF support.
9564 # Check whether --with-snf was given.
9565 if test "${with_snf+set}" = set; then
9567 if test "$withval" = no
9569 # User explicitly doesn't want SNF
9571 elif test "$withval" = yes
9573 # User wants SNF support but hasn't specific a directory.
9576 # User wants SNF support with a specified directory.
9584 # Use Sniffer API if present, otherwise don't
9592 # Check whether --with-snf-includes was given.
9593 if test "${with_snf_includes+set}" = set; then
9594 withval=$with_snf_includes;
9595 # User wants SNF with specific header directory
9597 snf_include_dir=$withval
9603 # Check whether --with-snf-libraries was given.
9604 if test "${with_snf_libraries+set}" = set; then
9605 withval=$with_snf_libraries;
9606 # User wants SNF with specific lib directory
9608 snf_lib_dir=$withval
9616 # We support the Sniffer API if we're on BSD, Linux, or if we're
9617 # building a Sniffer-only libpcap.
9622 # If the user explicitly requested Sniffer, tell them it's not
9625 # If they expressed no preference, don't include it.
9627 if test $want_snf = yes; then
9628 { { echo "$as_me:$LINENO: error
: Myricom SNF support only available with
'bpf' 'linux' and
'snf' packet capture types
" >&5
9629 echo "$as_me: error
: Myricom SNF support only available with
'bpf' 'linux' and
'snf' packet capture types
" >&2;}
9630 { (exit 1); exit 1; }; }
9631 elif test $want_snf = yes; then
9637 ac_cv_lbl_snf_api=no
9638 if test "$with_snf" != no; then
9640 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API
" >&5
9641 echo $ECHO_N "checking whether we have Myricom Sniffer API...
$ECHO_C" >&6; }
9643 if test -z "$snf_root"; then
9647 if test -z "$snf_include_dir"; then
9648 snf_include_dir="$snf_root/include
"
9651 if test -z "$snf_lib_dir"; then
9652 snf_lib_dir="$snf_root/lib
"
9655 if test -f "$snf_include_dir/snf.h
"; then
9656 ac_cv_lbl_snf_api=yes
9658 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_snf_api ($snf_root)" >&5
9659 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9661 if test $ac_cv_lbl_snf_api = no; then
9662 if test "$want_snf" = yes; then
9663 { { echo "$as_me:$LINENO: error
: SNF API headers not found under
$snf_include_dir; use
--without-snf" >&5
9664 echo "$as_me: error
: SNF API headers not found under
$snf_include_dir; use
--without-snf" >&2;}
9665 { (exit 1); exit 1; }; }
9668 saved_ldflags=$LDFLAGS
9669 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9670 { echo "$as_me:$LINENO: checking
for snf_init
in -lsnf" >&5
9671 echo $ECHO_N "checking
for snf_init
in -lsnf...
$ECHO_C" >&6; }
9672 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9673 echo $ECHO_N "(cached
) $ECHO_C" >&6
9675 ac_check_lib_save_LIBS=$LIBS
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest$ac_exeext &&
9716 $as_test_x conftest$ac_exeext; then
9717 ac_cv_lib_snf_snf_init=yes
9719 echo "$as_me: failed program was
:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_lib_snf_snf_init=no
9725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9729 { echo "$as_me:$LINENO: result
: $ac_cv_lib_snf_snf_init" >&5
9730 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9731 if test $ac_cv_lib_snf_snf_init = yes; then
9732 ac_cv_lbl_snf_api="yes"
9734 ac_cv_lbl_snf_api="no
"
9737 LDFLAGS="$saved_ldflags"
9739 if test $ac_cv_lbl_snf_api = no; then
9740 if test "$want_snf" = yes; then
9741 { { echo "$as_me:$LINENO: error
: SNF API cannot correctly be linked check config.log
; use
--without-snf" >&5
9742 echo "$as_me: error
: SNF API cannot correctly be linked check config.log
; use
--without-snf" >&2;}
9743 { (exit 1); exit 1; }; }
9746 V_INCLS="$V_INCLS -I$snf_include_dir"
9748 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9749 if test "$V_PCAP" != snf ; then
9753 cat >>confdefs.h <<\_ACEOF
9754 #define HAVE_SNF_API 1
9761 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9762 { { echo "$as_me:$LINENO: error
: Specifying the capture
type as
'snf' requires the Myricom Sniffer API to be present
; use
--with-snf=DIR
" >&5
9763 echo "$as_me: error
: Specifying the capture
type as
'snf' requires the Myricom Sniffer API to be present
; use
--with-snf=DIR
" >&2;}
9764 { (exit 1); exit 1; }; }
9768 # Check whether --with-flex was given.
9769 if test "${with_flex+set}" = set; then
9774 # Check whether --with-bison was given.
9775 if test "${with_bison+set}" = set; then
9776 withval=$with_bison;
9779 if test "$with_flex" = no ; then
9784 # Extract the first word of "$ac_prog", so it can be a program name with args.
9785 set dummy $ac_prog; ac_word=$2
9786 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9787 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9788 if test "${ac_cv_prog_V_LEX+set}" = set; then
9789 echo $ECHO_N "(cached
) $ECHO_C" >&6
9791 if test -n "$V_LEX"; then
9792 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9801 ac_cv_prog_V_LEX="$ac_prog"
9802 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9811 V_LEX=$ac_cv_prog_V_LEX
9812 if test -n "$V_LEX"; then
9813 { echo "$as_me:$LINENO: result
: $V_LEX" >&5
9814 echo "${ECHO_T}$V_LEX" >&6; }
9816 { echo "$as_me:$LINENO: result
: no
" >&5
9817 echo "${ECHO_T}no
" >&6; }
9821 test -n "$V_LEX" && break
9823 test -n "$V_LEX" || V_LEX="lex"
9826 if test "$V_LEX" = flex ; then
9827 # The -V flag was added in 2.4
9828 { echo "$as_me:$LINENO: checking
for flex
2.4 or higher
" >&5
9829 echo $ECHO_N "checking
for flex
2.4 or higher...
$ECHO_C" >&6; }
9830 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9831 echo $ECHO_N "(cached
) $ECHO_C" >&6
9833 if flex -V >/dev/null 2>&1; then
9834 ac_cv_lbl_flex_v24=yes
9836 ac_cv_lbl_flex_v24=no
9840 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_flex_v24" >&5
9841 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9842 if test $ac_cv_lbl_flex_v24 = no ; then
9843 s="2.4 or higher required
"
9844 { echo "$as_me:$LINENO: WARNING
: ignoring obsolete flex executable
($s)" >&5
9845 echo "$as_me: WARNING
: ignoring obsolete flex executable
($s)" >&2;}
9849 if test "$with_bison" = no ; then
9852 for ac_prog in bison
9854 # Extract the first word of "$ac_prog", so it can be a program name with args.
9855 set dummy $ac_prog; ac_word=$2
9856 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9857 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9858 if test "${ac_cv_prog_V_YACC+set}" = set; then
9859 echo $ECHO_N "(cached
) $ECHO_C" >&6
9861 if test -n "$V_YACC"; then
9862 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_V_YACC="$ac_prog"
9872 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9881 V_YACC=$ac_cv_prog_V_YACC
9882 if test -n "$V_YACC"; then
9883 { echo "$as_me:$LINENO: result
: $V_YACC" >&5
9884 echo "${ECHO_T}$V_YACC" >&6; }
9886 { echo "$as_me:$LINENO: result
: no
" >&5
9887 echo "${ECHO_T}no
" >&6; }
9891 test -n "$V_YACC" && break
9893 test -n "$V_YACC" || V_YACC="yacc"
9896 if test "$V_YACC" = bison ; then
9899 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9900 { echo "$as_me:$LINENO: WARNING
: don
't have both flex and bison; reverting to lex/yacc" >&5
9901 echo "$as_me: WARNING: don't have both flex and bison
; reverting to lex
/yacc" >&2;}
9905 if test "$V_LEX" = flex -a -n "pcap_
" ; then
9906 V_LEX="$V_LEX -Ppcap_"
9907 V_YACC="$V_YACC -p pcap_
"
9909 if test "$V_LEX" = lex ; then
9910 # Some versions of lex can't handle the definitions section of scanner.l .
9911 # Try lexing it and complain if it can't deal.
9912 { echo "$as_me:$LINENO: checking
for capable
lex" >&5
9913 echo $ECHO_N "checking
for capable
lex...
$ECHO_C" >&6; }
9914 if test "${tcpdump_cv_capable_lex+set}" = set; then
9915 echo $ECHO_N "(cached
) $ECHO_C" >&6
9917 if lex -t scanner.l > /dev/null 2>&1; then
9918 tcpdump_cv_capable_lex=yes
9920 tcpdump_cv_capable_lex=insufficient
9923 { echo "$as_me:$LINENO: result
: $tcpdump_cv_capable_lex" >&5
9924 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9925 if test $tcpdump_cv_capable_lex = insufficient ; then
9926 { { echo "$as_me:$LINENO: error
: Your operating system
's lex is insufficient to compile
9927 libpcap. flex is a lex replacement that has many advantages, including
9928 being able to compile libpcap. For more information, see
9929 http://www.gnu.org/software/flex/flex.html ." >&5
9930 echo "$as_me: error: Your operating system's
lex is insufficient to compile
9931 libpcap. flex is a
lex replacement that has many advantages
, including
9932 being able to compile libpcap. For
more information
, see
9933 http
://www.gnu.org
/software
/flex
/flex.html .
" >&2;}
9934 { (exit 1); exit 1; }; }
9939 # Assume, by default, no support for shared libraries and V7/BSD convention
9940 # for man pages (file formats in section 5, miscellaneous info in section 7).
9941 # Individual cases can override this.
9950 cat >>confdefs.h <<\_ACEOF
9956 # AIX makes it fun to build shared and static libraries,
9957 # because they're *both* ".a
" archive libraries. We
9958 # build the static library for the benefit of the traditional
9959 # scheme of building libpcap and tcpdump in subdirectories of
9960 # the same directory, with tcpdump statically linked with the
9961 # libpcap in question, but we also build a shared library as
9962 # "libpcap.shareda
" and install *it*, rather than the static
9963 # library, as "libpcap.a
".
9971 # If we're using DLPI, applications will need to
9972 # use /lib/pse.exp if present, as we use the
9975 pseexe="/lib
/pse.exp
"
9976 { echo "$as_me:$LINENO: checking
for $pseexe" >&5
9977 echo $ECHO_N "checking
for $pseexe...
$ECHO_C" >&6; }
9978 if test -f $pseexe ; then
9979 { echo "$as_me:$LINENO: result
: yes" >&5
9980 echo "${ECHO_T}yes" >&6; }
9987 # If we're using BPF, we need "-lodm" and "-lcfg", as
9988 # we use them to load the BPF module.
9997 V_CCOPT="$V_CCOPT -fno-common"
9998 # Check whether --enable-universal was given.
9999 if test "${enable_universal+set}" = set; then
10000 enableval=$enable_universal;
10003 if test "$enable_universal" != "no
"; then
10008 # Leopard. Build for 32-bit PowerPC, 64-bit
10009 # PowerPC, x86, and x86-64, with 32-bit PowerPC
10010 # first. (That's what Apple does.)
10012 V_CCOPT="$V_CCOPT -arch ppc
-arch ppc64
-arch i386
-arch x86_64
"
10013 LDFLAGS="$LDFLAGS -arch ppc
-arch ppc64
-arch i386
-arch x86_64
"
10018 # Snow Leopard. Build for x86-64, x86, and
10019 # 32-bit PowerPC, with x86-64 first. (That's
10020 # what Apple does, even though Snow Leopard
10021 # doesn't run on PPC, so PPC libpcap runs under
10022 # Rosetta, and Rosetta doesn't support BPF
10023 # ioctls, so PPC programs can't do live
10026 V_CCOPT="$V_CCOPT -arch x86_64
-arch i386
-arch ppc
"
10027 LDFLAGS="$LDFLAGS -arch x86_64
-arch i386
-arch ppc
"
10035 cat >>confdefs.h <<\_ACEOF
10036 #define HAVE_HPUX9 1
10041 # Use System V conventions for man pages.
10050 # Use System V conventions for man pages.
10059 # Use System V conventions for man pages.
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_HPUX10_20_OR_LATER 1
10071 if test "`uname -m`" = "ia64
"; then
10078 # "-b" builds a shared library; "+h
" sets the soname.
10084 # Use System V conventions for man pages.
10092 # Use System V conventions for man pages.
10098 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
10102 # Compiler assumed to be GCC; run-time linker may require a -R
10105 if test "$libdir" != "/usr
/lib
"; then
10106 V_RFLAGS=-Wl,-R$libdir
10114 # Use System V conventions for man pages.
10121 { echo "$as_me:$LINENO: checking
if SINIX compiler defines sinix
" >&5
10122 echo $ECHO_N "checking
if SINIX compiler defines sinix...
$ECHO_C" >&6; }
10123 if test "${ac_cv_cc_sinix_defined+set}" = set; then
10124 echo $ECHO_N "(cached
) $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10141 rm -f conftest.$ac_objext
10142 if { (ac_try="$ac_compile"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_compile") 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10154 (exit $ac_status); } && {
10155 test -z "$ac_c_werror_flag" ||
10156 test ! -s conftest.err
10157 } && test -s conftest.$ac_objext; then
10158 ac_cv_cc_sinix_defined=yes
10160 echo "$as_me: failed program was
:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_cv_cc_sinix_defined=no
10166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169 { echo "$as_me:$LINENO: result
: $ac_cv_cc_sinix_defined" >&5
10170 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10171 if test $ac_cv_cc_sinix_defined = no ; then
10173 cat >>confdefs.h <<\_ACEOF
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_SOLARIS 1
10189 # Use System V conventions for man pages.
10196 if test -n "$ac_tool_prefix"; then
10197 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
10198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10199 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10200 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10201 if test "${ac_cv_prog_RANLIB+set}" = set; then
10202 echo $ECHO_N "(cached
) $ECHO_C" >&6
10204 if test -n "$RANLIB"; then
10205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
10215 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10224 RANLIB=$ac_cv_prog_RANLIB
10225 if test -n "$RANLIB"; then
10226 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
10227 echo "${ECHO_T}$RANLIB" >&6; }
10229 { echo "$as_me:$LINENO: result
: no
" >&5
10230 echo "${ECHO_T}no
" >&6; }
10235 if test -z "$ac_cv_prog_RANLIB"; then
10236 ac_ct_RANLIB=$RANLIB
10237 # Extract the first word of "ranlib
", so it can be a program name with args.
10238 set dummy ranlib; ac_word=$2
10239 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10240 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10241 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10242 echo $ECHO_N "(cached
) $ECHO_C" >&6
10244 if test -n "$ac_ct_RANLIB"; then
10245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_ac_ct_RANLIB="ranlib
"
10255 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10264 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10265 if test -n "$ac_ct_RANLIB"; then
10266 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
10267 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10269 { echo "$as_me:$LINENO: result
: no
" >&5
10270 echo "${ECHO_T}no
" >&6; }
10273 if test "x
$ac_ct_RANLIB" = x; then
10276 case $cross_compiling:$ac_tool_warned in
10278 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
10279 whose name does not start with the
host triplet. If you think this
10280 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
10281 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
10282 whose name does not start with the
host triplet. If you think this
10283 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
10284 ac_tool_warned=yes ;;
10286 RANLIB=$ac_ct_RANLIB
10289 RANLIB="$ac_cv_prog_RANLIB"
10292 if test -n "$ac_tool_prefix"; then
10293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10294 set dummy ${ac_tool_prefix}ar; ac_word=$2
10295 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10296 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10297 if test "${ac_cv_prog_AR+set}" = set; then
10298 echo $ECHO_N "(cached
) $ECHO_C" >&6
10300 if test -n "$AR"; then
10301 ac_cv_prog_AR="$AR" # Let the user override the test.
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_prog_AR="${ac_tool_prefix}ar"
10311 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10321 if test -n "$AR"; then
10322 { echo "$as_me:$LINENO: result
: $AR" >&5
10323 echo "${ECHO_T}$AR" >&6; }
10325 { echo "$as_me:$LINENO: result
: no
" >&5
10326 echo "${ECHO_T}no
" >&6; }
10331 if test -z "$ac_cv_prog_AR"; then
10333 # Extract the first word of "ar", so it can be a program name with args.
10334 set dummy ar; ac_word=$2
10335 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10336 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10337 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10338 echo $ECHO_N "(cached
) $ECHO_C" >&6
10340 if test -n "$ac_ct_AR"; then
10341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10347 test -z "$as_dir" && as_dir=.
10348 for ac_exec_ext in '' $ac_executable_extensions; do
10349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10350 ac_cv_prog_ac_ct_AR="ar"
10351 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10360 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10361 if test -n "$ac_ct_AR"; then
10362 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
10363 echo "${ECHO_T}$ac_ct_AR" >&6; }
10365 { echo "$as_me:$LINENO: result
: no
" >&5
10366 echo "${ECHO_T}no
" >&6; }
10369 if test "x
$ac_ct_AR" = x; then
10372 case $cross_compiling:$ac_tool_warned in
10374 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
10375 whose name does not start with the
host triplet. If you think this
10376 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
10377 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
10378 whose name does not start with the
host triplet. If you think this
10379 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
10380 ac_tool_warned=yes ;;
10385 AR="$ac_cv_prog_AR"
10390 if test "${LBL_CFLAGS+set}" = set; then
10391 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10393 if test -f .devel ; then
10394 if test "$GCC" = yes ; then
10395 if test "${LBL_CFLAGS+set}" != set; then
10396 if test "$ac_cv_prog_cc_g" = yes ; then
10397 V_CCOPT="-g $V_CCOPT"
10399 V_CCOPT="$V_CCOPT -Wall"
10400 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10401 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10408 V_CCOPT="$V_CCOPT -n32"
10415 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10416 name="lbl
/os-
$os.h
"
10417 if test -f $name ; then
10418 ln -s $name os-proto.h
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_OS_PROTO_H 1
10425 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
10426 echo "$as_me: WARNING: can't
find $name" >&2;}
10430 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
10431 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
10432 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10433 echo $ECHO_N "(cached
) $ECHO_C" >&6
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10442 # include <sys/types.h>
10443 # include <sys/socket.h>
10447 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10452 rm -f conftest.$ac_objext
10453 if { (ac_try="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10469 ac_cv_lbl_sockaddr_has_sa_len=yes
10471 echo "$as_me: failed program was
:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_lbl_sockaddr_has_sa_len=no
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10480 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10481 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10482 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10484 cat >>confdefs.h <<\_ACEOF
10485 #define HAVE_SOCKADDR_SA_LEN 1
10490 { echo "$as_me:$LINENO: checking
if sockaddr_storage struct exists
" >&5
10491 echo $ECHO_N "checking
if sockaddr_storage struct exists...
$ECHO_C" >&6; }
10492 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10493 echo $ECHO_N "(cached
) $ECHO_C" >&6
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10502 # include <sys/types.h>
10503 # include <sys/socket.h>
10507 u_int i = sizeof (struct sockaddr_storage)
10512 rm -f conftest.$ac_objext
10513 if { (ac_try="$ac_compile"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_compile") 2>conftest.er1
10521 grep -v '^ *+' conftest.er1 >conftest.err
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest.$ac_objext; then
10529 ac_cv_lbl_has_sockaddr_storage=yes
10531 echo "$as_me: failed program was
:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10534 ac_cv_lbl_has_sockaddr_storage=no
10537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_has_sockaddr_storage" >&5
10541 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10542 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10544 cat >>confdefs.h <<\_ACEOF
10545 #define HAVE_SOCKADDR_STORAGE 1
10550 { echo "$as_me:$LINENO: checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member
" >&5
10551 echo $ECHO_N "checking
if dl_hp_ppa_info_t struct has dl_module_id_1 member...
$ECHO_C" >&6; }
10552 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10553 echo $ECHO_N "(cached
) $ECHO_C" >&6
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10562 # include <sys/types.h>
10563 # include <sys/dlpi.h>
10564 # include <sys/dlpi_ext.h>
10568 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10573 rm -f conftest.$ac_objext
10574 if { (ac_try="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_compile") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest.$ac_objext; then
10590 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10592 echo "$as_me: failed program was
:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10602 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10603 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10611 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
10612 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
10613 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10614 echo $ECHO_N "(cached
) $ECHO_C" >&6
10616 case "$host_cpu" in
10619 # These are CPU types where:
10621 # the CPU faults on an unaligned access, but at least some
10622 # OSes that support that CPU catch the fault and simulate
10623 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10624 # the simulation is slow, so we don't want to use it;
10626 # the CPU, I infer (from the old
10628 # XXX: should also check that they don't do weird things (like on arm)
10630 # comment) doesn't fault on unaligned accesses, but doesn't
10631 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10633 # for whatever reason, the test program doesn't work
10634 # (this has been claimed to be the case for several of those
10635 # CPUs - I don't know what the problem is; the problem
10636 # was reported as "the
test program dumps core
" for SuperH,
10637 # but that's what the test program is *supposed* to do -
10638 # it dumps core before it writes anything, so the test
10639 # for an empty output file should find an empty output
10640 # file and conclude that unaligned accesses don't work).
10642 # This run-time test won't work if you're cross-compiling, so
10643 # in order to support cross-compiling for a particular CPU,
10644 # we have to wire in the list of CPU types anyway, as far as
10645 # I know, so perhaps we should just have a set of CPUs on
10646 # which we know it doesn't work, a set of CPUs on which we
10647 # know it does work, and have the script just fail on other
10648 # cpu types and update it when such a failure occurs.
10650 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10651 ac_cv_lbl_unaligned_fail=yes
10655 cat >conftest.c <<EOF
10656 # include <sys/types.h>
10657 # include <sys/wait.h>
10658 # include <stdio.h>
10659 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10664 /* avoid "core dumped
" message */
10670 pid = waitpid(pid, &status, 0);
10673 exit(!WIFEXITED(status));
10676 i = *(unsigned int *)&a[1];
10681 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10682 conftest.c $LIBS >/dev/null 2>&1
10683 if test ! -x conftest ; then
10684 ac_cv_lbl_unaligned_fail=yes
10686 ./conftest >conftest.out
10687 if test ! -s conftest.out ; then
10688 ac_cv_lbl_unaligned_fail=yes
10690 ac_cv_lbl_unaligned_fail=no
10693 rm -f -r conftest* core core.conftest
10698 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
10699 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10700 if test $ac_cv_lbl_unaligned_fail = yes ; then
10702 cat >>confdefs.h <<\_ACEOF
10703 #define LBL_ALIGN 1
10709 # Makefile.in includes rules to generate version.h, so we assume
10710 # that it will be generated if autoconf is used.
10713 cat >>confdefs.h <<\_ACEOF
10714 #define HAVE_VERSION_H 1
10719 ln -s ${srcdir}/bpf/net net
10739 { echo "$as_me:$LINENO: checking
for USB sniffing support
" >&5
10740 echo $ECHO_N "checking
for USB sniffing support...
$ECHO_C" >&6; }
10744 cat >>confdefs.h <<\_ACEOF
10745 #define PCAP_SUPPORT_USB 1
10748 USB_SRC=pcap-usb-linux.c
10749 { echo "$as_me:$LINENO: result
: yes" >&5
10750 echo "${ECHO_T}yes" >&6; }
10751 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10752 if test $? -ne 0 ; then
10753 ac_usb_dev_name="usbmon
"
10756 cat >>confdefs.h <<_ACEOF
10757 #define LINUX_USB_MON_DEV "/dev
/$ac_usb_dev_name"
10760 { echo "$as_me:$LINENO: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&5
10761 echo "$as_me: Device
for USB sniffing is
/dev
/$ac_usb_dev_name" >&6;}
10763 # Do we have a version of <linux/compiler.h> available?
10764 # If so, we might need it for <linux/usbdevice_fs.h>.
10767 for ac_header in linux/compiler.h
10769 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10770 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10771 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10772 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10773 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10774 echo $ECHO_N "(cached
) $ECHO_C" >&6
10776 ac_res=`eval echo '${'$as_ac_Header'}'`
10777 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10778 echo "${ECHO_T}$ac_res" >&6; }
10780 # Is the header compilable?
10781 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10782 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10783 cat >conftest.$ac_ext <<_ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 #include <$ac_header>
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10801 grep -v '^ *+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest.$ac_objext; then
10809 ac_header_compiler=yes
10811 echo "$as_me: failed program was
:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_header_compiler=no
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10819 echo "${ECHO_T}$ac_header_compiler" >&6; }
10821 # Is the header present?
10822 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10823 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <$ac_header>
10832 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10840 grep -v '^ *+' conftest.er1 >conftest.err
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10844 (exit $ac_status); } >/dev/null && {
10845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10848 ac_header_preproc=yes
10850 echo "$as_me: failed program was
:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_header_preproc=no
10856 rm -f conftest.err conftest.$ac_ext
10857 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10858 echo "${ECHO_T}$ac_header_preproc" >&6; }
10860 # So? What about this header?
10861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10863 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10864 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10865 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10867 ac_header_preproc=yes
10870 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10871 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10872 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10873 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10874 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10875 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10876 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10877 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10878 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10880 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10881 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10885 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10886 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10887 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10888 echo $ECHO_N "(cached
) $ECHO_C" >&6
10890 eval "$as_ac_Header=\
$ac_header_preproc"
10892 ac_res=`eval echo '${'$as_ac_Header'}'`
10893 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10894 echo "${ECHO_T}$ac_res" >&6; }
10897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10906 if test "$ac_cv_header_linux_compiler_h" = yes; then
10908 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10911 for ac_header in linux/usbdevice_fs.h
10913 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10914 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10915 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10916 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10917 echo $ECHO_N "(cached
) $ECHO_C" >&6
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <linux/compiler.h>
10927 #include <$ac_header>
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest.$ac_objext; then
10946 eval "$as_ac_Header=yes"
10948 echo "$as_me: failed program was
:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 eval "$as_ac_Header=no
"
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 ac_res=`eval echo '${'$as_ac_Header'}'`
10957 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10958 echo "${ECHO_T}$ac_res" >&6; }
10959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960 cat >>confdefs.h <<_ACEOF
10961 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10970 for ac_header in linux/usbdevice_fs.h
10972 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10973 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10974 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10975 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10976 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10977 echo $ECHO_N "(cached
) $ECHO_C" >&6
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10983 # Is the header compilable?
10984 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10985 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10986 cat >conftest.$ac_ext <<_ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 $ac_includes_default
10993 #include <$ac_header>
10995 rm -f conftest.$ac_objext
10996 if { (ac_try="$ac_compile"
10997 case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_compile") 2>conftest.er1
11004 grep -v '^ *+' conftest.er1 >conftest.err
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11008 (exit $ac_status); } && {
11009 test -z "$ac_c_werror_flag" ||
11010 test ! -s conftest.err
11011 } && test -s conftest.$ac_objext; then
11012 ac_header_compiler=yes
11014 echo "$as_me: failed program was
:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ac_header_compiler=no
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11022 echo "${ECHO_T}$ac_header_compiler" >&6; }
11024 # Is the header present?
11025 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11026 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 #include <$ac_header>
11035 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11036 case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11043 grep -v '^ *+' conftest.er1 >conftest.err
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11047 (exit $ac_status); } >/dev/null && {
11048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11051 ac_header_preproc=yes
11053 echo "$as_me: failed program was
:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_header_preproc=no
11059 rm -f conftest.err conftest.$ac_ext
11060 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11061 echo "${ECHO_T}$ac_header_preproc" >&6; }
11063 # So? What about this header?
11064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11066 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11067 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11068 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11070 ac_header_preproc=yes
11073 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11074 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11075 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11076 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11077 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11078 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11079 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11080 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11081 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11083 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11084 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11088 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11089 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11091 echo $ECHO_N "(cached
) $ECHO_C" >&6
11093 eval "$as_ac_Header=\
$ac_header_preproc"
11095 ac_res=`eval echo '${'$as_ac_Header'}'`
11096 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11097 echo "${ECHO_T}$ac_res" >&6; }
11100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11110 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11112 # OK, does it define bRequestType? Older versions of the kernel
11113 # define fields with names like "requesttype
, "request", and
11114 # "value", rather than "bRequestType", "bRequest", and
11117 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11118 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11119 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 cat >conftest.
$ac_ext <<_ACEOF
11125 cat confdefs.h
>>conftest.
$ac_ext
11126 cat >>conftest.
$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11129 $ac_includes_default
11130 #ifdef HAVE_SYS_BITYPES_H
11131 #include <sys/bitypes.h>
11133 #ifdef HAVE_LINUX_COMPILER_H
11134 #include <linux/compiler.h>
11136 # include <linux/usbdevice_fs.h>
11140 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11145 rm -f conftest.
$ac_objext
11146 if { (ac_try
="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_c_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest.$ac_objext; then
11162 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11174 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11175 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11177 cat >>confdefs.h <<\_ACEOF
11178 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11185 { echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6; }
11192 { echo "$as_me:$LINENO: checking for netfilter sniffing support" >&5
11193 echo $ECHO_N "checking for netfilter sniffing support... $ECHO_C" >&6; }
11197 cat >>confdefs.h <<\_ACEOF
11198 #define PCAP_SUPPORT_NETFILTER 1
11201 NETFILTER_SRC=pcap-netfilter-linux.c
11202 { echo "$as_me:$LINENO: result: yes" >&5
11203 echo "${ECHO_T}yes" >&6; }
11206 { echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6; }
11213 # Check whether --enable-bluetooth was given.
11214 if test "${enable_bluetooth+set}" = set; then
11215 enableval=$enable_bluetooth;
11217 enable_bluetooth=yes
11221 if test "x$enable_bluetooth" != "xno" ; then
11224 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11225 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11226 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11227 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11231 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11233 # Is the header compilable?
11234 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11235 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11236 cat >conftest.$ac_ext <<_ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 $ac_includes_default
11243 #include <bluetooth/bluetooth.h>
11245 rm -f conftest.$ac_objext
11246 if { (ac_try="$ac_compile"
11247 case "(($ac_try" in
11248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11249 *) ac_try_echo
=$ac_try;;
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_compile") 2>conftest.er1
11254 grep -v '^ *+' conftest.er1
>conftest.err
11256 cat conftest.err
>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } && {
11259 test -z "$ac_c_werror_flag" ||
11260 test ! -s conftest.err
11261 } && test -s conftest.
$ac_objext; then
11262 ac_header_compiler
=yes
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.
$ac_ext >&5
11267 ac_header_compiler
=no
11270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11272 echo "${ECHO_T}$ac_header_compiler" >&6; }
11274 # Is the header present?
11275 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11276 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11277 cat >conftest.
$ac_ext <<_ACEOF
11280 cat confdefs.h
>>conftest.
$ac_ext
11281 cat >>conftest.
$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #include <bluetooth/bluetooth.h>
11285 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11286 case "(($ac_try" in
11287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } >/dev/null && {
11298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11301 ac_header_preproc=yes
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_header_preproc=no
11309 rm -f conftest.err conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11311 echo "${ECHO_T}$ac_header_preproc" >&6; }
11313 # So? What about this header?
11314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11316 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11317 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11319 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11320 ac_header_preproc=yes
11323 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11324 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
11326 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11328 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
11330 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11332 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11334 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11338 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11339 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11340 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11345 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11346 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11349 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11352 cat >>confdefs.h <<\_ACEOF
11353 #define PCAP_SUPPORT_BT 1
11356 BT_SRC=pcap-bt-linux.c
11357 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11358 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11361 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11362 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11369 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11370 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11377 # Check whether --enable-can was given.
11378 if test "${enable_can+set}" = set; then
11379 enableval=$enable_can;
11385 if test "x$enable_can" != "xno" ; then
11388 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11389 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11390 if test "${ac_cv_header_linux_can_h+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 cat >conftest.$ac_ext <<_ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #include <sys/socket.h>
11402 #include <linux/can.h>
11404 rm -f conftest.$ac_objext
11405 if { (ac_try="$ac_compile"
11406 case "(($ac_try" in
11407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11408 *) ac_try_echo
=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_compile") 2>conftest.er1
11413 grep -v '^ *+' conftest.er1
>conftest.err
11415 cat conftest.err
>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest.
$ac_objext; then
11421 ac_cv_header_linux_can_h
=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.
$ac_ext >&5
11426 ac_cv_header_linux_can_h
=no
11429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11432 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11433 if test $ac_cv_header_linux_can_h = yes; then
11435 cat >>confdefs.h
<<\_ACEOF
11436 #define PCAP_SUPPORT_CAN 1
11439 CAN_SRC
=pcap-can-linux.c
11440 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11441 echo "$as_me: CAN sniffing is supported" >&6;}
11443 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11444 echo "$as_me: CAN sniffing is not supported" >&6;}
11450 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11451 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11461 for ac_header
in linux
/net_tstamp.h
11463 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11464 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_res
=`eval echo '${'$as_ac_Header'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11474 # Is the header compilable?
11475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11477 cat >conftest.
$ac_ext <<_ACEOF
11480 cat confdefs.h
>>conftest.
$ac_ext
11481 cat >>conftest.
$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 $ac_includes_default
11484 #include <$ac_header>
11486 rm -f conftest.
$ac_objext
11487 if { (ac_try
="$ac_compile"
11488 case "(($ac_try" in
11489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11503 ac_header_compiler=yes
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 ac_header_compiler=no
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 echo "${ECHO_T}$ac_header_compiler" >&6; }
11515 # Is the header present?
11516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <$ac_header>
11526 if { (ac_try="$ac_cpp conftest.$ac_ext"
11527 case "(($ac_try" in
11528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11529 *) ac_try_echo
=$ac_try;;
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11534 grep -v '^ *+' conftest.er1
>conftest.err
11536 cat conftest.err
>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } >/dev
/null
&& {
11539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11540 test ! -s conftest.err
11542 ac_header_preproc
=yes
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.
$ac_ext >&5
11547 ac_header_preproc
=no
11550 rm -f conftest.err conftest.
$ac_ext
11551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552 echo "${ECHO_T}$ac_header_preproc" >&6; }
11554 # So? What about this header?
11555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11561 ac_header_preproc
=yes
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 eval "$as_ac_Header=\$ac_header_preproc"
11586 ac_res
=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11592 cat >>confdefs.h
<<_ACEOF
11593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11602 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11603 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11607 # Find a good install program. We prefer a C program (faster),
11608 # so one script is as good as another. But avoid the broken or
11609 # incompatible versions:
11610 # SysV /etc/install, /usr/sbin/install
11611 # SunOS /usr/etc/install
11612 # IRIX /sbin/install
11614 # AmigaOS /C/install, which installs bootblocks on floppy discs
11615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11618 # OS/2's system install, which has a completely different semantic
11619 # ./install, which can be erroneously created by make from ./install.sh.
11620 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11621 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11622 if test -z "$INSTALL"; then
11623 if test "${ac_cv_path_install+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11627 for as_dir
in $PATH
11630 test -z "$as_dir" && as_dir
=.
11631 # Account for people who put trailing slashes in PATH elements.
11633 .
/ | .
// |
/cC
/* | \
11634 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11635 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
11638 # OSF1 and SCO ODT 3.0 have their own names for install.
11639 # Don't use installbsd from OSF since it installs stuff as root
11641 for ac_prog
in ginstall scoinst
install; do
11642 for ac_exec_ext
in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11644 if test $ac_prog = install &&
11645 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11646 # AIX install. It has an incompatible calling convention.
11648 elif test $ac_prog = install &&
11649 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11650 # program-specific install script used by HP pwplus--don't use.
11653 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11666 if test "${ac_cv_path_install+set}" = set; then
11667 INSTALL
=$ac_cv_path_install
11669 # As a last resort, use the slow shell script. Don't cache a
11670 # value for INSTALL within a source directory, because that will
11671 # break other packages using the cache if that directory is
11672 # removed, or if the value is a relative name.
11673 INSTALL
=$ac_install_sh
11676 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11677 echo "${ECHO_T}$INSTALL" >&6; }
11679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11680 # It thinks the first close brace ends the variable substitution.
11681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11685 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11688 ac_config_headers
="$ac_config_headers config.h"
11691 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"
11693 cat >confcache
<<\_ACEOF
11694 # This file is a shell script that caches the results of configure
11695 # tests run on this system so they can be shared between configure
11696 # scripts and configure runs, see configure's option --config-cache.
11697 # It is not useful on other systems. If it contains results you don't
11698 # want to keep, you may remove or edit it.
11700 # config.status only pays attention to the cache file if you give it
11701 # the --recheck option to rerun configure.
11703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11705 # following values.
11709 # The following way of writing the cache mishandles newlines in values,
11710 # but we know of no workaround that is simple, portable, and efficient.
11711 # So, we kill variables containing newlines.
11712 # Ultrix sh set writes to stderr and can't be redirected directly,
11713 # and sets the high bit in the cache file unless we assign to the vars.
11715 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11716 eval ac_val
=\$
$ac_var
11720 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11724 _ | IFS | as_nl
) ;; #(
11725 *) $as_unset $ac_var ;;
11731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11732 *${as_nl}ac_space
=\
*)
11733 # `set' does not quote correctly, so add quotes (double-quote
11734 # substitution turns \\\\ into \\, and sed turns \\ into \).
11737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11740 # `set' quotes correctly as required by POSIX, so do not add quotes.
11741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11754 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11755 if test -w "$cache_file"; then
11756 test "x$cache_file" != "x/dev/null" &&
11757 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11758 echo "$as_me: updating cache $cache_file" >&6;}
11759 cat confcache
>$cache_file
11761 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11762 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11767 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11768 # Let make expand exec_prefix.
11769 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11771 DEFS
=-DHAVE_CONFIG_H
11775 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11776 # 1. Remove the extension, and $U if already installed.
11777 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11778 ac_i
=`echo "$ac_i" | sed "$ac_script"`
11779 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11780 # will be set to the directory where LIBOBJS objects are built.
11781 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11782 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11784 LIBOBJS
=$ac_libobjs
11786 LTLIBOBJS
=$ac_ltlibobjs
11790 : ${CONFIG_STATUS=./config.status}
11791 ac_clean_files_save
=$ac_clean_files
11792 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11795 cat >$CONFIG_STATUS <<_ACEOF
11797 # Generated by $as_me.
11798 # Run this file to recreate the current configuration.
11799 # Compiler output produced by configure, useful for debugging
11800 # configure, is in config.log if it exists.
11803 ac_cs_recheck=false
11805 SHELL=\${CONFIG_SHELL-$SHELL}
11808 cat >>$CONFIG_STATUS <<\_ACEOF
11809 ## --------------------- ##
11810 ## M4sh Initialization. ##
11811 ## --------------------- ##
11813 # Be more Bourne compatible
11814 DUALCASE
=1; export DUALCASE
# for MKS sh
11815 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11818 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11819 # is contrary to our usage. Disable this feature.
11820 alias -g '${1+"$@"}'='"$@"'
11821 setopt NO_GLOB_SUBST
11823 case `(set -o) 2>/dev/null` in
11824 *posix
*) set -o posix
;;
11833 # Avoid depending upon Character Ranges.
11834 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11835 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11836 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11837 as_cr_digits
='0123456789'
11838 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11840 # The user is always right.
11841 if test "${PATH_SEPARATOR+set}" != set; then
11842 echo "#! /bin/sh" >conf$$.sh
11843 echo "exit 0" >>conf$$.sh
11845 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11853 # Support unset when possible.
11854 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
11862 # We need space, tab and new line, in precisely that order. Quoting is
11863 # there to prevent editors from complaining about space-tab.
11864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11865 # splitting by setting IFS to empty value.)
11870 # Find who we are. Look in the path if we contain no directory separator.
11872 *[\\/]* ) as_myself
=$0 ;;
11873 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11874 for as_dir
in $PATH
11877 test -z "$as_dir" && as_dir
=.
11878 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11884 # We did not find ourselves, most probably we were run as `sh COMMAND'
11885 # in which case we are not to be found in the path.
11886 if test "x$as_myself" = x
; then
11889 if test ! -f "$as_myself"; then
11890 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11891 { (exit 1); exit 1; }
11894 # Work around bugs in pre-3.0 UWIN ksh.
11895 for as_var
in ENV MAIL MAILPATH
11896 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11906 LC_TELEPHONE LC_TIME
11908 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11909 eval $as_var=C
; export $as_var
11911 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11915 # Required to use basename.
11916 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11917 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11923 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11924 as_basename
=basename
11930 # Name of the executable.
11931 as_me
=`$as_basename -- "$0" ||
11932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11933 X"$0" : 'X\(//\)$' \| \
11934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11936 sed '/^.*\/\([^/][^/]*\)\/*$/{
11955 as_lineno_1
=$LINENO
11956 as_lineno_2
=$LINENO
11957 test "x$as_lineno_1" != "x$as_lineno_2" &&
11958 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
11960 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11961 # uniformly replaced by the line number. The first 'sed' inserts a
11962 # line-number line after each line using $LINENO; the second 'sed'
11963 # does the real work. The second script uses 'N' to pair each
11964 # line-number line with the line containing $LINENO, and appends
11965 # trailing '-' during substitution so that $LINENO is not a special
11966 # case at line end.
11967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11968 # scripts with optimization help from Paolo Bonzini. Blame Lee
11969 # E. McMahon (1931-1989) for sed's syntax. :-)
11981 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11984 ' >$as_me.lineno
&&
11985 chmod +x
"$as_me.lineno" ||
11986 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11987 { (exit 1); exit 1; }; }
11989 # Don't try to exec as it changes $[0], causing all sort of problems
11990 # (the dirname of $[0] is not the place where we might find the
11991 # original and so on. Autoconf is especially sensitive to this).
11992 .
"./$as_me.lineno"
11993 # Exit status is that of the last command.
11998 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12004 ECHO_C
= ECHO_N
= ECHO_T
=
12005 case `echo -n x` in
12007 case `echo 'x\c'` in
12008 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12015 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12016 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12022 rm -f conf$$ conf$$.exe conf$$.
file
12023 if test -d conf$$.dir
; then
12024 rm -f conf$$.dir
/conf$$.
file
12030 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12032 # ... but there are two gotchas:
12033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12035 # In both cases, we have to default to `cp -p'.
12036 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12038 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12043 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12044 rmdir conf$$.dir
2>/dev
/null
12046 if mkdir
-p .
2>/dev
/null
; then
12049 test -d .
/-p && rmdir .
/-p
12053 if test -x / >/dev
/null
2>&1; then
12054 as_test_x
='test -x'
12056 if ls -dL / >/dev
/null
2>&1; then
12063 if test -d "$1"; then
12069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12070 ???[sx]*):;;*)false;;esac;fi
12074 as_executable_p
=$as_test_x
12076 # Sed expression to map a string onto a valid CPP name.
12077 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12079 # Sed expression to map a string onto a valid variable name.
12080 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12085 # Save the log message, to keep $[0] and so on meaningful, and to
12086 # report actual input values of CONFIG_FILES etc. instead of their
12087 # values after options handling.
12089 This file was extended by $as_me, which was
12090 generated by GNU Autoconf 2.61. Invocation command line was
12092 CONFIG_FILES = $CONFIG_FILES
12093 CONFIG_HEADERS = $CONFIG_HEADERS
12094 CONFIG_LINKS = $CONFIG_LINKS
12095 CONFIG_COMMANDS = $CONFIG_COMMANDS
12098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12103 cat >>$CONFIG_STATUS <<_ACEOF
12104 # Files that config.status was made for.
12105 config_files="$ac_config_files"
12106 config_headers="$ac_config_headers"
12110 cat >>$CONFIG_STATUS <<\_ACEOF
12112 \`$as_me' instantiates files from templates according to the
12113 current configuration.
12115 Usage: $0 [OPTIONS] [FILE]...
12117 -h, --help print this help, then exit
12118 -V, --version print version number and configuration settings, then exit
12119 -q, --quiet do not print progress messages
12120 -d, --debug don't remove temporary files
12121 --recheck update $as_me by reconfiguring in the same conditions
12122 --file=FILE[:TEMPLATE]
12123 instantiate the configuration file FILE
12124 --header=FILE[:TEMPLATE]
12125 instantiate the configuration header FILE
12127 Configuration files:
12130 Configuration headers:
12133 Report bugs to <bug-autoconf@gnu.org>."
12136 cat >>$CONFIG_STATUS <<_ACEOF
12139 configured by $0, generated by GNU Autoconf 2.61,
12140 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12142 Copyright (C) 2006 Free Software Foundation, Inc.
12143 This config.status script is free software; the Free Software Foundation
12144 gives unlimited permission to copy, distribute and modify it."
12151 cat >>$CONFIG_STATUS <<\_ACEOF
12152 # If no file are specified by the user, then we need to provide default
12153 # value. By we need to know if files were specified by the user.
12159 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12160 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12171 # Handling of the options.
12172 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12174 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12175 echo "$ac_cs_version"; exit ;;
12176 --debug |
--debu |
--deb |
--de |
--d |
-d )
12178 --file |
--fil |
--fi |
--f )
12180 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12181 ac_need_defaults
=false
;;
12182 --header |
--heade |
--head |
--hea )
12184 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12185 ac_need_defaults
=false
;;
12187 # Conflict between --help and --header
12188 { echo "$as_me: error: ambiguous option: $1
12189 Try \`$0 --help' for more information." >&2
12190 { (exit 1); exit 1; }; };;
12191 --help |
--hel |
-h )
12192 echo "$ac_cs_usage"; exit ;;
12193 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12194 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12197 # This is an error.
12198 -*) { echo "$as_me: error: unrecognized option: $1
12199 Try \`$0 --help' for more information." >&2
12200 { (exit 1); exit 1; }; } ;;
12202 *) ac_config_targets
="$ac_config_targets $1"
12203 ac_need_defaults
=false
;;
12209 ac_configure_extra_args
=
12211 if $ac_cs_silent; then
12213 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12217 cat >>$CONFIG_STATUS <<_ACEOF
12218 if \$ac_cs_recheck; then
12219 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12220 CONFIG_SHELL=$SHELL
12221 export CONFIG_SHELL
12222 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12226 cat >>$CONFIG_STATUS <<\_ACEOF
12230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12231 ## Running $as_me. ##
12237 cat >>$CONFIG_STATUS <<_ACEOF
12240 cat >>$CONFIG_STATUS <<\_ACEOF
12242 # Handling of arguments.
12243 for ac_config_target
in $ac_config_targets
12245 case $ac_config_target in
12246 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12247 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12248 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
12249 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
12250 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12251 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
12252 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
12253 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
12254 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
12255 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12256 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12257 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12258 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12259 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12260 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12262 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12263 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12264 { (exit 1); exit 1; }; };;
12269 # If the user did not use the arguments to specify the items to instantiate,
12270 # then the envvar interface is used. Set only those that are not.
12271 # We use the long form for the default assignment because of an extremely
12272 # bizarre bug on SunOS 4.1.3.
12273 if $ac_need_defaults; then
12274 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12275 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12278 # Have a temporary directory for convenience. Make it in the build tree
12279 # simply because there is no reason against having it here, and in addition,
12280 # creating and moving files from /tmp can sometimes cause problems.
12281 # Hook for its removal unless debugging.
12282 # Note that there is a small window in which the directory will not be cleaned:
12283 # after its creation but before its name has been assigned to `$tmp'.
12287 trap 'exit_status=$?
12288 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12290 trap '{ (exit 1); exit 1; }' 1 2 13 15
12292 # Create a (secure) tmp directory for tmp files.
12295 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12296 test -n "$tmp" && test -d "$tmp"
12299 tmp
=.
/conf$$
-$RANDOM
12300 (umask 077 && mkdir
"$tmp")
12303 echo "$me: cannot create a temporary directory in ." >&2
12304 { (exit 1); exit 1; }
12308 # Set up the sed scripts for CONFIG_FILES section.
12311 # No need to generate the scripts if there are no CONFIG_FILES.
12312 # This happens for instance when ./config.status config.h
12313 if test -n "$CONFIG_FILES"; then
12320 for ac_last_try
in false false false false false
:; do
12321 cat >conf$
$subs.
sed <<_ACEOF
12322 SHELL!$SHELL$ac_delim
12323 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12324 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12325 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12326 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12327 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12328 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12329 exec_prefix!$exec_prefix$ac_delim
12330 prefix!$prefix$ac_delim
12331 program_transform_name!$program_transform_name$ac_delim
12332 bindir!$bindir$ac_delim
12333 sbindir!$sbindir$ac_delim
12334 libexecdir!$libexecdir$ac_delim
12335 datarootdir!$datarootdir$ac_delim
12336 datadir!$datadir$ac_delim
12337 sysconfdir!$sysconfdir$ac_delim
12338 sharedstatedir!$sharedstatedir$ac_delim
12339 localstatedir!$localstatedir$ac_delim
12340 includedir!$includedir$ac_delim
12341 oldincludedir!$oldincludedir$ac_delim
12342 docdir!$docdir$ac_delim
12343 infodir!$infodir$ac_delim
12344 htmldir!$htmldir$ac_delim
12345 dvidir!$dvidir$ac_delim
12346 pdfdir!$pdfdir$ac_delim
12347 psdir!$psdir$ac_delim
12348 libdir!$libdir$ac_delim
12349 localedir!$localedir$ac_delim
12350 mandir!$mandir$ac_delim
12351 DEFS!$DEFS$ac_delim
12352 ECHO_C!$ECHO_C$ac_delim
12353 ECHO_N!$ECHO_N$ac_delim
12354 ECHO_T!$ECHO_T$ac_delim
12355 LIBS!$LIBS$ac_delim
12356 build_alias!$build_alias$ac_delim
12357 host_alias!$host_alias$ac_delim
12358 target_alias!$target_alias$ac_delim
12359 build!$build$ac_delim
12360 build_cpu!$build_cpu$ac_delim
12361 build_vendor!$build_vendor$ac_delim
12362 build_os!$build_os$ac_delim
12363 host!$host$ac_delim
12364 host_cpu!$host_cpu$ac_delim
12365 host_vendor!$host_vendor$ac_delim
12366 host_os!$host_os$ac_delim
12367 target!$target$ac_delim
12368 target_cpu!$target_cpu$ac_delim
12369 target_vendor!$target_vendor$ac_delim
12370 target_os!$target_os$ac_delim
12371 SHLICC2!$SHLICC2$ac_delim
12373 CFLAGS!$CFLAGS$ac_delim
12374 LDFLAGS!$LDFLAGS$ac_delim
12375 CPPFLAGS!$CPPFLAGS$ac_delim
12376 ac_ct_CC!$ac_ct_CC$ac_delim
12377 EXEEXT!$EXEEXT$ac_delim
12378 OBJEXT!$OBJEXT$ac_delim
12380 GREP!$GREP$ac_delim
12381 EGREP!$EGREP$ac_delim
12382 LIBOBJS!$LIBOBJS$ac_delim
12383 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12384 V_LEX!$V_LEX$ac_delim
12385 V_YACC!$V_YACC$ac_delim
12386 RANLIB!$RANLIB$ac_delim
12388 V_CCOPT!$V_CCOPT$ac_delim
12389 V_DEFS!$V_DEFS$ac_delim
12390 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12391 V_INCLS!$V_INCLS$ac_delim
12392 V_PCAP!$V_PCAP$ac_delim
12393 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12394 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12395 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12396 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12397 ADDLOBJS!$ADDLOBJS$ac_delim
12398 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12399 SSRC!$SSRC$ac_delim
12400 DYEXT!$DYEXT$ac_delim
12401 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12402 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12403 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12404 USB_SRC!$USB_SRC$ac_delim
12405 PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12406 NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12407 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12408 BT_SRC!$BT_SRC$ac_delim
12409 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12410 CAN_SRC!$CAN_SRC$ac_delim
12411 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12412 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12413 INSTALL_DATA!$INSTALL_DATA$ac_delim
12414 LTLIBOBJS!$LTLIBOBJS$ac_delim
12417 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
12419 elif $ac_last_try; then
12420 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12421 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12422 { (exit 1); exit 1; }; }
12424 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12428 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12429 if test -n "$ac_eof"; then
12430 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12431 ac_eof
=`expr $ac_eof + 1`
12434 cat >>$CONFIG_STATUS <<_ACEOF
12435 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12439 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12440 s/^/s,@/; s/!/@,|#_!!_#|/
12443 s/'"$ac_delim"'$/,g/; t
12445 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12446 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12447 rm -f conf$
$subs.
sed
12448 cat >>$CONFIG_STATUS <<_ACEOF
12455 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12456 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12457 # trailing colons and then remove the whole line if VPATH becomes empty
12458 # (actually we leave an empty line to preserve line numbers).
12459 if test "x$srcdir" = x.
; then
12460 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12461 s/:*\$(srcdir):*/:/
12462 s/:*\${srcdir}:*/:/
12464 s/^\([^=]*=[ ]*\):*/\1/
12470 cat >>$CONFIG_STATUS <<\_ACEOF
12471 fi # test -n "$CONFIG_FILES"
12474 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
12477 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12479 case $ac_mode$ac_tag in
12481 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12482 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12483 { (exit 1); exit 1; }; };;
12484 :[FH
]-) ac_tag
=-:-;;
12485 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12502 -) ac_f
="$tmp/stdin";;
12503 *) # Look for the file first in the build tree, then in the source tree
12504 # (if the path is not absolute). The absolute path cannot be DOS-style,
12505 # because $ac_f cannot contain `:'.
12509 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12511 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12512 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12513 { (exit 1); exit 1; }; };;
12515 ac_file_inputs
="$ac_file_inputs $ac_f"
12518 # Let's still pretend it is `configure' which instantiates (i.e., don't
12519 # use $as_me), people would be surprised to read:
12520 # /* config.h. Generated by config.status. */
12521 configure_input
="Generated from "`IFS=:
12522 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12523 if test x
"$ac_file" != x-
; then
12524 configure_input
="$ac_file. $configure_input"
12525 { echo "$as_me:$LINENO: creating $ac_file" >&5
12526 echo "$as_me: creating $ac_file" >&6;}
12530 *:-:* |
*:-) cat >"$tmp/stdin";;
12535 ac_dir
=`$as_dirname -- "$ac_file" ||
12536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12537 X"$ac_file" : 'X\(//\)[^/]' \| \
12538 X"$ac_file" : 'X\(//\)$' \| \
12539 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12545 /^X\(\/\/\)[^/].*/{
12560 -*) as_dir
=.
/$as_dir;;
12562 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
12566 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12567 *) as_qdir
=$as_dir;;
12569 as_dirs
="'$as_qdir' $as_dirs"
12570 as_dir
=`$as_dirname -- "$as_dir" ||
12571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12572 X"$as_dir" : 'X\(//\)[^/]' \| \
12573 X"$as_dir" : 'X\(//\)$' \| \
12574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12580 /^X\(\/\/\)[^/].*/{
12593 test -d "$as_dir" && break
12595 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12596 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12597 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12598 { (exit 1); exit 1; }; }; }
12602 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12604 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12605 # A ".." for each directory in $ac_dir_suffix.
12606 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12607 case $ac_top_builddir_sub in
12608 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12609 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12612 ac_abs_top_builddir
=$ac_pwd
12613 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12614 # for backward compatibility:
12615 ac_top_builddir
=$ac_top_build_prefix
12618 .
) # We are building in place.
12620 ac_top_srcdir
=$ac_top_builddir_sub
12621 ac_abs_top_srcdir
=$ac_pwd ;;
12622 [\\/]* | ?
:[\\/]* ) # Absolute name.
12623 ac_srcdir
=$srcdir$ac_dir_suffix;
12624 ac_top_srcdir
=$srcdir
12625 ac_abs_top_srcdir
=$srcdir ;;
12626 *) # Relative name.
12627 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12628 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12629 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12631 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12641 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12642 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12646 cat >>$CONFIG_STATUS <<\_ACEOF
12647 # If the template does not know about datarootdir, expand it.
12648 # FIXME: This hack should be removed a few years after 2.60.
12649 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12651 case `sed -n '/datarootdir/ {
12660 ' $ac_file_inputs` in
12661 *datarootdir
*) ac_datarootdir_seen
=yes;;
12662 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12663 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12664 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12666 cat >>$CONFIG_STATUS <<_ACEOF
12667 ac_datarootdir_hack='
12668 s&@datadir@&$datadir&g
12669 s&@docdir@&$docdir&g
12670 s&@infodir@&$infodir&g
12671 s&@localedir@&$localedir&g
12672 s&@mandir@&$mandir&g
12673 s&\\\${datarootdir}&$datarootdir&g' ;;
12677 # Neutralize VPATH when `$srcdir' = `.'.
12678 # Shell code in configure.ac might set extrasub.
12679 # FIXME: do we really want to maintain this feature?
12680 cat >>$CONFIG_STATUS <<_ACEOF
12684 cat >>$CONFIG_STATUS <<\_ACEOF
12686 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12687 s
&@configure_input@
&$configure_input&;t t
12688 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12689 s
&@srcdir@
&$ac_srcdir&;t t
12690 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12691 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12692 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12693 s
&@builddir@
&$ac_builddir&;t t
12694 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12695 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12696 s
&@INSTALL@
&$ac_INSTALL&;t t
12697 $ac_datarootdir_hack
12698 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
12700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12701 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12703 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12704 which seems to be undefined. Please make sure it is defined." >&5
12705 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12706 which seems to be undefined. Please make sure it is defined." >&2;}
12710 -) cat "$tmp/out"; rm -f "$tmp/out";;
12711 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12720 # Transform confdefs.h into a sed script `conftest.defines', that
12721 # substitutes the proper values into config.h.in to produce config.h.
12722 rm -f conftest.defines conftest.
tail
12723 # First, append a space to every undef/define line, to ease matching.
12724 echo 's/$/ /' >conftest.defines
12725 # Then, protect against being on the right side of a sed subst, or in
12726 # an unquoted here document, in config.status. If some macros were
12727 # called several times there might be several #defines for the same
12728 # symbol, which is useless. But do not sort them, since the last
12729 # AC_DEFINE must be honored.
12730 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
12731 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12732 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12733 # PARAMS is the parameter list in the macro definition--in most cases, it's
12734 # just an empty string.
12735 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12736 ac_dB
='\\)[ (].*,\\1define\\2'
12744 s/^[ ]*#[ ]*define[ ][ ]*//
12749 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12750 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12751 ' >>conftest.defines
12753 # Remove the space that was appended to ease matching.
12754 # Then replace #undef with comments. This is necessary, for
12755 # example, in the case of _POSIX_SOURCE, which is predefined and required
12756 # on some systems where configure will not decide to define it.
12757 # (The regexp can be short, since the line contains either #define or #undef.)
12759 s,^[ #]*u.*,/* & */,' >>conftest.defines
12761 # Break up conftest.defines:
12762 ac_max_sed_lines
=50
12764 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12765 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12766 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12768 ac_in
='$ac_file_inputs'
12769 ac_out
='"$tmp/out1"'
12770 ac_nxt
='"$tmp/out2"'
12774 # Write a here document:
12775 cat >>$CONFIG_STATUS <<_ACEOF
12776 # First, check the format of the line:
12777 cat >"\$tmp/defines.sed" <<\\CEOF
12778 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12779 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12783 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
12785 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12786 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
12787 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
12788 grep . conftest.
tail >/dev
/null ||
break
12789 rm -f conftest.defines
12790 mv conftest.
tail conftest.defines
12792 rm -f conftest.defines conftest.
tail
12794 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12795 cat >>$CONFIG_STATUS <<\_ACEOF
12796 if test x
"$ac_file" != x-
; then
12797 echo "/* $configure_input */" >"$tmp/config.h"
12798 cat "$ac_result" >>"$tmp/config.h"
12799 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
12800 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12801 echo "$as_me: $ac_file is unchanged" >&6;}
12804 mv "$tmp/config.h" $ac_file
12807 echo "/* $configure_input */"
12819 { (exit 0); exit 0; }
12821 chmod +x
$CONFIG_STATUS
12822 ac_clean_files
=$ac_clean_files_save
12825 # configure is writing to config.log, and then calls config.status.
12826 # config.status does its own redirection, appending to config.log.
12827 # Unfortunately, on DOS this fails, as config.log is still kept open
12828 # by configure, so config.status won't be able to write to it; its
12829 # output is simply discarded. So we exec the FD to /dev/null,
12830 # effectively closing config.log, so it can be properly (re)opened and
12831 # appended to by config.status. When coming back to configure, we
12832 # need to make the FD available again.
12833 if test "$no_create" != yes; then
12835 ac_config_status_args
=
12836 test "$silent" = yes &&
12837 ac_config_status_args
="$ac_config_status_args --quiet"
12839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12842 # would make configure fail if this is the last instruction.
12843 $ac_cs_success ||
{ (exit 1); exit 1; }
12847 if test -f .devel
; then