2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="tcpdump.c"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
690 ac_precious_vars
='build_alias
701 # Initialize some variables set by options.
703 ac_init_version
=false
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
713 program_transform_name
=s
,x
,x
,
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir
='${exec_prefix}/bin'
728 sbindir
='${exec_prefix}/sbin'
729 libexecdir
='${exec_prefix}/libexec'
730 datarootdir
='${prefix}/share'
731 datadir
='${datarootdir}'
732 sysconfdir
='${prefix}/etc'
733 sharedstatedir
='${prefix}/com'
734 localstatedir
='${prefix}/var'
735 includedir
='${prefix}/include'
736 oldincludedir
='/usr/include'
737 docdir
='${datarootdir}/doc/${PACKAGE}'
738 infodir
='${datarootdir}/info'
743 libdir
='${exec_prefix}/lib'
744 localedir
='${datarootdir}/locale'
745 mandir
='${datarootdir}/man'
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\
$ac_option
759 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 # Accept the important Cygnus configure options, so we can diagnose typos.
765 case $ac_dashdash$ac_option in
769 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
771 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
774 -build |
--build |
--buil |
--bui |
--bu)
775 ac_prev
=build_alias
;;
776 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
777 build_alias
=$ac_optarg ;;
779 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
780 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
781 ac_prev
=cache_file
;;
782 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
783 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
784 cache_file
=$ac_optarg ;;
787 cache_file
=config.cache
;;
789 -datadir |
--datadir |
--datadi |
--datad)
791 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
792 datadir
=$ac_optarg ;;
794 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
795 |
--dataroo |
--dataro |
--datar)
796 ac_prev
=datarootdir
;;
797 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
798 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
799 datarootdir
=$ac_optarg ;;
801 -disable-* |
--disable-*)
802 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_
$ac_feature=no
;;
810 -docdir |
--docdir |
--docdi |
--doc |
--do)
812 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
815 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
817 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
820 -enable-* |
--enable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=\
$ac_optarg ;;
829 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
830 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
831 |
--exec |
--exe |
--ex)
832 ac_prev
=exec_prefix
;;
833 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
834 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
835 |
--exec=* |
--exe=* |
--ex=*)
836 exec_prefix
=$ac_optarg ;;
838 -gas |
--gas |
--ga |
--g)
839 # Obsolete; use --with-gas.
842 -help |
--help |
--hel |
--he |
-h)
844 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
845 ac_init_help
=recursive
;;
846 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
847 ac_init_help
=short
;;
849 -host |
--host |
--hos |
--ho)
850 ac_prev
=host_alias
;;
851 -host=* |
--host=* |
--hos=* |
--ho=*)
852 host_alias
=$ac_optarg ;;
854 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
856 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
858 htmldir
=$ac_optarg ;;
860 -includedir |
--includedir |
--includedi |
--included |
--include \
861 |
--includ |
--inclu |
--incl |
--inc)
862 ac_prev
=includedir
;;
863 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
864 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
865 includedir
=$ac_optarg ;;
867 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
869 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
870 infodir
=$ac_optarg ;;
872 -libdir |
--libdir |
--libdi |
--libd)
874 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
877 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
878 |
--libexe |
--libex |
--libe)
879 ac_prev
=libexecdir
;;
880 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
881 |
--libexe=* |
--libex=* |
--libe=*)
882 libexecdir
=$ac_optarg ;;
884 -localedir |
--localedir |
--localedi |
--localed |
--locale)
886 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
887 localedir
=$ac_optarg ;;
889 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
890 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
891 ac_prev
=localstatedir
;;
892 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
893 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
894 localstatedir
=$ac_optarg ;;
896 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
898 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
902 # Obsolete; use --without-fp.
905 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
906 |
--no-cr |
--no-c |
-n)
909 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
910 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
913 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
914 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
915 |
--oldin |
--oldi |
--old |
--ol |
--o)
916 ac_prev
=oldincludedir
;;
917 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
918 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
919 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
920 oldincludedir
=$ac_optarg ;;
922 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
924 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
927 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
928 |
--program-pre |
--program-pr |
--program-p)
929 ac_prev
=program_prefix
;;
930 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
931 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
932 program_prefix
=$ac_optarg ;;
934 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
935 |
--program-suf |
--program-su |
--program-s)
936 ac_prev
=program_suffix
;;
937 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
938 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
939 program_suffix
=$ac_optarg ;;
941 -program-transform-name |
--program-transform-name \
942 |
--program-transform-nam |
--program-transform-na \
943 |
--program-transform-n |
--program-transform- \
944 |
--program-transform |
--program-transfor \
945 |
--program-transfo |
--program-transf \
946 |
--program-trans |
--program-tran \
947 |
--progr-tra |
--program-tr |
--program-t)
948 ac_prev
=program_transform_name
;;
949 -program-transform-name=* |
--program-transform-name=* \
950 |
--program-transform-nam=* |
--program-transform-na=* \
951 |
--program-transform-n=* |
--program-transform-=* \
952 |
--program-transform=* |
--program-transfor=* \
953 |
--program-transfo=* |
--program-transf=* \
954 |
--program-trans=* |
--program-tran=* \
955 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
956 program_transform_name
=$ac_optarg ;;
958 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
960 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
963 -psdir |
--psdir |
--psdi |
--psd |
--ps)
965 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
969 |
-silent |
--silent |
--silen |
--sile |
--sil)
972 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
974 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
976 sbindir
=$ac_optarg ;;
978 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
979 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
980 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
982 ac_prev
=sharedstatedir
;;
983 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
984 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
985 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
987 sharedstatedir
=$ac_optarg ;;
989 -site |
--site |
--sit)
991 -site=* |
--site=* |
--sit=*)
994 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
996 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
999 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1000 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1001 ac_prev
=sysconfdir
;;
1002 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1003 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1004 sysconfdir
=$ac_optarg ;;
1006 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1007 ac_prev
=target_alias
;;
1008 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1009 target_alias
=$ac_optarg ;;
1011 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1014 -version |
--version |
--versio |
--versi |
--vers |
-V)
1015 ac_init_version
=: ;;
1018 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_
$ac_package=\
$ac_optarg ;;
1026 -without-* |
--without-*)
1027 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_
$ac_package=no
;;
1036 # Obsolete; use --with-x.
1039 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1040 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1041 ac_prev
=x_includes
;;
1042 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1043 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1044 x_includes
=$ac_optarg ;;
1046 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1047 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1048 ac_prev
=x_libraries
;;
1049 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1050 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1051 x_libraries
=$ac_optarg ;;
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054 Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1059 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\
$ac_optarg
1065 export $ac_envvar ;;
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1078 if test -n "$ac_prev"; then
1079 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1084 # Be sure to have absolute directory names.
1085 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1090 eval ac_val
=\$
$ac_var
1092 [\\/$
]* | ?
:[\\/]* ) continue;;
1093 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1104 target
=$target_alias
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x
; then
1108 if test "x$build_alias" = x
; then
1109 cross_compiling
=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1118 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1120 test "$silent" = yes && exec 6>/dev
/null
1123 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di
=`ls -di .` &&
1125 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted
=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir
=`$as_dirname -- "$0" ||
1138 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1165 ac_srcdir_defaulted
=no
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1172 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1185 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 for ac_var
in $ac_precious_vars; do
1188 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1190 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1195 # Report the --help message.
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1201 \`configure' configures this package to adapt to many kinds of systems.
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1208 Defaults for the options are specified in brackets.
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1232 For better control, use the options below.
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1259 --build=BUILD configure
for building on BUILD
[guessed
]
1260 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1264 if test -n "$ac_init_help"; then
1269 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1270 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1271 --disable-universal don
't build universal on OS X
1272 --enable-smb enable possibly-buggy SMB printer default=yes
1273 --disable-smb disable possibly-buggy SMB printer
1274 --enable-ipv6 enable ipv6 (with ipv4) support
1275 --disable-ipv6 disable ipv6 support
1278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1280 --without-gcc don't use gcc
1281 --with-smi link with libsmi
(allows to load MIBs on the fly to decode SNMP packets. default
=yes
1282 --without-smi don
't link with libsmi
1283 --with-user=USERNAME drop privileges by default to USERNAME
1284 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1285 --with-crypto use OpenSSL libcrypto [default=yes, if available]
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1297 Use these variables to override the choices made by `configure' or to
help
1298 it to
find libraries and programs with nonstandard names
/locations.
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1307 test -d "$ac_dir" ||
continue
1311 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1313 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1318 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1321 ac_abs_top_builddir
=$ac_pwd
1322 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir
=$ac_top_build_prefix
1327 .
) # We are building in place.
1329 ac_top_srcdir
=$ac_top_builddir_sub
1330 ac_abs_top_srcdir
=$ac_pwd ;;
1331 [\\/]* | ?
:[\\/]* ) # Absolute name.
1332 ac_srcdir
=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir
=$srcdir
1334 ac_abs_top_srcdir
=$srcdir ;;
1336 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1340 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1342 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1353 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1361 generated by GNU Autoconf
2.61
1363 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1365 This configure
script is free software
; the Free Software Foundation
1366 gives unlimited permission to copy
, distribute and modify it.
1370 cat >config.log
<<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1410 test -z "$as_dir" && as_dir
=.
1411 echo "PATH: $as_dir"
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1435 ac_must_keep_next
=false
1441 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1442 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1443 |
-silent |
--silent |
--silen |
--sile |
--sil)
1446 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1449 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1451 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true
; then
1453 ac_must_keep_next
=false
# Got value, back to normal.
1456 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1457 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1458 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1459 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1464 -* ) ac_must_keep_next
=true
;;
1467 ac_configure_args
="$ac_configure_args '$ac_arg'"
1472 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1473 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1491 # The following way of writing the cache mishandles newlines in values,
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1528 for ac_var in $ac_subst_vars
1530 eval ac_val=\$$ac_var
1532 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1534 echo "$ac_var='\''$ac_val'\''"
1538 if test -n "$ac_subst_files"; then
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1545 for ac_var
in $ac_subst_files
1547 eval ac_val
=\$
$ac_var
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 echo "$ac_var='\''$ac_val'\''"
1556 if test -s confdefs.h; then
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1574 for ac_signal
in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest
* confdefs.h
1582 # Predefined preprocessor variables.
1584 cat >>confdefs.h
<<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1589 cat >>confdefs.h
<<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1594 cat >>confdefs.h
<<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1599 cat >>confdefs.h
<<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1604 cat >>confdefs.h
<<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x
"$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE
; then
1614 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1616 set x
"$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1637 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1638 *) .
"./$cache_file";;
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1647 # Check that the precious variables saved in the cache have kept the same
1649 ac_cache_corrupted
=false
1650 for ac_var
in $ac_precious_vars; do
1651 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1652 eval ac_new_set
=\
$ac_env_${ac_var}_set
1653 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1654 eval ac_new_val
=\
$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted
=: ;;
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted
=: ;;
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted
=:
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1679 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg
=$ac_var=$ac_new_val ;;
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1713 ac_cpp
='$CPP $CPPFLAGS'
1714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1721 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722 if test -f "$ac_dir/install-sh"; then
1724 ac_install_sh
="$ac_aux_dir/install-sh -c"
1726 elif test -f "$ac_dir/install.sh"; then
1728 ac_install_sh
="$ac_aux_dir/install.sh -c"
1730 elif test -f "$ac_dir/shtool"; then
1732 ac_install_sh
="$ac_aux_dir/shtool install -c"
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739 { (exit 1); exit 1; }; }
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1747 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1748 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755 { (exit 1); exit 1; }; }
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 ac_build_alias
=$build_alias
1763 test "x$ac_build_alias" = x
&&
1764 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x
&&
1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768 { (exit 1); exit 1; }; }
1769 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772 { (exit 1); exit 1; }; }
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781 { (exit 1); exit 1; }; };;
1784 ac_save_IFS
=$IFS; IFS
='-'
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1794 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test "x$host_alias" = x
; then
1803 ac_cv_host
=$ac_cv_build
1805 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808 { (exit 1); exit 1; }; }
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818 { (exit 1); exit 1; }; };;
1821 ac_save_IFS
=$IFS; IFS
='-'
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1831 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1848 if test "${srcdir}" != "." ; then
1851 if test "${CFLAGS+set}" = set; then
1852 LBL_CFLAGS
="$CFLAGS"
1854 if test -z "$CC" ; then
1858 # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2
; ac_word
=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$SHLICC2"; then
1866 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir
=.
1873 for ac_exec_ext
in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_SHLICC2
="yes"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1886 SHLICC2
=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1896 if test $SHLICC2 = yes ; then
1903 if test -z "$CC" -a "$with_gcc" = no
; then
1909 ac_cpp
='$CPP $CPPFLAGS'
1910 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC
="$CC" # Let the user override the test.
1924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir
=.
1929 for ac_exec_ext
in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 if test -n "$CC"; then
1943 { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1952 if test -z "$ac_cv_prog_CC"; then
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc
; ac_word
=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir
=.
1969 for ac_exec_ext
in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_ac_ct_CC
="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1990 if test "x$ac_ct_CC" = x
; then
1993 case $cross_compiling:$ac_tool_warned in
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned
=yes ;;
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC
="$CC" # Let the user override the test.
2021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir
=.
2026 for ac_exec_ext
in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc
; ac_word
=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC
="$CC" # Let the user override the test.
2062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir
=.
2067 for ac_exec_ext
in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected
=yes
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test $ac_prog_rejected = yes; then
2082 # We found a bogon in the path, so make sure we never use it.
2083 set dummy
$ac_cv_prog_CC
2085 if test $# != 0; then
2086 # We chose a different compiler from the bogus one.
2087 # However, it has the same basename, so the bogon will be chosen
2088 # first if we set CC to just the basename; use the full file name.
2090 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog
in cl.exe
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC
="$CC" # Let the user override the test.
2120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir
=.
2125 for ac_exec_ext
in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2147 test -n "$CC" && break
2150 if test -z "$CC"; then
2152 for ac_prog
in cl.exe
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy
$ac_prog; ac_word
=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir
=.
2169 for ac_exec_ext
in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC
="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2191 test -n "$ac_ct_CC" && break
2194 if test "x$ac_ct_CC" = x
; then
2197 case $cross_compiling:$ac_tool_warned in
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet. If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned
=yes ;;
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler
=`set X $ac_compile; echo $2`
2223 { (ac_try
="$ac_compiler --version >&5"
2225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler --version >&5") 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2236 *) ac_try_echo
=$ac_try;;
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -v >&5") 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 { (ac_try
="$ac_compiler -V >&5"
2245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler -V >&5") 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2280 # only as a last resort. b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions. Remove them first so a
2285 # subsequent execution test works.
2287 for ac_file in $ac_files
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2296 if { (ac_try="$ac_link_default"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_link_default") 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2311 for ac_file
in $ac_files ''
2313 test -f "$ac_file" ||
continue
2315 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2318 # We found the default executable, but exeext='' is most
2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2324 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 # We set ac_cv_exeext here because the later test for it is not
2327 # safe: cross compilers may not add the suffix if given an `-o'
2328 # argument, so we may need to know it at that point already.
2329 # Even if this section looks crufty: it has the advantage of
2336 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.
$ac_ext >&5
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352 { (exit 77); exit 77; }; }
2355 ac_exeext
=$ac_cv_exeext
2357 # Check that the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try
='./$ac_file'
2365 { (case "(($ac_try" in
2366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_try") 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2376 if test "$cross_compiling" = maybe; then
2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details.
" >&5
2382 echo "$as_me: error
: cannot run C compiled programs.
2383 If you meant to cross compile
, use \
`--host'.
2384 See \`config.log
' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_link") 2>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2414 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2417 for ac_file
in conftest.exe conftest conftest.
*; do
2418 test -f "$ac_file" ||
continue
2420 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2421 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2434 rm -f conftest
$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2438 rm -f conftest.
$ac_ext
2439 EXEEXT
=$ac_cv_exeext
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 cat >conftest.
$ac_ext <<_ACEOF
2449 cat confdefs.h
>>conftest.
$ac_ext
2450 cat >>conftest.
$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try
="$ac_compile"
2464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in conftest.o conftest.obj conftest.*; do
2473 test -f "$ac_file" || continue;
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log
' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details.
" >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached
) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2539 echo "$as_me: failed program was
:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2549 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2555 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached
) $ECHO_C" >&6
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2597 echo "$as_me: failed program was
:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2635 echo "$as_me: failed program was
:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2674 echo "$as_me: failed program was
:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2689 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692 CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694 if test "$GCC" = yes; then
2700 if test "$GCC" = yes; then
2706 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2707 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709 echo $ECHO_N "(cached
) $ECHO_C" >&6
2711 ac_cv_prog_cc_c89=no
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2737 s = g (p, va_arg (v,int));
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2743 function prototypes and stuff, but not '\xHH' hex character constants.
2744 These don't provoke an error unfortunately, instead are silently treated
2745 as 'x'. The following induces an error, until -std is added to get
2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2747 array size at least. It's necessary to write '\x00'==0 to get something
2748 that's true only with -std. */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752 inside strings and character constants. */
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 ac_cv_prog_cc_c89=$ac_arg
2793 echo "$as_me: failed program was
:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f core conftest.err conftest.$ac_objext
2800 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2802 rm -f conftest.$ac_ext
2807 case "x
$ac_cv_prog_cc_c89" in
2809 { echo "$as_me:$LINENO: result
: none needed
" >&5
2810 echo "${ECHO_T}none needed
" >&6; } ;;
2812 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2813 echo "${ECHO_T}unsupported
" >&6; } ;;
2815 CC="$CC $ac_cv_prog_cc_c89"
2816 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831 if test "$GCC" = yes ; then
2832 if test "$SHLICC2" = yes ; then
2833 ac_cv_lbl_gcc_vers=2
2836 { echo "$as_me:$LINENO: checking gcc version
" >&5
2837 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839 echo $ECHO_N "(cached
) $ECHO_C" >&6
2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842 sed -e '/^gcc version /!d' \
2843 -e 's/^gcc version //' \
2844 -e 's/ .*//' -e 's/^[^0-9]*//' \
2848 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2855 V_INCLS="$V_INCLS -I/usr
/local
/include
"
2856 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
2862 # HP C, which is what we presume we're using, doesn't
2863 # exit with a non-zero exit status if we hand it an
2864 # invalid -W flag, can't be forced to do so even with
2865 # +We, and doesn't handle GCC-style -W flags, so we
2866 # don't want to try using GCC-style -W flags.
2868 ac_lbl_cc_dont_try_gcc_dashW=yes
2873 # MIPS C, which is what we presume we're using, doesn't
2874 # necessarily exit with a non-zero exit status if we
2875 # hand it an invalid -W flag, can't be forced to do
2876 # so, and doesn't handle GCC-style -W flags, so we
2877 # don't want to try using GCC-style -W flags.
2879 ac_lbl_cc_dont_try_gcc_dashW=yes
2880 V_CCOPT="$V_CCOPT -xansi -signed -O"
2885 # Presumed to be DEC OSF/1, Digital UNIX, or
2888 # The DEC C compiler, which is what we presume we're
2889 # using, doesn't exit with a non-zero exit status if we
2890 # hand it an invalid -W flag, can't be forced to do
2891 # so, and doesn't handle GCC-style -W flags, so we
2892 # don't want to try using GCC-style -W flags.
2894 ac_lbl_cc_dont_try_gcc_dashW=yes
2895 V_CCOPT="$V_CCOPT -O"
2899 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
2900 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
2901 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2902 echo $ECHO_N "(cached
) $ECHO_C" >&6
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 #include <sys/types.h>
2915 struct a { int b; };
2916 void c(const struct a *)
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2938 ac_cv_lbl_cc_const_proto=yes
2940 echo "$as_me: failed program was
:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 ac_cv_lbl_cc_const_proto=no
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
2950 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
2951 if test $ac_cv_lbl_cc_const_proto = no ; then
2953 cat >>confdefs.h <<\_ACEOF
2962 { echo "$as_me:$LINENO: checking
for inline
" >&5
2963 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
2964 save_CFLAGS="$CFLAGS"
2966 if test "${ac_cv_lbl_inline+set}" = set; then
2967 echo $ECHO_N "(cached
) $ECHO_C" >&6
2972 for ac_lbl_inline in inline __inline__ __inline
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 #define inline $ac_lbl_inline
2981 static inline struct iltest *foo(void);
2987 static inline struct iltest *
2990 static struct iltest xxx;
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3019 ac_lbl_cc_inline=yes
3021 echo "$as_me: failed program was
:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 if test "$ac_lbl_cc_inline" = yes ; then
3032 if test "$ac_lbl_cc_inline" = yes ; then
3033 ac_cv_lbl_inline=$ac_lbl_inline
3037 CFLAGS="$save_CFLAGS"
3038 if test ! -z "$ac_cv_lbl_inline" ; then
3039 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3040 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3042 { echo "$as_me:$LINENO: result
: no
" >&5
3043 echo "${ECHO_T}no
" >&6; }
3046 cat >>confdefs.h <<_ACEOF
3047 #define inline $ac_cv_lbl_inline
3051 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3052 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3053 if test "${ac_cv___attribute__+set}" = set; then
3054 echo $ECHO_N "(cached
) $ECHO_C" >&6
3057 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3067 static void foo(void) __attribute__ ((noreturn));
3076 main(int argc, char **argv)
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
3099 ac_cv___attribute__=yes
3101 echo "$as_me: failed program was
:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 ac_cv___attribute__=no
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 if test "$ac_cv___attribute__" = "yes"; then
3112 cat >>confdefs.h <<\_ACEOF
3113 #define HAVE___ATTRIBUTE__ 1
3116 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3118 V_DEFS="$V_DEFS -D_U_=\"\""
3120 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3121 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3123 if test "$ac_cv___attribute__" = "yes"; then
3125 { echo "$as_me:$LINENO: checking whether __attribute__
((format
)) can be applied to
function pointers
" >&5
3126 echo $ECHO_N "checking whether __attribute__
((format
)) can be applied to
function pointers...
$ECHO_C" >&6; }
3127 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3128 echo $ECHO_N "(cached
) $ECHO_C" >&6
3131 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3141 extern int (*foo)(const char *fmt, ...)
3142 __attribute__ ((format (printf, 1, 2)));
3145 main(int argc, char **argv)
3147 (*foo)("%s
", "test");
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3160 grep -v '^ *+' conftest.er1 >conftest.err
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3164 (exit $ac_status); } && {
3165 test -z "$ac_c_werror_flag" ||
3166 test ! -s conftest.err
3167 } && test -s conftest.$ac_objext; then
3168 ac_cv___attribute___format_function_pointer=yes
3170 echo "$as_me: failed program was
:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 ac_cv___attribute___format_function_pointer=no
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3181 cat >>confdefs.h <<\_ACEOF
3182 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3186 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___format_function_pointer" >&5
3187 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached
) $ECHO_C" >&6
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3209 for ac_c_preproc_warn_flag in '' yes
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error
" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 # include <limits.h>
3226 # include <assert.h>
3230 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3242 (exit $ac_status); } >/dev/null && {
3243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3248 echo "$as_me: failed program was
:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 # Broken: fails on valid input.
3255 rm -f conftest.err conftest.$ac_ext
3257 # OK, works on sane cases. Now check whether nonexistent headers
3258 # can be detected and how.
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 #include <ac_nonexistent.h>
3267 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3279 (exit $ac_status); } >/dev/null && {
3280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3283 # Broken: success on invalid input.
3286 echo "$as_me: failed program was
:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 # Passes both tests.
3294 rm -f conftest.err conftest.$ac_ext
3297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3298 rm -f conftest.err conftest.$ac_ext
3299 if $ac_preproc_ok; then
3311 { echo "$as_me:$LINENO: result
: $CPP" >&5
3312 echo "${ECHO_T}$CPP" >&6; }
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error
" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 # include <limits.h>
3331 # include <assert.h>
3335 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3347 (exit $ac_status); } >/dev/null && {
3348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3353 echo "$as_me: failed program was
:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3356 # Broken: fails on valid input.
3360 rm -f conftest.err conftest.$ac_ext
3362 # OK, works on sane cases. Now check whether nonexistent headers
3363 # can be detected and how.
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370 #include <ac_nonexistent.h>
3372 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3380 grep -v '^ *+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3384 (exit $ac_status); } >/dev/null && {
3385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3386 test ! -s conftest.err
3388 # Broken: success on invalid input.
3391 echo "$as_me: failed program was
:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Passes both tests.
3399 rm -f conftest.err conftest.$ac_ext
3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403 rm -f conftest.err conftest.$ac_ext
3404 if $ac_preproc_ok; then
3407 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3408 See \
`config.log' for more details." >&5
3409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3410 See \`config.log
' for more details." >&2;}
3411 { (exit 1); exit 1; }; }
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3417 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3422 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3423 if test "${ac_cv_path_GREP+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 # Extract the first word of "grep ggrep" to use in msg output
3427 if test -z "$GREP"; then
3428 set dummy grep ggrep; ac_prog_name=$2
3429 if test "${ac_cv_path_GREP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 ac_path_GREP_found=false
3433 # Loop through the user's path and
test for each of PROGNAME-LIST
3434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3438 test -z "$as_dir" && as_dir
=.
3439 for ac_prog
in grep ggrep
; do
3440 for ac_exec_ext
in '' $ac_executable_extensions; do
3441 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3442 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3443 # Check for GNU ac_path_GREP and select it if it is found.
3444 # Check for GNU $ac_path_GREP
3445 case `"$ac_path_GREP" --version 2>&1` in
3447 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3453 cat "conftest.in" "conftest.in" >"conftest.tmp"
3454 mv "conftest.tmp" "conftest.in"
3455 cp "conftest.in" "conftest.nl"
3456 echo 'GREP' >> "conftest.nl"
3457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3458 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3459 ac_count
=`expr $ac_count + 1`
3460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3461 # Best one so far, save it but keep looking for a better one
3462 ac_cv_path_GREP
="$ac_path_GREP"
3463 ac_path_GREP_max
=$ac_count
3465 # 10*(2^10) chars as input seems more than enough
3466 test $ac_count -gt 10 && break
3468 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3472 $ac_path_GREP_found && break 3
3482 GREP
="$ac_cv_path_GREP"
3483 if test -z "$GREP"; then
3484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3486 { (exit 1); exit 1; }; }
3490 ac_cv_path_GREP
=$GREP
3495 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3496 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3497 GREP
="$ac_cv_path_GREP"
3500 { echo "$as_me:$LINENO: checking for egrep" >&5
3501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3502 if test "${ac_cv_path_EGREP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3506 then ac_cv_path_EGREP
="$GREP -E"
3508 # Extract the first word of "egrep" to use in msg output
3509 if test -z "$EGREP"; then
3510 set dummy
egrep; ac_prog_name
=$2
3511 if test "${ac_cv_path_EGREP+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 ac_path_EGREP_found
=false
3515 # Loop through the user's path and test for each of PROGNAME-LIST
3516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3517 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3520 test -z "$as_dir" && as_dir
=.
3521 for ac_prog
in egrep; do
3522 for ac_exec_ext
in '' $ac_executable_extensions; do
3523 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3524 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3525 # Check for GNU ac_path_EGREP and select it if it is found.
3526 # Check for GNU $ac_path_EGREP
3527 case `"$ac_path_EGREP" --version 2>&1` in
3529 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3532 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3535 cat "conftest.in" "conftest.in" >"conftest.tmp"
3536 mv "conftest.tmp" "conftest.in"
3537 cp "conftest.in" "conftest.nl"
3538 echo 'EGREP' >> "conftest.nl"
3539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3540 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3541 ac_count
=`expr $ac_count + 1`
3542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3543 # Best one so far, save it but keep looking for a better one
3544 ac_cv_path_EGREP
="$ac_path_EGREP"
3545 ac_path_EGREP_max
=$ac_count
3547 # 10*(2^10) chars as input seems more than enough
3548 test $ac_count -gt 10 && break
3550 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3554 $ac_path_EGREP_found && break 3
3564 EGREP
="$ac_cv_path_EGREP"
3565 if test -z "$EGREP"; then
3566 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3567 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3568 { (exit 1); exit 1; }; }
3572 ac_cv_path_EGREP
=$EGREP
3578 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3579 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3580 EGREP
="$ac_cv_path_EGREP"
3583 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3584 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3585 if test "${ac_cv_header_stdc+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 cat >conftest.
$ac_ext <<_ACEOF
3591 cat confdefs.h
>>conftest.
$ac_ext
3592 cat >>conftest.
$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3607 rm -f conftest.
$ac_objext
3608 if { (ac_try
="$ac_compile"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 ac_cv_header_stdc=yes
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 ac_cv_header_stdc=no
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 if test $ac_cv_header_stdc = yes; then
3635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646 $EGREP "memchr" >/dev/null 2>&1; then
3649 ac_cv_header_stdc=no
3655 if test $ac_cv_header_stdc = yes; then
3656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667 $EGREP "free" >/dev/null 2>&1; then
3670 ac_cv_header_stdc=no
3676 if test $ac_cv_header_stdc = yes; then
3677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3678 if test "$cross_compiling" = yes; then
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3689 #if ((' ' & 0x0FF) == 0x020)
3690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3693 # define ISLOWER(c) \
3694 (('a' <= (c) && (c) <= 'i') \
3695 || ('j' <= (c) && (c) <= 'r') \
3696 || ('s' <= (c) && (c) <= 'z'))
3697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3705 for (i = 0; i < 256; i++)
3706 if (XOR (islower (i), ISLOWER (i))
3707 || toupper (i) != TOUPPER (i))
3712 rm -f conftest$ac_exeext
3713 if { (ac_try="$ac_link"
3715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3716 *) ac_try_echo
=$ac_try;;
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_link") 2>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3723 { (case "(($ac_try" in
3724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3734 echo "$as_me: program exited with status $ac_status" >&5
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_cv_header_stdc=no
3741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3747 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3748 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3749 if test $ac_cv_header_stdc = yes; then
3751 cat >>confdefs.h <<\_ACEOF
3752 #define STDC_HEADERS 1
3757 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3768 inttypes.h stdint.h unistd.h
3770 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 $ac_includes_default
3784 #include <$ac_header>
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3790 *) ac_try_echo
=$ac_try;;
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3795 grep -v '^ *+' conftest.er1
>conftest.err
3797 cat conftest.err
>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.
$ac_objext; then
3803 eval "$as_ac_Header=yes"
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.
$ac_ext >&5
3808 eval "$as_ac_Header=no"
3811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3813 ac_res
=`eval echo '${'$as_ac_Header'}'`
3814 { echo "$as_me:$LINENO: result: $ac_res" >&5
3815 echo "${ECHO_T}$ac_res" >&6; }
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817 cat >>confdefs.h
<<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3830 for ac_header
in fcntl.h rpc
/rpc.h rpc
/rpcent.h netdnet
/dnetdb.h
3832 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3836 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_res
=`eval echo '${'$as_ac_Header'}'`
3840 { echo "$as_me:$LINENO: result: $ac_res" >&5
3841 echo "${ECHO_T}$ac_res" >&6; }
3843 # Is the header compilable?
3844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3846 cat >conftest.
$ac_ext <<_ACEOF
3849 cat confdefs.h
>>conftest.
$ac_ext
3850 cat >>conftest.
$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 $ac_includes_default
3853 #include <$ac_header>
3855 rm -f conftest.
$ac_objext
3856 if { (ac_try
="$ac_compile"
3858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3872 ac_header_compiler=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_header_compiler=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3882 echo "${ECHO_T}$ac_header_compiler" >&6; }
3884 # Is the header present?
3885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <$ac_header>
3895 if { (ac_try="$ac_cpp conftest.$ac_ext"
3897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3898 *) ac_try_echo
=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1
>conftest.err
3905 cat conftest.err
>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } >/dev
/null
&& {
3908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3911 ac_header_preproc
=yes
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.
$ac_ext >&5
3916 ac_header_preproc
=no
3919 rm -f conftest.err conftest.
$ac_ext
3920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3921 echo "${ECHO_T}$ac_header_preproc" >&6; }
3923 # So? What about this header?
3924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3930 ac_header_preproc
=yes
3933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3950 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 eval "$as_ac_Header=\$ac_header_preproc"
3955 ac_res
=`eval echo '${'$as_ac_Header'}'`
3956 { echo "$as_me:$LINENO: result: $ac_res" >&5
3957 echo "${ECHO_T}$ac_res" >&6; }
3960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3961 cat >>confdefs.h
<<_ACEOF
3962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3970 for ac_header
in net
/pfvar.h
3972 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3975 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 cat >conftest.
$ac_ext <<_ACEOF
3981 cat confdefs.h
>>conftest.
$ac_ext
3982 cat >>conftest.
$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <sys/types.h>
3985 #include <sys/socket.h>
3988 #include <$ac_header>
3990 rm -f conftest.
$ac_objext
3991 if { (ac_try
="$ac_compile"
3993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest.$ac_objext; then
4007 eval "$as_ac_Header=yes"
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 eval "$as_ac_Header=no"
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_res=`eval echo '${'$as_ac_Header'}'`
4018 { echo "$as_me:$LINENO: result: $ac_res" >&5
4019 echo "${ECHO_T}$ac_res" >&6; }
4020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4021 cat >>confdefs.h <<_ACEOF
4022 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4029 if test "$ac_cv_header_net_pfvar_h" = yes; then
4030 LOCALSRC="print-pflog.c $LOCALSRC"
4033 for ac_header in netinet/if_ether.h
4035 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <sys/types.h>
4048 #include <sys/socket.h>
4050 #include <$ac_header>
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4056 *) ac_try_echo
=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1
>conftest.err
4063 cat conftest.err
>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.
$ac_objext; then
4069 eval "$as_ac_Header=yes"
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.
$ac_ext >&5
4074 eval "$as_ac_Header=no"
4077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4079 ac_res
=`eval echo '${'$as_ac_Header'}'`
4080 { echo "$as_me:$LINENO: result: $ac_res" >&5
4081 echo "${ECHO_T}$ac_res" >&6; }
4082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083 cat >>confdefs.h
<<_ACEOF
4084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4093 # The simple test didn't work.
4094 # Do we need to include <net/if.h> first?
4095 # Unset ac_cv_header_netinet_if_ether_h so we don't
4096 # treat the previous failure as a cached value and
4097 # suppress the next test.
4099 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4100 echo "$as_me: Rechecking with some additional includes" >&6;}
4101 unset ac_cv_header_netinet_if_ether_h
4103 for ac_header
in netinet
/if_ether.h
4105 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4108 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 cat >conftest.
$ac_ext <<_ACEOF
4114 cat confdefs.h
>>conftest.
$ac_ext
4115 cat >>conftest.
$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 #include <sys/socket.h>
4119 #include <netinet/in.h>
4124 #include <$ac_header>
4126 rm -f conftest.
$ac_objext
4127 if { (ac_try
="$ac_compile"
4129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_compile") 2>conftest.er1
4135 grep -v '^ *+' conftest.er1 >conftest.err
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } && {
4140 test -z "$ac_c_werror_flag" ||
4141 test ! -s conftest.err
4142 } && test -s conftest.$ac_objext; then
4143 eval "$as_ac_Header=yes"
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 eval "$as_ac_Header=no"
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_res=`eval echo '${'$as_ac_Header'}'`
4154 { echo "$as_me:$LINENO: result: $ac_res" >&5
4155 echo "${ECHO_T}$ac_res" >&6; }
4156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4157 cat >>confdefs.h <<_ACEOF
4158 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4167 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4168 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4169 if test "${ac_cv_header_time+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <sys/types.h>
4179 #include <sys/time.h>
4185 if ((struct tm *) 0)
4191 rm -f conftest.$ac_objext
4192 if { (ac_try="$ac_compile"
4194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4195 *) ac_try_echo
=$ac_try;;
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_compile") 2>conftest.er1
4200 grep -v '^ *+' conftest.er1
>conftest.err
4202 cat conftest.err
>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest.
$ac_objext; then
4208 ac_cv_header_time
=yes
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.
$ac_ext >&5
4213 ac_cv_header_time
=no
4216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4218 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4219 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4220 if test $ac_cv_header_time = yes; then
4222 cat >>confdefs.h
<<\_ACEOF
4223 #define TIME_WITH_SYS_TIME 1
4232 # Check whether --enable-universal was given.
4233 if test "${enable_universal+set}" = set; then
4234 enableval
=$enable_universal;
4237 if test "$enable_universal" != "no"; then
4242 # Leopard. Build for x86 and 32-bit PowerPC, with
4243 # x86 first. (That's what Apple does.)
4245 V_CCOPT
="$V_CCOPT -arch i386 -arch ppc"
4246 LDFLAGS
="$LDFLAGS -arch i386 -arch ppc"
4251 # Snow Leopard. Build for x86-64 and x86, with
4252 # x86-64 first. (That's what Apple does.)
4254 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386"
4255 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386"
4262 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4263 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4264 if test "$cross_compiling" = yes; then
4265 if test "${ac_cv_linux_vers+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 ac_cv_linux_vers
=unknown
4272 if test "${ac_cv_linux_vers+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_cv_linux_vers
=`uname -r 2>&1 | \
4276 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4280 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4281 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4282 if test $ac_cv_linux_vers = unknown
; then
4283 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4284 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4285 { (exit 1); exit 1; }; }
4287 if test $ac_cv_linux_vers -lt 2 ; then
4288 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4289 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4290 { (exit 1); exit 1; }; }
4300 # Check whether --with-smi was given.
4301 if test "${with_smi+set}" = set; then
4308 if test "x$with_smi" != "xno" ; then
4310 for ac_header
in smi.h
4312 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4316 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 ac_res
=`eval echo '${'$as_ac_Header'}'`
4320 { echo "$as_me:$LINENO: result: $ac_res" >&5
4321 echo "${ECHO_T}$ac_res" >&6; }
4323 # Is the header compilable?
4324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4326 cat >conftest.
$ac_ext <<_ACEOF
4329 cat confdefs.h
>>conftest.
$ac_ext
4330 cat >>conftest.
$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 $ac_includes_default
4333 #include <$ac_header>
4335 rm -f conftest.
$ac_objext
4336 if { (ac_try
="$ac_compile"
4338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_compile") 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && {
4349 test -z "$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 } && test -s conftest.$ac_objext; then
4352 ac_header_compiler=yes
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 ac_header_compiler=no
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4362 echo "${ECHO_T}$ac_header_compiler" >&6; }
4364 # Is the header present?
4365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <$ac_header>
4375 if { (ac_try="$ac_cpp conftest.$ac_ext"
4377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4378 *) ac_try_echo
=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1
>conftest.err
4385 cat conftest.err
>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev
/null
&& {
4388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4389 test ! -s conftest.err
4391 ac_header_preproc
=yes
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.
$ac_ext >&5
4396 ac_header_preproc
=no
4399 rm -f conftest.err conftest.
$ac_ext
4400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4401 echo "${ECHO_T}$ac_header_preproc" >&6; }
4403 # So? What about this header?
4404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4410 ac_header_preproc
=yes
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4430 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 eval "$as_ac_Header=\$ac_header_preproc"
4435 ac_res
=`eval echo '${'$as_ac_Header'}'`
4436 { echo "$as_me:$LINENO: result: $ac_res" >&5
4437 echo "${ECHO_T}$ac_res" >&6; }
4440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4441 cat >>confdefs.h
<<_ACEOF
4442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4450 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4451 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4452 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 ac_check_lib_save_LIBS
=$LIBS
4457 cat >conftest.
$ac_ext <<_ACEOF
4460 cat confdefs.h
>>conftest.
$ac_ext
4461 cat >>conftest.
$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4464 /* Override any GCC internal prototype to avoid an error.
4465 Use char because int might match the return type of a GCC
4466 builtin and then its argument prototype would still apply. */
4479 rm -f conftest.
$ac_objext conftest
$ac_exeext
4480 if { (ac_try
="$ac_link"
4482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_link") 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && {
4493 test -z "$ac_c_werror_flag" ||
4494 test ! -s conftest.err
4495 } && test -s conftest$ac_exeext &&
4496 $as_test_x conftest$ac_exeext; then
4497 ac_cv_lib_smi_smiInit=yes
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_cv_lib_smi_smiInit=no
4505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4506 conftest$ac_exeext conftest.$ac_ext
4507 LIBS=$ac_check_lib_save_LIBS
4509 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4510 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4511 if test $ac_cv_lib_smi_smiInit = yes; then
4512 cat >>confdefs.h <<_ACEOF
4513 #define HAVE_LIBSMI 1
4520 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4522 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4523 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4524 if test "$cross_compiling" = yes; then
4525 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4526 echo "${ECHO_T}not when cross-compiling" >&6; }
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 /* libsmi available check */
4540 int current, revision, age, n;
4541 const int required = 2;
4544 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4546 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4549 if (required < current - age || required > current)
4555 rm -f conftest$ac_exeext
4556 if { (ac_try="$ac_link"
4558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4559 *) ac_try_echo
=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_link") 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4566 { (case "(($ac_try" in
4567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 { echo "$as_me:$LINENO: result: yes" >&5
4576 echo "${ECHO_T}yes" >&6; }
4578 cat >>confdefs.h <<\_ACEOF
4584 echo "$as_me: program exited with status $ac_status" >&5
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4590 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4591 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4592 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4593 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4594 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4595 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4596 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4597 echo "${ECHO_T}no - too old" >&6; } ;;
4598 *) { echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6; } ;;
4603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4611 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4612 # Check whether --enable-smb was given.
4613 if test "${enable_smb+set}" = set; then
4614 enableval=$enable_smb;
4619 case "$enableval" in
4620 yes) { echo "$as_me:$LINENO: result: yes" >&5
4621 echo "${ECHO_T}yes" >&6; }
4622 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4623 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4625 cat >>confdefs.h <<\_ACEOF
4626 #define TCPDUMP_DO_SMB 1
4629 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4631 *) { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4637 # Check whether --with-user was given.
4638 if test "${with_user+set}" = set; then
4642 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4643 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4644 if test ! -z "$with_user" ; then
4646 cat >>confdefs.h <<_ACEOF
4647 #define WITH_USER "$withval"
4650 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4651 echo "${ECHO_T}to \"$withval\"" >&6; }
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4658 # Check whether --with-chroot was given.
4659 if test "${with_chroot+set}" = set; then
4660 withval=$with_chroot;
4663 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4664 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4665 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4667 cat >>confdefs.h <<_ACEOF
4668 #define WITH_CHROOT "$withval"
4671 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4672 echo "${ECHO_T}to \"$withval\"" >&6; }
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4679 # We must check this before checking whether to enable IPv6, because,
4680 # on some platforms (such as SunOS 5.x), the test program requires
4681 # the extra networking libraries.
4684 # Most operating systems have gethostbyname() in the default searched
4685 # libraries (i.e. libc):
4686 # Some OSes (eg. Solaris) place it in libnsl
4687 # Some strange OSes (SINIX) have it in libsocket:
4688 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4689 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4690 if test "${ac_cv_search_gethostbyname+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 ac_func_search_save_LIBS=$LIBS
4694 cat >conftest.$ac_ext <<_ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 /* Override any GCC internal prototype to avoid an error.
4702 Use char because int might match the return type of a GCC
4703 builtin and then its argument prototype would still apply. */
4707 char gethostbyname ();
4711 return gethostbyname ();
4716 for ac_lib in '' nsl socket resolv; do
4717 if test -z "$ac_lib"; then
4718 ac_res="none required"
4721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (ac_try="$ac_link"
4726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4727 *) ac_try_echo
=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1
>conftest.err
4734 cat conftest.err
>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest
$ac_exeext &&
4740 $as_test_x conftest
$ac_exeext; then
4741 ac_cv_search_gethostbyname
=$ac_res
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.
$ac_ext >&5
4749 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4751 if test "${ac_cv_search_gethostbyname+set}" = set; then
4755 if test "${ac_cv_search_gethostbyname+set}" = set; then
4758 ac_cv_search_gethostbyname
=no
4761 LIBS
=$ac_func_search_save_LIBS
4763 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4764 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4765 ac_res
=$ac_cv_search_gethostbyname
4766 if test "$ac_res" != no
; then
4767 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4771 # Unfortunately libsocket sometimes depends on libnsl and
4772 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4773 if test "$ac_cv_search_gethostbyname" = "no"
4775 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4776 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4777 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_check_lib_save_LIBS
=$LIBS
4781 LIBS
="-lsocket -lnsl $LIBS"
4782 cat >conftest.
$ac_ext <<_ACEOF
4785 cat confdefs.h
>>conftest.
$ac_ext
4786 cat >>conftest.
$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4789 /* Override any GCC internal prototype to avoid an error.
4790 Use char because int might match the return type of a GCC
4791 builtin and then its argument prototype would still apply. */
4795 char gethostbyname ();
4799 return gethostbyname ();
4804 rm -f conftest.
$ac_objext conftest
$ac_exeext
4805 if { (ac_try
="$ac_link"
4807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_link") 2>conftest.er1
4813 grep -v '^ *+' conftest.er1 >conftest.err
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest$ac_exeext &&
4821 $as_test_x conftest$ac_exeext; then
4822 ac_cv_lib_socket_gethostbyname=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_cv_lib_socket_gethostbyname=no
4830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4831 conftest$ac_exeext conftest.$ac_ext
4832 LIBS=$ac_check_lib_save_LIBS
4834 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4835 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
4836 if test $ac_cv_lib_socket_gethostbyname = yes; then
4837 LIBS="-lsocket -lnsl $LIBS"
4841 { echo "$as_me:$LINENO: checking for library containing socket" >&5
4842 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
4843 if test "${ac_cv_search_socket+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 ac_func_search_save_LIBS=$LIBS
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 /* Override any GCC internal prototype to avoid an error.
4855 Use char because int might match the return type of a GCC
4856 builtin and then its argument prototype would still apply. */
4869 for ac_lib in '' socket; do
4870 if test -z "$ac_lib"; then
4871 ac_res="none required"
4874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (ac_try="$ac_link"
4879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4880 *) ac_try_echo
=$ac_try;;
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_link") 2>conftest.er1
4885 grep -v '^ *+' conftest.er1
>conftest.err
4887 cat conftest.err
>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && {
4890 test -z "$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 } && test -s conftest
$ac_exeext &&
4893 $as_test_x conftest
$ac_exeext; then
4894 ac_cv_search_socket
=$ac_res
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.
$ac_ext >&5
4902 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4904 if test "${ac_cv_search_socket+set}" = set; then
4908 if test "${ac_cv_search_socket+set}" = set; then
4911 ac_cv_search_socket
=no
4914 LIBS
=$ac_func_search_save_LIBS
4916 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4917 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4918 ac_res
=$ac_cv_search_socket
4919 if test "$ac_res" != no
; then
4920 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4923 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4924 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4925 if test "${ac_cv_lib_socket_socket+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 ac_check_lib_save_LIBS
=$LIBS
4929 LIBS
="-lsocket -lnsl $LIBS"
4930 cat >conftest.
$ac_ext <<_ACEOF
4933 cat confdefs.h
>>conftest.
$ac_ext
4934 cat >>conftest.
$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4937 /* Override any GCC internal prototype to avoid an error.
4938 Use char because int might match the return type of a GCC
4939 builtin and then its argument prototype would still apply. */
4952 rm -f conftest.
$ac_objext conftest
$ac_exeext
4953 if { (ac_try
="$ac_link"
4955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_link") 2>conftest.er1
4961 grep -v '^ *+' conftest.er1 >conftest.err
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } && {
4966 test -z "$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4968 } && test -s conftest$ac_exeext &&
4969 $as_test_x conftest$ac_exeext; then
4970 ac_cv_lib_socket_socket=yes
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 ac_cv_lib_socket_socket=no
4978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4979 conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4983 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4984 if test $ac_cv_lib_socket_socket = yes; then
4985 LIBS="-lsocket -lnsl $LIBS"
4990 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4991 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4992 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
4993 if test "${ac_cv_search_putmsg+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 ac_func_search_save_LIBS=$LIBS
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5004 /* Override any GCC internal prototype to avoid an error.
5005 Use char because int might match the return type of a GCC
5006 builtin and then its argument prototype would still apply. */
5019 for ac_lib in '' str; do
5020 if test -z "$ac_lib"; then
5021 ac_res="none required"
5024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (ac_try="$ac_link"
5029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5030 *) ac_try_echo
=$ac_try;;
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_link") 2>conftest.er1
5035 grep -v '^ *+' conftest.er1
>conftest.err
5037 cat conftest.err
>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest
$ac_exeext &&
5043 $as_test_x conftest
$ac_exeext; then
5044 ac_cv_search_putmsg
=$ac_res
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.
$ac_ext >&5
5052 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5054 if test "${ac_cv_search_putmsg+set}" = set; then
5058 if test "${ac_cv_search_putmsg+set}" = set; then
5061 ac_cv_search_putmsg
=no
5064 LIBS
=$ac_func_search_save_LIBS
5066 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5067 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5068 ac_res
=$ac_cv_search_putmsg
5069 if test "$ac_res" != no
; then
5070 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5076 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5077 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5078 # Check whether --enable-ipv6 was given.
5079 if test "${enable_ipv6+set}" = set; then
5080 enableval
=$enable_ipv6; case "$enableval" in
5081 yes) { echo "$as_me:$LINENO: result: yes" >&5
5082 echo "${ECHO_T}yes" >&6; }
5083 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5085 cat >>confdefs.h
<<\_ACEOF
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5098 if test "$cross_compiling" = yes; then
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 /* AF_INET6 available check */
5111 #include <sys/types.h>
5112 #include <sys/socket.h>
5115 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5122 rm -f conftest
$ac_exeext
5123 if { (ac_try
="$ac_link"
5125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_link") 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5133 { (case "(($ac_try" in
5134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5135 *) ac_try_echo
=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_try") 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 { echo "$as_me:$LINENO: result: yes" >&5
5143 echo "${ECHO_T}yes" >&6; }
5144 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5146 cat >>confdefs.h
<<\_ACEOF
5152 echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.
$ac_ext >&5
5157 { echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6; }
5161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5172 if test "$ipv6" = "yes"; then
5173 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5174 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5175 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
5178 cat >conftest.
$ac_ext <<_ACEOF
5181 cat confdefs.h
>>conftest.
$ac_ext
5182 cat >>conftest.
$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #include <netinet/in.h>
5185 #ifdef IPV6_INRIA_VERSION
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "yes" >/dev
/null
2>&1; then
5192 CFLAGS
="-DINET6 $CFLAGS"
5198 cat >conftest.
$ac_ext <<_ACEOF
5201 cat confdefs.h
>>conftest.
$ac_ext
5202 cat >>conftest.
$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <netinet/in.h>
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "yes" >/dev
/null
2>&1; then
5213 ipv6libdir
=/usr
/local
/v
6/lib
;
5215 CFLAGS
="-DINET6 $CFLAGS"
5221 cat >conftest.
$ac_ext <<_ACEOF
5224 cat confdefs.h
>>conftest.
$ac_ext
5225 cat >>conftest.
$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <features.h>
5228 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233 $EGREP "yes" >/dev
/null
2>&1; then
5235 CFLAGS
="-DINET6 $CFLAGS"
5241 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
5244 ipv6libdir
=/usr
/inet
6/lib
5246 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
5250 cat >conftest.
$ac_ext <<_ACEOF
5253 cat confdefs.h
>>conftest.
$ac_ext
5254 cat >>conftest.
$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #include <sys/param.h>
5257 #ifdef _TOSHIBA_INET6
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "yes" >/dev
/null
2>&1; then
5265 ipv6libdir
=/usr
/local
/v
6/lib
;
5266 CFLAGS
="-DINET6 $CFLAGS"
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include </usr/local/v6/include/sys/v6config.h>
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "yes" >/dev
/null
2>&1; then
5287 ipv6libdir
=/usr
/local
/v
6/lib
;
5288 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
5294 cat >conftest.
$ac_ext <<_ACEOF
5297 cat confdefs.h
>>conftest.
$ac_ext
5298 cat >>conftest.
$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <sys/param.h>
5301 #ifdef _ZETA_MINAMI_INET6
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 $EGREP "yes" >/dev
/null
2>&1; then
5309 ipv6libdir
=/usr
/local
/v
6/lib
;
5310 CFLAGS
="-DINET6 $CFLAGS"
5316 if test "$ipv6type" != "unknown"; then
5320 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5321 echo "${ECHO_T}$ipv6type" >&6; }
5324 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5325 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
5326 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
5327 echo "You have $ipv6lib library, using it"
5329 if test "$ipv6trylibc" = "yes"; then
5330 echo "You do not have $ipv6lib library, using libc"
5332 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5333 echo "You need to fetch lib$ipv6lib.a from appropriate"
5334 echo 'ipv6 kit and compile beforehand.'
5341 if test "$ipv6" = "yes"; then
5343 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5344 # function in libc; there are "ngetaddrinfo()" and
5345 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5346 # "getaddrinfo" to be either "ngetaddrinfo" or
5347 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5348 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5350 # So this test doesn't work on Tru64 5.1, and possibly
5351 # on other 5.x releases. This causes the configure
5352 # script to become confused, and results in libpcap
5353 # being unbuildable.
5355 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5356 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5357 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_func_search_save_LIBS
=$LIBS
5361 cat >conftest.
$ac_ext <<_ACEOF
5364 cat confdefs.h
>>conftest.
$ac_ext
5365 cat >>conftest.
$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5368 /* Override any GCC internal prototype to avoid an error.
5369 Use char because int might match the return type of a GCC
5370 builtin and then its argument prototype would still apply. */
5374 char getaddrinfo ();
5378 return getaddrinfo ();
5383 for ac_lib
in '' socket
; do
5384 if test -z "$ac_lib"; then
5385 ac_res
="none required"
5388 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5390 rm -f conftest.
$ac_objext conftest
$ac_exeext
5391 if { (ac_try
="$ac_link"
5393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_link") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && {
5404 test -z "$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5406 } && test -s conftest$ac_exeext &&
5407 $as_test_x conftest$ac_exeext; then
5408 ac_cv_search_getaddrinfo=$ac_res
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5418 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5422 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5425 ac_cv_search_getaddrinfo=no
5428 LIBS=$ac_func_search_save_LIBS
5430 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5431 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5432 ac_res=$ac_cv_search_getaddrinfo
5433 if test "$ac_res" != no; then
5434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5435 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5436 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5437 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 if test "$cross_compiling" = yes; then
5441 td_cv_buggygetaddrinfo=yes
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5450 #include <sys/types.h>
5453 #include <sys/socket.h>
5454 #include <netinet/in.h>
5458 int passive, gaierr, inet4 = 0, inet6 = 0;
5459 struct addrinfo hints, *ai, *aitop;
5460 char straddr[INET6_ADDRSTRLEN], strport[16];
5462 for (passive = 0; passive <= 1; passive++) {
5463 memset(&hints, 0, sizeof(hints));
5464 hints.ai_family = AF_UNSPEC;
5465 hints.ai_flags = passive ? AI_PASSIVE : 0;
5466 hints.ai_socktype = SOCK_STREAM;
5467 hints.ai_protocol = IPPROTO_TCP;
5468 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5469 (void)gai_strerror(gaierr);
5472 for (ai = aitop; ai; ai = ai->ai_next) {
5473 if (ai->ai_addr == NULL ||
5474 ai->ai_addrlen == 0 ||
5475 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5476 straddr, sizeof(straddr), strport, sizeof(strport),
5477 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5480 switch (ai->ai_family) {
5482 if (strcmp(strport, "54321") != 0) {
5486 if (strcmp(straddr, "0.0.0.0") != 0) {
5490 if (strcmp(straddr, "127.0.0.1") != 0) {
5497 if (strcmp(strport, "54321") != 0) {
5501 if (strcmp(straddr, "::") != 0) {
5505 if (strcmp(straddr, "::1") != 0) {
5522 /* another family support? */
5528 /* supported family should be 2, unsupported family should be 0 */
5529 if (!(inet4 == 0 || inet4 == 2))
5531 if (!(inet6 == 0 || inet6 == 2))
5535 freeaddrinfo(aitop);
5540 freeaddrinfo(aitop);
5545 rm -f conftest$ac_exeext
5546 if { (ac_try="$ac_link"
5548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5549 *) ac_try_echo
=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_link") 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5556 { (case "(($ac_try" in
5557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 td_cv_buggygetaddrinfo=no
5567 echo "$as_me: program exited with status $ac_status" >&5
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5572 td_cv_buggygetaddrinfo=yes
5574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5580 if test "$td_cv_buggygetaddrinfo" = no; then
5581 { echo "$as_me:$LINENO: result: good" >&5
5582 echo "${ECHO_T}good" >&6; }
5584 { echo "$as_me:$LINENO: result: buggy" >&5
5585 echo "${ECHO_T}buggy" >&6; }
5588 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5590 # XXX - it doesn't appear that "ipv6type" can ever be
5591 # set to "linux". Should this be testing for
5592 # "linux-glibc", or for that *or* "linux-libinet6"?
5593 # If the latter, note that "linux-libinet6" is also
5594 # the type given to some non-Linux OSes.
5596 if test "$ipv6type" != "linux"; then
5597 echo 'Fatal: You must get working getaddrinfo() function.'
5598 echo ' or you can specify "--disable-ipv6"'.
5601 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5602 echo ' Better upgrade your system library to newest version'
5603 echo ' of GNU C library (aka glibc).'
5610 for ac_func in getnameinfo
5612 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5626 #define $ac_func innocuous_$ac_func
5628 /* System header to define __stub macros and hopefully few prototypes,
5629 which can conflict with char $ac_func (); below.
5630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 <limits.h> exists even on freestanding compilers. */
5634 # include <limits.h>
5636 # include <assert.h>
5641 /* Override any GCC internal prototype to avoid an error.
5642 Use char because int might match the return type of a GCC
5643 builtin and then its argument prototype would still apply. */
5648 /* The GNU C library defines this for functions which it implements
5649 to always fail with ENOSYS. Some functions are actually named
5650 something starting with __ and the normal name is an alias. */
5651 #if defined __stub_$ac_func || defined __stub___$ac_func
5663 rm -f conftest.$ac_objext conftest$ac_exeext
5664 if { (ac_try="$ac_link"
5666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5667 *) ac_try_echo
=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_link") 2>conftest.er1
5672 grep -v '^ *+' conftest.er1
>conftest.err
5674 cat conftest.err
>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest
$ac_exeext &&
5680 $as_test_x conftest
$ac_exeext; then
5681 eval "$as_ac_var=yes"
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.
$ac_ext >&5
5686 eval "$as_ac_var=no"
5689 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5690 conftest
$ac_exeext conftest.
$ac_ext
5692 ac_res
=`eval echo '${'$as_ac_var'}'`
5693 { echo "$as_me:$LINENO: result: $ac_res" >&5
5694 echo "${ECHO_T}$ac_res" >&6; }
5695 if test `eval echo '${'$as_ac_var'}'` = yes; then
5696 cat >>confdefs.h
<<_ACEOF
5697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5701 case " $LIBOBJS " in
5702 *" $ac_func.$ac_objext "* ) ;;
5703 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5713 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5714 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5715 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 cat >conftest.
$ac_ext <<_ACEOF
5721 cat confdefs.h
>>conftest.
$ac_ext
5722 cat >>conftest.
$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #include <netdnet/dnetdb.h>
5727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5728 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
5729 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
5731 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
5736 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5737 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5738 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5740 cat >>confdefs.h
<<\_ACEOF
5741 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5747 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5748 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5749 if test "${ac_cv_addrinfo+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cat >conftest.
$ac_ext <<_ACEOF
5755 cat confdefs.h
>>conftest.
$ac_ext
5756 cat >>conftest.
$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5768 rm -f conftest.
$ac_objext
5769 if { (ac_try
="$ac_compile"
5771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5777 grep -v '^ *+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.$ac_objext; then
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5797 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5798 if test $ac_cv_addrinfo = yes; then
5800 cat >>confdefs.h <<\_ACEOF
5801 #define HAVE_ADDRINFO 1
5806 cat >>confdefs.h <<\_ACEOF
5807 #define NEED_ADDRINFO_H 1
5812 if test "$ac_cv_addrinfo" = no; then
5813 missing_includes=yes
5817 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5818 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5819 if test "${ac_cv_maxserv+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5834 $EGREP "yes" >/dev/null 2>&1; then
5843 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5844 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5845 if test $ac_cv_maxserv != yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define NEED_ADDRINFO_H 1
5852 if test "$ac_cv_maxserv" = no; then
5853 missing_includes=yes
5857 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5858 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5859 if test "${ac_cv_namereqd+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5874 $EGREP "yes" >/dev/null 2>&1; then
5883 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5884 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
5885 if test $ac_cv_namereqd != yes; then
5886 cat >>confdefs.h <<\_ACEOF
5887 #define NEED_ADDRINFO_H 1
5892 if test "$ac_cv_namereqd" = no; then
5893 missing_includes=yes
5897 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5898 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5899 if test "${ac_cv_sa_storage+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5909 # include <sys/types.h>
5910 # include <sys/socket.h>
5914 struct sockaddr_storage s
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5923 *) ac_try_echo
=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1
>conftest.err
5930 cat conftest.err
>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.
$ac_objext; then
5936 ac_cv_sa_storage
=yes
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.
$ac_ext >&5
5944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5947 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5948 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
5949 if test $ac_cv_sa_storage = yes; then
5951 cat >>confdefs.h
<<\_ACEOF
5952 #define HAVE_SOCKADDR_STORAGE 1
5957 if test "$ac_cv_sa_storage" = no
; then
5958 missing_includes
=yes
5967 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
5969 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5972 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.
$ac_ext <<_ACEOF
5978 cat confdefs.h
>>conftest.
$ac_ext
5979 cat >>conftest.
$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5983 #define $ac_func innocuous_$ac_func
5985 /* System header to define __stub macros and hopefully few prototypes,
5986 which can conflict with char $ac_func (); below.
5987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 <limits.h> exists even on freestanding compilers. */
5991 # include <limits.h>
5993 # include <assert.h>
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6005 /* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
6008 #if defined __stub_$ac_func || defined __stub___$ac_func
6020 rm -f conftest.
$ac_objext conftest
$ac_exeext
6021 if { (ac_try
="$ac_link"
6023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1 >conftest.err
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest$ac_exeext &&
6037 $as_test_x conftest$ac_exeext; then
6038 eval "$as_ac_var=yes"
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 eval "$as_ac_var=no"
6046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6047 conftest$ac_exeext conftest.$ac_ext
6049 ac_res=`eval echo '${'$as_ac_var'}'`
6050 { echo "$as_me:$LINENO: result: $ac_res" >&5
6051 echo "${ECHO_T}$ac_res" >&6; }
6052 if test `eval echo '${'$as_ac_var'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6058 case " $LIBOBJS " in
6059 *" $ac_func.$ac_objext "* ) ;;
6060 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6071 for ac_func in fork vfork strftime
6073 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6087 #define $ac_func innocuous_$ac_func
6089 /* System header to define __stub macros and hopefully few prototypes,
6090 which can conflict with char $ac_func (); below.
6091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6092 <limits.h> exists even on freestanding compilers. */
6095 # include <limits.h>
6097 # include <assert.h>
6102 /* Override any GCC internal prototype to avoid an error.
6103 Use char because int might match the return type of a GCC
6104 builtin and then its argument prototype would still apply. */
6109 /* The GNU C library defines this for functions which it implements
6110 to always fail with ENOSYS. Some functions are actually named
6111 something starting with __ and the normal name is an alias. */
6112 #if defined __stub_$ac_func || defined __stub___$ac_func
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (ac_try="$ac_link"
6127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6128 *) ac_try_echo
=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_link") 2>conftest.er1
6133 grep -v '^ *+' conftest.er1
>conftest.err
6135 cat conftest.err
>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest
$ac_exeext &&
6141 $as_test_x conftest
$ac_exeext; then
6142 eval "$as_ac_var=yes"
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6147 eval "$as_ac_var=no"
6150 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6151 conftest
$ac_exeext conftest.
$ac_ext
6153 ac_res
=`eval echo '${'$as_ac_var'}'`
6154 { echo "$as_me:$LINENO: result: $ac_res" >&5
6155 echo "${ECHO_T}$ac_res" >&6; }
6156 if test `eval echo '${'$as_ac_var'}'` = yes; then
6157 cat >>confdefs.h
<<_ACEOF
6158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6166 for ac_func
in setlinebuf alarm
6168 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6171 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 cat >conftest.
$ac_ext <<_ACEOF
6177 cat confdefs.h
>>conftest.
$ac_ext
6178 cat >>conftest.
$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6182 #define $ac_func innocuous_$ac_func
6184 /* System header to define __stub macros and hopefully few prototypes,
6185 which can conflict with char $ac_func (); below.
6186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187 <limits.h> exists even on freestanding compilers. */
6190 # include <limits.h>
6192 # include <assert.h>
6197 /* Override any GCC internal prototype to avoid an error.
6198 Use char because int might match the return type of a GCC
6199 builtin and then its argument prototype would still apply. */
6204 /* The GNU C library defines this for functions which it implements
6205 to always fail with ENOSYS. Some functions are actually named
6206 something starting with __ and the normal name is an alias. */
6207 #if defined __stub_$ac_func || defined __stub___$ac_func
6219 rm -f conftest.
$ac_objext conftest
$ac_exeext
6220 if { (ac_try
="$ac_link"
6222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_link") 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest$ac_exeext &&
6236 $as_test_x conftest$ac_exeext; then
6237 eval "$as_ac_var=yes"
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 eval "$as_ac_var=no"
6245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6246 conftest$ac_exeext conftest.$ac_ext
6248 ac_res=`eval echo '${'$as_ac_var'}'`
6249 { echo "$as_me:$LINENO: result: $ac_res" >&5
6250 echo "${ECHO_T}$ac_res" >&6; }
6251 if test `eval echo '${'$as_ac_var'}'` = yes; then
6252 cat >>confdefs.h <<_ACEOF
6253 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6263 for ac_func in vsnprintf snprintf
6265 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6279 #define $ac_func innocuous_$ac_func
6281 /* System header to define __stub macros and hopefully few prototypes,
6282 which can conflict with char $ac_func (); below.
6283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6284 <limits.h> exists even on freestanding compilers. */
6287 # include <limits.h>
6289 # include <assert.h>
6294 /* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
6301 /* The GNU C library defines this for functions which it implements
6302 to always fail with ENOSYS. Some functions are actually named
6303 something starting with __ and the normal name is an alias. */
6304 #if defined __stub_$ac_func || defined __stub___$ac_func
6316 rm -f conftest.$ac_objext conftest$ac_exeext
6317 if { (ac_try="$ac_link"
6319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6320 *) ac_try_echo
=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_link") 2>conftest.er1
6325 grep -v '^ *+' conftest.er1
>conftest.err
6327 cat conftest.err
>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest
$ac_exeext &&
6333 $as_test_x conftest
$ac_exeext; then
6334 eval "$as_ac_var=yes"
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.
$ac_ext >&5
6339 eval "$as_ac_var=no"
6342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6343 conftest
$ac_exeext conftest.
$ac_ext
6345 ac_res
=`eval echo '${'$as_ac_var'}'`
6346 { echo "$as_me:$LINENO: result: $ac_res" >&5
6347 echo "${ECHO_T}$ac_res" >&6; }
6348 if test `eval echo '${'$as_ac_var'}'` = yes; then
6349 cat >>confdefs.h
<<_ACEOF
6350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6358 if test $needsnprintf = yes; then
6359 case " $LIBOBJS " in
6360 *" snprintf.$ac_objext "* ) ;;
6361 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6368 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6369 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6370 if test "${ac_cv_type_signal+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 cat >conftest.
$ac_ext <<_ACEOF
6376 cat confdefs.h
>>conftest.
$ac_ext
6377 cat >>conftest.
$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <sys/types.h>
6385 return *(signal (0, 0)) (0) == 1;
6390 rm -f conftest.
$ac_objext
6391 if { (ac_try
="$ac_compile"
6393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_cv_type_signal=int
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_cv_type_signal=void
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6418 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6420 cat >>confdefs.h <<_ACEOF
6421 #define RETSIGTYPE $ac_cv_type_signal
6425 if test "$ac_cv_type_signal" = void ; then
6427 cat >>confdefs.h <<\_ACEOF
6433 cat >>confdefs.h <<\_ACEOF
6434 #define RETSIGVAL (0)
6442 cat >>confdefs.h <<\_ACEOF
6443 #define _BSD_SIGNALS 1
6450 for ac_func in sigaction
6452 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6466 #define $ac_func innocuous_$ac_func
6468 /* System header to define __stub macros and hopefully few prototypes,
6469 which can conflict with char $ac_func (); below.
6470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 <limits.h> exists even on freestanding compilers. */
6474 # include <limits.h>
6476 # include <assert.h>
6481 /* Override any GCC internal prototype to avoid an error.
6482 Use char because int might match the return type of a GCC
6483 builtin and then its argument prototype would still apply. */
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined __stub_$ac_func || defined __stub___$ac_func
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (ac_try="$ac_link"
6506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6507 *) ac_try_echo
=$ac_try;;
6509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510 (eval "$ac_link") 2>conftest.er1
6512 grep -v '^ *+' conftest.er1
>conftest.err
6514 cat conftest.err
>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } && {
6517 test -z "$ac_c_werror_flag" ||
6518 test ! -s conftest.err
6519 } && test -s conftest
$ac_exeext &&
6520 $as_test_x conftest
$ac_exeext; then
6521 eval "$as_ac_var=yes"
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.
$ac_ext >&5
6526 eval "$as_ac_var=no"
6529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6530 conftest
$ac_exeext conftest.
$ac_ext
6532 ac_res
=`eval echo '${'$as_ac_var'}'`
6533 { echo "$as_me:$LINENO: result: $ac_res" >&5
6534 echo "${ECHO_T}$ac_res" >&6; }
6535 if test `eval echo '${'$as_ac_var'}'` = yes; then
6536 cat >>confdefs.h
<<_ACEOF
6537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6543 if test $ac_cv_func_sigaction = no
; then
6545 for ac_func
in sigset
6547 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6550 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 cat >conftest.
$ac_ext <<_ACEOF
6556 cat confdefs.h
>>conftest.
$ac_ext
6557 cat >>conftest.
$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6561 #define $ac_func innocuous_$ac_func
6563 /* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char $ac_func (); below.
6565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6566 <limits.h> exists even on freestanding compilers. */
6569 # include <limits.h>
6571 # include <assert.h>
6576 /* Override any GCC internal prototype to avoid an error.
6577 Use char because int might match the return type of a GCC
6578 builtin and then its argument prototype would still apply. */
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined __stub_$ac_func || defined __stub___$ac_func
6598 rm -f conftest.
$ac_objext conftest
$ac_exeext
6599 if { (ac_try
="$ac_link"
6601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_link") 2>conftest.er1
6607 grep -v '^ *+' conftest.er1 >conftest.err
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && {
6612 test -z "$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 } && test -s conftest$ac_exeext &&
6615 $as_test_x conftest$ac_exeext; then
6616 eval "$as_ac_var=yes"
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 eval "$as_ac_var=no"
6624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6625 conftest$ac_exeext conftest.$ac_ext
6627 ac_res=`eval echo '${'$as_ac_var'}'`
6628 { echo "$as_me:$LINENO: result: $ac_res" >&5
6629 echo "${ECHO_T}$ac_res" >&6; }
6630 if test `eval echo '${'$as_ac_var'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6642 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6643 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6644 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 ac_func_search_save_LIBS=$LIBS
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6655 /* Override any GCC internal prototype to avoid an error.
6656 Use char because int might match the return type of a GCC
6657 builtin and then its argument prototype would still apply. */
6665 return dnet_htoa ();
6670 for ac_lib in '' dnet; do
6671 if test -z "$ac_lib"; then
6672 ac_res="none required"
6675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (ac_try="$ac_link"
6680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6681 *) ac_try_echo
=$ac_try;;
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_link") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1
>conftest.err
6688 cat conftest.err
>&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest
$ac_exeext &&
6694 $as_test_x conftest
$ac_exeext; then
6695 ac_cv_search_dnet_htoa
=$ac_res
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.
$ac_ext >&5
6703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6705 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6709 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6712 ac_cv_search_dnet_htoa
=no
6715 LIBS
=$ac_func_search_save_LIBS
6717 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6718 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6719 ac_res
=$ac_cv_search_dnet_htoa
6720 if test "$ac_res" != no
; then
6721 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6723 cat >>confdefs.h
<<\_ACEOF
6724 #define HAVE_DNET_HTOA 1
6731 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6732 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6733 if test "${ac_cv_lib_rpc_main+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_check_lib_save_LIBS
=$LIBS
6738 cat >conftest.
$ac_ext <<_ACEOF
6741 cat confdefs.h
>>conftest.
$ac_ext
6742 cat >>conftest.
$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6754 rm -f conftest.
$ac_objext conftest
$ac_exeext
6755 if { (ac_try
="$ac_link"
6757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_link") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest$ac_exeext &&
6771 $as_test_x conftest$ac_exeext; then
6772 ac_cv_lib_rpc_main=yes
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_lib_rpc_main=no
6780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6781 conftest$ac_exeext conftest.$ac_ext
6782 LIBS=$ac_check_lib_save_LIBS
6784 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6785 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6786 if test $ac_cv_lib_rpc_main = yes; then
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_LIBRPC 1
6795 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6796 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6797 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_func_search_save_LIBS=$LIBS
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6808 /* Override any GCC internal prototype to avoid an error.
6809 Use char because int might match the return type of a GCC
6810 builtin and then its argument prototype would still apply. */
6814 char getrpcbynumber ();
6818 return getrpcbynumber ();
6823 for ac_lib in '' nsl; do
6824 if test -z "$ac_lib"; then
6825 ac_res="none required"
6828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6830 rm -f conftest.$ac_objext conftest$ac_exeext
6831 if { (ac_try="$ac_link"
6833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6834 *) ac_try_echo
=$ac_try;;
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_link") 2>conftest.er1
6839 grep -v '^ *+' conftest.er1
>conftest.err
6841 cat conftest.err
>&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest
$ac_exeext &&
6847 $as_test_x conftest
$ac_exeext; then
6848 ac_cv_search_getrpcbynumber
=$ac_res
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.
$ac_ext >&5
6856 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6858 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6862 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6865 ac_cv_search_getrpcbynumber
=no
6868 LIBS
=$ac_func_search_save_LIBS
6870 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6871 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6872 ac_res
=$ac_cv_search_getrpcbynumber
6873 if test "$ac_res" != no
; then
6874 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6876 cat >>confdefs.h
<<\_ACEOF
6877 #define HAVE_GETRPCBYNUMBER 1
6886 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
6887 if test -f $pfopen ; then
6889 for ac_func
in pfopen
6891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6894 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 cat >conftest.
$ac_ext <<_ACEOF
6900 cat confdefs.h
>>conftest.
$ac_ext
6901 cat >>conftest.
$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6905 #define $ac_func innocuous_$ac_func
6907 /* System header to define __stub macros and hopefully few prototypes,
6908 which can conflict with char $ac_func (); below.
6909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910 <limits.h> exists even on freestanding compilers. */
6913 # include <limits.h>
6915 # include <assert.h>
6920 /* Override any GCC internal prototype to avoid an error.
6921 Use char because int might match the return type of a GCC
6922 builtin and then its argument prototype would still apply. */
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined __stub_$ac_func || defined __stub___$ac_func
6942 rm -f conftest.
$ac_objext conftest
$ac_exeext
6943 if { (ac_try
="$ac_link"
6945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_link") 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && {
6956 test -z "$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6958 } && test -s conftest$ac_exeext &&
6959 $as_test_x conftest$ac_exeext; then
6960 eval "$as_ac_var=yes"
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 eval "$as_ac_var=no"
6968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6969 conftest$ac_exeext conftest.$ac_ext
6971 ac_res=`eval echo '${'$as_ac_var'}'`
6972 { echo "$as_me:$LINENO: result: $ac_res" >&5
6973 echo "${ECHO_T}$ac_res" >&6; }
6974 if test `eval echo '${'$as_ac_var'}'` = yes; then
6975 cat >>confdefs.h <<_ACEOF
6976 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6982 if test $ac_cv_func_pfopen = "no" ; then
6983 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
6984 echo "${ECHO_T}Using $pfopen" >&6; }
6985 LIBS="$LIBS $pfopen"
6988 { echo "$as_me:$LINENO: checking for local pcap library" >&5
6989 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
6992 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6993 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
6994 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
6995 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
6996 sed -e 's/-PRE-GIT$//' `
6997 if test $lastdir = $basedir ; then
7001 if test -r $dir/libpcap.a ; then
7002 libpcap=$dir/libpcap.a
7006 if test $libpcap = FAIL ; then
7007 { echo "$as_me:$LINENO: result: not found" >&5
7008 echo "${ECHO_T}not found" >&6; }
7011 # Look for pcap-config.
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7018 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 case $PCAP_CONFIG in
7023 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7045 if test -n "$PCAP_CONFIG"; then
7046 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7047 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7049 { echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6; }
7055 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7056 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7057 # Extract the first word of "pcap-config", so it can be a program name with args.
7058 set dummy pcap-config; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 case $ac_pt_PCAP_CONFIG in
7066 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7088 if test -n "$ac_pt_PCAP_CONFIG"; then
7089 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7090 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7096 if test "x$ac_pt_PCAP_CONFIG" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet. If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&5
7104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7107 ac_tool_warned=yes ;;
7109 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7112 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7115 if test -n "$PCAP_CONFIG" ; then
7117 # Found - use it to get the include flags for
7118 # libpcap and the flags to link with libpcap.
7120 # Please read section 11.6 "Shell Substitutions"
7121 # in the autoconf manual before doing anything
7122 # to this that involves quoting. Especially note
7123 # the statement "There is just no portable way to use
7124 # double-quoted strings inside double-quoted back-quoted
7125 # expressions (pfew!)."
7127 cflags=`"$PCAP_CONFIG" --cflags`
7128 V_INCLS="$cflags $V_INCLS"
7129 libpcap=`"$PCAP_CONFIG" --libs`
7132 # Not found; look for pcap.
7134 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7135 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7136 if test "${ac_cv_lib_pcap_main+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_check_lib_save_LIBS=$LIBS
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (ac_try="$ac_link"
7160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7161 *) ac_try_echo
=$ac_try;;
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_link") 2>conftest.er1
7166 grep -v '^ *+' conftest.er1
>conftest.err
7168 cat conftest.err
>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest
$ac_exeext &&
7174 $as_test_x conftest
$ac_exeext; then
7175 ac_cv_lib_pcap_main
=yes
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.
$ac_ext >&5
7180 ac_cv_lib_pcap_main
=no
7183 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7184 conftest
$ac_exeext conftest.
$ac_ext
7185 LIBS
=$ac_check_lib_save_LIBS
7187 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7188 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7189 if test $ac_cv_lib_pcap_main = yes; then
7193 if test $libpcap = FAIL
; then
7194 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7195 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7196 { (exit 1); exit 1; }; }
7198 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7199 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7200 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
7201 \
( ! -r /usr
/include
/pcap.h \
); then
7202 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
7203 d
="/usr/local/include/pcap"
7204 elif test -r /usr
/include
/pcap
/pcap.h
; then
7205 d
="/usr/include/pcap"
7208 if test -z "$d" ; then
7209 { echo "$as_me:$LINENO: result: not found" >&5
7210 echo "${ECHO_T}not found" >&6; }
7212 V_INCLS
="-I$d $V_INCLS"
7213 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7214 echo "${ECHO_T}found -- -I$d added" >&6; }
7219 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7220 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7221 if test -r $d/pcap.h
; then
7222 V_INCLS
="-I$d $V_INCLS"
7223 elif test -r $places/pcap.h
; then
7224 V_INCLS
="-I$places $V_INCLS"
7226 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7227 echo "$as_me: error: cannot find pcap.h" >&2;}
7228 { (exit see INSTALL
); exit see INSTALL
; }; }
7230 { echo "$as_me:$LINENO: result: $libpcap" >&5
7231 echo "${ECHO_T}$libpcap" >&6; }
7232 # Extract the first word of "pcap-config", so it can be a program name with args.
7233 set dummy pcap-config
; ac_word
=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 case $PCAP_CONFIG in
7241 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
7244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir
=.
7249 for ac_exec_ext
in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
7263 if test -n "$PCAP_CONFIG"; then
7264 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7265 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 if test -n "$PCAP_CONFIG"; then
7274 # The libpcap directory has a pcap-config script.
7275 # Use it to get any additioal libraries needed
7276 # to link with the libpcap archive library in
7279 # Please read section 11.6 "Shell Substitutions"
7280 # in the autoconf manual before doing anything
7281 # to this that involves quoting. Especially note
7282 # the statement "There is just no portable way to use
7283 # double-quoted strings inside double-quoted back-quoted
7284 # expressions (pfew!)."
7286 additional_libs
=`"$PCAP_CONFIG" --additional-libs --static`
7287 libpcap
="$libpcap $additional_libs"
7290 LIBS
="$libpcap $LIBS"
7291 if ! test -n "$PCAP_CONFIG" ; then
7293 # We don't have pcap-config; find out any additional link flags
7294 # we need. (If we have pcap-config, we assume it tells us what
7301 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7302 # present, as we use the STREAMS routines.
7304 # (XXX - true only if we're linking with a static libpcap?)
7306 pseexe
="/lib/pse.exp"
7307 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7308 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7309 if test -f $pseexe ; then
7310 { echo "$as_me:$LINENO: result: yes" >&5
7311 echo "${ECHO_T}yes" >&6; }
7312 LIBS
="$LIBS -I:$pseexe"
7316 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7317 # we use them to load the BPF module.
7319 # (XXX - true only if we're linking with a static libpcap?)
7321 LIBS
="$LIBS -lodm -lcfg"
7326 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7327 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7328 if test "${ac_cv_func_pcap_loop+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.
$ac_ext <<_ACEOF
7334 cat confdefs.h
>>conftest.
$ac_ext
7335 cat >>conftest.
$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7339 #define pcap_loop innocuous_pcap_loop
7341 /* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char pcap_loop (); below.
7343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7344 <limits.h> exists even on freestanding compilers. */
7347 # include <limits.h>
7349 # include <assert.h>
7354 /* Override any GCC internal prototype to avoid an error.
7355 Use char because int might match the return type of a GCC
7356 builtin and then its argument prototype would still apply. */
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7371 return pcap_loop ();
7376 rm -f conftest.
$ac_objext conftest
$ac_exeext
7377 if { (ac_try
="$ac_link"
7379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_link") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest$ac_exeext &&
7393 $as_test_x conftest$ac_exeext; then
7394 ac_cv_func_pcap_loop=yes
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 ac_cv_func_pcap_loop=no
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7403 conftest$ac_exeext conftest.$ac_ext
7405 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7406 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7407 if test $ac_cv_func_pcap_loop = yes; then
7411 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7412 config.log file in your report. If you have downloaded libpcap from
7413 tcpdump.org, and built it yourself, please also include the config.log
7414 file from the libpcap source directory, the Makefile from the libpcap
7415 source directory, and the output of the make process for libpcap, as
7416 this could be a problem with the libpcap that was built, and we will
7417 not be able to determine why this is happening, and thus will not be
7418 able to fix it, without that information, as we have not been able to
7419 reproduce this problem ourselves." >&5
7420 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7421 config.log file in your report. If you have downloaded libpcap from
7422 tcpdump.org, and built it yourself, please also include the config.log
7423 file from the libpcap source directory, the Makefile from the libpcap
7424 source directory, and the output of the make process for libpcap, as
7425 this could be a problem with the libpcap that was built, and we will
7426 not be able to determine why this is happening, and thus will not be
7427 able to fix it, without that information, as we have not been able to
7428 reproduce this problem ourselves." >&2;}
7429 { (exit 1); exit 1; }; }
7434 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7435 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7436 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7447 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7449 /* System header to define __stub macros and hopefully few prototypes,
7450 which can conflict with char pcap_list_datalinks (); below.
7451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7452 <limits.h> exists even on freestanding compilers. */
7455 # include <limits.h>
7457 # include <assert.h>
7460 #undef pcap_list_datalinks
7462 /* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7468 char pcap_list_datalinks ();
7469 /* The GNU C library defines this for functions which it implements
7470 to always fail with ENOSYS. Some functions are actually named
7471 something starting with __ and the normal name is an alias. */
7472 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7479 return pcap_list_datalinks ();
7484 rm -f conftest.$ac_objext conftest$ac_exeext
7485 if { (ac_try="$ac_link"
7487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7488 *) ac_try_echo
=$ac_try;;
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491 (eval "$ac_link") 2>conftest.er1
7493 grep -v '^ *+' conftest.er1
>conftest.err
7495 cat conftest.err
>&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest
$ac_exeext &&
7501 $as_test_x conftest
$ac_exeext; then
7502 ac_cv_func_pcap_list_datalinks
=yes
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.
$ac_ext >&5
7507 ac_cv_func_pcap_list_datalinks
=no
7510 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7511 conftest
$ac_exeext conftest.
$ac_ext
7513 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7514 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7515 if test $ac_cv_func_pcap_list_datalinks = yes; then
7517 cat >>confdefs.h
<<\_ACEOF
7518 #define HAVE_PCAP_LIST_DATALINKS 1
7523 case " $LIBOBJS " in
7524 *" datalinks.$ac_objext "* ) ;;
7525 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
7532 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7533 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7534 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.
$ac_ext <<_ACEOF
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7545 #define pcap_set_datalink innocuous_pcap_set_datalink
7547 /* System header to define __stub macros and hopefully few prototypes,
7548 which can conflict with char pcap_set_datalink (); below.
7549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7550 <limits.h> exists even on freestanding compilers. */
7553 # include <limits.h>
7555 # include <assert.h>
7558 #undef pcap_set_datalink
7560 /* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7566 char pcap_set_datalink ();
7567 /* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7577 return pcap_set_datalink ();
7582 rm -f conftest.
$ac_objext conftest
$ac_exeext
7583 if { (ac_try
="$ac_link"
7585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_link") 2>conftest.er1
7591 grep -v '^ *+' conftest.er1 >conftest.err
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest$ac_exeext &&
7599 $as_test_x conftest$ac_exeext; then
7600 ac_cv_func_pcap_set_datalink=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_cv_func_pcap_set_datalink=no
7608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7609 conftest$ac_exeext conftest.$ac_ext
7611 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7612 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7613 if test $ac_cv_func_pcap_set_datalink = yes; then
7615 cat >>confdefs.h <<\_ACEOF
7616 #define HAVE_PCAP_SET_DATALINK 1
7621 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7622 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7623 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 cat >conftest.$ac_ext <<_ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char pcap_datalink_name_to_val (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
7642 # include <limits.h>
7644 # include <assert.h>
7647 #undef pcap_datalink_name_to_val
7649 /* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
7655 char pcap_datalink_name_to_val ();
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7666 return pcap_datalink_name_to_val ();
7671 rm -f conftest.$ac_objext conftest$ac_exeext
7672 if { (ac_try="$ac_link"
7674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7675 *) ac_try_echo
=$ac_try;;
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_link") 2>conftest.er1
7680 grep -v '^ *+' conftest.er1
>conftest.err
7682 cat conftest.err
>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest
$ac_exeext &&
7688 $as_test_x conftest
$ac_exeext; then
7689 ac_cv_func_pcap_datalink_name_to_val
=yes
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.
$ac_ext >&5
7694 ac_cv_func_pcap_datalink_name_to_val
=no
7697 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7698 conftest
$ac_exeext conftest.
$ac_ext
7700 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7701 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7702 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7705 cat >>confdefs.h
<<\_ACEOF
7706 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7709 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7710 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7711 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 cat >conftest.
$ac_ext <<_ACEOF
7717 cat confdefs.h
>>conftest.
$ac_ext
7718 cat >>conftest.
$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7720 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7722 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char pcap_datalink_val_to_description (); below.
7726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727 <limits.h> exists even on freestanding compilers. */
7730 # include <limits.h>
7732 # include <assert.h>
7735 #undef pcap_datalink_val_to_description
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7743 char pcap_datalink_val_to_description ();
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7754 return pcap_datalink_val_to_description ();
7759 rm -f conftest.
$ac_objext conftest
$ac_exeext
7760 if { (ac_try
="$ac_link"
7762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_link") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest$ac_exeext &&
7776 $as_test_x conftest$ac_exeext; then
7777 ac_cv_func_pcap_datalink_val_to_description=yes
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_func_pcap_datalink_val_to_description=no
7785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7786 conftest$ac_exeext conftest.$ac_ext
7788 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7789 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7790 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7798 case " $LIBOBJS " in
7799 *" dlnames.$ac_objext "* ) ;;
7800 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7810 case " $LIBOBJS " in
7811 *" dlnames.$ac_objext "* ) ;;
7812 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7821 for ac_func in pcap_breakloop
7823 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7837 #define $ac_func innocuous_$ac_func
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func (); below.
7841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842 <limits.h> exists even on freestanding compilers. */
7845 # include <limits.h>
7847 # include <assert.h>
7852 /* Override any GCC internal prototype to avoid an error.
7853 Use char because int might match the return type of a GCC
7854 builtin and then its argument prototype would still apply. */
7859 /* The GNU C library defines this for functions which it implements
7860 to always fail with ENOSYS. Some functions are actually named
7861 something starting with __ and the normal name is an alias. */
7862 #if defined __stub_$ac_func || defined __stub___$ac_func
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (ac_try="$ac_link"
7877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7878 *) ac_try_echo
=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_link") 2>conftest.er1
7883 grep -v '^ *+' conftest.er1
>conftest.err
7885 cat conftest.err
>&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest
$ac_exeext &&
7891 $as_test_x conftest
$ac_exeext; then
7892 eval "$as_ac_var=yes"
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.
$ac_ext >&5
7897 eval "$as_ac_var=no"
7900 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7901 conftest
$ac_exeext conftest.
$ac_ext
7903 ac_res
=`eval echo '${'$as_ac_var'}'`
7904 { echo "$as_me:$LINENO: result: $ac_res" >&5
7905 echo "${ECHO_T}$ac_res" >&6; }
7906 if test `eval echo '${'$as_ac_var'}'` = yes; then
7907 cat >>confdefs.h
<<_ACEOF
7908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7915 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
7916 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
7917 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.
$ac_ext <<_ACEOF
7923 cat confdefs.h
>>conftest.
$ac_ext
7924 cat >>conftest.
$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
7927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7928 #define pcap_dump_ftell innocuous_pcap_dump_ftell
7930 /* System header to define __stub macros and hopefully few prototypes,
7931 which can conflict with char pcap_dump_ftell (); below.
7932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7933 <limits.h> exists even on freestanding compilers. */
7936 # include <limits.h>
7938 # include <assert.h>
7941 #undef pcap_dump_ftell
7943 /* Override any GCC internal prototype to avoid an error.
7944 Use char because int might match the return type of a GCC
7945 builtin and then its argument prototype would still apply. */
7949 char pcap_dump_ftell ();
7950 /* The GNU C library defines this for functions which it implements
7951 to always fail with ENOSYS. Some functions are actually named
7952 something starting with __ and the normal name is an alias. */
7953 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
7960 return pcap_dump_ftell ();
7965 rm -f conftest.
$ac_objext conftest
$ac_exeext
7966 if { (ac_try
="$ac_link"
7968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_link") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest$ac_exeext &&
7982 $as_test_x conftest$ac_exeext; then
7983 ac_cv_func_pcap_dump_ftell=yes
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 ac_cv_func_pcap_dump_ftell=no
7991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992 conftest$ac_exeext conftest.$ac_ext
7994 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
7995 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
7996 if test $ac_cv_func_pcap_dump_ftell = yes; then
7998 cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_PCAP_DUMP_FTELL 1
8004 case " $LIBOBJS " in
8005 *" pcap_dump_ftell.$ac_objext "* ) ;;
8006 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8016 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8017 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8019 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8020 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8021 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8022 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8023 # it does not ship with a libc symbol "inet_ntop()", it ships with
8024 # "_inet_ntop()", and has a #define macro in one of the system headers
8027 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8028 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8029 cat >conftest.$ac_ext <<_ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 #include <sys/types.h>
8036 #include <sys/socket.h>
8037 #include <netinet/in.h>
8038 #include <arpa/inet.h>
8042 char src[4], dst[128];
8043 inet_ntop(AF_INET, src, dst, sizeof(dst));
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (ac_try="$ac_link"
8051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8052 *) ac_try_echo
=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1
>conftest.err
8059 cat conftest.err
>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest
$ac_exeext &&
8065 $as_test_x conftest
$ac_exeext; then
8066 { echo "$as_me:$LINENO: result: yes" >&5
8067 echo "${ECHO_T}yes" >&6; }
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.
$ac_ext >&5
8072 { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8074 case " $LIBOBJS " in
8075 *" inet_ntop.$ac_objext "* ) ;;
8076 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8082 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8083 conftest
$ac_exeext conftest.
$ac_ext
8084 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8085 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8086 cat >conftest.
$ac_ext <<_ACEOF
8089 cat confdefs.h
>>conftest.
$ac_ext
8090 cat >>conftest.
$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 #include <sys/types.h>
8093 #include <sys/socket.h>
8094 #include <netinet/in.h>
8095 #include <arpa/inet.h>
8099 char src[128], dst[4];
8100 inet_pton(AF_INET, src, dst);
8105 rm -f conftest.
$ac_objext conftest
$ac_exeext
8106 if { (ac_try
="$ac_link"
8108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_link") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest$ac_exeext &&
8122 $as_test_x conftest$ac_exeext; then
8123 { echo "$as_me:$LINENO: result: yes" >&5
8124 echo "${ECHO_T}yes" >&6; }
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8131 case " $LIBOBJS " in
8132 *" inet_pton.$ac_objext "* ) ;;
8133 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8140 conftest$ac_exeext conftest.$ac_ext
8141 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8142 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #include <sys/types.h>
8150 #include <netinet/in.h>
8151 #include <arpa/inet.h>
8157 inet_aton(src, &dst);
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8166 *) ac_try_echo
=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_link") 2>conftest.er1
8171 grep -v '^ *+' conftest.er1
>conftest.err
8173 cat conftest.err
>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest
$ac_exeext &&
8179 $as_test_x conftest
$ac_exeext; then
8180 { echo "$as_me:$LINENO: result: yes" >&5
8181 echo "${ECHO_T}yes" >&6; }
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.
$ac_ext >&5
8186 { echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6; }
8188 case " $LIBOBJS " in
8189 *" inet_aton.$ac_objext "* ) ;;
8190 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
8196 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8197 conftest
$ac_exeext conftest.
$ac_ext
8200 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8202 # You are in a twisty little maze of UN*Xes, all different.
8203 # Some might not have ether_ntohost().
8204 # Some might have it, but not declare it in any header file.
8205 # Some might have it, but declare it in <netinet/if_ether.h>.
8206 # Some might have it, but declare it in <netinet/ether.h>
8207 # (And some might have it but document it as something declared in
8208 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8210 # Before you is a C compiler.
8213 for ac_func
in ether_ntohost
8215 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8218 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.
$ac_ext <<_ACEOF
8224 cat confdefs.h
>>conftest.
$ac_ext
8225 cat >>conftest.
$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8229 #define $ac_func innocuous_$ac_func
8231 /* System header to define __stub macros and hopefully few prototypes,
8232 which can conflict with char $ac_func (); below.
8233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8234 <limits.h> exists even on freestanding compilers. */
8237 # include <limits.h>
8239 # include <assert.h>
8244 /* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8251 /* The GNU C library defines this for functions which it implements
8252 to always fail with ENOSYS. Some functions are actually named
8253 something starting with __ and the normal name is an alias. */
8254 #if defined __stub_$ac_func || defined __stub___$ac_func
8266 rm -f conftest.
$ac_objext conftest
$ac_exeext
8267 if { (ac_try
="$ac_link"
8269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_link") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest$ac_exeext &&
8283 $as_test_x conftest$ac_exeext; then
8284 eval "$as_ac_var=yes"
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 eval "$as_ac_var=no"
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293 conftest$ac_exeext conftest.$ac_ext
8295 ac_res=`eval echo '${'$as_ac_var'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 if test `eval echo '${'$as_ac_var'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8303 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8304 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8305 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 if test "$cross_compiling" = yes; then
8310 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8320 #include <sys/types.h>
8321 #include <sys/param.h>
8322 #include <sys/socket.h>
8325 main(int argc, char **argv)
8327 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8328 char name[MAXHOSTNAMELEN];
8330 ether_ntohost(name, (struct ether_addr *)ea);
8335 rm -f conftest$ac_exeext
8336 if { (ac_try="$ac_link"
8338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8339 *) ac_try_echo
=$ac_try;;
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_link") 2>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8346 { (case "(($ac_try" in
8347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_buggy_ether_ntohost=no
8357 echo "$as_me: program exited with status $ac_status" >&5
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8362 ac_cv_buggy_ether_ntohost=yes
8364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8369 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8370 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8371 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8373 cat >>confdefs.h <<\_ACEOF
8374 #define USE_ETHER_NTOHOST 1
8382 if test "$ac_cv_func_ether_ntohost" = yes -a \
8383 "$ac_cv_buggy_ether_ntohost" = "no"; then
8385 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8387 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8389 # Yes. Does it declare ether_ntohost()?
8391 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8392 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8393 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8403 #include <sys/types.h>
8404 #include <sys/socket.h>
8405 #include <netinet/in.h>
8406 #include <arpa/inet.h>
8410 #include <netinet/if_ether.h>
8416 #ifndef ether_ntohost
8417 (void) ether_ntohost;
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8428 *) ac_try_echo
=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1
>conftest.err
8435 cat conftest.err
>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.
$ac_objext; then
8441 ac_cv_have_decl_ether_ntohost
=yes
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.
$ac_ext >&5
8446 ac_cv_have_decl_ether_ntohost
=no
8449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8451 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8452 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8453 if test $ac_cv_have_decl_ether_ntohost = yes; then
8456 cat >>confdefs.h
<<\_ACEOF
8457 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8467 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8469 # No, how about <netinet/ether.h>, as on Linux?
8472 for ac_header
in netinet
/ether.h
8474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8478 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 ac_res
=`eval echo '${'$as_ac_Header'}'`
8482 { echo "$as_me:$LINENO: result: $ac_res" >&5
8483 echo "${ECHO_T}$ac_res" >&6; }
8485 # Is the header compilable?
8486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8488 cat >conftest.
$ac_ext <<_ACEOF
8491 cat confdefs.h
>>conftest.
$ac_ext
8492 cat >>conftest.
$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 $ac_includes_default
8495 #include <$ac_header>
8497 rm -f conftest.
$ac_objext
8498 if { (ac_try
="$ac_compile"
8500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_compile") 2>conftest.er1
8506 grep -v '^ *+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && {
8511 test -z "$ac_c_werror_flag" ||
8512 test ! -s conftest.err
8513 } && test -s conftest.$ac_objext; then
8514 ac_header_compiler=yes
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_header_compiler=no
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524 echo "${ECHO_T}$ac_header_compiler" >&6; }
8526 # Is the header present?
8527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 #include <$ac_header>
8537 if { (ac_try="$ac_cpp conftest.$ac_ext"
8539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8540 *) ac_try_echo
=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8545 grep -v '^ *+' conftest.er1
>conftest.err
8547 cat conftest.err
>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } >/dev
/null
&& {
8550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8553 ac_header_preproc
=yes
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.
$ac_ext >&5
8558 ac_header_preproc
=no
8561 rm -f conftest.err conftest.
$ac_ext
8562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563 echo "${ECHO_T}$ac_header_preproc" >&6; }
8565 # So? What about this header?
8566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8572 ac_header_preproc
=yes
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 eval "$as_ac_Header=\$ac_header_preproc"
8597 ac_res
=`eval echo '${'$as_ac_Header'}'`
8598 { echo "$as_me:$LINENO: result: $ac_res" >&5
8599 echo "${ECHO_T}$ac_res" >&6; }
8602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603 cat >>confdefs.h
<<_ACEOF
8604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611 if test "$ac_cv_header_netinet_ether_h" = yes; then
8613 # We have it - does it declare ether_ntohost()?
8614 # Unset ac_cv_have_decl_ether_ntohost so we don't
8615 # treat the previous failure as a cached value and
8616 # suppress the next test.
8618 unset ac_cv_have_decl_ether_ntohost
8619 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8620 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8621 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 cat >conftest.
$ac_ext <<_ACEOF
8627 cat confdefs.h
>>conftest.
$ac_ext
8628 cat >>conftest.
$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 #include <netinet/ether.h>
8637 #ifndef ether_ntohost
8638 (void) ether_ntohost;
8645 rm -f conftest.
$ac_objext
8646 if { (ac_try
="$ac_compile"
8648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && {
8659 test -z "$ac_c_werror_flag" ||
8660 test ! -s conftest.err
8661 } && test -s conftest.$ac_objext; then
8662 ac_cv_have_decl_ether_ntohost=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_cv_have_decl_ether_ntohost=no
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8673 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8674 if test $ac_cv_have_decl_ether_ntohost = yes; then
8677 cat >>confdefs.h <<\_ACEOF
8678 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8687 # Is ether_ntohost() declared?
8689 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8691 # No, we'll have to declare it ourselves.
8692 # Do we have "struct ether_addr"?
8694 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8695 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8696 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 cat >conftest.$ac_ext <<_ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8706 #include <sys/types.h>
8707 #include <sys/socket.h>
8708 #include <netinet/in.h>
8709 #include <arpa/inet.h>
8713 #include <netinet/if_ether.h>
8716 typedef struct ether_addr ac__type_new_;
8720 if ((ac__type_new_ *) 0)
8722 if (sizeof (ac__type_new_))
8728 rm -f conftest.$ac_objext
8729 if { (ac_try="$ac_compile"
8731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8732 *) ac_try_echo
=$ac_try;;
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_compile") 2>conftest.er1
8737 grep -v '^ *+' conftest.er1
>conftest.err
8739 cat conftest.err
>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && {
8742 test -z "$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 } && test -s conftest.
$ac_objext; then
8745 ac_cv_type_struct_ether_addr
=yes
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.
$ac_ext >&5
8750 ac_cv_type_struct_ether_addr
=no
8753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8755 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8756 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8757 if test $ac_cv_type_struct_ether_addr = yes; then
8759 cat >>confdefs.h
<<_ACEOF
8760 #define HAVE_STRUCT_ETHER_ADDR 1
8767 cat >>confdefs.h
<<\_ACEOF
8768 #define HAVE_DECL_ETHER_NTOHOST 0
8773 cat >>confdefs.h
<<\_ACEOF
8774 #define HAVE_DECL_ETHER_NTOHOST 1
8780 # libdlpi is needed for Solaris 11 and later.
8781 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8782 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8783 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 ac_check_lib_save_LIBS
=$LIBS
8787 LIBS
="-ldlpi -L/lib $LIBS"
8788 cat >conftest.
$ac_ext <<_ACEOF
8791 cat confdefs.h
>>conftest.
$ac_ext
8792 cat >>conftest.
$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8795 /* Override any GCC internal prototype to avoid an error.
8796 Use char because int might match the return type of a GCC
8797 builtin and then its argument prototype would still apply. */
8805 return dlpi_walk ();
8810 rm -f conftest.
$ac_objext conftest
$ac_exeext
8811 if { (ac_try
="$ac_link"
8813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_link") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest$ac_exeext &&
8827 $as_test_x conftest$ac_exeext; then
8828 ac_cv_lib_dlpi_dlpi_walk=yes
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ac_cv_lib_dlpi_dlpi_walk=no
8836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8841 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8842 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8843 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8848 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8849 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8850 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8860 # include <sys/types.h>
8861 # include <sys/socket.h>
8865 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8870 rm -f conftest.$ac_objext
8871 if { (ac_try="$ac_compile"
8873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8874 *) ac_try_echo
=$ac_try;;
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_compile") 2>conftest.er1
8879 grep -v '^ *+' conftest.er1
>conftest.err
8881 cat conftest.err
>&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest.
$ac_objext; then
8887 ac_cv_sockaddr_has_sa_len
=yes
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.
$ac_ext >&5
8892 ac_cv_sockaddr_has_sa_len
=no
8895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8898 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
8899 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
8900 if test $ac_cv_sockaddr_has_sa_len = yes ; then
8901 cat >>confdefs.h
<<\_ACEOF
8902 #define HAVE_SOCKADDR_SA_LEN 1
8907 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
8908 missing_includes
=yes
8912 # Do we have the new open API? Check for pcap_create, and assume that,
8913 # if we do, we also have pcap_activate() and the other new routines
8914 # introduced in libpcap 1.0.0.
8917 for ac_func
in pcap_create
8919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8922 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 cat >conftest.
$ac_ext <<_ACEOF
8928 cat confdefs.h
>>conftest.
$ac_ext
8929 cat >>conftest.
$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8933 #define $ac_func innocuous_$ac_func
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8941 # include <limits.h>
8943 # include <assert.h>
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8955 /* The GNU C library defines this for functions which it implements
8956 to always fail with ENOSYS. Some functions are actually named
8957 something starting with __ and the normal name is an alias. */
8958 #if defined __stub_$ac_func || defined __stub___$ac_func
8970 rm -f conftest.
$ac_objext conftest
$ac_exeext
8971 if { (ac_try
="$ac_link"
8973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_link") 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest$ac_exeext &&
8987 $as_test_x conftest$ac_exeext; then
8988 eval "$as_ac_var=yes"
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 eval "$as_ac_var=no"
8996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8997 conftest$ac_exeext conftest.$ac_ext
8999 ac_res=`eval echo '${'$as_ac_var'}'`
9000 { echo "$as_me:$LINENO: result: $ac_res" >&5
9001 echo "${ECHO_T}$ac_res" >&6; }
9002 if test `eval echo '${'$as_ac_var'}'` = yes; then
9003 cat >>confdefs.h <<_ACEOF
9004 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9010 if test $ac_cv_func_pcap_create = "yes" ; then
9012 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9013 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9016 for ac_func in pcap_set_tstamp_type
9018 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 cat >conftest.$ac_ext <<_ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9032 #define $ac_func innocuous_$ac_func
9034 /* System header to define __stub macros and hopefully few prototypes,
9035 which can conflict with char $ac_func (); below.
9036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9037 <limits.h> exists even on freestanding compilers. */
9040 # include <limits.h>
9042 # include <assert.h>
9047 /* Override any GCC internal prototype to avoid an error.
9048 Use char because int might match the return type of a GCC
9049 builtin and then its argument prototype would still apply. */
9054 /* The GNU C library defines this for functions which it implements
9055 to always fail with ENOSYS. Some functions are actually named
9056 something starting with __ and the normal name is an alias. */
9057 #if defined __stub_$ac_func || defined __stub___$ac_func
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (ac_try="$ac_link"
9072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9073 *) ac_try_echo
=$ac_try;;
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_link") 2>conftest.er1
9078 grep -v '^ *+' conftest.er1
>conftest.err
9080 cat conftest.err
>&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } && {
9083 test -z "$ac_c_werror_flag" ||
9084 test ! -s conftest.err
9085 } && test -s conftest
$ac_exeext &&
9086 $as_test_x conftest
$ac_exeext; then
9087 eval "$as_ac_var=yes"
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.
$ac_ext >&5
9092 eval "$as_ac_var=no"
9095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9096 conftest
$ac_exeext conftest.
$ac_ext
9098 ac_res
=`eval echo '${'$as_ac_var'}'`
9099 { echo "$as_me:$LINENO: result: $ac_res" >&5
9100 echo "${ECHO_T}$ac_res" >&6; }
9101 if test `eval echo '${'$as_ac_var'}'` = yes; then
9102 cat >>confdefs.h
<<_ACEOF
9103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9114 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9116 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9119 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 cat >conftest.
$ac_ext <<_ACEOF
9125 cat confdefs.h
>>conftest.
$ac_ext
9126 cat >>conftest.
$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9130 #define $ac_func innocuous_$ac_func
9132 /* System header to define __stub macros and hopefully few prototypes,
9133 which can conflict with char $ac_func (); below.
9134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9135 <limits.h> exists even on freestanding compilers. */
9138 # include <limits.h>
9140 # include <assert.h>
9145 /* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9152 /* The GNU C library defines this for functions which it implements
9153 to always fail with ENOSYS. Some functions are actually named
9154 something starting with __ and the normal name is an alias. */
9155 #if defined __stub_$ac_func || defined __stub___$ac_func
9167 rm -f conftest.
$ac_objext conftest
$ac_exeext
9168 if { (ac_try
="$ac_link"
9170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_link") 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest$ac_exeext &&
9184 $as_test_x conftest$ac_exeext; then
9185 eval "$as_ac_var=yes"
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 eval "$as_ac_var=no"
9193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9194 conftest$ac_exeext conftest.$ac_ext
9196 ac_res=`eval echo '${'$as_ac_var'}'`
9197 { echo "$as_me:$LINENO: result: $ac_res" >&5
9198 echo "${ECHO_T}$ac_res" >&6; }
9199 if test `eval echo '${'$as_ac_var'}'` = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9207 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9208 savedcppflags="$CPPFLAGS"
9209 CPPFLAGS="$CPPFLAGS $V_INCLS"
9210 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9211 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9212 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9223 typedef pcap_if_t ac__type_new_;
9227 if ((ac__type_new_ *) 0)
9229 if (sizeof (ac__type_new_))
9235 rm -f conftest.$ac_objext
9236 if { (ac_try="$ac_compile"
9238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9239 *) ac_try_echo
=$ac_try;;
9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242 (eval "$ac_compile") 2>conftest.er1
9244 grep -v '^ *+' conftest.er1
>conftest.err
9246 cat conftest.err
>&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest.
$ac_objext; then
9252 ac_cv_type_pcap_if_t
=yes
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.
$ac_ext >&5
9257 ac_cv_type_pcap_if_t
=no
9260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9262 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9263 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9264 if test $ac_cv_type_pcap_if_t = yes; then
9266 cat >>confdefs.h
<<_ACEOF
9267 #define HAVE_PCAP_IF_T 1
9273 CPPFLAGS
="$savedcppflags"
9276 if test $ac_cv_func_pcap_lib_version = "no" ; then
9277 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9278 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9279 cat >conftest.
$ac_ext <<_ACEOF
9282 cat confdefs.h
>>conftest.
$ac_ext
9283 cat >>conftest.
$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9290 extern char pcap_version[];
9292 return (int)pcap_version;
9298 rm -f conftest.
$ac_objext conftest
$ac_exeext
9299 if { (ac_try
="$ac_link"
9301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_link") 2>conftest.er1
9307 grep -v '^ *+' conftest.er1 >conftest.err
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest$ac_exeext &&
9315 $as_test_x conftest$ac_exeext; then
9316 ac_lbl_cv_pcap_version_defined=yes
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9321 ac_lbl_cv_pcap_version_defined=no
9324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325 conftest$ac_exeext conftest.$ac_ext
9326 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9327 { echo "$as_me:$LINENO: result: yes" >&5
9328 echo "${ECHO_T}yes" >&6; }
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_PCAP_VERSION 1
9335 { echo "$as_me:$LINENO: result: no" >&5
9336 echo "${ECHO_T}no" >&6; }
9339 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9340 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9352 extern int pcap_debug;
9360 rm -f conftest.$ac_objext conftest$ac_exeext
9361 if { (ac_try="$ac_link"
9363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9364 *) ac_try_echo
=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_link") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1
>conftest.err
9371 cat conftest.err
>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest
$ac_exeext &&
9377 $as_test_x conftest
$ac_exeext; then
9378 ac_lbl_cv_pcap_debug_defined
=yes
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.
$ac_ext >&5
9383 ac_lbl_cv_pcap_debug_defined
=no
9386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9387 conftest
$ac_exeext conftest.
$ac_ext
9388 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9389 { echo "$as_me:$LINENO: result: yes" >&5
9390 echo "${ECHO_T}yes" >&6; }
9392 cat >>confdefs.h
<<\_ACEOF
9393 #define HAVE_PCAP_DEBUG 1
9397 { echo "$as_me:$LINENO: result: no" >&5
9398 echo "${ECHO_T}no" >&6; }
9400 # OK, what about "yydebug"?
9402 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9403 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9404 cat >conftest.
$ac_ext <<_ACEOF
9407 cat confdefs.h
>>conftest.
$ac_ext
9408 cat >>conftest.
$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9423 rm -f conftest.
$ac_objext conftest
$ac_exeext
9424 if { (ac_try
="$ac_link"
9426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_link") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest$ac_exeext &&
9440 $as_test_x conftest$ac_exeext; then
9441 ac_lbl_cv_yydebug_defined=yes
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_lbl_cv_yydebug_defined=no
9449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9450 conftest$ac_exeext conftest.$ac_ext
9451 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9452 { echo "$as_me:$LINENO: result: yes" >&5
9453 echo "${ECHO_T}yes" >&6; }
9455 cat >>confdefs.h <<\_ACEOF
9456 #define HAVE_YYDEBUG 1
9460 { echo "$as_me:$LINENO: result: no" >&5
9461 echo "${ECHO_T}no" >&6; }
9465 for ac_func in bpf_dump
9467 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9481 #define $ac_func innocuous_$ac_func
9483 /* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char $ac_func (); below.
9485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9486 <limits.h> exists even on freestanding compilers. */
9489 # include <limits.h>
9491 # include <assert.h>
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9503 /* The GNU C library defines this for functions which it implements
9504 to always fail with ENOSYS. Some functions are actually named
9505 something starting with __ and the normal name is an alias. */
9506 #if defined __stub_$ac_func || defined __stub___$ac_func
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9522 *) ac_try_echo
=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9527 grep -v '^ *+' conftest.er1
>conftest.err
9529 cat conftest.err
>&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest
$ac_exeext &&
9535 $as_test_x conftest
$ac_exeext; then
9536 eval "$as_ac_var=yes"
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.
$ac_ext >&5
9541 eval "$as_ac_var=no"
9544 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9545 conftest
$ac_exeext conftest.
$ac_ext
9547 ac_res
=`eval echo '${'$as_ac_var'}'`
9548 { echo "$as_me:$LINENO: result: $ac_res" >&5
9549 echo "${ECHO_T}$ac_res" >&6; }
9550 if test `eval echo '${'$as_ac_var'}'` = yes; then
9551 cat >>confdefs.h
<<_ACEOF
9552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9556 case " $LIBOBJS " in
9557 *" $ac_func.$ac_objext "* ) ;;
9558 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9567 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9571 # Assume V7/BSD convention for man pages (file formats in section 5,
9572 # miscellaneous info in section 7).
9580 cat >>confdefs.h
<<\_ACEOF
9588 # Use System V conventions for man pages.
9598 # Use System V conventions for man pages.
9608 # Use System V conventions for man pages.
9618 # Use System V conventions for man pages.
9625 if test -f /dev
/bpf0
; then
9630 for ac_header
in sys
/bitypes.h
9632 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9633 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 ac_res
=`eval echo '${'$as_ac_Header'}'`
9640 { echo "$as_me:$LINENO: result: $ac_res" >&5
9641 echo "${ECHO_T}$ac_res" >&6; }
9643 # Is the header compilable?
9644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9646 cat >conftest.
$ac_ext <<_ACEOF
9649 cat confdefs.h
>>conftest.
$ac_ext
9650 cat >>conftest.
$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 $ac_includes_default
9653 #include <$ac_header>
9655 rm -f conftest.
$ac_objext
9656 if { (ac_try
="$ac_compile"
9658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_compile") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest.$ac_objext; then
9672 ac_header_compiler=yes
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_header_compiler=no
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9682 echo "${ECHO_T}$ac_header_compiler" >&6; }
9684 # Is the header present?
9685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <$ac_header>
9695 if { (ac_try="$ac_cpp conftest.$ac_ext"
9697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9698 *) ac_try_echo
=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9703 grep -v '^ *+' conftest.er1
>conftest.err
9705 cat conftest.err
>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } >/dev
/null
&& {
9708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9711 ac_header_preproc
=yes
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.
$ac_ext >&5
9716 ac_header_preproc
=no
9719 rm -f conftest.err conftest.
$ac_ext
9720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9721 echo "${ECHO_T}$ac_header_preproc" >&6; }
9723 # So? What about this header?
9724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9730 ac_header_preproc
=yes
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9750 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 eval "$as_ac_Header=\$ac_header_preproc"
9755 ac_res
=`eval echo '${'$as_ac_Header'}'`
9756 { echo "$as_me:$LINENO: result: $ac_res" >&5
9757 echo "${ECHO_T}$ac_res" >&6; }
9760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9761 cat >>confdefs.h
<<_ACEOF
9762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9770 { echo "$as_me:$LINENO: checking for int8_t" >&5
9771 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9772 if test "${ac_cv_type_int8_t+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 cat >conftest.
$ac_ext <<_ACEOF
9778 cat confdefs.h
>>conftest.
$ac_ext
9779 cat >>conftest.
$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 $ac_includes_default
9782 #ifdef HAVE_SYS_BITYPES_H
9783 #include <sys/bitypes.h>
9786 typedef int8_t ac__type_new_;
9790 if ((ac__type_new_ *) 0)
9792 if (sizeof (ac__type_new_))
9798 rm -f conftest.
$ac_objext
9799 if { (ac_try
="$ac_compile"
9801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_compile") 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } && {
9812 test -z "$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9814 } && test -s conftest.$ac_objext; then
9815 ac_cv_type_int8_t=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_type_int8_t=no
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9826 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9827 if test $ac_cv_type_int8_t = yes; then
9831 cat >>confdefs.h <<\_ACEOF
9832 #define int8_t signed char
9837 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9838 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9839 if test "${ac_cv_type_u_int8_t+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 $ac_includes_default
9849 #ifdef HAVE_SYS_BITYPES_H
9850 #include <sys/bitypes.h>
9853 typedef u_int8_t ac__type_new_;
9857 if ((ac__type_new_ *) 0)
9859 if (sizeof (ac__type_new_))
9865 rm -f conftest.$ac_objext
9866 if { (ac_try="$ac_compile"
9868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9869 *) ac_try_echo
=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_compile") 2>conftest.er1
9874 grep -v '^ *+' conftest.er1
>conftest.err
9876 cat conftest.err
>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } && {
9879 test -z "$ac_c_werror_flag" ||
9880 test ! -s conftest.err
9881 } && test -s conftest.
$ac_objext; then
9882 ac_cv_type_u_int8_t
=yes
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.
$ac_ext >&5
9887 ac_cv_type_u_int8_t
=no
9890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9892 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
9893 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
9894 if test $ac_cv_type_u_int8_t = yes; then
9898 cat >>confdefs.h
<<\_ACEOF
9899 #define u_int8_t unsigned char
9904 { echo "$as_me:$LINENO: checking for int16_t" >&5
9905 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9906 if test "${ac_cv_type_int16_t+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 cat >conftest.
$ac_ext <<_ACEOF
9912 cat confdefs.h
>>conftest.
$ac_ext
9913 cat >>conftest.
$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 $ac_includes_default
9916 typedef int16_t ac__type_new_;
9920 if ((ac__type_new_ *) 0)
9922 if (sizeof (ac__type_new_))
9928 rm -f conftest.
$ac_objext
9929 if { (ac_try
="$ac_compile"
9931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_compile") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest.$ac_objext; then
9945 ac_cv_type_int16_t=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_type_int16_t=no
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
9956 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
9957 if test $ac_cv_type_int16_t = yes; then
9961 cat >>confdefs.h <<\_ACEOF
9962 #define int16_t short
9965 $ac_includes_default
9966 #ifdef HAVE_SYS_BITYPES_H
9967 #include <sys/bitypes.h>
9971 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
9972 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
9973 if test "${ac_cv_type_u_int16_t+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 $ac_includes_default
9983 #ifdef HAVE_SYS_BITYPES_H
9984 #include <sys/bitypes.h>
9987 typedef u_int16_t ac__type_new_;
9991 if ((ac__type_new_ *) 0)
9993 if (sizeof (ac__type_new_))
9999 rm -f conftest.$ac_objext
10000 if { (ac_try="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10003 *) ac_try_echo
=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
10008 grep -v '^ *+' conftest.er1
>conftest.err
10010 cat conftest.err
>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && {
10013 test -z "$ac_c_werror_flag" ||
10014 test ! -s conftest.err
10015 } && test -s conftest.
$ac_objext; then
10016 ac_cv_type_u_int16_t
=yes
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.
$ac_ext >&5
10021 ac_cv_type_u_int16_t
=no
10024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10026 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10027 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10028 if test $ac_cv_type_u_int16_t = yes; then
10032 cat >>confdefs.h
<<\_ACEOF
10033 #define u_int16_t unsigned short
10038 { echo "$as_me:$LINENO: checking for int32_t" >&5
10039 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10040 if test "${ac_cv_type_int32_t+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 cat >conftest.
$ac_ext <<_ACEOF
10046 cat confdefs.h
>>conftest.
$ac_ext
10047 cat >>conftest.
$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 $ac_includes_default
10050 #ifdef HAVE_SYS_BITYPES_H
10051 #include <sys/bitypes.h>
10054 typedef int32_t ac__type_new_;
10058 if ((ac__type_new_ *) 0)
10060 if (sizeof (ac__type_new_))
10066 rm -f conftest.
$ac_objext
10067 if { (ac_try
="$ac_compile"
10068 case "(($ac_try" in
10069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_compile") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest.$ac_objext; then
10083 ac_cv_type_int32_t=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_type_int32_t=no
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10094 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10095 if test $ac_cv_type_int32_t = yes; then
10099 cat >>confdefs.h <<\_ACEOF
10100 #define int32_t int
10105 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10106 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10107 if test "${ac_cv_type_u_int32_t+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 #ifdef HAVE_SYS_BITYPES_H
10118 #include <sys/bitypes.h>
10121 typedef u_int32_t ac__type_new_;
10125 if ((ac__type_new_ *) 0)
10127 if (sizeof (ac__type_new_))
10133 rm -f conftest.$ac_objext
10134 if { (ac_try="$ac_compile"
10135 case "(($ac_try" in
10136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10137 *) ac_try_echo
=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1
>conftest.err
10144 cat conftest.err
>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.
$ac_objext; then
10150 ac_cv_type_u_int32_t
=yes
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.
$ac_ext >&5
10155 ac_cv_type_u_int32_t
=no
10158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10160 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10161 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10162 if test $ac_cv_type_u_int32_t = yes; then
10166 cat >>confdefs.h
<<\_ACEOF
10167 #define u_int32_t unsigned int
10172 { echo "$as_me:$LINENO: checking for int64_t" >&5
10173 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10174 if test "${ac_cv_type_int64_t+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 cat >conftest.
$ac_ext <<_ACEOF
10180 cat confdefs.h
>>conftest.
$ac_ext
10181 cat >>conftest.
$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10184 #ifdef HAVE_SYS_BITYPES_H
10185 #include <sys/bitypes.h>
10188 typedef int64_t ac__type_new_;
10192 if ((ac__type_new_ *) 0)
10194 if (sizeof (ac__type_new_))
10200 rm -f conftest.
$ac_objext
10201 if { (ac_try
="$ac_compile"
10202 case "(($ac_try" in
10203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_compile") 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest.$ac_objext; then
10217 ac_cv_type_int64_t=yes
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ac_cv_type_int64_t=no
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10228 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10229 if test $ac_cv_type_int64_t = yes; then
10233 cat >>confdefs.h <<\_ACEOF
10234 #define int64_t long long
10239 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10240 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10241 if test "${ac_cv_type_u_int64_t+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 #ifdef HAVE_SYS_BITYPES_H
10252 #include <sys/bitypes.h>
10255 typedef u_int64_t ac__type_new_;
10259 if ((ac__type_new_ *) 0)
10261 if (sizeof (ac__type_new_))
10267 rm -f conftest.$ac_objext
10268 if { (ac_try="$ac_compile"
10269 case "(($ac_try" in
10270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10271 *) ac_try_echo
=$ac_try;;
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_compile") 2>conftest.er1
10276 grep -v '^ *+' conftest.er1
>conftest.err
10278 cat conftest.err
>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && {
10281 test -z "$ac_c_werror_flag" ||
10282 test ! -s conftest.err
10283 } && test -s conftest.
$ac_objext; then
10284 ac_cv_type_u_int64_t
=yes
10286 echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.
$ac_ext >&5
10289 ac_cv_type_u_int64_t
=no
10292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10294 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10295 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10296 if test $ac_cv_type_u_int64_t = yes; then
10300 cat >>confdefs.h
<<\_ACEOF
10301 #define u_int64_t unsigned long long
10308 # We can't just check for <inttypes.h> - some systems have one that
10309 # doesn't define all the PRI[doxu]64 macros.
10312 for ac_header
in inttypes.h
10314 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10315 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 ac_res
=`eval echo '${'$as_ac_Header'}'`
10322 { echo "$as_me:$LINENO: result: $ac_res" >&5
10323 echo "${ECHO_T}$ac_res" >&6; }
10325 # Is the header compilable?
10326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10328 cat >conftest.
$ac_ext <<_ACEOF
10331 cat confdefs.h
>>conftest.
$ac_ext
10332 cat >>conftest.
$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10335 #include <$ac_header>
10337 rm -f conftest.
$ac_objext
10338 if { (ac_try
="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10354 ac_header_compiler=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_header_compiler=no
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10364 echo "${ECHO_T}$ac_header_compiler" >&6; }
10366 # Is the header present?
10367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 #include <$ac_header>
10377 if { (ac_try="$ac_cpp conftest.$ac_ext"
10378 case "(($ac_try" in
10379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10380 *) ac_try_echo
=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1
>conftest.err
10387 cat conftest.err
>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } >/dev
/null
&& {
10390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10393 ac_header_preproc
=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.
$ac_ext >&5
10398 ac_header_preproc
=no
10401 rm -f conftest.err conftest.
$ac_ext
10402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10403 echo "${ECHO_T}$ac_header_preproc" >&6; }
10405 # So? What about this header?
10406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10412 ac_header_preproc
=yes
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 eval "$as_ac_Header=\$ac_header_preproc"
10437 ac_res
=`eval echo '${'$as_ac_Header'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10443 cat >>confdefs.h
<<_ACEOF
10444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 # OK, we have inttypes.h, but does it define those macros?
10450 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10451 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10452 cat >conftest.
$ac_ext <<_ACEOF
10456 cat confdefs.h
>>conftest.
$ac_ext
10457 cat >>conftest.
$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10460 #include <inttypes.h>
10462 #include <sys/types.h>
10463 #ifdef HAVE_SYS_BITYPES_H
10464 #include <sys/bitypes.h>
10469 printf("%" PRId64 "\n", (u_int64_t)1);
10470 printf("%" PRIo64 "\n", (u_int64_t)1);
10471 printf("%" PRIx64 "\n", (u_int64_t)1);
10472 printf("%" PRIu64 "\n", (u_int64_t)1);
10477 rm -f conftest.
$ac_objext
10478 if { (ac_try
="$ac_compile"
10479 case "(($ac_try" in
10480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_compile") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest.$ac_objext; then
10495 { echo "$as_me:$LINENO: result: yes" >&5
10496 echo "${ECHO_T}yes" >&6; }
10497 ac_lbl_inttypes_h_defines_formats=yes
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10504 { echo "$as_me:$LINENO: result: no" >&5
10505 echo "${ECHO_T}no" >&6; }
10506 ac_lbl_inttypes_h_defines_formats=no
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 # We don't have inttypes.h, so it obviously can't define those
10518 ac_lbl_inttypes_h_defines_formats=no
10524 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10526 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10527 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10528 if test "$cross_compiling" = yes; then
10529 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10530 See \`config.log
' for more details." >&5
10531 echo "$as_me: error: cannot run test program while cross compiling
10532 See \`config.log' for more details.
" >&2;}
10533 { (exit 1); exit 1; }; }
10535 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10543 # ifdef HAVE_INTTYPES_H
10544 #include <inttypes.h>
10546 # ifdef HAVE_SYS_BITYPES_H
10547 #include <sys/bitypes.h>
10550 #include <sys/types.h>
10556 sprintf(strbuf, "%016lx
", t << 32);
10557 if (strcmp(strbuf, "0000000100000000") == 0)
10565 rm -f conftest$ac_exeext
10566 if { (ac_try="$ac_link"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_link") 2>&5
10574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10576 { (case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_try") 2>&5
10583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10584 (exit $ac_status); }; }; then
10587 cat >>confdefs.h <<\_ACEOF
10588 #define PRId64 "ld
"
10592 cat >>confdefs.h <<\_ACEOF
10593 #define PRIo64 "lo
"
10597 cat >>confdefs.h <<\_ACEOF
10598 #define PRIx64 "lx
"
10602 cat >>confdefs.h <<\_ACEOF
10603 #define PRIu64 "lu
"
10606 { echo "$as_me:$LINENO: result
: yes" >&5
10607 echo "${ECHO_T}yes" >&6; }
10610 echo "$as_me: program exited with status
$ac_status" >&5
10611 echo "$as_me: failed program was
:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 ( exit $ac_status )
10616 { echo "$as_me:$LINENO: result
: no
" >&5
10617 echo "${ECHO_T}no
" >&6; }
10620 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
10621 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
10622 if test "$cross_compiling" = yes; then
10623 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
10624 See \
`config.log' for more details." >&5
10625 echo "$as_me: error: cannot run test program while cross compiling
10626 See \`config.log
' for more details." >&2;}
10627 { (exit 1); exit 1; }; }
10629 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10637 # ifdef HAVE_INTTYPES_H
10638 #include <inttypes.h>
10640 # ifdef HAVE_SYS_BITYPES_H
10641 #include <sys/bitypes.h>
10644 #include <sys/types.h>
10650 sprintf(strbuf, "%016llx", t << 32);
10651 if (strcmp(strbuf, "0000000100000000") == 0)
10659 rm -f conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10681 cat >>confdefs.h <<\_ACEOF
10682 #define PRId64 "lld"
10686 cat >>confdefs.h <<\_ACEOF
10687 #define PRIo64 "llo"
10691 cat >>confdefs.h <<\_ACEOF
10692 #define PRIx64 "llx"
10696 cat >>confdefs.h <<\_ACEOF
10697 #define PRIu64 "llu"
10700 { echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6; }
10704 echo "$as_me: program exited with status $ac_status" >&5
10705 echo "$as_me: failed program was:" >&5
10706 sed 's
/^
/|
/' conftest.$ac_ext >&5
10708 ( exit $ac_status )
10710 { echo "$as_me:$LINENO: result: no" >&5
10711 echo "${ECHO_T}no" >&6; }
10714 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10715 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10716 if test "$cross_compiling" = yes; then
10717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10718 See \`config.log' for more details.
" >&5
10719 echo "$as_me: error
: cannot run
test program
while cross compiling
10720 See \
`config.log' for more details." >&2;}
10721 { (exit 1); exit 1; }; }
10723 cat >conftest.$ac_ext <<_ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10731 # ifdef HAVE_INTTYPES_H
10732 #include <inttypes.h>
10734 # ifdef HAVE_SYS_BITYPES_H
10735 #include <sys/bitypes.h>
10738 #include <sys/types.h>
10744 sprintf(strbuf, "%016Lx", t << 32);
10745 if (strcmp(strbuf, "0000000100000000") == 0)
10753 rm -f conftest$ac_exeext
10754 if { (ac_try="$ac_link"
10755 case "(($ac_try" in
10756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10757 *) ac_try_echo
=$ac_try;;
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_link") 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10764 { (case "(($ac_try" in
10765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_try") 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10775 cat >>confdefs.h <<\_ACEOF
10776 #define PRId64 "Ld"
10780 cat >>confdefs.h <<\_ACEOF
10781 #define PRIo64 "Lo"
10785 cat >>confdefs.h <<\_ACEOF
10786 #define PRIx64 "Lx"
10790 cat >>confdefs.h <<\_ACEOF
10791 #define PRIu64 "Lu"
10794 { echo "$as_me:$LINENO: result: yes" >&5
10795 echo "${ECHO_T}yes" >&6; }
10798 echo "$as_me: program exited with status $ac_status" >&5
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ( exit $ac_status )
10804 { echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6; }
10808 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10809 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10810 if test "$cross_compiling" = yes; then
10811 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10812 See \`config.log
' for more details." >&5
10813 echo "$as_me: error: cannot run test program while cross compiling
10814 See \`config.log' for more details.
" >&2;}
10815 { (exit 1); exit 1; }; }
10817 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10825 # ifdef HAVE_INTTYPES_H
10826 #include <inttypes.h>
10828 # ifdef HAVE_SYS_BITYPES_H
10829 #include <sys/bitypes.h>
10832 #include <sys/types.h>
10838 sprintf(strbuf, "%016qx
", t << 32);
10839 if (strcmp(strbuf, "0000000100000000") == 0)
10847 rm -f conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_link") 2>&5
10856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10858 { (case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_try") 2>&5
10865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10866 (exit $ac_status); }; }; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define PRId64 "qd
"
10874 cat >>confdefs.h <<\_ACEOF
10875 #define PRIo64 "qo
"
10879 cat >>confdefs.h <<\_ACEOF
10880 #define PRIx64 "qx
"
10884 cat >>confdefs.h <<\_ACEOF
10885 #define PRIu64 "qu
"
10888 { echo "$as_me:$LINENO: result
: yes" >&5
10889 echo "${ECHO_T}yes" >&6; }
10892 echo "$as_me: program exited with status
$ac_status" >&5
10893 echo "$as_me: failed program was
:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 ( exit $ac_status )
10898 { echo "$as_me:$LINENO: result
: no
" >&5
10899 echo "${ECHO_T}no
" >&6; }
10901 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
10902 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
10903 { (exit 1); exit 1; }; }
10907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10939 # Check for some headers introduced in later versions of libpcap
10940 # and used by some printers.
10942 # Those headers use the {u_}intN_t types, so we must do this after
10943 # we check for what's needed to get them defined.
10945 savedcppflags="$CPPFLAGS"
10946 CPPFLAGS="$CPPFLAGS $V_INCLS"
10948 for ac_header in pcap/bluetooth.h
10950 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10951 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10952 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10953 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached
) $ECHO_C" >&6
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <tcpdump-stdinc.h>
10964 #include <$ac_header>
10966 rm -f conftest.$ac_objext
10967 if { (ac_try="$ac_compile"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_compile") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1 >conftest.err
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest.$ac_objext; then
10983 eval "$as_ac_Header=yes"
10985 echo "$as_me: failed program was
:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 eval "$as_ac_Header=no
"
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 ac_res=`eval echo '${'$as_ac_Header'}'`
10994 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10995 echo "${ECHO_T}$ac_res" >&6; }
10996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10997 cat >>confdefs.h <<_ACEOF
10998 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11006 for ac_header in pcap/usb.h
11008 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11009 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11010 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11012 echo $ECHO_N "(cached
) $ECHO_C" >&6
11014 cat >conftest.$ac_ext <<_ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11020 #include <tcpdump-stdinc.h>
11022 #include <$ac_header>
11024 rm -f conftest.$ac_objext
11025 if { (ac_try="$ac_compile"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_compile") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1 >conftest.err
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest.$ac_objext; then
11041 eval "$as_ac_Header=yes"
11043 echo "$as_me: failed program was
:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 eval "$as_ac_Header=no
"
11049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051 ac_res=`eval echo '${'$as_ac_Header'}'`
11052 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11053 echo "${ECHO_T}$ac_res" >&6; }
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11063 CPPFLAGS="$savedcppflags"
11065 if test -n "$ac_tool_prefix"; then
11066 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
11067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11068 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11069 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11070 if test "${ac_cv_prog_RANLIB+set}" = set; then
11071 echo $ECHO_N "(cached
) $ECHO_C" >&6
11073 if test -n "$RANLIB"; then
11074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
11084 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11093 RANLIB=$ac_cv_prog_RANLIB
11094 if test -n "$RANLIB"; then
11095 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
11096 echo "${ECHO_T}$RANLIB" >&6; }
11098 { echo "$as_me:$LINENO: result
: no
" >&5
11099 echo "${ECHO_T}no
" >&6; }
11104 if test -z "$ac_cv_prog_RANLIB"; then
11105 ac_ct_RANLIB=$RANLIB
11106 # Extract the first word of "ranlib
", so it can be a program name with args.
11107 set dummy ranlib; ac_word=$2
11108 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11109 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11111 echo $ECHO_N "(cached
) $ECHO_C" >&6
11113 if test -n "$ac_ct_RANLIB"; then
11114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 ac_cv_prog_ac_ct_RANLIB="ranlib
"
11124 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11134 if test -n "$ac_ct_RANLIB"; then
11135 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
11136 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11138 { echo "$as_me:$LINENO: result
: no
" >&5
11139 echo "${ECHO_T}no
" >&6; }
11142 if test "x
$ac_ct_RANLIB" = x; then
11145 case $cross_compiling:$ac_tool_warned in
11147 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
11148 whose name does not start with the
host triplet. If you think this
11149 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
11150 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
11151 whose name does not start with the
host triplet. If you think this
11152 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
11153 ac_tool_warned=yes ;;
11155 RANLIB=$ac_ct_RANLIB
11158 RANLIB="$ac_cv_prog_RANLIB"
11163 if test "${LBL_CFLAGS+set}" = set; then
11164 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11166 if test -f .devel ; then
11168 # Skip all the warning option stuff on some compilers.
11170 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
11172 { echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option
" >&5
11173 echo $ECHO_N "checking whether the compiler fails when given an unknown warning option...
$ECHO_C" >&6; }
11174 save_CFLAGS="$CFLAGS"
11175 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11200 grep -v '^ *+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11209 { echo "$as_me:$LINENO: result
: no
" >&5
11210 echo "${ECHO_T}no
" >&6; }
11212 # We're assuming this is clang, where
11213 # -Werror=unknown-warning-option is the appropriate
11214 # option to force the compiler to fail.
11216 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option
"
11219 echo "$as_me: failed program was
:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11223 { echo "$as_me:$LINENO: result
: yes" >&5
11224 echo "${ECHO_T}yes" >&6; }
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 CFLAGS="$save_CFLAGS"
11232 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wall option
" >&5
11233 echo $ECHO_N "checking whether the compiler supports the
-Wall option...
$ECHO_C" >&6; }
11234 save_CFLAGS="$CFLAGS"
11235 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
11236 cat >conftest.$ac_ext <<_ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11269 { echo "$as_me:$LINENO: result
: yes" >&5
11270 echo "${ECHO_T}yes" >&6; }
11271 CFLAGS="$save_CFLAGS"
11272 V_CCOPT="$V_CCOPT -Wall"
11275 echo "$as_me: failed program was
:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11279 { echo "$as_me:$LINENO: result
: no
" >&5
11280 echo "${ECHO_T}no
" >&6; }
11281 CFLAGS="$save_CFLAGS"
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wmissing-prototypes option
" >&5
11289 echo $ECHO_N "checking whether the compiler supports the
-Wmissing-prototypes option...
$ECHO_C" >&6; }
11290 save_CFLAGS="$CFLAGS"
11291 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
11292 cat >conftest.$ac_ext <<_ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11307 rm -f conftest.$ac_objext
11308 if { (ac_try="$ac_compile"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_compile") 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest.$ac_objext; then
11325 { echo "$as_me:$LINENO: result
: yes" >&5
11326 echo "${ECHO_T}yes" >&6; }
11327 CFLAGS="$save_CFLAGS"
11328 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
11331 echo "$as_me: failed program was
:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11335 { echo "$as_me:$LINENO: result
: no
" >&5
11336 echo "${ECHO_T}no
" >&6; }
11337 CFLAGS="$save_CFLAGS"
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wstrict-prototypes option
" >&5
11345 echo $ECHO_N "checking whether the compiler supports the
-Wstrict-prototypes option...
$ECHO_C" >&6; }
11346 save_CFLAGS="$CFLAGS"
11347 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11363 rm -f conftest.$ac_objext
11364 if { (ac_try="$ac_compile"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11372 grep -v '^ *+' conftest.er1 >conftest.err
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest.$ac_objext; then
11381 { echo "$as_me:$LINENO: result
: yes" >&5
11382 echo "${ECHO_T}yes" >&6; }
11383 CFLAGS="$save_CFLAGS"
11384 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
11387 echo "$as_me: failed program was
:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11391 { echo "$as_me:$LINENO: result
: no
" >&5
11392 echo "${ECHO_T}no
" >&6; }
11393 CFLAGS="$save_CFLAGS"
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wwrite-strings option
" >&5
11401 echo $ECHO_N "checking whether the compiler supports the
-Wwrite-strings option...
$ECHO_C" >&6; }
11402 save_CFLAGS="$CFLAGS"
11403 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
11437 { echo "$as_me:$LINENO: result
: yes" >&5
11438 echo "${ECHO_T}yes" >&6; }
11439 CFLAGS="$save_CFLAGS"
11440 V_CCOPT="$V_CCOPT -Wwrite-strings"
11443 echo "$as_me: failed program was
:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11447 { echo "$as_me:$LINENO: result
: no
" >&5
11448 echo "${ECHO_T}no
" >&6; }
11449 CFLAGS="$save_CFLAGS"
11453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wpointer-arith option
" >&5
11457 echo $ECHO_N "checking whether the compiler supports the
-Wpointer-arith option...
$ECHO_C" >&6; }
11458 save_CFLAGS="$CFLAGS"
11459 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.$ac_objext; then
11493 { echo "$as_me:$LINENO: result
: yes" >&5
11494 echo "${ECHO_T}yes" >&6; }
11495 CFLAGS="$save_CFLAGS"
11496 V_CCOPT="$V_CCOPT -Wpointer-arith"
11499 echo "$as_me: failed program was
:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11503 { echo "$as_me:$LINENO: result
: no
" >&5
11504 echo "${ECHO_T}no
" >&6; }
11505 CFLAGS="$save_CFLAGS"
11509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { echo "$as_me:$LINENO: checking whether the compiler supports the
-W option
" >&5
11513 echo $ECHO_N "checking whether the compiler supports the
-W option...
$ECHO_C" >&6; }
11514 save_CFLAGS="$CFLAGS"
11515 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
11516 cat >conftest.$ac_ext <<_ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11540 grep -v '^ *+' conftest.er1 >conftest.err
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
11549 { echo "$as_me:$LINENO: result
: yes" >&5
11550 echo "${ECHO_T}yes" >&6; }
11551 CFLAGS="$save_CFLAGS"
11552 V_CCOPT="$V_CCOPT -W"
11555 echo "$as_me: failed program was
:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11559 { echo "$as_me:$LINENO: result
: no
" >&5
11560 echo "${ECHO_T}no
" >&6; }
11561 CFLAGS="$save_CFLAGS"
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 { echo "$as_me:$LINENO: checking whether the compiler supports generating dependencies
" >&5
11570 echo $ECHO_N "checking whether the compiler supports generating dependencies...
$ECHO_C" >&6; }
11571 if test "$GCC" = yes ; then
11573 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
11574 # though it's not); we assume that, in this case, the flag
11577 ac_lbl_dependency_flag="-M"
11580 # Not GCC or a compiler deemed to be GCC; what platform is
11581 # this? (We're assuming that if the compiler isn't GCC
11582 # it's the compiler from the vendor of the OS; that won't
11583 # necessarily be true for x86 platforms, where it might be
11584 # the Intel C compiler.)
11588 irix*|osf*|darwin*)
11590 # MIPS C for IRIX, DEC C, and clang all use -M.
11592 ac_lbl_dependency_flag="-M"
11599 ac_lbl_dependency_flag="-xM"
11604 # HP's older C compilers don't support this.
11605 # HP's newer C compilers support this with
11606 # either +M or +Make; the older compilers
11607 # interpret +M as something completely
11608 # different, so we use +Make so we don't
11609 # think it works with the older compilers.
11611 ac_lbl_dependency_flag="+Make
"
11616 # Not one of the above; assume no support for
11617 # generating dependencies.
11619 ac_lbl_dependency_flag=""
11625 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
11626 # complain about it?
11628 # Note: clang doesn't seem to exit with an error status when handed
11629 # an unknown non-warning error, even if you pass it
11630 # -Werror=unknown-warning-option. However, it always supports
11631 # -M, so the fact that this test always succeeds with clang
11634 if test ! -z "$ac_lbl_dependency_flag"; then
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 int main(void) { return 0; }
11643 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
11644 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
11645 { echo "$as_me:$LINENO: result
: yes, with
$ac_lbl_dependency_flag" >&5
11646 echo "${ECHO_T}yes, with
$ac_lbl_dependency_flag" >&6; }
11647 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
11648 MKDEP='${srcdir}/mkdep'
11650 { echo "$as_me:$LINENO: result
: no
" >&5
11651 echo "${ECHO_T}no
" >&6; }
11653 # We can't run mkdep, so have "make depend
" do
11660 { echo "$as_me:$LINENO: result
: no
" >&5
11661 echo "${ECHO_T}no
" >&6; }
11663 # We can't run mkdep, so have "make depend
" do
11671 if test "$GCC" = yes ; then
11672 if test "${LBL_CFLAGS+set}" != set; then
11673 if test "$ac_cv_prog_cc_g" = yes ; then
11674 V_CCOPT="-g $V_CCOPT"
11681 V_CCOPT="$V_CCOPT -n32"
11688 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11689 name="lbl
/os-
$os.h
"
11690 if test -f $name ; then
11691 ln -s $name os-proto.h
11693 cat >>confdefs.h <<\_ACEOF
11694 #define HAVE_OS_PROTO_H 1
11698 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
11699 echo "$as_me: WARNING: can't
find $name" >&2;}
11703 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
11704 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
11705 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11706 echo $ECHO_N "(cached
) $ECHO_C" >&6
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11715 # include <sys/types.h>
11716 # include <sys/socket.h>
11720 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11725 rm -f conftest.$ac_objext
11726 if { (ac_try="$ac_compile"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_compile") 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11738 (exit $ac_status); } && {
11739 test -z "$ac_c_werror_flag" ||
11740 test ! -s conftest.err
11741 } && test -s conftest.$ac_objext; then
11742 ac_cv_lbl_sockaddr_has_sa_len=yes
11744 echo "$as_me: failed program was
:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_cv_lbl_sockaddr_has_sa_len=no
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11754 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11755 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11757 cat >>confdefs.h <<\_ACEOF
11758 #define HAVE_SOCKADDR_SA_LEN 1
11763 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
11764 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
11765 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11766 echo $ECHO_N "(cached
) $ECHO_C" >&6
11768 case "$host_cpu" in
11771 # These are CPU types where:
11773 # the CPU faults on an unaligned access, but at least some
11774 # OSes that support that CPU catch the fault and simulate
11775 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11776 # the simulation is slow, so we don't want to use it;
11778 # the CPU, I infer (from the old
11780 # XXX: should also check that they don't do weird things (like on arm)
11782 # comment) doesn't fault on unaligned accesses, but doesn't
11783 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11785 # for whatever reason, the test program doesn't work
11786 # (this has been claimed to be the case for several of those
11787 # CPUs - I don't know what the problem is; the problem
11788 # was reported as "the
test program dumps core
" for SuperH,
11789 # but that's what the test program is *supposed* to do -
11790 # it dumps core before it writes anything, so the test
11791 # for an empty output file should find an empty output
11792 # file and conclude that unaligned accesses don't work).
11794 # This run-time test won't work if you're cross-compiling, so
11795 # in order to support cross-compiling for a particular CPU,
11796 # we have to wire in the list of CPU types anyway, as far as
11797 # I know, so perhaps we should just have a set of CPUs on
11798 # which we know it doesn't work, a set of CPUs on which we
11799 # know it does work, and have the script just fail on other
11800 # cpu types and update it when such a failure occurs.
11802 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11803 ac_cv_lbl_unaligned_fail=yes
11807 cat >conftest.c <<EOF
11808 # include <sys/types.h>
11809 # include <sys/wait.h>
11810 # include <stdio.h>
11811 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11816 /* avoid "core dumped
" message */
11822 pid = waitpid(pid, &status, 0);
11825 exit(!WIFEXITED(status));
11828 i = *(unsigned int *)&a[1];
11833 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11834 conftest.c $LIBS >/dev/null 2>&1
11835 if test ! -x conftest ; then
11836 ac_cv_lbl_unaligned_fail=yes
11838 ./conftest >conftest.out
11839 if test ! -s conftest.out ; then
11840 ac_cv_lbl_unaligned_fail=yes
11842 ac_cv_lbl_unaligned_fail=no
11845 rm -f -r conftest* core core.conftest
11850 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
11851 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11852 if test $ac_cv_lbl_unaligned_fail = yes ; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define LBL_ALIGN 1
11861 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
11862 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
11863 if test "${ac_cv_var_h_errno+set}" = set; then
11864 echo $ECHO_N "(cached
) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 # include <sys/types.h>
11874 # include <netdb.h>
11883 rm -f conftest.$ac_objext
11884 if { (ac_try="$ac_compile"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_compile") 2>conftest.er1
11892 grep -v '^ *+' conftest.er1 >conftest.err
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest.$ac_objext; then
11900 ac_cv_var_h_errno=yes
11902 echo "$as_me: failed program was
:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_var_h_errno=no
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
11912 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11913 if test "$ac_cv_var_h_errno" = "yes"; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_H_ERRNO 1
11922 # Check for OpenSSL libcrypto
11923 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto
" >&5
11924 echo $ECHO_N "checking whether to use OpenSSL libcrypto...
$ECHO_C" >&6; }
11925 # Specify location for both includes and libraries.
11926 want_libcrypto=ifavailable
11928 # Check whether --with-crypto was given.
11929 if test "${with_crypto+set}" = set; then
11930 withval=$with_crypto;
11931 if test $withval = no
11934 { echo "$as_me:$LINENO: result
: no
" >&5
11935 echo "${ECHO_T}no
" >&6; }
11936 elif test $withval = yes
11939 { echo "$as_me:$LINENO: result
: yes" >&5
11940 echo "${ECHO_T}yes" >&6; }
11946 # Use libcrypto if it's present, otherwise don't.
11948 want_libcrypto=ifavailable
11949 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
11950 echo "${ECHO_T}yes, if available
" >&6; }
11954 if test "$want_libcrypto" != "no
"; then
11956 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
11957 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
11958 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11959 echo $ECHO_N "(cached
) $ECHO_C" >&6
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lcrypto $LIBS"
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11976 char DES_cbc_encrypt ();
11980 return DES_cbc_encrypt ();
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_link") 2>conftest.er1
11994 grep -v '^ *+' conftest.er1 >conftest.err
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest$ac_exeext &&
12002 $as_test_x conftest$ac_exeext; then
12003 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12005 echo "$as_me: failed program was
:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_cv_lib_crypto_DES_cbc_encrypt=no
12011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_check_lib_save_LIBS
12015 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12016 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12017 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_LIBCRYPTO 1
12022 LIBS="-lcrypto $LIBS"
12027 for ac_header in openssl/evp.h
12029 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12031 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12032 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12033 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached
) $ECHO_C" >&6
12036 ac_res=`eval echo '${'$as_ac_Header'}'`
12037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12040 # Is the header compilable?
12041 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12042 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <$ac_header>
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
12069 ac_header_compiler=yes
12071 echo "$as_me: failed program was
:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ac_header_compiler=no
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6; }
12081 # Is the header present?
12082 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12083 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <$ac_header>
12092 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12104 (exit $ac_status); } >/dev/null && {
12105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12108 ac_header_preproc=yes
12110 echo "$as_me: failed program was
:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_header_preproc=no
12116 rm -f conftest.err conftest.$ac_ext
12117 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12118 echo "${ECHO_T}$ac_header_preproc" >&6; }
12120 # So? What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12124 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12125 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12127 ac_header_preproc=yes
12130 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12131 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12132 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12133 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12134 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12135 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12136 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12137 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12140 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12141 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12145 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12146 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12147 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12148 echo $ECHO_N "(cached
) $ECHO_C" >&6
12150 eval "$as_ac_Header=\
$ac_header_preproc"
12152 ac_res=`eval echo '${'$as_ac_Header'}'`
12153 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12168 if test "$missing_includes" = "yes"; then
12169 CPPFLAGS="$CPPFLAGS -I$srcdir/missing
"
12170 V_INCLS="$V_INCLS -I$srcdir/missing
"
12182 # Find a good install program. We prefer a C program (faster),
12183 # so one script is as good as another. But avoid the broken or
12184 # incompatible versions:
12185 # SysV /etc/install, /usr/sbin/install
12186 # SunOS /usr/etc/install
12187 # IRIX /sbin/install
12189 # AmigaOS /C/install, which installs bootblocks on floppy discs
12190 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12191 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12192 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
12193 # OS/2's system install, which has a completely different semantic
12194 # ./install, which can be erroneously created by make from ./install.sh.
12195 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
12196 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
12197 if test -z "$INSTALL"; then
12198 if test "${ac_cv_path_install+set}" = set; then
12199 echo $ECHO_N "(cached
) $ECHO_C" >&6
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12205 test -z "$as_dir" && as_dir=.
12206 # Account for people who put trailing slashes in PATH elements.
12208 ./ | .// | /cC/* | \
12209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12210 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12213 # OSF1 and SCO ODT 3.0 have their own names for install.
12214 # Don't use installbsd from OSF since it installs stuff as root
12216 for ac_prog in ginstall scoinst install; do
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12219 if test $ac_prog = install &&
12220 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12221 # AIX install. It has an incompatible calling convention.
12223 elif test $ac_prog = install &&
12224 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12225 # program-specific install script used by HP pwplus--don't use.
12228 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12241 if test "${ac_cv_path_install+set}" = set; then
12242 INSTALL=$ac_cv_path_install
12244 # As a last resort, use the slow shell script. Don't cache a
12245 # value for INSTALL within a source directory, because that will
12246 # break other packages using the cache if that directory is
12247 # removed, or if the value is a relative name.
12248 INSTALL=$ac_install_sh
12251 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
12252 echo "${ECHO_T}$INSTALL" >&6; }
12254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12255 # It thinks the first close brace ends the variable substitution.
12256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12258 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12260 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12263 ac_config_headers="$ac_config_headers config.h
"
12266 ac_config_commands="$ac_config_commands default-1
"
12268 ac_config_files="$ac_config_files Makefile tcpdump
.1"
12270 cat >confcache <<\_ACEOF
12271 # This file is a shell script that caches the results of configure
12272 # tests run on this system so they can be shared between configure
12273 # scripts and configure runs, see configure's option --config-cache.
12274 # It is not useful on other systems. If it contains results you don't
12275 # want to keep, you may remove or edit it.
12277 # config.status only pays attention to the cache file if you give it
12278 # the --recheck option to rerun configure.
12280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12282 # following values.
12286 # The following way of writing the cache mishandles newlines in values,
12287 # but we know of no workaround that is simple, portable, and efficient.
12288 # So, we kill variables containing newlines.
12289 # Ultrix sh set writes to stderr and can't be redirected directly,
12290 # and sets the high bit in the cache file unless we assign to the vars.
12292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12293 eval ac_val=\$$ac_var
12297 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
12298 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
12301 _ | IFS | as_nl) ;; #(
12302 *) $as_unset $ac_var ;;
12308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12309 *${as_nl}ac_space=\ *)
12310 # `set' does not quote correctly, so add quotes (double-quote
12311 # substitution turns \\\\ into \\, and sed turns \\ into \).
12314 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
12317 # `set' quotes correctly as required by POSIX, so do not add quotes.
12318 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
12327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12332 if test -w "$cache_file"; then
12333 test "x
$cache_file" != "x
/dev
/null
" &&
12334 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
12335 echo "$as_me: updating cache
$cache_file" >&6;}
12336 cat confcache >$cache_file
12338 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
12339 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
12344 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
12345 # Let make expand exec_prefix.
12346 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
12348 DEFS=-DHAVE_CONFIG_H
12352 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
12353 # 1. Remove the extension, and $U if already installed.
12354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12355 ac_i=`echo "$ac_i" | sed "$ac_script"`
12356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12357 # will be set to the directory where LIBOBJS objects are built.
12358 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
12359 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
12361 LIBOBJS=$ac_libobjs
12363 LTLIBOBJS=$ac_ltlibobjs
12367 : ${CONFIG_STATUS=./config.status}
12368 ac_clean_files_save=$ac_clean_files
12369 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12370 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
12371 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
12372 cat >$CONFIG_STATUS <<_ACEOF
12374 # Generated by $as_me.
12375 # Run this file to recreate the current configuration.
12376 # Compiler output produced by configure, useful for debugging
12377 # configure, is in config.log if it exists.
12380 ac_cs_recheck=false
12382 SHELL=\${CONFIG_SHELL-$SHELL}
12385 cat >>$CONFIG_STATUS <<\_ACEOF
12386 ## --------------------- ##
12387 ## M4sh Initialization. ##
12388 ## --------------------- ##
12390 # Be more Bourne compatible
12391 DUALCASE=1; export DUALCASE # for MKS sh
12392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12396 # is contrary to our usage. Disable this feature.
12397 alias -g '${1+"$@"}'='"$@
"'
12398 setopt NO_GLOB_SUBST
12400 case `(set -o) 2>/dev/null` in
12401 *posix*) set -o posix ;;
12410 # Avoid depending upon Character Ranges.
12411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12414 as_cr_digits='0123456789'
12415 as_cr_alnum=$as_cr_Letters$as_cr_digits
12417 # The user is always right.
12418 if test "${PATH_SEPARATOR+set}" != set; then
12419 echo "#! /bin/sh" >conf$$.sh
12420 echo "exit 0" >>conf$$.sh
12422 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12430 # Support unset when possible.
12431 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12439 # We need space, tab and new line, in precisely that order. Quoting is
12440 # there to prevent editors from complaining about space-tab.
12441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12442 # splitting by setting IFS to empty value.)
12447 # Find who we are. Look in the path if we contain no directory separator.
12449 *[\\/]* ) as_myself
=$0 ;;
12450 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12451 for as_dir
in $PATH
12454 test -z "$as_dir" && as_dir
=.
12455 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12461 # We did not find ourselves, most probably we were run as `sh COMMAND'
12462 # in which case we are not to be found in the path.
12463 if test "x$as_myself" = x
; then
12466 if test ! -f "$as_myself"; then
12467 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12468 { (exit 1); exit 1; }
12471 # Work around bugs in pre-3.0 UWIN ksh.
12472 for as_var
in ENV MAIL MAILPATH
12473 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12481 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12482 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12483 LC_TELEPHONE LC_TIME
12485 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12486 eval $as_var=C
; export $as_var
12488 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12492 # Required to use basename.
12493 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12494 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12500 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12501 as_basename
=basename
12507 # Name of the executable.
12508 as_me
=`$as_basename -- "$0" ||
12509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12510 X"$0" : 'X\(//\)$' \| \
12511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12513 sed '/^.*\/\([^/][^/]*\)\/*$/{
12532 as_lineno_1
=$LINENO
12533 as_lineno_2
=$LINENO
12534 test "x$as_lineno_1" != "x$as_lineno_2" &&
12535 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12537 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12538 # uniformly replaced by the line number. The first 'sed' inserts a
12539 # line-number line after each line using $LINENO; the second 'sed'
12540 # does the real work. The second script uses 'N' to pair each
12541 # line-number line with the line containing $LINENO, and appends
12542 # trailing '-' during substitution so that $LINENO is not a special
12543 # case at line end.
12544 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12545 # scripts with optimization help from Paolo Bonzini. Blame Lee
12546 # E. McMahon (1931-1989) for sed's syntax. :-)
12558 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12561 ' >$as_me.lineno
&&
12562 chmod +x
"$as_me.lineno" ||
12563 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12564 { (exit 1); exit 1; }; }
12566 # Don't try to exec as it changes $[0], causing all sort of problems
12567 # (the dirname of $[0] is not the place where we might find the
12568 # original and so on. Autoconf is especially sensitive to this).
12569 .
"./$as_me.lineno"
12570 # Exit status is that of the last command.
12575 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12581 ECHO_C
= ECHO_N
= ECHO_T
=
12582 case `echo -n x` in
12584 case `echo 'x\c'` in
12585 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12592 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12593 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12599 rm -f conf$$ conf$$.exe conf$$.
file
12600 if test -d conf$$.dir
; then
12601 rm -f conf$$.dir
/conf$$.
file
12607 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12609 # ... but there are two gotchas:
12610 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12611 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12612 # In both cases, we have to default to `cp -p'.
12613 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12615 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12620 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12621 rmdir conf$$.dir
2>/dev
/null
12623 if mkdir
-p .
2>/dev
/null
; then
12626 test -d .
/-p && rmdir .
/-p
12630 if test -x / >/dev
/null
2>&1; then
12631 as_test_x
='test -x'
12633 if ls -dL / >/dev
/null
2>&1; then
12640 if test -d "$1"; then
12646 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12647 ???[sx]*):;;*)false;;esac;fi
12651 as_executable_p
=$as_test_x
12653 # Sed expression to map a string onto a valid CPP name.
12654 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12656 # Sed expression to map a string onto a valid variable name.
12657 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12662 # Save the log message, to keep $[0] and so on meaningful, and to
12663 # report actual input values of CONFIG_FILES etc. instead of their
12664 # values after options handling.
12666 This file was extended by $as_me, which was
12667 generated by GNU Autoconf 2.61. Invocation command line was
12669 CONFIG_FILES = $CONFIG_FILES
12670 CONFIG_HEADERS = $CONFIG_HEADERS
12671 CONFIG_LINKS = $CONFIG_LINKS
12672 CONFIG_COMMANDS = $CONFIG_COMMANDS
12675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12680 cat >>$CONFIG_STATUS <<_ACEOF
12681 # Files that config.status was made for.
12682 config_files="$ac_config_files"
12683 config_headers="$ac_config_headers"
12684 config_commands="$ac_config_commands"
12688 cat >>$CONFIG_STATUS <<\_ACEOF
12690 \`$as_me' instantiates files from templates according to the
12691 current configuration.
12693 Usage: $0 [OPTIONS] [FILE]...
12695 -h, --help print this help, then exit
12696 -V, --version print version number and configuration settings, then exit
12697 -q, --quiet do not print progress messages
12698 -d, --debug don't remove temporary files
12699 --recheck update $as_me by reconfiguring in the same conditions
12700 --file=FILE[:TEMPLATE]
12701 instantiate the configuration file FILE
12702 --header=FILE[:TEMPLATE]
12703 instantiate the configuration header FILE
12705 Configuration files:
12708 Configuration headers:
12711 Configuration commands:
12714 Report bugs to <bug-autoconf@gnu.org>."
12717 cat >>$CONFIG_STATUS <<_ACEOF
12720 configured by $0, generated by GNU Autoconf 2.61,
12721 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12723 Copyright (C) 2006 Free Software Foundation, Inc.
12724 This config.status script is free software; the Free Software Foundation
12725 gives unlimited permission to copy, distribute and modify it."
12732 cat >>$CONFIG_STATUS <<\_ACEOF
12733 # If no file are specified by the user, then we need to provide default
12734 # value. By we need to know if files were specified by the user.
12740 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12741 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12752 # Handling of the options.
12753 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12755 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12756 echo "$ac_cs_version"; exit ;;
12757 --debug |
--debu |
--deb |
--de |
--d |
-d )
12759 --file |
--fil |
--fi |
--f )
12761 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12762 ac_need_defaults
=false
;;
12763 --header |
--heade |
--head |
--hea )
12765 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12766 ac_need_defaults
=false
;;
12768 # Conflict between --help and --header
12769 { echo "$as_me: error: ambiguous option: $1
12770 Try \`$0 --help' for more information." >&2
12771 { (exit 1); exit 1; }; };;
12772 --help |
--hel |
-h )
12773 echo "$ac_cs_usage"; exit ;;
12774 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12775 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12778 # This is an error.
12779 -*) { echo "$as_me: error: unrecognized option: $1
12780 Try \`$0 --help' for more information." >&2
12781 { (exit 1); exit 1; }; } ;;
12783 *) ac_config_targets
="$ac_config_targets $1"
12784 ac_need_defaults
=false
;;
12790 ac_configure_extra_args
=
12792 if $ac_cs_silent; then
12794 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12798 cat >>$CONFIG_STATUS <<_ACEOF
12799 if \$ac_cs_recheck; then
12800 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12801 CONFIG_SHELL=$SHELL
12802 export CONFIG_SHELL
12803 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12807 cat >>$CONFIG_STATUS <<\_ACEOF
12811 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12812 ## Running $as_me. ##
12818 cat >>$CONFIG_STATUS <<_ACEOF
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12828 # Handling of arguments.
12829 for ac_config_target
in $ac_config_targets
12831 case $ac_config_target in
12832 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12833 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12834 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12835 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
12837 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12838 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12839 { (exit 1); exit 1; }; };;
12844 # If the user did not use the arguments to specify the items to instantiate,
12845 # then the envvar interface is used. Set only those that are not.
12846 # We use the long form for the default assignment because of an extremely
12847 # bizarre bug on SunOS 4.1.3.
12848 if $ac_need_defaults; then
12849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12850 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12851 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12854 # Have a temporary directory for convenience. Make it in the build tree
12855 # simply because there is no reason against having it here, and in addition,
12856 # creating and moving files from /tmp can sometimes cause problems.
12857 # Hook for its removal unless debugging.
12858 # Note that there is a small window in which the directory will not be cleaned:
12859 # after its creation but before its name has been assigned to `$tmp'.
12863 trap 'exit_status=$?
12864 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12866 trap '{ (exit 1); exit 1; }' 1 2 13 15
12868 # Create a (secure) tmp directory for tmp files.
12871 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12872 test -n "$tmp" && test -d "$tmp"
12875 tmp
=.
/conf$$
-$RANDOM
12876 (umask 077 && mkdir
"$tmp")
12879 echo "$me: cannot create a temporary directory in ." >&2
12880 { (exit 1); exit 1; }
12884 # Set up the sed scripts for CONFIG_FILES section.
12887 # No need to generate the scripts if there are no CONFIG_FILES.
12888 # This happens for instance when ./config.status config.h
12889 if test -n "$CONFIG_FILES"; then
12896 for ac_last_try
in false false false false false
:; do
12897 cat >conf$
$subs.
sed <<_ACEOF
12898 SHELL!$SHELL$ac_delim
12899 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12900 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12901 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12902 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12903 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12904 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12905 exec_prefix!$exec_prefix$ac_delim
12906 prefix!$prefix$ac_delim
12907 program_transform_name!$program_transform_name$ac_delim
12908 bindir!$bindir$ac_delim
12909 sbindir!$sbindir$ac_delim
12910 libexecdir!$libexecdir$ac_delim
12911 datarootdir!$datarootdir$ac_delim
12912 datadir!$datadir$ac_delim
12913 sysconfdir!$sysconfdir$ac_delim
12914 sharedstatedir!$sharedstatedir$ac_delim
12915 localstatedir!$localstatedir$ac_delim
12916 includedir!$includedir$ac_delim
12917 oldincludedir!$oldincludedir$ac_delim
12918 docdir!$docdir$ac_delim
12919 infodir!$infodir$ac_delim
12920 htmldir!$htmldir$ac_delim
12921 dvidir!$dvidir$ac_delim
12922 pdfdir!$pdfdir$ac_delim
12923 psdir!$psdir$ac_delim
12924 libdir!$libdir$ac_delim
12925 localedir!$localedir$ac_delim
12926 mandir!$mandir$ac_delim
12927 DEFS!$DEFS$ac_delim
12928 ECHO_C!$ECHO_C$ac_delim
12929 ECHO_N!$ECHO_N$ac_delim
12930 ECHO_T!$ECHO_T$ac_delim
12931 LIBS!$LIBS$ac_delim
12932 build_alias!$build_alias$ac_delim
12933 host_alias!$host_alias$ac_delim
12934 target_alias!$target_alias$ac_delim
12935 build!$build$ac_delim
12936 build_cpu!$build_cpu$ac_delim
12937 build_vendor!$build_vendor$ac_delim
12938 build_os!$build_os$ac_delim
12939 host!$host$ac_delim
12940 host_cpu!$host_cpu$ac_delim
12941 host_vendor!$host_vendor$ac_delim
12942 host_os!$host_os$ac_delim
12943 SHLICC2!$SHLICC2$ac_delim
12945 CFLAGS!$CFLAGS$ac_delim
12946 LDFLAGS!$LDFLAGS$ac_delim
12947 CPPFLAGS!$CPPFLAGS$ac_delim
12948 ac_ct_CC!$ac_ct_CC$ac_delim
12949 EXEEXT!$EXEEXT$ac_delim
12950 OBJEXT!$OBJEXT$ac_delim
12952 GREP!$GREP$ac_delim
12953 EGREP!$EGREP$ac_delim
12954 LIBOBJS!$LIBOBJS$ac_delim
12955 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
12956 RANLIB!$RANLIB$ac_delim
12957 DEPENDENCY_CFLAG!$DEPENDENCY_CFLAG$ac_delim
12958 MKDEP!$MKDEP$ac_delim
12959 V_CCOPT!$V_CCOPT$ac_delim
12960 V_DEFS!$V_DEFS$ac_delim
12961 V_GROUP!$V_GROUP$ac_delim
12962 V_INCLS!$V_INCLS$ac_delim
12963 V_PCAPDEP!$V_PCAPDEP$ac_delim
12964 LOCALSRC!$LOCALSRC$ac_delim
12965 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12966 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12967 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12968 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12969 INSTALL_DATA!$INSTALL_DATA$ac_delim
12970 LTLIBOBJS!$LTLIBOBJS$ac_delim
12973 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
12975 elif $ac_last_try; then
12976 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12977 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12978 { (exit 1); exit 1; }; }
12980 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12984 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12985 if test -n "$ac_eof"; then
12986 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12987 ac_eof
=`expr $ac_eof + 1`
12990 cat >>$CONFIG_STATUS <<_ACEOF
12991 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12995 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12996 s/^/s,@/; s/!/@,|#_!!_#|/
12999 s/'"$ac_delim"'$/,g/; t
13001 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13002 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13003 rm -f conf$
$subs.
sed
13004 cat >>$CONFIG_STATUS <<_ACEOF
13011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13013 # trailing colons and then remove the whole line if VPATH becomes empty
13014 # (actually we leave an empty line to preserve line numbers).
13015 if test "x$srcdir" = x.
; then
13016 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13017 s/:*\$(srcdir):*/:/
13018 s/:*\${srcdir}:*/:/
13020 s/^\([^=]*=[ ]*\):*/\1/
13026 cat >>$CONFIG_STATUS <<\_ACEOF
13027 fi # test -n "$CONFIG_FILES"
13030 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
13033 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13035 case $ac_mode$ac_tag in
13037 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13038 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13039 { (exit 1); exit 1; }; };;
13040 :[FH
]-) ac_tag
=-:-;;
13041 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13058 -) ac_f
="$tmp/stdin";;
13059 *) # Look for the file first in the build tree, then in the source tree
13060 # (if the path is not absolute). The absolute path cannot be DOS-style,
13061 # because $ac_f cannot contain `:'.
13065 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13067 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13068 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13069 { (exit 1); exit 1; }; };;
13071 ac_file_inputs
="$ac_file_inputs $ac_f"
13074 # Let's still pretend it is `configure' which instantiates (i.e., don't
13075 # use $as_me), people would be surprised to read:
13076 # /* config.h. Generated by config.status. */
13077 configure_input
="Generated from "`IFS=:
13078 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13079 if test x
"$ac_file" != x-
; then
13080 configure_input
="$ac_file. $configure_input"
13081 { echo "$as_me:$LINENO: creating $ac_file" >&5
13082 echo "$as_me: creating $ac_file" >&6;}
13086 *:-:* |
*:-) cat >"$tmp/stdin";;
13091 ac_dir
=`$as_dirname -- "$ac_file" ||
13092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13093 X"$ac_file" : 'X\(//\)[^/]' \| \
13094 X"$ac_file" : 'X\(//\)$' \| \
13095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13101 /^X\(\/\/\)[^/].*/{
13116 -*) as_dir
=.
/$as_dir;;
13118 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13122 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13123 *) as_qdir
=$as_dir;;
13125 as_dirs
="'$as_qdir' $as_dirs"
13126 as_dir
=`$as_dirname -- "$as_dir" ||
13127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13128 X"$as_dir" : 'X\(//\)[^/]' \| \
13129 X"$as_dir" : 'X\(//\)$' \| \
13130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13136 /^X\(\/\/\)[^/].*/{
13149 test -d "$as_dir" && break
13151 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13152 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13154 { (exit 1); exit 1; }; }; }
13158 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13160 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13161 # A ".." for each directory in $ac_dir_suffix.
13162 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13163 case $ac_top_builddir_sub in
13164 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13165 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13168 ac_abs_top_builddir
=$ac_pwd
13169 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13170 # for backward compatibility:
13171 ac_top_builddir
=$ac_top_build_prefix
13174 .
) # We are building in place.
13176 ac_top_srcdir
=$ac_top_builddir_sub
13177 ac_abs_top_srcdir
=$ac_pwd ;;
13178 [\\/]* | ?
:[\\/]* ) # Absolute name.
13179 ac_srcdir
=$srcdir$ac_dir_suffix;
13180 ac_top_srcdir
=$srcdir
13181 ac_abs_top_srcdir
=$srcdir ;;
13182 *) # Relative name.
13183 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13184 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13185 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13187 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13197 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13198 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13202 cat >>$CONFIG_STATUS <<\_ACEOF
13203 # If the template does not know about datarootdir, expand it.
13204 # FIXME: This hack should be removed a few years after 2.60.
13205 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13207 case `sed -n '/datarootdir/ {
13216 ' $ac_file_inputs` in
13217 *datarootdir
*) ac_datarootdir_seen
=yes;;
13218 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13219 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13220 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13222 cat >>$CONFIG_STATUS <<_ACEOF
13223 ac_datarootdir_hack='
13224 s&@datadir@&$datadir&g
13225 s&@docdir@&$docdir&g
13226 s&@infodir@&$infodir&g
13227 s&@localedir@&$localedir&g
13228 s&@mandir@&$mandir&g
13229 s&\\\${datarootdir}&$datarootdir&g' ;;
13233 # Neutralize VPATH when `$srcdir' = `.'.
13234 # Shell code in configure.ac might set extrasub.
13235 # FIXME: do we really want to maintain this feature?
13236 cat >>$CONFIG_STATUS <<_ACEOF
13240 cat >>$CONFIG_STATUS <<\_ACEOF
13242 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13243 s
&@configure_input@
&$configure_input&;t t
13244 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13245 s
&@srcdir@
&$ac_srcdir&;t t
13246 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13247 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13248 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13249 s
&@builddir@
&$ac_builddir&;t t
13250 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13251 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13252 s
&@INSTALL@
&$ac_INSTALL&;t t
13253 $ac_datarootdir_hack
13254 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
13256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13259 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13260 which seems to be undefined. Please make sure it is defined." >&5
13261 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13262 which seems to be undefined. Please make sure it is defined." >&2;}
13266 -) cat "$tmp/out"; rm -f "$tmp/out";;
13267 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13276 # Transform confdefs.h into a sed script `conftest.defines', that
13277 # substitutes the proper values into config.h.in to produce config.h.
13278 rm -f conftest.defines conftest.
tail
13279 # First, append a space to every undef/define line, to ease matching.
13280 echo 's/$/ /' >conftest.defines
13281 # Then, protect against being on the right side of a sed subst, or in
13282 # an unquoted here document, in config.status. If some macros were
13283 # called several times there might be several #defines for the same
13284 # symbol, which is useless. But do not sort them, since the last
13285 # AC_DEFINE must be honored.
13286 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
13287 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13288 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13289 # PARAMS is the parameter list in the macro definition--in most cases, it's
13290 # just an empty string.
13291 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13292 ac_dB
='\\)[ (].*,\\1define\\2'
13300 s/^[ ]*#[ ]*define[ ][ ]*//
13305 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13306 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13307 ' >>conftest.defines
13309 # Remove the space that was appended to ease matching.
13310 # Then replace #undef with comments. This is necessary, for
13311 # example, in the case of _POSIX_SOURCE, which is predefined and required
13312 # on some systems where configure will not decide to define it.
13313 # (The regexp can be short, since the line contains either #define or #undef.)
13315 s,^[ #]*u.*,/* & */,' >>conftest.defines
13317 # Break up conftest.defines:
13318 ac_max_sed_lines
=50
13320 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13321 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13322 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13324 ac_in
='$ac_file_inputs'
13325 ac_out
='"$tmp/out1"'
13326 ac_nxt
='"$tmp/out2"'
13330 # Write a here document:
13331 cat >>$CONFIG_STATUS <<_ACEOF
13332 # First, check the format of the line:
13333 cat >"\$tmp/defines.sed" <<\\CEOF
13334 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13335 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13339 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
13341 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13342 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
13343 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
13344 grep . conftest.
tail >/dev
/null ||
break
13345 rm -f conftest.defines
13346 mv conftest.
tail conftest.defines
13348 rm -f conftest.defines conftest.
tail
13350 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13351 cat >>$CONFIG_STATUS <<\_ACEOF
13352 if test x
"$ac_file" != x-
; then
13353 echo "/* $configure_input */" >"$tmp/config.h"
13354 cat "$ac_result" >>"$tmp/config.h"
13355 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
13356 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13357 echo "$as_me: $ac_file is unchanged" >&6;}
13360 mv "$tmp/config.h" $ac_file
13363 echo "/* $configure_input */"
13369 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13370 echo "$as_me: executing $ac_file commands" >&6;}
13375 case $ac_file$ac_mode in
13376 "default-1":C
) if test -f .devel
; then
13377 echo timestamp
> stamp-h
13378 cat Makefile-devel-adds
>> Makefile
13386 { (exit 0); exit 0; }
13388 chmod +x
$CONFIG_STATUS
13389 ac_clean_files
=$ac_clean_files_save
13392 # configure is writing to config.log, and then calls config.status.
13393 # config.status does its own redirection, appending to config.log.
13394 # Unfortunately, on DOS this fails, as config.log is still kept open
13395 # by configure, so config.status won't be able to write to it; its
13396 # output is simply discarded. So we exec the FD to /dev/null,
13397 # effectively closing config.log, so it can be properly (re)opened and
13398 # appended to by config.status. When coming back to configure, we
13399 # need to make the FD available again.
13400 if test "$no_create" != yes; then
13402 ac_config_status_args
=
13403 test "$silent" = yes &&
13404 ac_config_status_args
="$ac_config_status_args --quiet"
13406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13409 # would make configure fail if this is the last instruction.
13410 $ac_cs_success ||
{ (exit 1); exit 1; }