2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev
/null
6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix
=/usr
/local
565 ac_config_libobj_dir
=.
571 SHELL
=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file
="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
676 DEPENDENCY_CFLAG MKDEP
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 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2856 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2857 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2858 echo $ECHO_N "(cached
) $ECHO_C" >&6
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <sys/types.h>
2871 int frob(int, char *)
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_cv_lbl_cc_ansi_prototypes=yes
2895 echo "$as_me: failed program was
:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 ac_cv_lbl_cc_ansi_prototypes=no
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
2905 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2906 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2910 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
2911 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
2912 savedcflags="$CFLAGS"
2913 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2914 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2915 echo $ECHO_N "(cached
) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <sys/types.h>
2927 int frob(int, char *)
2932 rm -f conftest.$ac_objext
2933 if { (ac_try="$ac_compile"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2945 (exit $ac_status); } && {
2946 test -z "$ac_c_werror_flag" ||
2947 test ! -s conftest.err
2948 } && test -s conftest.$ac_objext; then
2949 ac_cv_lbl_cc_hpux_cc_aa=yes
2951 echo "$as_me: failed program was
:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 ac_cv_lbl_cc_hpux_cc_aa=no
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2961 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2962 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2963 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
2964 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
2965 { (exit 1); exit 1; }; }
2967 CFLAGS="$savedcflags"
2968 V_CCOPT="-Aa $V_CCOPT"
2970 cat >>confdefs.h <<\_ACEOF
2971 #define _HPUX_SOURCE 1
2977 { echo "$as_me:$LINENO: checking
for ansi mode
in DEC compiler
($CC -std1)" >&5
2978 echo $ECHO_N "checking
for ansi mode
in DEC compiler
($CC -std1)...
$ECHO_C" >&6; }
2979 savedcflags="$CFLAGS"
2981 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2982 echo $ECHO_N "(cached
) $ECHO_C" >&6
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <sys/types.h>
2994 int frob(int, char *)
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_lbl_cc_osf1_cc_std1=yes
3018 echo "$as_me: failed program was
:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 ac_cv_lbl_cc_osf1_cc_std1=no
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3028 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3029 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3030 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3031 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3032 { (exit 1); exit 1; }; }
3034 CFLAGS="$savedcflags"
3035 V_CCOPT="-std1 $V_CCOPT"
3039 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3040 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3041 { (exit 1); exit 1; }; }
3045 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3046 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3052 # Note that this is HP C, because we have to
3053 # treat it specially below.
3055 ac_lbl_cc_is_hp_c=yes
3059 V_CCOPT="$V_CCOPT -xansi -signed -O"
3064 # Presumed to be DEC OSF/1, Digital UNIX, or
3067 V_CCOPT="$V_CCOPT -O"
3071 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3072 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3073 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3074 echo $ECHO_N "(cached
) $ECHO_C" >&6
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #include <sys/types.h>
3086 struct a { int b; };
3087 void c(const struct a *)
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3109 ac_cv_lbl_cc_const_proto=yes
3111 echo "$as_me: failed program was
:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 ac_cv_lbl_cc_const_proto=no
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3121 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3122 if test $ac_cv_lbl_cc_const_proto = no ; then
3124 cat >>confdefs.h <<\_ACEOF
3133 { echo "$as_me:$LINENO: checking
for inline
" >&5
3134 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3135 save_CFLAGS="$CFLAGS"
3137 if test "${ac_cv_lbl_inline+set}" = set; then
3138 echo $ECHO_N "(cached
) $ECHO_C" >&6
3143 for ac_lbl_inline in inline __inline__ __inline
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151 #define inline $ac_lbl_inline
3152 static inline struct iltest *foo(void);
3158 static inline struct iltest *
3161 static struct iltest xxx;
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 ac_lbl_cc_inline=yes
3192 echo "$as_me: failed program was
:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 if test "$ac_lbl_cc_inline" = yes ; then
3203 if test "$ac_lbl_cc_inline" = yes ; then
3204 ac_cv_lbl_inline=$ac_lbl_inline
3208 CFLAGS="$save_CFLAGS"
3209 if test ! -z "$ac_cv_lbl_inline" ; then
3210 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3211 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3213 { echo "$as_me:$LINENO: result
: no
" >&5
3214 echo "${ECHO_T}no
" >&6; }
3217 cat >>confdefs.h <<_ACEOF
3218 #define inline $ac_cv_lbl_inline
3222 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3223 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3224 if test "${ac_cv___attribute__+set}" = set; then
3225 echo $ECHO_N "(cached
) $ECHO_C" >&6
3228 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3238 static void foo(void) __attribute__ ((noreturn));
3247 main(int argc, char **argv)
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3266 (exit $ac_status); } && {
3267 test -z "$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 } && test -s conftest.$ac_objext; then
3270 ac_cv___attribute__=yes
3272 echo "$as_me: failed program was
:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 ac_cv___attribute__=no
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 if test "$ac_cv___attribute__" = "yes"; then
3283 cat >>confdefs.h <<\_ACEOF
3284 #define HAVE___ATTRIBUTE__ 1
3287 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3289 V_DEFS="$V_DEFS -D_U_=\"\""
3291 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3292 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3294 if test "$ac_cv___attribute__" = "yes"; then
3296 { echo "$as_me:$LINENO: checking whether __attribute__
((format
)) can be applied to
function pointers
" >&5
3297 echo $ECHO_N "checking whether __attribute__
((format
)) can be applied to
function pointers...
$ECHO_C" >&6; }
3298 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3299 echo $ECHO_N "(cached
) $ECHO_C" >&6
3302 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3312 extern int (*foo)(const char *fmt, ...)
3313 __attribute__ ((format (printf, 1, 2)));
3316 main(int argc, char **argv)
3318 (*foo)("%s
", "test");
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3335 (exit $ac_status); } && {
3336 test -z "$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest.$ac_objext; then
3339 ac_cv___attribute___format_function_pointer=yes
3341 echo "$as_me: failed program was
:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 ac_cv___attribute___format_function_pointer=no
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3352 cat >>confdefs.h <<\_ACEOF
3353 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3357 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___format_function_pointer" >&5
3358 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached
) $ECHO_C" >&6
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3380 for ac_c_preproc_warn_flag in '' yes
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385 # <limits.h> exists even on freestanding compilers.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp. "Syntax error
" is here to catch this case.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 # include <limits.h>
3397 # include <assert.h>
3401 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3413 (exit $ac_status); } >/dev/null && {
3414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3419 echo "$as_me: failed program was
:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Broken: fails on valid input.
3426 rm -f conftest.err conftest.$ac_ext
3428 # OK, works on sane cases. Now check whether nonexistent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3438 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3450 (exit $ac_status); } >/dev/null && {
3451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3454 # Broken: success on invalid input.
3457 echo "$as_me: failed program was
:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 # Passes both tests.
3465 rm -f conftest.err conftest.$ac_ext
3468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3469 rm -f conftest.err conftest.$ac_ext
3470 if $ac_preproc_ok; then
3482 { echo "$as_me:$LINENO: result
: $CPP" >&5
3483 echo "${ECHO_T}$CPP" >&6; }
3485 for ac_c_preproc_warn_flag in '' yes
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error
" is here to catch this case.
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3500 # include <limits.h>
3502 # include <assert.h>
3506 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3514 grep -v '^ *+' conftest.er1 >conftest.err
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3518 (exit $ac_status); } >/dev/null && {
3519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3524 echo "$as_me: failed program was
:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Broken: fails on valid input.
3531 rm -f conftest.err conftest.$ac_ext
3533 # OK, works on sane cases. Now check whether nonexistent headers
3534 # can be detected and how.
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <ac_nonexistent.h>
3543 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3555 (exit $ac_status); } >/dev/null && {
3556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3559 # Broken: success on invalid input.
3562 echo "$as_me: failed program was
:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 # Passes both tests.
3570 rm -f conftest.err conftest.$ac_ext
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then
3578 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3579 See \
`config.log' for more details." >&5
3580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log
' for more details." >&2;}
3582 { (exit 1); exit 1; }; }
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3588 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3593 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3594 if test "${ac_cv_path_GREP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 # Extract the first word of "grep ggrep" to use in msg output
3598 if test -z "$GREP"; then
3599 set dummy grep ggrep; ac_prog_name=$2
3600 if test "${ac_cv_path_GREP+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 ac_path_GREP_found=false
3604 # Loop through the user's path and
test for each of PROGNAME-LIST
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_prog
in grep ggrep
; do
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3613 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3614 # Check for GNU ac_path_GREP and select it if it is found.
3615 # Check for GNU $ac_path_GREP
3616 case `"$ac_path_GREP" --version 2>&1` in
3618 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3621 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3624 cat "conftest.in" "conftest.in" >"conftest.tmp"
3625 mv "conftest.tmp" "conftest.in"
3626 cp "conftest.in" "conftest.nl"
3627 echo 'GREP' >> "conftest.nl"
3628 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3629 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3630 ac_count
=`expr $ac_count + 1`
3631 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3632 # Best one so far, save it but keep looking for a better one
3633 ac_cv_path_GREP
="$ac_path_GREP"
3634 ac_path_GREP_max
=$ac_count
3636 # 10*(2^10) chars as input seems more than enough
3637 test $ac_count -gt 10 && break
3639 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3643 $ac_path_GREP_found && break 3
3653 GREP
="$ac_cv_path_GREP"
3654 if test -z "$GREP"; then
3655 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3656 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3657 { (exit 1); exit 1; }; }
3661 ac_cv_path_GREP
=$GREP
3666 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3667 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3668 GREP
="$ac_cv_path_GREP"
3671 { echo "$as_me:$LINENO: checking for egrep" >&5
3672 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_EGREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3677 then ac_cv_path_EGREP
="$GREP -E"
3679 # Extract the first word of "egrep" to use in msg output
3680 if test -z "$EGREP"; then
3681 set dummy
egrep; ac_prog_name
=$2
3682 if test "${ac_cv_path_EGREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 ac_path_EGREP_found
=false
3686 # Loop through the user's path and test for each of PROGNAME-LIST
3687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3688 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3691 test -z "$as_dir" && as_dir
=.
3692 for ac_prog
in egrep; do
3693 for ac_exec_ext
in '' $ac_executable_extensions; do
3694 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3696 # Check for GNU ac_path_EGREP and select it if it is found.
3697 # Check for GNU $ac_path_EGREP
3698 case `"$ac_path_EGREP" --version 2>&1` in
3700 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3703 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3706 cat "conftest.in" "conftest.in" >"conftest.tmp"
3707 mv "conftest.tmp" "conftest.in"
3708 cp "conftest.in" "conftest.nl"
3709 echo 'EGREP' >> "conftest.nl"
3710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3711 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3712 ac_count
=`expr $ac_count + 1`
3713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3714 # Best one so far, save it but keep looking for a better one
3715 ac_cv_path_EGREP
="$ac_path_EGREP"
3716 ac_path_EGREP_max
=$ac_count
3718 # 10*(2^10) chars as input seems more than enough
3719 test $ac_count -gt 10 && break
3721 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3725 $ac_path_EGREP_found && break 3
3735 EGREP
="$ac_cv_path_EGREP"
3736 if test -z "$EGREP"; then
3737 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3738 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3739 { (exit 1); exit 1; }; }
3743 ac_cv_path_EGREP
=$EGREP
3749 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3750 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3751 EGREP
="$ac_cv_path_EGREP"
3754 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3755 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3756 if test "${ac_cv_header_stdc+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.
$ac_ext <<_ACEOF
3762 cat confdefs.h
>>conftest.
$ac_ext
3763 cat >>conftest.
$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3778 rm -f conftest.
$ac_objext
3779 if { (ac_try
="$ac_compile"
3781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 ac_cv_header_stdc=yes
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 ac_cv_header_stdc=no
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 if test $ac_cv_header_stdc = yes; then
3806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3817 $EGREP "memchr" >/dev/null 2>&1; then
3820 ac_cv_header_stdc=no
3826 if test $ac_cv_header_stdc = yes; then
3827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 $EGREP "free" >/dev/null 2>&1; then
3841 ac_cv_header_stdc=no
3847 if test $ac_cv_header_stdc = yes; then
3848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3849 if test "$cross_compiling" = yes; then
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3860 #if ((' ' & 0x0FF) == 0x020)
3861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3864 # define ISLOWER(c) \
3865 (('a' <= (c) && (c) <= 'i') \
3866 || ('j' <= (c) && (c) <= 'r') \
3867 || ('s' <= (c) && (c) <= 'z'))
3868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3876 for (i = 0; i < 256; i++)
3877 if (XOR (islower (i), ISLOWER (i))
3878 || toupper (i) != TOUPPER (i))
3883 rm -f conftest$ac_exeext
3884 if { (ac_try="$ac_link"
3886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3887 *) ac_try_echo
=$ac_try;;
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_link") 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3894 { (case "(($ac_try" in
3895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_try") 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3905 echo "$as_me: program exited with status $ac_status" >&5
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_cv_header_stdc=no
3912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3918 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3920 if test $ac_cv_header_stdc = yes; then
3922 cat >>confdefs.h <<\_ACEOF
3923 #define STDC_HEADERS 1
3928 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3938 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3939 inttypes.h stdint.h unistd.h
3941 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 $ac_includes_default
3955 #include <$ac_header>
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3961 *) ac_try_echo
=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3966 grep -v '^ *+' conftest.er1
>conftest.err
3968 cat conftest.err
>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && {
3971 test -z "$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest.
$ac_objext; then
3974 eval "$as_ac_Header=yes"
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.
$ac_ext >&5
3979 eval "$as_ac_Header=no"
3982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3984 ac_res
=`eval echo '${'$as_ac_Header'}'`
3985 { echo "$as_me:$LINENO: result: $ac_res" >&5
3986 echo "${ECHO_T}$ac_res" >&6; }
3987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988 cat >>confdefs.h
<<_ACEOF
3989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4001 for ac_header
in fcntl.h rpc
/rpc.h rpc
/rpcent.h netdnet
/dnetdb.h
4003 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4004 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4007 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 ac_res
=`eval echo '${'$as_ac_Header'}'`
4011 { echo "$as_me:$LINENO: result: $ac_res" >&5
4012 echo "${ECHO_T}$ac_res" >&6; }
4014 # Is the header compilable?
4015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4017 cat >conftest.
$ac_ext <<_ACEOF
4020 cat confdefs.h
>>conftest.
$ac_ext
4021 cat >>conftest.
$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4024 #include <$ac_header>
4026 rm -f conftest.
$ac_objext
4027 if { (ac_try
="$ac_compile"
4029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_compile") 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } && {
4040 test -z "$ac_c_werror_flag" ||
4041 test ! -s conftest.err
4042 } && test -s conftest.$ac_objext; then
4043 ac_header_compiler=yes
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 ac_header_compiler=no
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4053 echo "${ECHO_T}$ac_header_compiler" >&6; }
4055 # Is the header present?
4056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 #include <$ac_header>
4066 if { (ac_try="$ac_cpp conftest.$ac_ext"
4068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4069 *) ac_try_echo
=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4074 grep -v '^ *+' conftest.er1
>conftest.err
4076 cat conftest.err
>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } >/dev
/null
&& {
4079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4080 test ! -s conftest.err
4082 ac_header_preproc
=yes
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.
$ac_ext >&5
4087 ac_header_preproc
=no
4090 rm -f conftest.err conftest.
$ac_ext
4091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4092 echo "${ECHO_T}$ac_header_preproc" >&6; }
4094 # So? What about this header?
4095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4101 ac_header_preproc
=yes
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4121 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 eval "$as_ac_Header=\$ac_header_preproc"
4126 ac_res
=`eval echo '${'$as_ac_Header'}'`
4127 { echo "$as_me:$LINENO: result: $ac_res" >&5
4128 echo "${ECHO_T}$ac_res" >&6; }
4131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4132 cat >>confdefs.h
<<_ACEOF
4133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 for ac_header
in net
/pfvar.h
4143 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4146 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 cat >conftest.
$ac_ext <<_ACEOF
4152 cat confdefs.h
>>conftest.
$ac_ext
4153 cat >>conftest.
$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <sys/types.h>
4156 #include <sys/socket.h>
4159 #include <$ac_header>
4161 rm -f conftest.
$ac_objext
4162 if { (ac_try
="$ac_compile"
4164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 eval "$as_ac_Header=yes"
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 eval "$as_ac_Header=no"
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_res=`eval echo '${'$as_ac_Header'}'`
4189 { echo "$as_me:$LINENO: result: $ac_res" >&5
4190 echo "${ECHO_T}$ac_res" >&6; }
4191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4192 cat >>confdefs.h <<_ACEOF
4193 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4200 if test "$ac_cv_header_net_pfvar_h" = yes; then
4201 LOCALSRC="print-pflog.c $LOCALSRC"
4204 for ac_header in netinet/if_ether.h
4206 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 #include <sys/types.h>
4219 #include <sys/socket.h>
4221 #include <$ac_header>
4223 rm -f conftest.$ac_objext
4224 if { (ac_try="$ac_compile"
4226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4227 *) ac_try_echo
=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_compile") 2>conftest.er1
4232 grep -v '^ *+' conftest.er1
>conftest.err
4234 cat conftest.err
>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && {
4237 test -z "$ac_c_werror_flag" ||
4238 test ! -s conftest.err
4239 } && test -s conftest.
$ac_objext; then
4240 eval "$as_ac_Header=yes"
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.
$ac_ext >&5
4245 eval "$as_ac_Header=no"
4248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4250 ac_res
=`eval echo '${'$as_ac_Header'}'`
4251 { echo "$as_me:$LINENO: result: $ac_res" >&5
4252 echo "${ECHO_T}$ac_res" >&6; }
4253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4254 cat >>confdefs.h
<<_ACEOF
4255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4262 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4264 # The simple test didn't work.
4265 # Do we need to include <net/if.h> first?
4266 # Unset ac_cv_header_netinet_if_ether_h so we don't
4267 # treat the previous failure as a cached value and
4268 # suppress the next test.
4270 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4271 echo "$as_me: Rechecking with some additional includes" >&6;}
4272 unset ac_cv_header_netinet_if_ether_h
4274 for ac_header
in netinet
/if_ether.h
4276 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 #include <sys/socket.h>
4290 #include <netinet/in.h>
4295 #include <$ac_header>
4297 rm -f conftest.
$ac_objext
4298 if { (ac_try
="$ac_compile"
4300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_c_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 eval "$as_ac_Header=yes"
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 eval "$as_ac_Header=no"
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 ac_res=`eval echo '${'$as_ac_Header'}'`
4325 { echo "$as_me:$LINENO: result: $ac_res" >&5
4326 echo "${ECHO_T}$ac_res" >&6; }
4327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4328 cat >>confdefs.h <<_ACEOF
4329 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4338 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4339 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4340 if test "${ac_cv_header_time+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 #include <sys/types.h>
4350 #include <sys/time.h>
4356 if ((struct tm *) 0)
4362 rm -f conftest.$ac_objext
4363 if { (ac_try="$ac_compile"
4365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4366 *) ac_try_echo
=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_compile") 2>conftest.er1
4371 grep -v '^ *+' conftest.er1
>conftest.err
4373 cat conftest.err
>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && {
4376 test -z "$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4378 } && test -s conftest.
$ac_objext; then
4379 ac_cv_header_time
=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.
$ac_ext >&5
4384 ac_cv_header_time
=no
4387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4389 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4390 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4391 if test $ac_cv_header_time = yes; then
4393 cat >>confdefs.h
<<\_ACEOF
4394 #define TIME_WITH_SYS_TIME 1
4403 # Check whether --enable-universal was given.
4404 if test "${enable_universal+set}" = set; then
4405 enableval
=$enable_universal;
4408 if test "$enable_universal" != "no"; then
4413 # Leopard. Build for x86 and 32-bit PowerPC, with
4414 # x86 first. (That's what Apple does.)
4416 V_CCOPT
="$V_CCOPT -arch i386 -arch ppc"
4417 LDFLAGS
="$LDFLAGS -arch i386 -arch ppc"
4422 # Snow Leopard. Build for x86-64 and x86, with
4423 # x86-64 first. (That's what Apple does.)
4425 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386"
4426 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386"
4433 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4434 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4435 if test "$cross_compiling" = yes; then
4436 if test "${ac_cv_linux_vers+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 ac_cv_linux_vers
=unknown
4443 if test "${ac_cv_linux_vers+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 ac_cv_linux_vers
=`uname -r 2>&1 | \
4447 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4451 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4452 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4453 if test $ac_cv_linux_vers = unknown
; then
4454 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4455 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4456 { (exit 1); exit 1; }; }
4458 if test $ac_cv_linux_vers -lt 2 ; then
4459 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4460 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4461 { (exit 1); exit 1; }; }
4471 # Check whether --with-smi was given.
4472 if test "${with_smi+set}" = set; then
4479 if test "x$with_smi" != "xno" ; then
4481 for ac_header
in smi.h
4483 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4484 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 ac_res
=`eval echo '${'$as_ac_Header'}'`
4491 { echo "$as_me:$LINENO: result: $ac_res" >&5
4492 echo "${ECHO_T}$ac_res" >&6; }
4494 # Is the header compilable?
4495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4497 cat >conftest.
$ac_ext <<_ACEOF
4500 cat confdefs.h
>>conftest.
$ac_ext
4501 cat >>conftest.
$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 $ac_includes_default
4504 #include <$ac_header>
4506 rm -f conftest.
$ac_objext
4507 if { (ac_try
="$ac_compile"
4509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_compile") 2>conftest.er1
4515 grep -v '^ *+' conftest.er1 >conftest.err
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } && {
4520 test -z "$ac_c_werror_flag" ||
4521 test ! -s conftest.err
4522 } && test -s conftest.$ac_objext; then
4523 ac_header_compiler=yes
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 ac_header_compiler=no
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4533 echo "${ECHO_T}$ac_header_compiler" >&6; }
4535 # Is the header present?
4536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4538 cat >conftest.$ac_ext <<_ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 #include <$ac_header>
4546 if { (ac_try="$ac_cpp conftest.$ac_ext"
4548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4549 *) ac_try_echo
=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1
>conftest.err
4556 cat conftest.err
>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev
/null
&& {
4559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4562 ac_header_preproc
=yes
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.
$ac_ext >&5
4567 ac_header_preproc
=no
4570 rm -f conftest.err conftest.
$ac_ext
4571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4572 echo "${ECHO_T}$ac_header_preproc" >&6; }
4574 # So? What about this header?
4575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4581 ac_header_preproc
=yes
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4601 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 eval "$as_ac_Header=\$ac_header_preproc"
4606 ac_res
=`eval echo '${'$as_ac_Header'}'`
4607 { echo "$as_me:$LINENO: result: $ac_res" >&5
4608 echo "${ECHO_T}$ac_res" >&6; }
4611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4612 cat >>confdefs.h
<<_ACEOF
4613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4621 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4622 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4623 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_check_lib_save_LIBS
=$LIBS
4628 cat >conftest.
$ac_ext <<_ACEOF
4631 cat confdefs.h
>>conftest.
$ac_ext
4632 cat >>conftest.
$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4635 /* Override any GCC internal prototype to avoid an error.
4636 Use char because int might match the return type of a GCC
4637 builtin and then its argument prototype would still apply. */
4650 rm -f conftest.
$ac_objext conftest
$ac_exeext
4651 if { (ac_try
="$ac_link"
4653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_link") 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest$ac_exeext &&
4667 $as_test_x conftest$ac_exeext; then
4668 ac_cv_lib_smi_smiInit=yes
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_cv_lib_smi_smiInit=no
4676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4677 conftest$ac_exeext conftest.$ac_ext
4678 LIBS=$ac_check_lib_save_LIBS
4680 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4681 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4682 if test $ac_cv_lib_smi_smiInit = yes; then
4683 cat >>confdefs.h <<_ACEOF
4684 #define HAVE_LIBSMI 1
4691 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4693 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4694 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4695 if test "$cross_compiling" = yes; then
4696 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4697 echo "${ECHO_T}not when cross-compiling" >&6; }
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 /* libsmi available check */
4711 int current, revision, age, n;
4712 const int required = 2;
4715 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4717 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4720 if (required < current - age || required > current)
4726 rm -f conftest$ac_exeext
4727 if { (ac_try="$ac_link"
4729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4730 *) ac_try_echo
=$ac_try;;
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_link") 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4737 { (case "(($ac_try" in
4738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_try") 2>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 { echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6; }
4748 cat >>confdefs.h <<\_ACEOF
4754 echo "$as_me: program exited with status $ac_status" >&5
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4760 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4761 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4762 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4763 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4764 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4765 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4766 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4767 echo "${ECHO_T}no - too old" >&6; } ;;
4768 *) { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; } ;;
4773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4780 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4781 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4782 # Check whether --enable-smb was given.
4783 if test "${enable_smb+set}" = set; then
4784 enableval=$enable_smb;
4789 case "$enableval" in
4790 yes) { echo "$as_me:$LINENO: result: yes" >&5
4791 echo "${ECHO_T}yes" >&6; }
4792 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4793 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4794 cat >>confdefs.h <<\_ACEOF
4795 #define TCPDUMP_DO_SMB 1
4798 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4800 *) { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4806 # Check whether --with-user was given.
4807 if test "${with_user+set}" = set; then
4811 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4812 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4813 if test ! -z "$with_user" ; then
4814 cat >>confdefs.h <<_ACEOF
4815 #define WITH_USER "$withval"
4818 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4819 echo "${ECHO_T}to \"$withval\"" >&6; }
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4826 # Check whether --with-chroot was given.
4827 if test "${with_chroot+set}" = set; then
4828 withval=$with_chroot;
4831 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4832 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4833 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4834 cat >>confdefs.h <<_ACEOF
4835 #define WITH_CHROOT "$withval"
4838 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4839 echo "${ECHO_T}to \"$withval\"" >&6; }
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4846 # We must check this before checking whether to enable IPv6, because,
4847 # on some platforms (such as SunOS 5.x), the test program requires
4848 # the extra networking libraries.
4851 # Most operating systems have gethostbyname() in the default searched
4852 # libraries (i.e. libc):
4853 # Some OSes (eg. Solaris) place it in libnsl
4854 # Some strange OSes (SINIX) have it in libsocket:
4855 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4856 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4857 if test "${ac_cv_search_gethostbyname+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 ac_func_search_save_LIBS=$LIBS
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4868 /* Override any GCC internal prototype to avoid an error.
4869 Use char because int might match the return type of a GCC
4870 builtin and then its argument prototype would still apply. */
4874 char gethostbyname ();
4878 return gethostbyname ();
4883 for ac_lib in '' nsl socket resolv; do
4884 if test -z "$ac_lib"; then
4885 ac_res="none required"
4888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (ac_try="$ac_link"
4893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4894 *) ac_try_echo
=$ac_try;;
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_link") 2>conftest.er1
4899 grep -v '^ *+' conftest.er1
>conftest.err
4901 cat conftest.err
>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest
$ac_exeext &&
4907 $as_test_x conftest
$ac_exeext; then
4908 ac_cv_search_gethostbyname
=$ac_res
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.
$ac_ext >&5
4916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4918 if test "${ac_cv_search_gethostbyname+set}" = set; then
4922 if test "${ac_cv_search_gethostbyname+set}" = set; then
4925 ac_cv_search_gethostbyname
=no
4928 LIBS
=$ac_func_search_save_LIBS
4930 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4931 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4932 ac_res
=$ac_cv_search_gethostbyname
4933 if test "$ac_res" != no
; then
4934 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4938 # Unfortunately libsocket sometimes depends on libnsl and
4939 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4940 if test "$ac_cv_search_gethostbyname" = "no"
4942 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4943 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4944 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 ac_check_lib_save_LIBS
=$LIBS
4948 LIBS
="-lsocket -lnsl $LIBS"
4949 cat >conftest.
$ac_ext <<_ACEOF
4952 cat confdefs.h
>>conftest.
$ac_ext
4953 cat >>conftest.
$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4956 /* Override any GCC internal prototype to avoid an error.
4957 Use char because int might match the return type of a GCC
4958 builtin and then its argument prototype would still apply. */
4962 char gethostbyname ();
4966 return gethostbyname ();
4971 rm -f conftest.
$ac_objext conftest
$ac_exeext
4972 if { (ac_try
="$ac_link"
4974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest$ac_exeext &&
4988 $as_test_x conftest$ac_exeext; then
4989 ac_cv_lib_socket_gethostbyname=yes
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 ac_cv_lib_socket_gethostbyname=no
4997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4998 conftest$ac_exeext conftest.$ac_ext
4999 LIBS=$ac_check_lib_save_LIBS
5001 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5002 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5003 if test $ac_cv_lib_socket_gethostbyname = yes; then
5004 LIBS="-lsocket -lnsl $LIBS"
5008 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5009 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5010 if test "${ac_cv_search_socket+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_func_search_save_LIBS=$LIBS
5014 cat >conftest.$ac_ext <<_ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5021 /* Override any GCC internal prototype to avoid an error.
5022 Use char because int might match the return type of a GCC
5023 builtin and then its argument prototype would still apply. */
5036 for ac_lib in '' socket; do
5037 if test -z "$ac_lib"; then
5038 ac_res="none required"
5041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5043 rm -f conftest.$ac_objext conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5047 *) ac_try_echo
=$ac_try;;
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>conftest.er1
5052 grep -v '^ *+' conftest.er1
>conftest.err
5054 cat conftest.err
>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && {
5057 test -z "$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 } && test -s conftest
$ac_exeext &&
5060 $as_test_x conftest
$ac_exeext; then
5061 ac_cv_search_socket
=$ac_res
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.
$ac_ext >&5
5069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5071 if test "${ac_cv_search_socket+set}" = set; then
5075 if test "${ac_cv_search_socket+set}" = set; then
5078 ac_cv_search_socket
=no
5081 LIBS
=$ac_func_search_save_LIBS
5083 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5084 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5085 ac_res
=$ac_cv_search_socket
5086 if test "$ac_res" != no
; then
5087 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5090 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5091 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5092 if test "${ac_cv_lib_socket_socket+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 ac_check_lib_save_LIBS
=$LIBS
5096 LIBS
="-lsocket -lnsl $LIBS"
5097 cat >conftest.
$ac_ext <<_ACEOF
5100 cat confdefs.h
>>conftest.
$ac_ext
5101 cat >>conftest.
$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5104 /* Override any GCC internal prototype to avoid an error.
5105 Use char because int might match the return type of a GCC
5106 builtin and then its argument prototype would still apply. */
5119 rm -f conftest.
$ac_objext conftest
$ac_exeext
5120 if { (ac_try
="$ac_link"
5122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_link") 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest$ac_exeext &&
5136 $as_test_x conftest$ac_exeext; then
5137 ac_cv_lib_socket_socket=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_cv_lib_socket_socket=no
5145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5146 conftest$ac_exeext conftest.$ac_ext
5147 LIBS=$ac_check_lib_save_LIBS
5149 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5150 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5151 if test $ac_cv_lib_socket_socket = yes; then
5152 LIBS="-lsocket -lnsl $LIBS"
5157 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5158 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5159 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5160 if test "${ac_cv_search_putmsg+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 ac_func_search_save_LIBS=$LIBS
5164 cat >conftest.$ac_ext <<_ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5171 /* Override any GCC internal prototype to avoid an error.
5172 Use char because int might match the return type of a GCC
5173 builtin and then its argument prototype would still apply. */
5186 for ac_lib in '' str; do
5187 if test -z "$ac_lib"; then
5188 ac_res="none required"
5191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (ac_try="$ac_link"
5196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5197 *) ac_try_echo
=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_link") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1
>conftest.err
5204 cat conftest.err
>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest
$ac_exeext &&
5210 $as_test_x conftest
$ac_exeext; then
5211 ac_cv_search_putmsg
=$ac_res
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.
$ac_ext >&5
5219 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5221 if test "${ac_cv_search_putmsg+set}" = set; then
5225 if test "${ac_cv_search_putmsg+set}" = set; then
5228 ac_cv_search_putmsg
=no
5231 LIBS
=$ac_func_search_save_LIBS
5233 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5234 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5235 ac_res
=$ac_cv_search_putmsg
5236 if test "$ac_res" != no
; then
5237 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5243 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5244 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5245 # Check whether --enable-ipv6 was given.
5246 if test "${enable_ipv6+set}" = set; then
5247 enableval
=$enable_ipv6; case "$enableval" in
5248 yes) { echo "$as_me:$LINENO: result: yes" >&5
5249 echo "${ECHO_T}yes" >&6; }
5250 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"
5251 cat >>confdefs.h
<<\_ACEOF
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5264 if test "$cross_compiling" = yes; then
5265 { echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6; }
5270 cat >conftest.
$ac_ext <<_ACEOF
5273 cat confdefs.h
>>conftest.
$ac_ext
5274 cat >>conftest.
$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 /* AF_INET6 available check */
5277 #include <sys/types.h>
5278 #include <sys/socket.h>
5281 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5288 rm -f conftest
$ac_exeext
5289 if { (ac_try
="$ac_link"
5291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5299 { (case "(($ac_try" in
5300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5301 *) ac_try_echo
=$ac_try;;
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_try") 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5310 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"
5311 cat >>confdefs.h
<<\_ACEOF
5317 echo "$as_me: program exited with status $ac_status" >&5
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.
$ac_ext >&5
5322 { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5337 if test "$ipv6" = "yes"; then
5338 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5339 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5340 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
5343 cat >conftest.
$ac_ext <<_ACEOF
5346 cat confdefs.h
>>conftest.
$ac_ext
5347 cat >>conftest.
$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #include <netinet/in.h>
5350 #ifdef IPV6_INRIA_VERSION
5354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355 $EGREP "yes" >/dev
/null
2>&1; then
5357 CFLAGS
="-DINET6 $CFLAGS"
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <netinet/in.h>
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 $EGREP "yes" >/dev
/null
2>&1; then
5378 ipv6libdir
=/usr
/local
/v
6/lib
;
5380 CFLAGS
="-DINET6 $CFLAGS"
5386 cat >conftest.
$ac_ext <<_ACEOF
5389 cat confdefs.h
>>conftest.
$ac_ext
5390 cat >>conftest.
$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <features.h>
5393 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "yes" >/dev
/null
2>&1; then
5400 CFLAGS
="-DINET6 $CFLAGS"
5406 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
5409 ipv6libdir
=/usr
/inet
6/lib
5411 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
5415 cat >conftest.
$ac_ext <<_ACEOF
5418 cat confdefs.h
>>conftest.
$ac_ext
5419 cat >>conftest.
$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <sys/param.h>
5422 #ifdef _TOSHIBA_INET6
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "yes" >/dev
/null
2>&1; then
5430 ipv6libdir
=/usr
/local
/v
6/lib
;
5431 CFLAGS
="-DINET6 $CFLAGS"
5437 cat >conftest.
$ac_ext <<_ACEOF
5440 cat confdefs.h
>>conftest.
$ac_ext
5441 cat >>conftest.
$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include </usr/local/v6/include/sys/v6config.h>
5448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5449 $EGREP "yes" >/dev
/null
2>&1; then
5452 ipv6libdir
=/usr
/local
/v
6/lib
;
5453 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
5459 cat >conftest.
$ac_ext <<_ACEOF
5462 cat confdefs.h
>>conftest.
$ac_ext
5463 cat >>conftest.
$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <sys/param.h>
5466 #ifdef _ZETA_MINAMI_INET6
5470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471 $EGREP "yes" >/dev
/null
2>&1; then
5474 ipv6libdir
=/usr
/local
/v
6/lib
;
5475 CFLAGS
="-DINET6 $CFLAGS"
5481 if test "$ipv6type" != "unknown"; then
5485 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5486 echo "${ECHO_T}$ipv6type" >&6; }
5489 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5490 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
5491 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
5492 echo "You have $ipv6lib library, using it"
5494 if test "$ipv6trylibc" = "yes"; then
5495 echo "You do not have $ipv6lib library, using libc"
5497 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5498 echo "You need to fetch lib$ipv6lib.a from appropriate"
5499 echo 'ipv6 kit and compile beforehand.'
5506 if test "$ipv6" = "yes"; then
5508 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5509 # function in libc; there are "ngetaddrinfo()" and
5510 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5511 # "getaddrinfo" to be either "ngetaddrinfo" or
5512 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5513 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5515 # So this test doesn't work on Tru64 5.1, and possibly
5516 # on other 5.x releases. This causes the configure
5517 # script to become confused, and results in libpcap
5518 # being unbuildable.
5520 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5521 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5522 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 ac_func_search_save_LIBS
=$LIBS
5526 cat >conftest.
$ac_ext <<_ACEOF
5529 cat confdefs.h
>>conftest.
$ac_ext
5530 cat >>conftest.
$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5533 /* Override any GCC internal prototype to avoid an error.
5534 Use char because int might match the return type of a GCC
5535 builtin and then its argument prototype would still apply. */
5539 char getaddrinfo ();
5543 return getaddrinfo ();
5548 for ac_lib
in '' socket
; do
5549 if test -z "$ac_lib"; then
5550 ac_res
="none required"
5553 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5555 rm -f conftest.
$ac_objext conftest
$ac_exeext
5556 if { (ac_try
="$ac_link"
5558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_link") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest$ac_exeext &&
5572 $as_test_x conftest$ac_exeext; then
5573 ac_cv_search_getaddrinfo=$ac_res
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5583 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5587 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5590 ac_cv_search_getaddrinfo=no
5593 LIBS=$ac_func_search_save_LIBS
5595 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5596 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5597 ac_res=$ac_cv_search_getaddrinfo
5598 if test "$ac_res" != no; then
5599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5600 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5601 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5602 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 if test "$cross_compiling" = yes; then
5606 td_cv_buggygetaddrinfo=yes
5608 cat >conftest.$ac_ext <<_ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5615 #include <sys/types.h>
5618 #include <sys/socket.h>
5619 #include <netinet/in.h>
5623 int passive, gaierr, inet4 = 0, inet6 = 0;
5624 struct addrinfo hints, *ai, *aitop;
5625 char straddr[INET6_ADDRSTRLEN], strport[16];
5627 for (passive = 0; passive <= 1; passive++) {
5628 memset(&hints, 0, sizeof(hints));
5629 hints.ai_family = AF_UNSPEC;
5630 hints.ai_flags = passive ? AI_PASSIVE : 0;
5631 hints.ai_socktype = SOCK_STREAM;
5632 hints.ai_protocol = IPPROTO_TCP;
5633 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5634 (void)gai_strerror(gaierr);
5637 for (ai = aitop; ai; ai = ai->ai_next) {
5638 if (ai->ai_addr == NULL ||
5639 ai->ai_addrlen == 0 ||
5640 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5641 straddr, sizeof(straddr), strport, sizeof(strport),
5642 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5645 switch (ai->ai_family) {
5647 if (strcmp(strport, "54321") != 0) {
5651 if (strcmp(straddr, "0.0.0.0") != 0) {
5655 if (strcmp(straddr, "127.0.0.1") != 0) {
5662 if (strcmp(strport, "54321") != 0) {
5666 if (strcmp(straddr, "::") != 0) {
5670 if (strcmp(straddr, "::1") != 0) {
5687 /* another family support? */
5693 /* supported family should be 2, unsupported family should be 0 */
5694 if (!(inet4 == 0 || inet4 == 2))
5696 if (!(inet6 == 0 || inet6 == 2))
5700 freeaddrinfo(aitop);
5705 freeaddrinfo(aitop);
5710 rm -f conftest$ac_exeext
5711 if { (ac_try="$ac_link"
5713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5714 *) ac_try_echo
=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_link") 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5721 { (case "(($ac_try" in
5722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_try") 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 td_cv_buggygetaddrinfo=no
5732 echo "$as_me: program exited with status $ac_status" >&5
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5737 td_cv_buggygetaddrinfo=yes
5739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5745 if test "$td_cv_buggygetaddrinfo" = no; then
5746 { echo "$as_me:$LINENO: result: good" >&5
5747 echo "${ECHO_T}good" >&6; }
5749 { echo "$as_me:$LINENO: result: buggy" >&5
5750 echo "${ECHO_T}buggy" >&6; }
5753 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5755 # XXX - it doesn't appear that "ipv6type" can ever be
5756 # set to "linux". Should this be testing for
5757 # "linux-glibc", or for that *or* "linux-libinet6"?
5758 # If the latter, note that "linux-libinet6" is also
5759 # the type given to some non-Linux OSes.
5761 if test "$ipv6type" != "linux"; then
5762 echo 'Fatal: You must get working getaddrinfo() function.'
5763 echo ' or you can specify "--disable-ipv6"'.
5766 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5767 echo ' Better upgrade your system library to newest version'
5768 echo ' of GNU C library (aka glibc).'
5775 for ac_func in getnameinfo
5777 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5791 #define $ac_func innocuous_$ac_func
5793 /* System header to define __stub macros and hopefully few prototypes,
5794 which can conflict with char $ac_func (); below.
5795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 <limits.h> exists even on freestanding compilers. */
5799 # include <limits.h>
5801 # include <assert.h>
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined __stub_$ac_func || defined __stub___$ac_func
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5832 *) ac_try_echo
=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_link") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1
>conftest.err
5839 cat conftest.err
>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest
$ac_exeext &&
5845 $as_test_x conftest
$ac_exeext; then
5846 eval "$as_ac_var=yes"
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5851 eval "$as_ac_var=no"
5854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5855 conftest
$ac_exeext conftest.
$ac_ext
5857 ac_res
=`eval echo '${'$as_ac_var'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_var'}'` = yes; then
5861 cat >>confdefs.h
<<_ACEOF
5862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5866 case " $LIBOBJS " in
5867 *" $ac_func.$ac_objext "* ) ;;
5868 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5878 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5879 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5880 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 cat >conftest.
$ac_ext <<_ACEOF
5886 cat confdefs.h
>>conftest.
$ac_ext
5887 cat >>conftest.
$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #include <netdnet/dnetdb.h>
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
5894 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
5896 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
5901 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5902 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5903 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5904 cat >>confdefs.h
<<\_ACEOF
5905 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5911 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5912 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5913 if test "${ac_cv_addrinfo+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 cat >conftest.
$ac_ext <<_ACEOF
5919 cat confdefs.h
>>conftest.
$ac_ext
5920 cat >>conftest.
$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5932 rm -f conftest.
$ac_objext
5933 if { (ac_try
="$ac_compile"
5935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && {
5946 test -z "$ac_c_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.$ac_objext; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5961 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5962 if test $ac_cv_addrinfo = yes; then
5963 cat >>confdefs.h <<\_ACEOF
5964 #define HAVE_ADDRINFO 1
5968 cat >>confdefs.h <<\_ACEOF
5969 #define NEED_ADDRINFO_H 1
5974 if test "$ac_cv_addrinfo" = no; then
5975 missing_includes=yes
5979 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5980 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5981 if test "${ac_cv_maxserv+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 $EGREP "yes" >/dev/null 2>&1; then
6005 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6006 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
6007 if test $ac_cv_maxserv != yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009 #define NEED_ADDRINFO_H 1
6014 if test "$ac_cv_maxserv" = no; then
6015 missing_includes=yes
6019 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6020 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
6021 if test "${ac_cv_namereqd+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6036 $EGREP "yes" >/dev/null 2>&1; then
6045 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6046 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
6047 if test $ac_cv_namereqd != yes; then
6048 cat >>confdefs.h <<\_ACEOF
6049 #define NEED_ADDRINFO_H 1
6054 if test "$ac_cv_namereqd" = no; then
6055 missing_includes=yes
6059 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6060 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
6061 if test "${ac_cv_sa_storage+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6071 # include <sys/types.h>
6072 # include <sys/socket.h>
6076 struct sockaddr_storage s
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6085 *) ac_try_echo
=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1
>conftest.err
6092 cat conftest.err
>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.
$ac_objext; then
6098 ac_cv_sa_storage
=yes
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6109 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6110 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
6111 if test $ac_cv_sa_storage = yes; then
6112 cat >>confdefs.h
<<\_ACEOF
6113 #define HAVE_SOCKADDR_STORAGE 1
6118 if test "$ac_cv_sa_storage" = no
; then
6119 missing_includes
=yes
6128 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6130 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6133 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 cat >conftest.
$ac_ext <<_ACEOF
6139 cat confdefs.h
>>conftest.
$ac_ext
6140 cat >>conftest.
$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6144 #define $ac_func innocuous_$ac_func
6146 /* System header to define __stub macros and hopefully few prototypes,
6147 which can conflict with char $ac_func (); below.
6148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149 <limits.h> exists even on freestanding compilers. */
6152 # include <limits.h>
6154 # include <assert.h>
6159 /* Override any GCC internal prototype to avoid an error.
6160 Use char because int might match the return type of a GCC
6161 builtin and then its argument prototype would still apply. */
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined __stub_$ac_func || defined __stub___$ac_func
6181 rm -f conftest.
$ac_objext conftest
$ac_exeext
6182 if { (ac_try
="$ac_link"
6184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_link") 2>conftest.er1
6190 grep -v '^ *+' conftest.er1 >conftest.err
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest$ac_exeext &&
6198 $as_test_x conftest$ac_exeext; then
6199 eval "$as_ac_var=yes"
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 eval "$as_ac_var=no"
6207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6208 conftest$ac_exeext conftest.$ac_ext
6210 ac_res=`eval echo '${'$as_ac_var'}'`
6211 { echo "$as_me:$LINENO: result: $ac_res" >&5
6212 echo "${ECHO_T}$ac_res" >&6; }
6213 if test `eval echo '${'$as_ac_var'}'` = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6219 case " $LIBOBJS " in
6220 *" $ac_func.$ac_objext "* ) ;;
6221 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6232 for ac_func in fork vfork strftime
6234 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6248 #define $ac_func innocuous_$ac_func
6250 /* System header to define __stub macros and hopefully few prototypes,
6251 which can conflict with char $ac_func (); below.
6252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 <limits.h> exists even on freestanding compilers. */
6256 # include <limits.h>
6258 # include <assert.h>
6263 /* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
6270 /* The GNU C library defines this for functions which it implements
6271 to always fail with ENOSYS. Some functions are actually named
6272 something starting with __ and the normal name is an alias. */
6273 #if defined __stub_$ac_func || defined __stub___$ac_func
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (ac_try="$ac_link"
6288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6289 *) ac_try_echo
=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_link") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1
>conftest.err
6296 cat conftest.err
>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest
$ac_exeext &&
6302 $as_test_x conftest
$ac_exeext; then
6303 eval "$as_ac_var=yes"
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.
$ac_ext >&5
6308 eval "$as_ac_var=no"
6311 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6312 conftest
$ac_exeext conftest.
$ac_ext
6314 ac_res
=`eval echo '${'$as_ac_var'}'`
6315 { echo "$as_me:$LINENO: result: $ac_res" >&5
6316 echo "${ECHO_T}$ac_res" >&6; }
6317 if test `eval echo '${'$as_ac_var'}'` = yes; then
6318 cat >>confdefs.h
<<_ACEOF
6319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6327 for ac_func
in setlinebuf alarm
6329 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6332 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.
$ac_ext <<_ACEOF
6338 cat confdefs.h
>>conftest.
$ac_ext
6339 cat >>conftest.
$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6343 #define $ac_func innocuous_$ac_func
6345 /* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func (); below.
6347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6348 <limits.h> exists even on freestanding compilers. */
6351 # include <limits.h>
6353 # include <assert.h>
6358 /* Override any GCC internal prototype to avoid an error.
6359 Use char because int might match the return type of a GCC
6360 builtin and then its argument prototype would still apply. */
6365 /* The GNU C library defines this for functions which it implements
6366 to always fail with ENOSYS. Some functions are actually named
6367 something starting with __ and the normal name is an alias. */
6368 #if defined __stub_$ac_func || defined __stub___$ac_func
6380 rm -f conftest.
$ac_objext conftest
$ac_exeext
6381 if { (ac_try
="$ac_link"
6383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_link") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest$ac_exeext &&
6397 $as_test_x conftest$ac_exeext; then
6398 eval "$as_ac_var=yes"
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 eval "$as_ac_var=no"
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407 conftest$ac_exeext conftest.$ac_ext
6409 ac_res=`eval echo '${'$as_ac_var'}'`
6410 { echo "$as_me:$LINENO: result: $ac_res" >&5
6411 echo "${ECHO_T}$ac_res" >&6; }
6412 if test `eval echo '${'$as_ac_var'}'` = yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6424 for ac_func in vsnprintf snprintf
6426 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6440 #define $ac_func innocuous_$ac_func
6442 /* System header to define __stub macros and hopefully few prototypes,
6443 which can conflict with char $ac_func (); below.
6444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6445 <limits.h> exists even on freestanding compilers. */
6448 # include <limits.h>
6450 # include <assert.h>
6455 /* Override any GCC internal prototype to avoid an error.
6456 Use char because int might match the return type of a GCC
6457 builtin and then its argument prototype would still apply. */
6462 /* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */
6465 #if defined __stub_$ac_func || defined __stub___$ac_func
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (ac_try="$ac_link"
6480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6481 *) ac_try_echo
=$ac_try;;
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_link") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1
>conftest.err
6488 cat conftest.err
>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest
$ac_exeext &&
6494 $as_test_x conftest
$ac_exeext; then
6495 eval "$as_ac_var=yes"
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.
$ac_ext >&5
6500 eval "$as_ac_var=no"
6503 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6504 conftest
$ac_exeext conftest.
$ac_ext
6506 ac_res
=`eval echo '${'$as_ac_var'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6509 if test `eval echo '${'$as_ac_var'}'` = yes; then
6510 cat >>confdefs.h
<<_ACEOF
6511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6519 if test $needsnprintf = yes; then
6520 case " $LIBOBJS " in
6521 *" snprintf.$ac_objext "* ) ;;
6522 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6529 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6530 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6531 if test "${ac_cv_type_signal+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 cat >conftest.
$ac_ext <<_ACEOF
6537 cat confdefs.h
>>conftest.
$ac_ext
6538 cat >>conftest.
$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <sys/types.h>
6546 return *(signal (0, 0)) (0) == 1;
6551 rm -f conftest.
$ac_objext
6552 if { (ac_try
="$ac_compile"
6554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 ac_cv_type_signal=int
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_cv_type_signal=void
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6579 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6581 cat >>confdefs.h <<_ACEOF
6582 #define RETSIGTYPE $ac_cv_type_signal
6586 if test "$ac_cv_type_signal" = void ; then
6588 cat >>confdefs.h <<\_ACEOF
6594 cat >>confdefs.h <<\_ACEOF
6595 #define RETSIGVAL (0)
6603 cat >>confdefs.h <<\_ACEOF
6604 #define _BSD_SIGNALS 1
6611 for ac_func in sigaction
6613 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6627 #define $ac_func innocuous_$ac_func
6629 /* System header to define __stub macros and hopefully few prototypes,
6630 which can conflict with char $ac_func (); below.
6631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6632 <limits.h> exists even on freestanding compilers. */
6635 # include <limits.h>
6637 # include <assert.h>
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined __stub_$ac_func || defined __stub___$ac_func
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (ac_try="$ac_link"
6667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6668 *) ac_try_echo
=$ac_try;;
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_link") 2>conftest.er1
6673 grep -v '^ *+' conftest.er1
>conftest.err
6675 cat conftest.err
>&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest
$ac_exeext &&
6681 $as_test_x conftest
$ac_exeext; then
6682 eval "$as_ac_var=yes"
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.
$ac_ext >&5
6687 eval "$as_ac_var=no"
6690 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6691 conftest
$ac_exeext conftest.
$ac_ext
6693 ac_res
=`eval echo '${'$as_ac_var'}'`
6694 { echo "$as_me:$LINENO: result: $ac_res" >&5
6695 echo "${ECHO_T}$ac_res" >&6; }
6696 if test `eval echo '${'$as_ac_var'}'` = yes; then
6697 cat >>confdefs.h
<<_ACEOF
6698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6704 if test $ac_cv_func_sigaction = no
; then
6706 for ac_func
in sigset
6708 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6711 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 cat >conftest.
$ac_ext <<_ACEOF
6717 cat confdefs.h
>>conftest.
$ac_ext
6718 cat >>conftest.
$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6722 #define $ac_func innocuous_$ac_func
6724 /* System header to define __stub macros and hopefully few prototypes,
6725 which can conflict with char $ac_func (); below.
6726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6727 <limits.h> exists even on freestanding compilers. */
6730 # include <limits.h>
6732 # include <assert.h>
6737 /* Override any GCC internal prototype to avoid an error.
6738 Use char because int might match the return type of a GCC
6739 builtin and then its argument prototype would still apply. */
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined __stub_$ac_func || defined __stub___$ac_func
6759 rm -f conftest.
$ac_objext conftest
$ac_exeext
6760 if { (ac_try
="$ac_link"
6762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_link") 2>conftest.er1
6768 grep -v '^ *+' conftest.er1 >conftest.err
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && {
6773 test -z "$ac_c_werror_flag" ||
6774 test ! -s conftest.err
6775 } && test -s conftest$ac_exeext &&
6776 $as_test_x conftest$ac_exeext; then
6777 eval "$as_ac_var=yes"
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 eval "$as_ac_var=no"
6785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6786 conftest$ac_exeext conftest.$ac_ext
6788 ac_res=`eval echo '${'$as_ac_var'}'`
6789 { echo "$as_me:$LINENO: result: $ac_res" >&5
6790 echo "${ECHO_T}$ac_res" >&6; }
6791 if test `eval echo '${'$as_ac_var'}'` = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6803 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6804 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6805 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 ac_func_search_save_LIBS=$LIBS
6809 cat >conftest.$ac_ext <<_ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6816 /* Override any GCC internal prototype to avoid an error.
6817 Use char because int might match the return type of a GCC
6818 builtin and then its argument prototype would still apply. */
6826 return dnet_htoa ();
6831 for ac_lib in '' dnet; do
6832 if test -z "$ac_lib"; then
6833 ac_res="none required"
6836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (ac_try="$ac_link"
6841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6842 *) ac_try_echo
=$ac_try;;
6844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6845 (eval "$ac_link") 2>conftest.er1
6847 grep -v '^ *+' conftest.er1
>conftest.err
6849 cat conftest.err
>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest
$ac_exeext &&
6855 $as_test_x conftest
$ac_exeext; then
6856 ac_cv_search_dnet_htoa
=$ac_res
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.
$ac_ext >&5
6864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6866 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6870 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6873 ac_cv_search_dnet_htoa
=no
6876 LIBS
=$ac_func_search_save_LIBS
6878 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6879 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6880 ac_res
=$ac_cv_search_dnet_htoa
6881 if test "$ac_res" != no
; then
6882 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6883 cat >>confdefs.h
<<\_ACEOF
6884 #define HAVE_DNET_HTOA 1
6891 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6892 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6893 if test "${ac_cv_lib_rpc_main+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 ac_check_lib_save_LIBS
=$LIBS
6898 cat >conftest.
$ac_ext <<_ACEOF
6901 cat confdefs.h
>>conftest.
$ac_ext
6902 cat >>conftest.
$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6914 rm -f conftest.
$ac_objext conftest
$ac_exeext
6915 if { (ac_try
="$ac_link"
6917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>conftest.er1
6923 grep -v '^ *+' conftest.er1 >conftest.err
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest$ac_exeext &&
6931 $as_test_x conftest$ac_exeext; then
6932 ac_cv_lib_rpc_main=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_cv_lib_rpc_main=no
6940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6941 conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6944 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6945 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6946 if test $ac_cv_lib_rpc_main = yes; then
6947 cat >>confdefs.h <<_ACEOF
6948 #define HAVE_LIBRPC 1
6955 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6956 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6957 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 ac_func_search_save_LIBS=$LIBS
6961 cat >conftest.$ac_ext <<_ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6968 /* Override any GCC internal prototype to avoid an error.
6969 Use char because int might match the return type of a GCC
6970 builtin and then its argument prototype would still apply. */
6974 char getrpcbynumber ();
6978 return getrpcbynumber ();
6983 for ac_lib in '' nsl; do
6984 if test -z "$ac_lib"; then
6985 ac_res="none required"
6988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6990 rm -f conftest.$ac_objext conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6994 *) ac_try_echo
=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_link") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1
>conftest.err
7001 cat conftest.err
>&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest
$ac_exeext &&
7007 $as_test_x conftest
$ac_exeext; then
7008 ac_cv_search_getrpcbynumber
=$ac_res
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.
$ac_ext >&5
7016 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7018 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7022 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7025 ac_cv_search_getrpcbynumber
=no
7028 LIBS
=$ac_func_search_save_LIBS
7030 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7031 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
7032 ac_res
=$ac_cv_search_getrpcbynumber
7033 if test "$ac_res" != no
; then
7034 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7035 cat >>confdefs.h
<<\_ACEOF
7036 #define HAVE_GETRPCBYNUMBER 1
7045 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
7046 if test -f $pfopen ; then
7048 for ac_func
in pfopen
7050 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7053 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 cat >conftest.
$ac_ext <<_ACEOF
7059 cat confdefs.h
>>conftest.
$ac_ext
7060 cat >>conftest.
$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7064 #define $ac_func innocuous_$ac_func
7066 /* System header to define __stub macros and hopefully few prototypes,
7067 which can conflict with char $ac_func (); below.
7068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069 <limits.h> exists even on freestanding compilers. */
7072 # include <limits.h>
7074 # include <assert.h>
7079 /* Override any GCC internal prototype to avoid an error.
7080 Use char because int might match the return type of a GCC
7081 builtin and then its argument prototype would still apply. */
7086 /* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089 #if defined __stub_$ac_func || defined __stub___$ac_func
7101 rm -f conftest.
$ac_objext conftest
$ac_exeext
7102 if { (ac_try
="$ac_link"
7104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_link") 2>conftest.er1
7110 grep -v '^ *+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest$ac_exeext &&
7118 $as_test_x conftest$ac_exeext; then
7119 eval "$as_ac_var=yes"
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 eval "$as_ac_var=no"
7127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7128 conftest$ac_exeext conftest.$ac_ext
7130 ac_res=`eval echo '${'$as_ac_var'}'`
7131 { echo "$as_me:$LINENO: result: $ac_res" >&5
7132 echo "${ECHO_T}$ac_res" >&6; }
7133 if test `eval echo '${'$as_ac_var'}'` = yes; then
7134 cat >>confdefs.h <<_ACEOF
7135 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
7141 if test $ac_cv_func_pfopen = "no" ; then
7142 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7143 echo "${ECHO_T}Using $pfopen" >&6; }
7144 LIBS="$LIBS $pfopen"
7147 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7148 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7151 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7152 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7153 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7154 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
7155 sed -e 's/-PRE-GIT$//' `
7156 if test $lastdir = $basedir ; then
7160 if test -r $dir/libpcap.a ; then
7161 libpcap=$dir/libpcap.a
7165 if test $libpcap = FAIL ; then
7166 { echo "$as_me:$LINENO: result: not found" >&5
7167 echo "${ECHO_T}not found" >&6; }
7170 # Look for pcap-config.
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 case $PCAP_CONFIG in
7182 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7204 if test -n "$PCAP_CONFIG"; then
7205 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7206 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7214 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7215 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7216 # Extract the first word of "pcap-config", so it can be a program name with args.
7217 set dummy pcap-config; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 case $ac_pt_PCAP_CONFIG in
7225 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7247 if test -n "$ac_pt_PCAP_CONFIG"; then
7248 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7249 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7255 if test "x$ac_pt_PCAP_CONFIG" = x; then
7258 case $cross_compiling:$ac_tool_warned in
7260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7261 whose name does not start with the host triplet. If you think this
7262 configuration is useful to you, please write to autoconf@gnu.org." >&5
7263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7264 whose name does not start with the host triplet. If you think this
7265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7266 ac_tool_warned=yes ;;
7268 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7271 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7274 if test -n "$PCAP_CONFIG" ; then
7276 # Found - use it to get the include flags for
7277 # libpcap and the flags to link with libpcap.
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 cflags=`"$PCAP_CONFIG" --cflags`
7287 V_INCLS="$cflags $V_INCLS"
7288 libpcap=`"$PCAP_CONFIG" --libs`
7291 # Not found; look for pcap.
7293 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7294 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7295 if test "${ac_cv_lib_pcap_main+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 ac_check_lib_save_LIBS=$LIBS
7300 cat >conftest.$ac_ext <<_ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7320 *) ac_try_echo
=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_link") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1
>conftest.err
7327 cat conftest.err
>&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest
$ac_exeext &&
7333 $as_test_x conftest
$ac_exeext; then
7334 ac_cv_lib_pcap_main
=yes
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.
$ac_ext >&5
7339 ac_cv_lib_pcap_main
=no
7342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7343 conftest
$ac_exeext conftest.
$ac_ext
7344 LIBS
=$ac_check_lib_save_LIBS
7346 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7347 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7348 if test $ac_cv_lib_pcap_main = yes; then
7352 if test $libpcap = FAIL
; then
7353 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7354 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7355 { (exit 1); exit 1; }; }
7357 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7358 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7359 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
7360 \
( ! -r /usr
/include
/pcap.h \
); then
7361 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
7362 d
="/usr/local/include/pcap"
7363 elif test -r /usr
/include
/pcap
/pcap.h
; then
7364 d
="/usr/include/pcap"
7367 if test -z "$d" ; then
7368 { echo "$as_me:$LINENO: result: not found" >&5
7369 echo "${ECHO_T}not found" >&6; }
7371 V_INCLS
="-I$d $V_INCLS"
7372 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7373 echo "${ECHO_T}found -- -I$d added" >&6; }
7378 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7379 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7380 if test -r $d/pcap.h
; then
7381 V_INCLS
="-I$d $V_INCLS"
7382 elif test -r $places/pcap.h
; then
7383 V_INCLS
="-I$places $V_INCLS"
7385 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7386 echo "$as_me: error: cannot find pcap.h" >&2;}
7387 { (exit see INSTALL
); exit see INSTALL
; }; }
7389 { echo "$as_me:$LINENO: result: $libpcap" >&5
7390 echo "${ECHO_T}$libpcap" >&6; }
7391 # Extract the first word of "pcap-config", so it can be a program name with args.
7392 set dummy pcap-config
; ac_word
=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 case $PCAP_CONFIG in
7400 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
7403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir
=.
7408 for ac_exec_ext
in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
7422 if test -n "$PCAP_CONFIG"; then
7423 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7424 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 if test -n "$PCAP_CONFIG"; then
7433 # The libpcap directory has a pcap-config script.
7434 # Use it to get any additioal libraries needed
7435 # to link with the libpcap archive library in
7438 # Please read section 11.6 "Shell Substitutions"
7439 # in the autoconf manual before doing anything
7440 # to this that involves quoting. Especially note
7441 # the statement "There is just no portable way to use
7442 # double-quoted strings inside double-quoted back-quoted
7443 # expressions (pfew!)."
7445 additional_libs
=`"$PCAP_CONFIG" --additional-libs --static`
7446 libpcap
="$libpcap $additional_libs"
7449 LIBS
="$libpcap $LIBS"
7450 if ! test -n "$PCAP_CONFIG" ; then
7452 # We don't have pcap-config; find out any additional link flags
7453 # we need. (If we have pcap-config, we assume it tells us what
7460 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7461 # present, as we use the STREAMS routines.
7463 # (XXX - true only if we're linking with a static libpcap?)
7465 pseexe
="/lib/pse.exp"
7466 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7467 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7468 if test -f $pseexe ; then
7469 { echo "$as_me:$LINENO: result: yes" >&5
7470 echo "${ECHO_T}yes" >&6; }
7471 LIBS
="$LIBS -I:$pseexe"
7475 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7476 # we use them to load the BPF module.
7478 # (XXX - true only if we're linking with a static libpcap?)
7480 LIBS
="$LIBS -lodm -lcfg"
7485 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7486 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7487 if test "${ac_cv_func_pcap_loop+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 cat >conftest.
$ac_ext <<_ACEOF
7493 cat confdefs.h
>>conftest.
$ac_ext
7494 cat >>conftest.
$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7498 #define pcap_loop innocuous_pcap_loop
7500 /* System header to define __stub macros and hopefully few prototypes,
7501 which can conflict with char pcap_loop (); below.
7502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7503 <limits.h> exists even on freestanding compilers. */
7506 # include <limits.h>
7508 # include <assert.h>
7513 /* Override any GCC internal prototype to avoid an error.
7514 Use char because int might match the return type of a GCC
7515 builtin and then its argument prototype would still apply. */
7520 /* The GNU C library defines this for functions which it implements
7521 to always fail with ENOSYS. Some functions are actually named
7522 something starting with __ and the normal name is an alias. */
7523 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7530 return pcap_loop ();
7535 rm -f conftest.
$ac_objext conftest
$ac_exeext
7536 if { (ac_try
="$ac_link"
7538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_link") 2>conftest.er1
7544 grep -v '^ *+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest$ac_exeext &&
7552 $as_test_x conftest$ac_exeext; then
7553 ac_cv_func_pcap_loop=yes
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 ac_cv_func_pcap_loop=no
7561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7562 conftest$ac_exeext conftest.$ac_ext
7564 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7565 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7566 if test $ac_cv_func_pcap_loop = yes; then
7570 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7571 config.log file in your report. If you have downloaded libpcap from
7572 tcpdump.org, and built it yourself, please also include the config.log
7573 file from the libpcap source directory, the Makefile from the libpcap
7574 source directory, and the output of the make process for libpcap, as
7575 this could be a problem with the libpcap that was built, and we will
7576 not be able to determine why this is happening, and thus will not be
7577 able to fix it, without that information, as we have not been able to
7578 reproduce this problem ourselves." >&5
7579 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7580 config.log file in your report. If you have downloaded libpcap from
7581 tcpdump.org, and built it yourself, please also include the config.log
7582 file from the libpcap source directory, the Makefile from the libpcap
7583 source directory, and the output of the make process for libpcap, as
7584 this could be a problem with the libpcap that was built, and we will
7585 not be able to determine why this is happening, and thus will not be
7586 able to fix it, without that information, as we have not been able to
7587 reproduce this problem ourselves." >&2;}
7588 { (exit 1); exit 1; }; }
7593 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7594 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7595 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7606 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7608 /* System header to define __stub macros and hopefully few prototypes,
7609 which can conflict with char pcap_list_datalinks (); below.
7610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7611 <limits.h> exists even on freestanding compilers. */
7614 # include <limits.h>
7616 # include <assert.h>
7619 #undef pcap_list_datalinks
7621 /* Override any GCC internal prototype to avoid an error.
7622 Use char because int might match the return type of a GCC
7623 builtin and then its argument prototype would still apply. */
7627 char pcap_list_datalinks ();
7628 /* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7638 return pcap_list_datalinks ();
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (ac_try="$ac_link"
7646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7647 *) ac_try_echo
=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_link") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1
>conftest.err
7654 cat conftest.err
>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest
$ac_exeext &&
7660 $as_test_x conftest
$ac_exeext; then
7661 ac_cv_func_pcap_list_datalinks
=yes
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.
$ac_ext >&5
7666 ac_cv_func_pcap_list_datalinks
=no
7669 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7670 conftest
$ac_exeext conftest.
$ac_ext
7672 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7673 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7674 if test $ac_cv_func_pcap_list_datalinks = yes; then
7675 cat >>confdefs.h
<<\_ACEOF
7676 #define HAVE_PCAP_LIST_DATALINKS 1
7681 case " $LIBOBJS " in
7682 *" datalinks.$ac_objext "* ) ;;
7683 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
7690 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7691 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7692 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 cat >conftest.
$ac_ext <<_ACEOF
7698 cat confdefs.h
>>conftest.
$ac_ext
7699 cat >>conftest.
$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7703 #define pcap_set_datalink innocuous_pcap_set_datalink
7705 /* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char pcap_set_datalink (); below.
7707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7708 <limits.h> exists even on freestanding compilers. */
7711 # include <limits.h>
7713 # include <assert.h>
7716 #undef pcap_set_datalink
7718 /* Override any GCC internal prototype to avoid an error.
7719 Use char because int might match the return type of a GCC
7720 builtin and then its argument prototype would still apply. */
7724 char pcap_set_datalink ();
7725 /* The GNU C library defines this for functions which it implements
7726 to always fail with ENOSYS. Some functions are actually named
7727 something starting with __ and the normal name is an alias. */
7728 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7735 return pcap_set_datalink ();
7740 rm -f conftest.
$ac_objext conftest
$ac_exeext
7741 if { (ac_try
="$ac_link"
7743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_link") 2>conftest.er1
7749 grep -v '^ *+' conftest.er1 >conftest.err
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && {
7754 test -z "$ac_c_werror_flag" ||
7755 test ! -s conftest.err
7756 } && test -s conftest$ac_exeext &&
7757 $as_test_x conftest$ac_exeext; then
7758 ac_cv_func_pcap_set_datalink=yes
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_cv_func_pcap_set_datalink=no
7766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7767 conftest$ac_exeext conftest.$ac_ext
7769 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7770 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7771 if test $ac_cv_func_pcap_set_datalink = yes; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define HAVE_PCAP_SET_DATALINK 1
7778 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7779 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7780 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7791 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char pcap_datalink_name_to_val (); below.
7795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7796 <limits.h> exists even on freestanding compilers. */
7799 # include <limits.h>
7801 # include <assert.h>
7804 #undef pcap_datalink_name_to_val
7806 /* Override any GCC internal prototype to avoid an error.
7807 Use char because int might match the return type of a GCC
7808 builtin and then its argument prototype would still apply. */
7812 char pcap_datalink_name_to_val ();
7813 /* The GNU C library defines this for functions which it implements
7814 to always fail with ENOSYS. Some functions are actually named
7815 something starting with __ and the normal name is an alias. */
7816 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7823 return pcap_datalink_name_to_val ();
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7832 *) ac_try_echo
=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>conftest.er1
7837 grep -v '^ *+' conftest.er1
>conftest.err
7839 cat conftest.err
>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && {
7842 test -z "$ac_c_werror_flag" ||
7843 test ! -s conftest.err
7844 } && test -s conftest
$ac_exeext &&
7845 $as_test_x conftest
$ac_exeext; then
7846 ac_cv_func_pcap_datalink_name_to_val
=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.
$ac_ext >&5
7851 ac_cv_func_pcap_datalink_name_to_val
=no
7854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7855 conftest
$ac_exeext conftest.
$ac_ext
7857 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7858 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7859 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7861 cat >>confdefs.h
<<\_ACEOF
7862 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7865 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7866 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7867 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 cat >conftest.
$ac_ext <<_ACEOF
7873 cat confdefs.h
>>conftest.
$ac_ext
7874 cat >>conftest.
$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7878 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7880 /* System header to define __stub macros and hopefully few prototypes,
7881 which can conflict with char pcap_datalink_val_to_description (); below.
7882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883 <limits.h> exists even on freestanding compilers. */
7886 # include <limits.h>
7888 # include <assert.h>
7891 #undef pcap_datalink_val_to_description
7893 /* Override any GCC internal prototype to avoid an error.
7894 Use char because int might match the return type of a GCC
7895 builtin and then its argument prototype would still apply. */
7899 char pcap_datalink_val_to_description ();
7900 /* The GNU C library defines this for functions which it implements
7901 to always fail with ENOSYS. Some functions are actually named
7902 something starting with __ and the normal name is an alias. */
7903 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7910 return pcap_datalink_val_to_description ();
7915 rm -f conftest.
$ac_objext conftest
$ac_exeext
7916 if { (ac_try
="$ac_link"
7918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_link") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest$ac_exeext &&
7932 $as_test_x conftest$ac_exeext; then
7933 ac_cv_func_pcap_datalink_val_to_description=yes
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_cv_func_pcap_datalink_val_to_description=no
7941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7942 conftest$ac_exeext conftest.$ac_ext
7944 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7945 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7946 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7947 cat >>confdefs.h <<\_ACEOF
7948 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7953 case " $LIBOBJS " in
7954 *" dlnames.$ac_objext "* ) ;;
7955 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7965 case " $LIBOBJS " in
7966 *" dlnames.$ac_objext "* ) ;;
7967 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7976 for ac_func in pcap_breakloop
7978 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7992 #define $ac_func innocuous_$ac_func
7994 /* System header to define __stub macros and hopefully few prototypes,
7995 which can conflict with char $ac_func (); below.
7996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997 <limits.h> exists even on freestanding compilers. */
8000 # include <limits.h>
8002 # include <assert.h>
8007 /* Override any GCC internal prototype to avoid an error.
8008 Use char because int might match the return type of a GCC
8009 builtin and then its argument prototype would still apply. */
8014 /* The GNU C library defines this for functions which it implements
8015 to always fail with ENOSYS. Some functions are actually named
8016 something starting with __ and the normal name is an alias. */
8017 #if defined __stub_$ac_func || defined __stub___$ac_func
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8033 *) ac_try_echo
=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_link") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1
>conftest.err
8040 cat conftest.err
>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest
$ac_exeext &&
8046 $as_test_x conftest
$ac_exeext; then
8047 eval "$as_ac_var=yes"
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8052 eval "$as_ac_var=no"
8055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8056 conftest
$ac_exeext conftest.
$ac_ext
8058 ac_res
=`eval echo '${'$as_ac_var'}'`
8059 { echo "$as_me:$LINENO: result: $ac_res" >&5
8060 echo "${ECHO_T}$ac_res" >&6; }
8061 if test `eval echo '${'$as_ac_var'}'` = yes; then
8062 cat >>confdefs.h
<<_ACEOF
8063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8070 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8071 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8072 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 cat >conftest.
$ac_ext <<_ACEOF
8078 cat confdefs.h
>>conftest.
$ac_ext
8079 cat >>conftest.
$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8083 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8085 /* System header to define __stub macros and hopefully few prototypes,
8086 which can conflict with char pcap_dump_ftell (); below.
8087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 <limits.h> exists even on freestanding compilers. */
8091 # include <limits.h>
8093 # include <assert.h>
8096 #undef pcap_dump_ftell
8098 /* Override any GCC internal prototype to avoid an error.
8099 Use char because int might match the return type of a GCC
8100 builtin and then its argument prototype would still apply. */
8104 char pcap_dump_ftell ();
8105 /* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8115 return pcap_dump_ftell ();
8120 rm -f conftest.
$ac_objext conftest
$ac_exeext
8121 if { (ac_try
="$ac_link"
8123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_link") 2>conftest.er1
8129 grep -v '^ *+' conftest.er1 >conftest.err
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
8136 } && test -s conftest$ac_exeext &&
8137 $as_test_x conftest$ac_exeext; then
8138 ac_cv_func_pcap_dump_ftell=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_func_pcap_dump_ftell=no
8146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8147 conftest$ac_exeext conftest.$ac_ext
8149 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8150 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8151 if test $ac_cv_func_pcap_dump_ftell = yes; then
8152 cat >>confdefs.h <<\_ACEOF
8153 #define HAVE_PCAP_DUMP_FTELL 1
8158 case " $LIBOBJS " in
8159 *" pcap_dump_ftell.$ac_objext "* ) ;;
8160 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8170 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8171 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8173 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8174 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8175 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8176 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8177 # it does not ship with a libc symbol "inet_ntop()", it ships with
8178 # "_inet_ntop()", and has a #define macro in one of the system headers
8181 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8182 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <sys/socket.h>
8191 #include <netinet/in.h>
8192 #include <arpa/inet.h>
8196 char src[4], dst[128];
8197 inet_ntop(AF_INET, src, dst, sizeof(dst));
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (ac_try="$ac_link"
8205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8206 *) ac_try_echo
=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_link") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1
>conftest.err
8213 cat conftest.err
>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest
$ac_exeext &&
8219 $as_test_x conftest
$ac_exeext; then
8220 { echo "$as_me:$LINENO: result: yes" >&5
8221 echo "${ECHO_T}yes" >&6; }
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8226 { echo "$as_me:$LINENO: result: no" >&5
8227 echo "${ECHO_T}no" >&6; }
8228 case " $LIBOBJS " in
8229 *" inet_ntop.$ac_objext "* ) ;;
8230 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8236 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8237 conftest
$ac_exeext conftest.
$ac_ext
8238 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8239 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8240 cat >conftest.
$ac_ext <<_ACEOF
8243 cat confdefs.h
>>conftest.
$ac_ext
8244 cat >>conftest.
$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 #include <sys/types.h>
8247 #include <sys/socket.h>
8248 #include <netinet/in.h>
8249 #include <arpa/inet.h>
8253 char src[128], dst[4];
8254 inet_pton(AF_INET, src, dst);
8259 rm -f conftest.
$ac_objext conftest
$ac_exeext
8260 if { (ac_try
="$ac_link"
8262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_link") 2>conftest.er1
8268 grep -v '^ *+' conftest.er1 >conftest.err
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest$ac_exeext &&
8276 $as_test_x conftest$ac_exeext; then
8277 { echo "$as_me:$LINENO: result: yes" >&5
8278 echo "${ECHO_T}yes" >&6; }
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 { echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6; }
8285 case " $LIBOBJS " in
8286 *" inet_pton.$ac_objext "* ) ;;
8287 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8294 conftest$ac_exeext conftest.$ac_ext
8295 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8296 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <netinet/in.h>
8305 #include <arpa/inet.h>
8311 inet_aton(src, &dst);
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8320 *) ac_try_echo
=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_link") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1
>conftest.err
8327 cat conftest.err
>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest
$ac_exeext &&
8333 $as_test_x conftest
$ac_exeext; then
8334 { echo "$as_me:$LINENO: result: yes" >&5
8335 echo "${ECHO_T}yes" >&6; }
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.
$ac_ext >&5
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8342 case " $LIBOBJS " in
8343 *" inet_aton.$ac_objext "* ) ;;
8344 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
8350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8351 conftest
$ac_exeext conftest.
$ac_ext
8354 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8356 # You are in a twisty little maze of UN*Xes, all different.
8357 # Some might not have ether_ntohost().
8358 # Some might have it, but not declare it in any header file.
8359 # Some might have it, but declare it in <netinet/if_ether.h>.
8360 # Some might have it, but declare it in <netinet/ether.h>
8361 # (And some might have it but document it as something declared in
8362 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8364 # Before you is a C compiler.
8367 for ac_func
in ether_ntohost
8369 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8372 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 cat >conftest.
$ac_ext <<_ACEOF
8378 cat confdefs.h
>>conftest.
$ac_ext
8379 cat >>conftest.
$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8383 #define $ac_func innocuous_$ac_func
8385 /* System header to define __stub macros and hopefully few prototypes,
8386 which can conflict with char $ac_func (); below.
8387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8388 <limits.h> exists even on freestanding compilers. */
8391 # include <limits.h>
8393 # include <assert.h>
8398 /* Override any GCC internal prototype to avoid an error.
8399 Use char because int might match the return type of a GCC
8400 builtin and then its argument prototype would still apply. */
8405 /* The GNU C library defines this for functions which it implements
8406 to always fail with ENOSYS. Some functions are actually named
8407 something starting with __ and the normal name is an alias. */
8408 #if defined __stub_$ac_func || defined __stub___$ac_func
8420 rm -f conftest.
$ac_objext conftest
$ac_exeext
8421 if { (ac_try
="$ac_link"
8423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_link") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest$ac_exeext &&
8437 $as_test_x conftest$ac_exeext; then
8438 eval "$as_ac_var=yes"
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 eval "$as_ac_var=no"
8446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8447 conftest$ac_exeext conftest.$ac_ext
8449 ac_res=`eval echo '${'$as_ac_var'}'`
8450 { echo "$as_me:$LINENO: result: $ac_res" >&5
8451 echo "${ECHO_T}$ac_res" >&6; }
8452 if test `eval echo '${'$as_ac_var'}'` = yes; then
8453 cat >>confdefs.h <<_ACEOF
8454 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8457 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8458 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8459 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 if test "$cross_compiling" = yes; then
8464 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8474 #include <sys/types.h>
8475 #include <sys/param.h>
8476 #include <sys/socket.h>
8479 main(int argc, char **argv)
8481 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8482 char name[MAXHOSTNAMELEN];
8484 ether_ntohost(name, (struct ether_addr *)ea);
8489 rm -f conftest$ac_exeext
8490 if { (ac_try="$ac_link"
8492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8493 *) ac_try_echo
=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_link") 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8500 { (case "(($ac_try" in
8501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_buggy_ether_ntohost=no
8511 echo "$as_me: program exited with status $ac_status" >&5
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_buggy_ether_ntohost=yes
8518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8523 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8524 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8525 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8526 cat >>confdefs.h <<\_ACEOF
8527 #define USE_ETHER_NTOHOST 1
8535 if test "$ac_cv_func_ether_ntohost" = yes -a \
8536 "$ac_cv_buggy_ether_ntohost" = "no"; then
8538 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8540 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8542 # Yes. Does it declare ether_ntohost()?
8544 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8545 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8546 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8556 #include <sys/types.h>
8557 #include <sys/socket.h>
8558 #include <netinet/in.h>
8559 #include <arpa/inet.h>
8563 #include <netinet/if_ether.h>
8569 #ifndef ether_ntohost
8570 (void) ether_ntohost;
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8581 *) ac_try_echo
=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1
>conftest.err
8588 cat conftest.err
>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.
$ac_objext; then
8594 ac_cv_have_decl_ether_ntohost
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_cv_have_decl_ether_ntohost
=no
8602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8604 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8605 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8606 if test $ac_cv_have_decl_ether_ntohost = yes; then
8609 cat >>confdefs.h
<<\_ACEOF
8610 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8620 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8622 # No, how about <netinet/ether.h>, as on Linux?
8625 for ac_header
in netinet
/ether.h
8627 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8631 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 ac_res
=`eval echo '${'$as_ac_Header'}'`
8635 { echo "$as_me:$LINENO: result: $ac_res" >&5
8636 echo "${ECHO_T}$ac_res" >&6; }
8638 # Is the header compilable?
8639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8641 cat >conftest.
$ac_ext <<_ACEOF
8644 cat confdefs.h
>>conftest.
$ac_ext
8645 cat >>conftest.
$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 $ac_includes_default
8648 #include <$ac_header>
8650 rm -f conftest.
$ac_objext
8651 if { (ac_try
="$ac_compile"
8653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_header_compiler=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_header_compiler=no
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8677 echo "${ECHO_T}$ac_header_compiler" >&6; }
8679 # Is the header present?
8680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 #include <$ac_header>
8690 if { (ac_try="$ac_cpp conftest.$ac_ext"
8692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8693 *) ac_try_echo
=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8698 grep -v '^ *+' conftest.er1
>conftest.err
8700 cat conftest.err
>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } >/dev
/null
&& {
8703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8706 ac_header_preproc
=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.
$ac_ext >&5
8711 ac_header_preproc
=no
8714 rm -f conftest.err conftest.
$ac_ext
8715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8716 echo "${ECHO_T}$ac_header_preproc" >&6; }
8718 # So? What about this header?
8719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8725 ac_header_preproc
=yes
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8745 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 eval "$as_ac_Header=\$ac_header_preproc"
8750 ac_res
=`eval echo '${'$as_ac_Header'}'`
8751 { echo "$as_me:$LINENO: result: $ac_res" >&5
8752 echo "${ECHO_T}$ac_res" >&6; }
8755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8756 cat >>confdefs.h
<<_ACEOF
8757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8764 if test "$ac_cv_header_netinet_ether_h" = yes; then
8766 # We have it - does it declare ether_ntohost()?
8767 # Unset ac_cv_have_decl_ether_ntohost so we don't
8768 # treat the previous failure as a cached value and
8769 # suppress the next test.
8771 unset ac_cv_have_decl_ether_ntohost
8772 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8773 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8774 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 cat >conftest.
$ac_ext <<_ACEOF
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 #include <netinet/ether.h>
8790 #ifndef ether_ntohost
8791 (void) ether_ntohost;
8798 rm -f conftest.
$ac_objext
8799 if { (ac_try
="$ac_compile"
8801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.$ac_objext; then
8815 ac_cv_have_decl_ether_ntohost=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_have_decl_ether_ntohost=no
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8826 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8827 if test $ac_cv_have_decl_ether_ntohost = yes; then
8830 cat >>confdefs.h <<\_ACEOF
8831 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8840 # Is ether_ntohost() declared?
8842 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8844 # No, we'll have to declare it ourselves.
8845 # Do we have "struct ether_addr"?
8847 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8848 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8849 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 #include <sys/socket.h>
8861 #include <netinet/in.h>
8862 #include <arpa/inet.h>
8866 #include <netinet/if_ether.h>
8869 typedef struct ether_addr ac__type_new_;
8873 if ((ac__type_new_ *) 0)
8875 if (sizeof (ac__type_new_))
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8885 *) ac_try_echo
=$ac_try;;
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_compile") 2>conftest.er1
8890 grep -v '^ *+' conftest.er1
>conftest.err
8892 cat conftest.err
>&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest.
$ac_objext; then
8898 ac_cv_type_struct_ether_addr
=yes
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.
$ac_ext >&5
8903 ac_cv_type_struct_ether_addr
=no
8906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8908 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8909 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8910 if test $ac_cv_type_struct_ether_addr = yes; then
8912 cat >>confdefs.h
<<_ACEOF
8913 #define HAVE_STRUCT_ETHER_ADDR 1
8920 cat >>confdefs.h
<<\_ACEOF
8921 #define HAVE_DECL_ETHER_NTOHOST 0
8926 cat >>confdefs.h
<<\_ACEOF
8927 #define HAVE_DECL_ETHER_NTOHOST 1
8933 # libdlpi is needed for Solaris 11 and later.
8934 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8935 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8936 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_check_lib_save_LIBS
=$LIBS
8940 LIBS
="-ldlpi -L/lib $LIBS"
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.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. */
8958 return dlpi_walk ();
8963 rm -f conftest.
$ac_objext conftest
$ac_exeext
8964 if { (ac_try
="$ac_link"
8966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_link") 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext &&
8980 $as_test_x conftest$ac_exeext; then
8981 ac_cv_lib_dlpi_dlpi_walk=yes
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_cv_lib_dlpi_dlpi_walk=no
8989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8990 conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8994 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8995 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8996 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
9001 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9002 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
9003 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9013 # include <sys/types.h>
9014 # include <sys/socket.h>
9018 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9023 rm -f conftest.$ac_objext
9024 if { (ac_try="$ac_compile"
9026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9027 *) ac_try_echo
=$ac_try;;
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9032 grep -v '^ *+' conftest.er1
>conftest.err
9034 cat conftest.err
>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.
$ac_objext; then
9040 ac_cv_sockaddr_has_sa_len
=yes
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.
$ac_ext >&5
9045 ac_cv_sockaddr_has_sa_len
=no
9048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9051 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9052 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9053 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9054 cat >>confdefs.h
<<\_ACEOF
9055 #define HAVE_SOCKADDR_SA_LEN 1
9060 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9061 missing_includes
=yes
9065 # Do we have the new open API? Check for pcap_create, and assume that,
9066 # if we do, we also have pcap_activate() and the other new routines
9067 # introduced in libpcap 1.0.0.
9070 for ac_func
in pcap_create
9072 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9075 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 cat >conftest.
$ac_ext <<_ACEOF
9081 cat confdefs.h
>>conftest.
$ac_ext
9082 cat >>conftest.
$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9086 #define $ac_func innocuous_$ac_func
9088 /* System header to define __stub macros and hopefully few prototypes,
9089 which can conflict with char $ac_func (); below.
9090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9091 <limits.h> exists even on freestanding compilers. */
9094 # include <limits.h>
9096 # include <assert.h>
9101 /* Override any GCC internal prototype to avoid an error.
9102 Use char because int might match the return type of a GCC
9103 builtin and then its argument prototype would still apply. */
9108 /* The GNU C library defines this for functions which it implements
9109 to always fail with ENOSYS. Some functions are actually named
9110 something starting with __ and the normal name is an alias. */
9111 #if defined __stub_$ac_func || defined __stub___$ac_func
9123 rm -f conftest.
$ac_objext conftest
$ac_exeext
9124 if { (ac_try
="$ac_link"
9126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_link") 2>conftest.er1
9132 grep -v '^ *+' conftest.er1 >conftest.err
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && {
9137 test -z "$ac_c_werror_flag" ||
9138 test ! -s conftest.err
9139 } && test -s conftest$ac_exeext &&
9140 $as_test_x conftest$ac_exeext; then
9141 eval "$as_ac_var=yes"
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 eval "$as_ac_var=no"
9149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9150 conftest$ac_exeext conftest.$ac_ext
9152 ac_res=`eval echo '${'$as_ac_var'}'`
9153 { echo "$as_me:$LINENO: result: $ac_res" >&5
9154 echo "${ECHO_T}$ac_res" >&6; }
9155 if test `eval echo '${'$as_ac_var'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9163 if test $ac_cv_func_pcap_create = "yes" ; then
9165 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9166 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9169 for ac_func in pcap_set_tstamp_type
9171 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 cat >conftest.$ac_ext <<_ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9185 #define $ac_func innocuous_$ac_func
9187 /* System header to define __stub macros and hopefully few prototypes,
9188 which can conflict with char $ac_func (); below.
9189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9190 <limits.h> exists even on freestanding compilers. */
9193 # include <limits.h>
9195 # include <assert.h>
9200 /* Override any GCC internal prototype to avoid an error.
9201 Use char because int might match the return type of a GCC
9202 builtin and then its argument prototype would still apply. */
9207 /* The GNU C library defines this for functions which it implements
9208 to always fail with ENOSYS. Some functions are actually named
9209 something starting with __ and the normal name is an alias. */
9210 #if defined __stub_$ac_func || defined __stub___$ac_func
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (ac_try="$ac_link"
9225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9226 *) ac_try_echo
=$ac_try;;
9228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9229 (eval "$ac_link") 2>conftest.er1
9231 grep -v '^ *+' conftest.er1
>conftest.err
9233 cat conftest.err
>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } && {
9236 test -z "$ac_c_werror_flag" ||
9237 test ! -s conftest.err
9238 } && test -s conftest
$ac_exeext &&
9239 $as_test_x conftest
$ac_exeext; then
9240 eval "$as_ac_var=yes"
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.
$ac_ext >&5
9245 eval "$as_ac_var=no"
9248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9249 conftest
$ac_exeext conftest.
$ac_ext
9251 ac_res
=`eval echo '${'$as_ac_var'}'`
9252 { echo "$as_me:$LINENO: result: $ac_res" >&5
9253 echo "${ECHO_T}$ac_res" >&6; }
9254 if test `eval echo '${'$as_ac_var'}'` = yes; then
9255 cat >>confdefs.h
<<_ACEOF
9256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9267 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9269 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9272 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 cat >conftest.
$ac_ext <<_ACEOF
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9283 #define $ac_func innocuous_$ac_func
9285 /* System header to define __stub macros and hopefully few prototypes,
9286 which can conflict with char $ac_func (); below.
9287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288 <limits.h> exists even on freestanding compilers. */
9291 # include <limits.h>
9293 # include <assert.h>
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9305 /* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
9308 #if defined __stub_$ac_func || defined __stub___$ac_func
9320 rm -f conftest.
$ac_objext conftest
$ac_exeext
9321 if { (ac_try
="$ac_link"
9323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_link") 2>conftest.er1
9329 grep -v '^ *+' conftest.er1 >conftest.err
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest$ac_exeext &&
9337 $as_test_x conftest$ac_exeext; then
9338 eval "$as_ac_var=yes"
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 eval "$as_ac_var=no"
9346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9347 conftest$ac_exeext conftest.$ac_ext
9349 ac_res=`eval echo '${'$as_ac_var'}'`
9350 { echo "$as_me:$LINENO: result: $ac_res" >&5
9351 echo "${ECHO_T}$ac_res" >&6; }
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9360 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9361 savedcppflags="$CPPFLAGS"
9362 CPPFLAGS="$CPPFLAGS $V_INCLS"
9363 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9364 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9365 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 cat >conftest.$ac_ext <<_ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9376 typedef pcap_if_t ac__type_new_;
9380 if ((ac__type_new_ *) 0)
9382 if (sizeof (ac__type_new_))
9388 rm -f conftest.$ac_objext
9389 if { (ac_try="$ac_compile"
9391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9392 *) ac_try_echo
=$ac_try;;
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_compile") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1
>conftest.err
9399 cat conftest.err
>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest.
$ac_objext; then
9405 ac_cv_type_pcap_if_t
=yes
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.
$ac_ext >&5
9410 ac_cv_type_pcap_if_t
=no
9413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9415 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9416 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9417 if test $ac_cv_type_pcap_if_t = yes; then
9419 cat >>confdefs.h
<<_ACEOF
9420 #define HAVE_PCAP_IF_T 1
9426 CPPFLAGS
="$savedcppflags"
9429 if test $ac_cv_func_pcap_lib_version = "no" ; then
9430 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9431 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9432 cat >conftest.
$ac_ext <<_ACEOF
9435 cat confdefs.h
>>conftest.
$ac_ext
9436 cat >>conftest.
$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9443 extern char pcap_version[];
9445 return (int)pcap_version;
9451 rm -f conftest.
$ac_objext conftest
$ac_exeext
9452 if { (ac_try
="$ac_link"
9454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9455 *) ac_try_echo=$ac_try;;
9457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458 (eval "$ac_link") 2>conftest.er1
9460 grep -v '^ *+' conftest.er1 >conftest.err
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && {
9465 test -z "$ac_c_werror_flag" ||
9466 test ! -s conftest.err
9467 } && test -s conftest$ac_exeext &&
9468 $as_test_x conftest$ac_exeext; then
9469 ac_lbl_cv_pcap_version_defined=yes
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_lbl_cv_pcap_version_defined=no
9477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9478 conftest$ac_exeext conftest.$ac_ext
9479 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9480 { echo "$as_me:$LINENO: result: yes" >&5
9481 echo "${ECHO_T}yes" >&6; }
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_PCAP_VERSION 1
9487 { echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6; }
9491 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9492 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9493 cat >conftest.$ac_ext <<_ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9504 extern int pcap_debug;
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (ac_try="$ac_link"
9515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9516 *) ac_try_echo
=$ac_try;;
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_link") 2>conftest.er1
9521 grep -v '^ *+' conftest.er1
>conftest.err
9523 cat conftest.err
>&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest
$ac_exeext &&
9529 $as_test_x conftest
$ac_exeext; then
9530 ac_lbl_cv_pcap_debug_defined
=yes
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.
$ac_ext >&5
9535 ac_lbl_cv_pcap_debug_defined
=no
9538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9539 conftest
$ac_exeext conftest.
$ac_ext
9540 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9541 { echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6; }
9543 cat >>confdefs.h
<<\_ACEOF
9544 #define HAVE_PCAP_DEBUG 1
9548 { echo "$as_me:$LINENO: result: no" >&5
9549 echo "${ECHO_T}no" >&6; }
9551 # OK, what about "yydebug"?
9553 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9554 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9555 cat >conftest.
$ac_ext <<_ACEOF
9558 cat confdefs.h
>>conftest.
$ac_ext
9559 cat >>conftest.
$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9574 rm -f conftest.
$ac_objext conftest
$ac_exeext
9575 if { (ac_try
="$ac_link"
9577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext &&
9591 $as_test_x conftest$ac_exeext; then
9592 ac_lbl_cv_yydebug_defined=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_lbl_cv_yydebug_defined=no
9600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9601 conftest$ac_exeext conftest.$ac_ext
9602 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9603 { echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6; }
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_YYDEBUG 1
9610 { echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6; }
9615 for ac_func in bpf_dump
9617 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 cat >conftest.$ac_ext <<_ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9631 #define $ac_func innocuous_$ac_func
9633 /* System header to define __stub macros and hopefully few prototypes,
9634 which can conflict with char $ac_func (); below.
9635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636 <limits.h> exists even on freestanding compilers. */
9639 # include <limits.h>
9641 # include <assert.h>
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9653 /* The GNU C library defines this for functions which it implements
9654 to always fail with ENOSYS. Some functions are actually named
9655 something starting with __ and the normal name is an alias. */
9656 #if defined __stub_$ac_func || defined __stub___$ac_func
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (ac_try="$ac_link"
9671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9672 *) ac_try_echo
=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_link") 2>conftest.er1
9677 grep -v '^ *+' conftest.er1
>conftest.err
9679 cat conftest.err
>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest
$ac_exeext &&
9685 $as_test_x conftest
$ac_exeext; then
9686 eval "$as_ac_var=yes"
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.
$ac_ext >&5
9691 eval "$as_ac_var=no"
9694 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9695 conftest
$ac_exeext conftest.
$ac_ext
9697 ac_res
=`eval echo '${'$as_ac_var'}'`
9698 { echo "$as_me:$LINENO: result: $ac_res" >&5
9699 echo "${ECHO_T}$ac_res" >&6; }
9700 if test `eval echo '${'$as_ac_var'}'` = yes; then
9701 cat >>confdefs.h
<<_ACEOF
9702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9706 case " $LIBOBJS " in
9707 *" $ac_func.$ac_objext "* ) ;;
9708 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9717 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9721 # Assume V7/BSD convention for man pages (file formats in section 5,
9722 # miscellaneous info in section 7).
9730 cat >>confdefs.h
<<\_ACEOF
9738 # Use System V conventions for man pages.
9748 # Use System V conventions for man pages.
9758 # Use System V conventions for man pages.
9768 # Use System V conventions for man pages.
9775 if test -f /dev
/bpf0
; then
9780 for ac_header
in sys
/bitypes.h
9782 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9783 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9786 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 ac_res
=`eval echo '${'$as_ac_Header'}'`
9790 { echo "$as_me:$LINENO: result: $ac_res" >&5
9791 echo "${ECHO_T}$ac_res" >&6; }
9793 # Is the header compilable?
9794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9796 cat >conftest.
$ac_ext <<_ACEOF
9799 cat confdefs.h
>>conftest.
$ac_ext
9800 cat >>conftest.
$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 $ac_includes_default
9803 #include <$ac_header>
9805 rm -f conftest.
$ac_objext
9806 if { (ac_try
="$ac_compile"
9808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_compile") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest.$ac_objext; then
9822 ac_header_compiler=yes
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_header_compiler=no
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9832 echo "${ECHO_T}$ac_header_compiler" >&6; }
9834 # Is the header present?
9835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 #include <$ac_header>
9845 if { (ac_try="$ac_cpp conftest.$ac_ext"
9847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9848 *) ac_try_echo
=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1
>conftest.err
9855 cat conftest.err
>&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } >/dev
/null
&& {
9858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9861 ac_header_preproc
=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 ac_header_preproc
=no
9869 rm -f conftest.err conftest.
$ac_ext
9870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9871 echo "${ECHO_T}$ac_header_preproc" >&6; }
9873 # So? What about this header?
9874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9880 ac_header_preproc
=yes
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9900 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 eval "$as_ac_Header=\$ac_header_preproc"
9905 ac_res
=`eval echo '${'$as_ac_Header'}'`
9906 { echo "$as_me:$LINENO: result: $ac_res" >&5
9907 echo "${ECHO_T}$ac_res" >&6; }
9910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9911 cat >>confdefs.h
<<_ACEOF
9912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9920 { echo "$as_me:$LINENO: checking for int8_t" >&5
9921 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9922 if test "${ac_cv_type_int8_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 cat >conftest.
$ac_ext <<_ACEOF
9928 cat confdefs.h
>>conftest.
$ac_ext
9929 cat >>conftest.
$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 $ac_includes_default
9932 #ifdef HAVE_SYS_BITYPES_H
9933 #include <sys/bitypes.h>
9936 typedef int8_t ac__type_new_;
9940 if ((ac__type_new_ *) 0)
9942 if (sizeof (ac__type_new_))
9948 rm -f conftest.
$ac_objext
9949 if { (ac_try
="$ac_compile"
9951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_cv_type_int8_t=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_type_int8_t=no
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9976 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9977 if test $ac_cv_type_int8_t = yes; then
9981 cat >>confdefs.h <<\_ACEOF
9982 #define int8_t signed char
9987 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9988 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9989 if test "${ac_cv_type_u_int8_t+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
9999 #ifdef HAVE_SYS_BITYPES_H
10000 #include <sys/bitypes.h>
10003 typedef u_int8_t ac__type_new_;
10007 if ((ac__type_new_ *) 0)
10009 if (sizeof (ac__type_new_))
10015 rm -f conftest.$ac_objext
10016 if { (ac_try="$ac_compile"
10017 case "(($ac_try" in
10018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10019 *) ac_try_echo
=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_compile") 2>conftest.er1
10024 grep -v '^ *+' conftest.er1
>conftest.err
10026 cat conftest.err
>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest.
$ac_objext; then
10032 ac_cv_type_u_int8_t
=yes
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.
$ac_ext >&5
10037 ac_cv_type_u_int8_t
=no
10040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10042 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10043 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10044 if test $ac_cv_type_u_int8_t = yes; then
10048 cat >>confdefs.h
<<\_ACEOF
10049 #define u_int8_t unsigned char
10054 { echo "$as_me:$LINENO: checking for int16_t" >&5
10055 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10056 if test "${ac_cv_type_int16_t+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 cat >conftest.
$ac_ext <<_ACEOF
10062 cat confdefs.h
>>conftest.
$ac_ext
10063 cat >>conftest.
$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 $ac_includes_default
10066 typedef int16_t ac__type_new_;
10070 if ((ac__type_new_ *) 0)
10072 if (sizeof (ac__type_new_))
10078 rm -f conftest.
$ac_objext
10079 if { (ac_try
="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10087 grep -v '^ *+' conftest.er1 >conftest.err
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.$ac_objext; then
10095 ac_cv_type_int16_t=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_cv_type_int16_t=no
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10106 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10107 if test $ac_cv_type_int16_t = yes; then
10111 cat >>confdefs.h <<\_ACEOF
10112 #define int16_t short
10115 $ac_includes_default
10116 #ifdef HAVE_SYS_BITYPES_H
10117 #include <sys/bitypes.h>
10121 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10122 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10123 if test "${ac_cv_type_u_int16_t+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 $ac_includes_default
10133 #ifdef HAVE_SYS_BITYPES_H
10134 #include <sys/bitypes.h>
10137 typedef u_int16_t ac__type_new_;
10141 if ((ac__type_new_ *) 0)
10143 if (sizeof (ac__type_new_))
10149 rm -f conftest.$ac_objext
10150 if { (ac_try="$ac_compile"
10151 case "(($ac_try" in
10152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10153 *) ac_try_echo
=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_compile") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1
>conftest.err
10160 cat conftest.err
>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest.
$ac_objext; then
10166 ac_cv_type_u_int16_t
=yes
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.
$ac_ext >&5
10171 ac_cv_type_u_int16_t
=no
10174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10176 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10177 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10178 if test $ac_cv_type_u_int16_t = yes; then
10182 cat >>confdefs.h
<<\_ACEOF
10183 #define u_int16_t unsigned short
10188 { echo "$as_me:$LINENO: checking for int32_t" >&5
10189 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10190 if test "${ac_cv_type_int32_t+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 cat >conftest.
$ac_ext <<_ACEOF
10196 cat confdefs.h
>>conftest.
$ac_ext
10197 cat >>conftest.
$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 $ac_includes_default
10200 #ifdef HAVE_SYS_BITYPES_H
10201 #include <sys/bitypes.h>
10204 typedef int32_t ac__type_new_;
10208 if ((ac__type_new_ *) 0)
10210 if (sizeof (ac__type_new_))
10216 rm -f conftest.
$ac_objext
10217 if { (ac_try
="$ac_compile"
10218 case "(($ac_try" in
10219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_compile") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1 >conftest.err
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest.$ac_objext; then
10233 ac_cv_type_int32_t=yes
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 ac_cv_type_int32_t=no
10241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10243 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10244 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10245 if test $ac_cv_type_int32_t = yes; then
10249 cat >>confdefs.h <<\_ACEOF
10250 #define int32_t int
10255 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10256 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10257 if test "${ac_cv_type_u_int32_t+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 cat >conftest.$ac_ext <<_ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #ifdef HAVE_SYS_BITYPES_H
10268 #include <sys/bitypes.h>
10271 typedef u_int32_t ac__type_new_;
10275 if ((ac__type_new_ *) 0)
10277 if (sizeof (ac__type_new_))
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10287 *) ac_try_echo
=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1
>conftest.err
10294 cat conftest.err
>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.
$ac_objext; then
10300 ac_cv_type_u_int32_t
=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.
$ac_ext >&5
10305 ac_cv_type_u_int32_t
=no
10308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10310 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10311 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10312 if test $ac_cv_type_u_int32_t = yes; then
10316 cat >>confdefs.h
<<\_ACEOF
10317 #define u_int32_t unsigned int
10322 { echo "$as_me:$LINENO: checking for int64_t" >&5
10323 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10324 if test "${ac_cv_type_int64_t+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 cat >conftest.
$ac_ext <<_ACEOF
10330 cat confdefs.h
>>conftest.
$ac_ext
10331 cat >>conftest.
$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 $ac_includes_default
10334 #ifdef HAVE_SYS_BITYPES_H
10335 #include <sys/bitypes.h>
10338 typedef int64_t ac__type_new_;
10342 if ((ac__type_new_ *) 0)
10344 if (sizeof (ac__type_new_))
10350 rm -f conftest.
$ac_objext
10351 if { (ac_try
="$ac_compile"
10352 case "(($ac_try" in
10353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_compile") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest.$ac_objext; then
10367 ac_cv_type_int64_t=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_cv_type_int64_t=no
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10377 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10378 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10379 if test $ac_cv_type_int64_t = yes; then
10383 cat >>confdefs.h <<\_ACEOF
10384 #define int64_t long long
10389 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10390 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10391 if test "${ac_cv_type_u_int64_t+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
10401 #ifdef HAVE_SYS_BITYPES_H
10402 #include <sys/bitypes.h>
10405 typedef u_int64_t ac__type_new_;
10409 if ((ac__type_new_ *) 0)
10411 if (sizeof (ac__type_new_))
10417 rm -f conftest.$ac_objext
10418 if { (ac_try="$ac_compile"
10419 case "(($ac_try" in
10420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10421 *) ac_try_echo
=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1
>conftest.err
10428 cat conftest.err
>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.
$ac_objext; then
10434 ac_cv_type_u_int64_t
=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.
$ac_ext >&5
10439 ac_cv_type_u_int64_t
=no
10442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10444 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10445 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10446 if test $ac_cv_type_u_int64_t = yes; then
10450 cat >>confdefs.h
<<\_ACEOF
10451 #define u_int64_t unsigned long long
10458 # We can't just check for <inttypes.h> - some systems have one that
10459 # doesn't define all the PRI[doxu]64 macros.
10462 for ac_header
in inttypes.h
10464 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 ac_res
=`eval echo '${'$as_ac_Header'}'`
10472 { echo "$as_me:$LINENO: result: $ac_res" >&5
10473 echo "${ECHO_T}$ac_res" >&6; }
10475 # Is the header compilable?
10476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10478 cat >conftest.
$ac_ext <<_ACEOF
10481 cat confdefs.h
>>conftest.
$ac_ext
10482 cat >>conftest.
$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 #include <$ac_header>
10487 rm -f conftest.
$ac_objext
10488 if { (ac_try
="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10496 grep -v '^ *+' conftest.er1 >conftest.err
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10504 ac_header_compiler=yes
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_header_compiler=no
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10514 echo "${ECHO_T}$ac_header_compiler" >&6; }
10516 # Is the header present?
10517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10519 cat >conftest.$ac_ext <<_ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 #include <$ac_header>
10527 if { (ac_try="$ac_cpp conftest.$ac_ext"
10528 case "(($ac_try" in
10529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10530 *) ac_try_echo
=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10535 grep -v '^ *+' conftest.er1
>conftest.err
10537 cat conftest.err
>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } >/dev
/null
&& {
10540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10543 ac_header_preproc
=yes
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.
$ac_ext >&5
10548 ac_header_preproc
=no
10551 rm -f conftest.err conftest.
$ac_ext
10552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10553 echo "${ECHO_T}$ac_header_preproc" >&6; }
10555 # So? What about this header?
10556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10562 ac_header_preproc
=yes
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10582 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 eval "$as_ac_Header=\$ac_header_preproc"
10587 ac_res
=`eval echo '${'$as_ac_Header'}'`
10588 { echo "$as_me:$LINENO: result: $ac_res" >&5
10589 echo "${ECHO_T}$ac_res" >&6; }
10592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10593 cat >>confdefs.h
<<_ACEOF
10594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10598 # OK, we have inttypes.h, but does it define those macros?
10600 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10601 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10602 cat >conftest.
$ac_ext <<_ACEOF
10606 cat confdefs.h
>>conftest.
$ac_ext
10607 cat >>conftest.
$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10610 #include <inttypes.h>
10612 #include <sys/types.h>
10613 #ifdef HAVE_SYS_BITYPES_H
10614 #include <sys/bitypes.h>
10619 printf("%" PRId64 "\n", (u_int64_t)1);
10620 printf("%" PRIo64 "\n", (u_int64_t)1);
10621 printf("%" PRIx64 "\n", (u_int64_t)1);
10622 printf("%" PRIu64 "\n", (u_int64_t)1);
10627 rm -f conftest.
$ac_objext
10628 if { (ac_try
="$ac_compile"
10629 case "(($ac_try" in
10630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_compile") 2>conftest.er1
10636 grep -v '^ *+' conftest.er1 >conftest.err
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && {
10641 test -z "$ac_c_werror_flag" ||
10642 test ! -s conftest.err
10643 } && test -s conftest.$ac_objext; then
10645 { echo "$as_me:$LINENO: result: yes" >&5
10646 echo "${ECHO_T}yes" >&6; }
10647 ac_lbl_inttypes_h_defines_formats=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10654 { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10656 ac_lbl_inttypes_h_defines_formats=no
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665 # We don't have inttypes.h, so it obviously can't define those
10668 ac_lbl_inttypes_h_defines_formats=no
10674 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10676 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10677 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10678 if test "$cross_compiling" = yes; then
10679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10680 See \`config.log
' for more details." >&5
10681 echo "$as_me: error: cannot run test program while cross compiling
10682 See \`config.log' for more details.
" >&2;}
10683 { (exit 1); exit 1; }; }
10685 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10693 # ifdef HAVE_INTTYPES_H
10694 #include <inttypes.h>
10696 # ifdef HAVE_SYS_BITYPES_H
10697 #include <sys/bitypes.h>
10700 #include <sys/types.h>
10706 sprintf(strbuf, "%016lx
", t << 32);
10707 if (strcmp(strbuf, "0000000100000000") == 0)
10715 rm -f conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>&5
10724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10726 { (case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_try") 2>&5
10733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10734 (exit $ac_status); }; }; then
10736 cat >>confdefs.h <<\_ACEOF
10737 #define PRId64 "ld
"
10740 cat >>confdefs.h <<\_ACEOF
10741 #define PRIo64 "lo
"
10744 cat >>confdefs.h <<\_ACEOF
10745 #define PRIx64 "lx
"
10748 cat >>confdefs.h <<\_ACEOF
10749 #define PRIu64 "lu
"
10752 { echo "$as_me:$LINENO: result
: yes" >&5
10753 echo "${ECHO_T}yes" >&6; }
10756 echo "$as_me: program exited with status
$ac_status" >&5
10757 echo "$as_me: failed program was
:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ( exit $ac_status )
10762 { echo "$as_me:$LINENO: result
: no
" >&5
10763 echo "${ECHO_T}no
" >&6; }
10766 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
10767 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
10768 if test "$cross_compiling" = yes; then
10769 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
10770 See \
`config.log' for more details." >&5
10771 echo "$as_me: error: cannot run test program while cross compiling
10772 See \`config.log
' for more details." >&2;}
10773 { (exit 1); exit 1; }; }
10775 cat >conftest.$ac_ext <<_ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10783 # ifdef HAVE_INTTYPES_H
10784 #include <inttypes.h>
10786 # ifdef HAVE_SYS_BITYPES_H
10787 #include <sys/bitypes.h>
10790 #include <sys/types.h>
10796 sprintf(strbuf, "%016llx", t << 32);
10797 if (strcmp(strbuf, "0000000100000000") == 0)
10805 rm -f conftest$ac_exeext
10806 if { (ac_try="$ac_link"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_link") 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
10816 { (case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_try") 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10826 cat >>confdefs.h <<\_ACEOF
10827 #define PRId64 "lld"
10830 cat >>confdefs.h <<\_ACEOF
10831 #define PRIo64 "llo"
10834 cat >>confdefs.h <<\_ACEOF
10835 #define PRIx64 "llx"
10838 cat >>confdefs.h <<\_ACEOF
10839 #define PRIu64 "llu"
10842 { echo "$as_me:$LINENO: result: yes" >&5
10843 echo "${ECHO_T}yes" >&6; }
10846 echo "$as_me: program exited with status $ac_status" >&5
10847 echo "$as_me: failed program was:" >&5
10848 sed 's
/^
/|
/' conftest.$ac_ext >&5
10850 ( exit $ac_status )
10852 { echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6; }
10856 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10857 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10858 if test "$cross_compiling" = yes; then
10859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10860 See \`config.log' for more details.
" >&5
10861 echo "$as_me: error
: cannot run
test program
while cross compiling
10862 See \
`config.log' for more details." >&2;}
10863 { (exit 1); exit 1; }; }
10865 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10873 # ifdef HAVE_INTTYPES_H
10874 #include <inttypes.h>
10876 # ifdef HAVE_SYS_BITYPES_H
10877 #include <sys/bitypes.h>
10880 #include <sys/types.h>
10886 sprintf(strbuf, "%016Lx", t << 32);
10887 if (strcmp(strbuf, "0000000100000000") == 0)
10895 rm -f conftest$ac_exeext
10896 if { (ac_try="$ac_link"
10897 case "(($ac_try" in
10898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10899 *) ac_try_echo
=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_link") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10906 { (case "(($ac_try" in
10907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10916 cat >>confdefs.h <<\_ACEOF
10917 #define PRId64 "Ld"
10920 cat >>confdefs.h <<\_ACEOF
10921 #define PRIo64 "Lo"
10924 cat >>confdefs.h <<\_ACEOF
10925 #define PRIx64 "Lx"
10928 cat >>confdefs.h <<\_ACEOF
10929 #define PRIu64 "Lu"
10932 { echo "$as_me:$LINENO: result: yes" >&5
10933 echo "${ECHO_T}yes" >&6; }
10936 echo "$as_me: program exited with status $ac_status" >&5
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 ( exit $ac_status )
10942 { echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6; }
10946 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10947 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10948 if test "$cross_compiling" = yes; then
10949 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10950 See \`config.log
' for more details." >&5
10951 echo "$as_me: error: cannot run test program while cross compiling
10952 See \`config.log' for more details.
" >&2;}
10953 { (exit 1); exit 1; }; }
10955 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10963 # ifdef HAVE_INTTYPES_H
10964 #include <inttypes.h>
10966 # ifdef HAVE_SYS_BITYPES_H
10967 #include <sys/bitypes.h>
10970 #include <sys/types.h>
10976 sprintf(strbuf, "%016qx
", t << 32);
10977 if (strcmp(strbuf, "0000000100000000") == 0)
10985 rm -f conftest$ac_exeext
10986 if { (ac_try="$ac_link"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>&5
10994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10996 { (case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_try") 2>&5
11003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11004 (exit $ac_status); }; }; then
11006 cat >>confdefs.h <<\_ACEOF
11007 #define PRId64 "qd
"
11010 cat >>confdefs.h <<\_ACEOF
11011 #define PRIo64 "qo
"
11014 cat >>confdefs.h <<\_ACEOF
11015 #define PRIx64 "qx
"
11018 cat >>confdefs.h <<\_ACEOF
11019 #define PRIu64 "qu
"
11022 { echo "$as_me:$LINENO: result
: yes" >&5
11023 echo "${ECHO_T}yes" >&6; }
11026 echo "$as_me: program exited with status
$ac_status" >&5
11027 echo "$as_me: failed program was
:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ( exit $ac_status )
11032 { echo "$as_me:$LINENO: result
: no
" >&5
11033 echo "${ECHO_T}no
" >&6; }
11035 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
11036 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
11037 { (exit 1); exit 1; }; }
11041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11073 # Check for some headers introduced in later versions of libpcap
11074 # and used by some printers.
11076 # Those headers use the {u_}intN_t types, so we must do this after
11077 # we check for what's needed to get them defined.
11079 savedcppflags="$CPPFLAGS"
11080 CPPFLAGS="$CPPFLAGS $V_INCLS"
11082 for ac_header in pcap/bluetooth.h
11084 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11085 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11086 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11088 echo $ECHO_N "(cached
) $ECHO_C" >&6
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #include <tcpdump-stdinc.h>
11098 #include <$ac_header>
11100 rm -f conftest.$ac_objext
11101 if { (ac_try="$ac_compile"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_compile") 2>conftest.er1
11109 grep -v '^ *+' conftest.er1 >conftest.err
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11113 (exit $ac_status); } && {
11114 test -z "$ac_c_werror_flag" ||
11115 test ! -s conftest.err
11116 } && test -s conftest.$ac_objext; then
11117 eval "$as_ac_Header=yes"
11119 echo "$as_me: failed program was
:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 eval "$as_ac_Header=no
"
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 ac_res=`eval echo '${'$as_ac_Header'}'`
11128 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11129 echo "${ECHO_T}$ac_res" >&6; }
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11140 for ac_header in pcap/usb.h
11142 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11143 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11144 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached
) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 #include <tcpdump-stdinc.h>
11156 #include <$ac_header>
11158 rm -f conftest.$ac_objext
11159 if { (ac_try="$ac_compile"
11160 case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_compile") 2>conftest.er1
11167 grep -v '^ *+' conftest.er1 >conftest.err
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest.$ac_objext; then
11175 eval "$as_ac_Header=yes"
11177 echo "$as_me: failed program was
:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 eval "$as_ac_Header=no
"
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 ac_res=`eval echo '${'$as_ac_Header'}'`
11186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11187 echo "${ECHO_T}$ac_res" >&6; }
11188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11197 CPPFLAGS="$savedcppflags"
11199 if test -n "$ac_tool_prefix"; then
11200 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
11201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11202 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11203 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11204 if test "${ac_cv_prog_RANLIB+set}" = set; then
11205 echo $ECHO_N "(cached
) $ECHO_C" >&6
11207 if test -n "$RANLIB"; then
11208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
11218 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11227 RANLIB=$ac_cv_prog_RANLIB
11228 if test -n "$RANLIB"; then
11229 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
11230 echo "${ECHO_T}$RANLIB" >&6; }
11232 { echo "$as_me:$LINENO: result
: no
" >&5
11233 echo "${ECHO_T}no
" >&6; }
11238 if test -z "$ac_cv_prog_RANLIB"; then
11239 ac_ct_RANLIB=$RANLIB
11240 # Extract the first word of "ranlib
", so it can be a program name with args.
11241 set dummy ranlib; ac_word=$2
11242 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11243 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11244 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11245 echo $ECHO_N "(cached
) $ECHO_C" >&6
11247 if test -n "$ac_ct_RANLIB"; then
11248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_prog_ac_ct_RANLIB="ranlib
"
11258 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11267 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11268 if test -n "$ac_ct_RANLIB"; then
11269 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
11270 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11272 { echo "$as_me:$LINENO: result
: no
" >&5
11273 echo "${ECHO_T}no
" >&6; }
11276 if test "x
$ac_ct_RANLIB" = x; then
11279 case $cross_compiling:$ac_tool_warned in
11281 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
11282 whose name does not start with the
host triplet. If you think this
11283 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
11284 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
11285 whose name does not start with the
host triplet. If you think this
11286 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
11287 ac_tool_warned=yes ;;
11289 RANLIB=$ac_ct_RANLIB
11292 RANLIB="$ac_cv_prog_RANLIB"
11297 if test "${LBL_CFLAGS+set}" = set; then
11298 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11300 if test -f .devel ; then
11302 # At least one version of HP's C compiler will not
11303 # exit with a non-zero exit status when given an
11304 # unknown -W flag, even if you use +We and the
11305 # number of the warning it gives for that issue.
11307 # We therefore skip all the warning option stuff
11310 if test "$ac_lbl_cc_is_hp_c" != yes; then
11312 { echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option
" >&5
11313 echo $ECHO_N "checking whether the compiler fails when given an unknown warning option...
$ECHO_C" >&6; }
11314 save_CFLAGS="$CFLAGS"
11315 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11340 grep -v '^ *+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.$ac_objext; then
11349 { echo "$as_me:$LINENO: result
: no
" >&5
11350 echo "${ECHO_T}no
" >&6; }
11352 # We're assuming this is clang, where
11353 # -Werror=unknown-warning-option is the appropriate
11354 # option to force the compiler to fail.
11356 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option
"
11359 echo "$as_me: failed program was
:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11363 { echo "$as_me:$LINENO: result
: yes" >&5
11364 echo "${ECHO_T}yes" >&6; }
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 CFLAGS="$save_CFLAGS"
11372 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wall option
" >&5
11373 echo $ECHO_N "checking whether the compiler supports the
-Wall option...
$ECHO_C" >&6; }
11374 save_CFLAGS="$CFLAGS"
11375 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest.$ac_objext; then
11409 { echo "$as_me:$LINENO: result
: yes" >&5
11410 echo "${ECHO_T}yes" >&6; }
11411 CFLAGS="$save_CFLAGS"
11412 V_CCOPT="$V_CCOPT -Wall"
11415 echo "$as_me: failed program was
:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11419 { echo "$as_me:$LINENO: result
: no
" >&5
11420 echo "${ECHO_T}no
" >&6; }
11421 CFLAGS="$save_CFLAGS"
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wmissing-prototypes option
" >&5
11429 echo $ECHO_N "checking whether the compiler supports the
-Wmissing-prototypes option...
$ECHO_C" >&6; }
11430 save_CFLAGS="$CFLAGS"
11431 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
11432 cat >conftest.$ac_ext <<_ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_compile") 2>conftest.er1
11456 grep -v '^ *+' conftest.er1 >conftest.err
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest.$ac_objext; then
11465 { echo "$as_me:$LINENO: result
: yes" >&5
11466 echo "${ECHO_T}yes" >&6; }
11467 CFLAGS="$save_CFLAGS"
11468 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
11471 echo "$as_me: failed program was
:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11475 { echo "$as_me:$LINENO: result
: no
" >&5
11476 echo "${ECHO_T}no
" >&6; }
11477 CFLAGS="$save_CFLAGS"
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wstrict-prototypes option
" >&5
11485 echo $ECHO_N "checking whether the compiler supports the
-Wstrict-prototypes option...
$ECHO_C" >&6; }
11486 save_CFLAGS="$CFLAGS"
11487 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11503 rm -f conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11521 { echo "$as_me:$LINENO: result
: yes" >&5
11522 echo "${ECHO_T}yes" >&6; }
11523 CFLAGS="$save_CFLAGS"
11524 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
11527 echo "$as_me: failed program was
:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11531 { echo "$as_me:$LINENO: result
: no
" >&5
11532 echo "${ECHO_T}no
" >&6; }
11533 CFLAGS="$save_CFLAGS"
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wwrite-strings option
" >&5
11541 echo $ECHO_N "checking whether the compiler supports the
-Wwrite-strings option...
$ECHO_C" >&6; }
11542 save_CFLAGS="$CFLAGS"
11543 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11559 rm -f conftest.$ac_objext
11560 if { (ac_try="$ac_compile"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_compile") 2>conftest.er1
11568 grep -v '^ *+' conftest.er1 >conftest.err
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11572 (exit $ac_status); } && {
11573 test -z "$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11575 } && test -s conftest.$ac_objext; then
11577 { echo "$as_me:$LINENO: result
: yes" >&5
11578 echo "${ECHO_T}yes" >&6; }
11579 CFLAGS="$save_CFLAGS"
11580 V_CCOPT="$V_CCOPT -Wwrite-strings"
11583 echo "$as_me: failed program was
:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11587 { echo "$as_me:$LINENO: result
: no
" >&5
11588 echo "${ECHO_T}no
" >&6; }
11589 CFLAGS="$save_CFLAGS"
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 { echo "$as_me:$LINENO: checking whether the compiler supports the
-Wpointer-arith option
" >&5
11597 echo $ECHO_N "checking whether the compiler supports the
-Wpointer-arith option...
$ECHO_C" >&6; }
11598 save_CFLAGS="$CFLAGS"
11599 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11633 { echo "$as_me:$LINENO: result
: yes" >&5
11634 echo "${ECHO_T}yes" >&6; }
11635 CFLAGS="$save_CFLAGS"
11636 V_CCOPT="$V_CCOPT -Wpointer-arith"
11639 echo "$as_me: failed program was
:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11643 { echo "$as_me:$LINENO: result
: no
" >&5
11644 echo "${ECHO_T}no
" >&6; }
11645 CFLAGS="$save_CFLAGS"
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652 { echo "$as_me:$LINENO: checking whether the compiler supports the
-W option
" >&5
11653 echo $ECHO_N "checking whether the compiler supports the
-W option...
$ECHO_C" >&6; }
11654 save_CFLAGS="$CFLAGS"
11655 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11671 rm -f conftest.$ac_objext
11672 if { (ac_try="$ac_compile"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
11689 { echo "$as_me:$LINENO: result
: yes" >&5
11690 echo "${ECHO_T}yes" >&6; }
11691 CFLAGS="$save_CFLAGS"
11692 V_CCOPT="$V_CCOPT -W"
11695 echo "$as_me: failed program was
:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11699 { echo "$as_me:$LINENO: result
: no
" >&5
11700 echo "${ECHO_T}no
" >&6; }
11701 CFLAGS="$save_CFLAGS"
11705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: checking whether the compiler supports generating dependencies
" >&5
11710 echo $ECHO_N "checking whether the compiler supports generating dependencies...
$ECHO_C" >&6; }
11711 if test "$GCC" = yes ; then
11713 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
11714 # though it's not); we assume that, in this case, the flag
11717 ac_lbl_dependency_flag="-M"
11720 # Not GCC or a compiler deemed to be GCC; what platform is
11721 # this? (We're assuming that if the compiler isn't GCC
11722 # it's the compiler from the vendor of the OS; that won't
11723 # necessarily be true for x86 platforms, where it might be
11724 # the Intel C compiler.)
11728 irix*|osf*|darwin*)
11730 # MIPS C for IRIX, DEC C, and clang all use -M.
11732 ac_lbl_dependency_flag="-M"
11739 ac_lbl_dependency_flag="-xM"
11744 # HP's older C compilers don't support this.
11745 # HP's newer C compilers support this with
11746 # either +M or +Make; the older compilers
11747 # interpret +M as something completely
11748 # different, so we use +Make so we don't
11749 # think it works with the older compilers.
11751 ac_lbl_dependency_flag="+Make
"
11756 # Not one of the above; assume no support for
11757 # generating dependencies.
11759 ac_lbl_dependency_flag=""
11765 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
11766 # complain about it?
11768 # Note: clang doesn't seem to exit with an error status when handed
11769 # an unknown non-warning error, even if you pass it
11770 # -Werror=unknown-warning-option. However, it always supports
11771 # -M, so the fact that this test always succeeds with clang
11774 if test ! -z "$ac_lbl_dependency_flag"; then
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 int main(void) { return 0; }
11783 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
11784 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
11785 { echo "$as_me:$LINENO: result
: yes, with
$ac_lbl_dependency_flag" >&5
11786 echo "${ECHO_T}yes, with
$ac_lbl_dependency_flag" >&6; }
11787 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
11788 MKDEP='${srcdir}/mkdep'
11790 { echo "$as_me:$LINENO: result
: no
" >&5
11791 echo "${ECHO_T}no
" >&6; }
11793 # We can't run mkdep, so have "make depend
" do
11800 { echo "$as_me:$LINENO: result
: no
" >&5
11801 echo "${ECHO_T}no
" >&6; }
11803 # We can't run mkdep, so have "make depend
" do
11810 if test "$GCC" = yes ; then
11811 if test "${LBL_CFLAGS+set}" != set; then
11812 if test "$ac_cv_prog_cc_g" = yes ; then
11813 V_CCOPT="-g $V_CCOPT"
11820 V_CCOPT="$V_CCOPT -n32"
11827 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11828 name="lbl
/os-
$os.h
"
11829 if test -f $name ; then
11830 ln -s $name os-proto.h
11832 cat >>confdefs.h <<\_ACEOF
11833 #define HAVE_OS_PROTO_H 1
11837 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
11838 echo "$as_me: WARNING: can't
find $name" >&2;}
11842 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
11843 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
11844 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11845 echo $ECHO_N "(cached
) $ECHO_C" >&6
11847 cat >conftest.$ac_ext <<_ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11854 # include <sys/types.h>
11855 # include <sys/socket.h>
11859 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11864 rm -f conftest.$ac_objext
11865 if { (ac_try="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_compile") 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest.$ac_objext; then
11881 ac_cv_lbl_sockaddr_has_sa_len=yes
11883 echo "$as_me: failed program was
:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_cv_lbl_sockaddr_has_sa_len=no
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11893 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11894 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_SOCKADDR_SA_LEN 1
11902 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
11903 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
11904 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11905 echo $ECHO_N "(cached
) $ECHO_C" >&6
11907 case "$host_cpu" in
11910 # These are CPU types where:
11912 # the CPU faults on an unaligned access, but at least some
11913 # OSes that support that CPU catch the fault and simulate
11914 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11915 # the simulation is slow, so we don't want to use it;
11917 # the CPU, I infer (from the old
11919 # XXX: should also check that they don't do weird things (like on arm)
11921 # comment) doesn't fault on unaligned accesses, but doesn't
11922 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11924 # for whatever reason, the test program doesn't work
11925 # (this has been claimed to be the case for several of those
11926 # CPUs - I don't know what the problem is; the problem
11927 # was reported as "the
test program dumps core
" for SuperH,
11928 # but that's what the test program is *supposed* to do -
11929 # it dumps core before it writes anything, so the test
11930 # for an empty output file should find an empty output
11931 # file and conclude that unaligned accesses don't work).
11933 # This run-time test won't work if you're cross-compiling, so
11934 # in order to support cross-compiling for a particular CPU,
11935 # we have to wire in the list of CPU types anyway, as far as
11936 # I know, so perhaps we should just have a set of CPUs on
11937 # which we know it doesn't work, a set of CPUs on which we
11938 # know it does work, and have the script just fail on other
11939 # cpu types and update it when such a failure occurs.
11941 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11942 ac_cv_lbl_unaligned_fail=yes
11946 cat >conftest.c <<EOF
11947 # include <sys/types.h>
11948 # include <sys/wait.h>
11949 # include <stdio.h>
11950 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11955 /* avoid "core dumped
" message */
11961 pid = waitpid(pid, &status, 0);
11964 exit(!WIFEXITED(status));
11967 i = *(unsigned int *)&a[1];
11972 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11973 conftest.c $LIBS >/dev/null 2>&1
11974 if test ! -x conftest ; then
11975 ac_cv_lbl_unaligned_fail=yes
11977 ./conftest >conftest.out
11978 if test ! -s conftest.out ; then
11979 ac_cv_lbl_unaligned_fail=yes
11981 ac_cv_lbl_unaligned_fail=no
11984 rm -f -r conftest* core core.conftest
11989 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
11990 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11991 if test $ac_cv_lbl_unaligned_fail = yes ; then
11993 cat >>confdefs.h <<\_ACEOF
11994 #define LBL_ALIGN 1
12000 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
12001 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
12002 if test "${ac_cv_var_h_errno+set}" = set; then
12003 echo $ECHO_N "(cached
) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 # include <sys/types.h>
12013 # include <netdb.h>
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12031 grep -v '^ *+' conftest.er1 >conftest.err
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.$ac_objext; then
12039 ac_cv_var_h_errno=yes
12041 echo "$as_me: failed program was
:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_cv_var_h_errno=no
12047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12050 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
12051 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
12052 if test "$ac_cv_var_h_errno" = "yes"; then
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_H_ERRNO 1
12060 # Check for OpenSSL libcrypto
12061 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto
" >&5
12062 echo $ECHO_N "checking whether to use OpenSSL libcrypto...
$ECHO_C" >&6; }
12063 # Specify location for both includes and libraries.
12064 want_libcrypto=ifavailable
12066 # Check whether --with-crypto was given.
12067 if test "${with_crypto+set}" = set; then
12068 withval=$with_crypto;
12069 if test $withval = no
12072 { echo "$as_me:$LINENO: result
: no
" >&5
12073 echo "${ECHO_T}no
" >&6; }
12074 elif test $withval = yes
12077 { echo "$as_me:$LINENO: result
: yes" >&5
12078 echo "${ECHO_T}yes" >&6; }
12084 # Use libcrypto if it's present, otherwise don't.
12086 want_libcrypto=ifavailable
12087 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
12088 echo "${ECHO_T}yes, if available
" >&6; }
12092 if test "$want_libcrypto" != "no
"; then
12094 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
12095 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
12096 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12097 echo $ECHO_N "(cached
) $ECHO_C" >&6
12099 ac_check_lib_save_LIBS=$LIBS
12100 LIBS="-lcrypto $LIBS"
12101 cat >conftest.$ac_ext <<_ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12114 char DES_cbc_encrypt ();
12118 return DES_cbc_encrypt ();
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest$ac_exeext &&
12140 $as_test_x conftest$ac_exeext; then
12141 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12143 echo "$as_me: failed program was
:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 ac_cv_lib_crypto_DES_cbc_encrypt=no
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12153 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12154 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12155 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12156 cat >>confdefs.h <<_ACEOF
12157 #define HAVE_LIBCRYPTO 1
12160 LIBS="-lcrypto $LIBS"
12165 for ac_header in openssl/evp.h
12167 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12168 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12169 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12170 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12171 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12172 echo $ECHO_N "(cached
) $ECHO_C" >&6
12174 ac_res=`eval echo '${'$as_ac_Header'}'`
12175 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12176 echo "${ECHO_T}$ac_res" >&6; }
12178 # Is the header compilable?
12179 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12180 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 #include <$ac_header>
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 ac_header_compiler=yes
12209 echo "$as_me: failed program was
:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_header_compiler=no
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12217 echo "${ECHO_T}$ac_header_compiler" >&6; }
12219 # Is the header present?
12220 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12221 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 #include <$ac_header>
12230 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12238 grep -v '^ *+' conftest.er1 >conftest.err
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12242 (exit $ac_status); } >/dev/null && {
12243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12246 ac_header_preproc=yes
12248 echo "$as_me: failed program was
:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12251 ac_header_preproc=no
12254 rm -f conftest.err conftest.$ac_ext
12255 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12256 echo "${ECHO_T}$ac_header_preproc" >&6; }
12258 # So? What about this header?
12259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12261 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12262 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12263 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12265 ac_header_preproc=yes
12268 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12269 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12270 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12271 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12272 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12273 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12274 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12275 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12276 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12278 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12279 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12283 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12284 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12285 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12286 echo $ECHO_N "(cached
) $ECHO_C" >&6
12288 eval "$as_ac_Header=\
$ac_header_preproc"
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12306 if test "$missing_includes" = "yes"; then
12307 CPPFLAGS="$CPPFLAGS -I$srcdir/missing
"
12308 V_INCLS="$V_INCLS -I$srcdir/missing
"
12320 # Find a good install program. We prefer a C program (faster),
12321 # so one script is as good as another. But avoid the broken or
12322 # incompatible versions:
12323 # SysV /etc/install, /usr/sbin/install
12324 # SunOS /usr/etc/install
12325 # IRIX /sbin/install
12327 # AmigaOS /C/install, which installs bootblocks on floppy discs
12328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
12331 # OS/2's system install, which has a completely different semantic
12332 # ./install, which can be erroneously created by make from ./install.sh.
12333 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
12334 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
12335 if test -z "$INSTALL"; then
12336 if test "${ac_cv_path_install+set}" = set; then
12337 echo $ECHO_N "(cached
) $ECHO_C" >&6
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12343 test -z "$as_dir" && as_dir=.
12344 # Account for people who put trailing slashes in PATH elements.
12346 ./ | .// | /cC/* | \
12347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12348 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12351 # OSF1 and SCO ODT 3.0 have their own names for install.
12352 # Don't use installbsd from OSF since it installs stuff as root
12354 for ac_prog in ginstall scoinst install; do
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12357 if test $ac_prog = install &&
12358 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12359 # AIX install. It has an incompatible calling convention.
12361 elif test $ac_prog = install &&
12362 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12363 # program-specific install script used by HP pwplus--don't use.
12366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12379 if test "${ac_cv_path_install+set}" = set; then
12380 INSTALL=$ac_cv_path_install
12382 # As a last resort, use the slow shell script. Don't cache a
12383 # value for INSTALL within a source directory, because that will
12384 # break other packages using the cache if that directory is
12385 # removed, or if the value is a relative name.
12386 INSTALL=$ac_install_sh
12389 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
12390 echo "${ECHO_T}$INSTALL" >&6; }
12392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12393 # It thinks the first close brace ends the variable substitution.
12394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12401 ac_config_headers="$ac_config_headers config.h
"
12404 ac_config_commands="$ac_config_commands default-1
"
12406 ac_config_files="$ac_config_files Makefile tcpdump
.1"
12408 cat >confcache <<\_ACEOF
12409 # This file is a shell script that caches the results of configure
12410 # tests run on this system so they can be shared between configure
12411 # scripts and configure runs, see configure's option --config-cache.
12412 # It is not useful on other systems. If it contains results you don't
12413 # want to keep, you may remove or edit it.
12415 # config.status only pays attention to the cache file if you give it
12416 # the --recheck option to rerun configure.
12418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12420 # following values.
12424 # The following way of writing the cache mishandles newlines in values,
12425 # but we know of no workaround that is simple, portable, and efficient.
12426 # So, we kill variables containing newlines.
12427 # Ultrix sh set writes to stderr and can't be redirected directly,
12428 # and sets the high bit in the cache file unless we assign to the vars.
12430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12431 eval ac_val=\$$ac_var
12435 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
12436 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
12439 _ | IFS | as_nl) ;; #(
12440 *) $as_unset $ac_var ;;
12446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12447 *${as_nl}ac_space=\ *)
12448 # `set' does not quote correctly, so add quotes (double-quote
12449 # substitution turns \\\\ into \\, and sed turns \\ into \).
12452 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
12455 # `set' quotes correctly as required by POSIX, so do not add quotes.
12456 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
12465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12470 if test -w "$cache_file"; then
12471 test "x
$cache_file" != "x
/dev
/null
" &&
12472 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
12473 echo "$as_me: updating cache
$cache_file" >&6;}
12474 cat confcache >$cache_file
12476 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
12477 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
12482 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
12483 # Let make expand exec_prefix.
12484 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
12486 DEFS=-DHAVE_CONFIG_H
12490 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
12491 # 1. Remove the extension, and $U if already installed.
12492 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12493 ac_i=`echo "$ac_i" | sed "$ac_script"`
12494 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12495 # will be set to the directory where LIBOBJS objects are built.
12496 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
12497 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
12499 LIBOBJS=$ac_libobjs
12501 LTLIBOBJS=$ac_ltlibobjs
12505 : ${CONFIG_STATUS=./config.status}
12506 ac_clean_files_save=$ac_clean_files
12507 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12508 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
12509 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
12510 cat >$CONFIG_STATUS <<_ACEOF
12512 # Generated by $as_me.
12513 # Run this file to recreate the current configuration.
12514 # Compiler output produced by configure, useful for debugging
12515 # configure, is in config.log if it exists.
12518 ac_cs_recheck=false
12520 SHELL=\${CONFIG_SHELL-$SHELL}
12523 cat >>$CONFIG_STATUS <<\_ACEOF
12524 ## --------------------- ##
12525 ## M4sh Initialization. ##
12526 ## --------------------- ##
12528 # Be more Bourne compatible
12529 DUALCASE=1; export DUALCASE # for MKS sh
12530 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12533 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12534 # is contrary to our usage. Disable this feature.
12535 alias -g '${1+"$@"}'='"$@
"'
12536 setopt NO_GLOB_SUBST
12538 case `(set -o) 2>/dev/null` in
12539 *posix*) set -o posix ;;
12548 # Avoid depending upon Character Ranges.
12549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12552 as_cr_digits='0123456789'
12553 as_cr_alnum=$as_cr_Letters$as_cr_digits
12555 # The user is always right.
12556 if test "${PATH_SEPARATOR+set}" != set; then
12557 echo "#! /bin/sh" >conf$$.sh
12558 echo "exit 0" >>conf$$.sh
12560 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12568 # Support unset when possible.
12569 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12577 # We need space, tab and new line, in precisely that order. Quoting is
12578 # there to prevent editors from complaining about space-tab.
12579 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12580 # splitting by setting IFS to empty value.)
12585 # Find who we are. Look in the path if we contain no directory separator.
12587 *[\\/]* ) as_myself
=$0 ;;
12588 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12589 for as_dir
in $PATH
12592 test -z "$as_dir" && as_dir
=.
12593 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12599 # We did not find ourselves, most probably we were run as `sh COMMAND'
12600 # in which case we are not to be found in the path.
12601 if test "x$as_myself" = x
; then
12604 if test ! -f "$as_myself"; then
12605 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12606 { (exit 1); exit 1; }
12609 # Work around bugs in pre-3.0 UWIN ksh.
12610 for as_var
in ENV MAIL MAILPATH
12611 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12621 LC_TELEPHONE LC_TIME
12623 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12624 eval $as_var=C
; export $as_var
12626 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12630 # Required to use basename.
12631 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12632 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12638 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12639 as_basename
=basename
12645 # Name of the executable.
12646 as_me
=`$as_basename -- "$0" ||
12647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12648 X"$0" : 'X\(//\)$' \| \
12649 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12651 sed '/^.*\/\([^/][^/]*\)\/*$/{
12670 as_lineno_1
=$LINENO
12671 as_lineno_2
=$LINENO
12672 test "x$as_lineno_1" != "x$as_lineno_2" &&
12673 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12675 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12676 # uniformly replaced by the line number. The first 'sed' inserts a
12677 # line-number line after each line using $LINENO; the second 'sed'
12678 # does the real work. The second script uses 'N' to pair each
12679 # line-number line with the line containing $LINENO, and appends
12680 # trailing '-' during substitution so that $LINENO is not a special
12681 # case at line end.
12682 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12683 # scripts with optimization help from Paolo Bonzini. Blame Lee
12684 # E. McMahon (1931-1989) for sed's syntax. :-)
12696 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12699 ' >$as_me.lineno
&&
12700 chmod +x
"$as_me.lineno" ||
12701 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12702 { (exit 1); exit 1; }; }
12704 # Don't try to exec as it changes $[0], causing all sort of problems
12705 # (the dirname of $[0] is not the place where we might find the
12706 # original and so on. Autoconf is especially sensitive to this).
12707 .
"./$as_me.lineno"
12708 # Exit status is that of the last command.
12713 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12719 ECHO_C
= ECHO_N
= ECHO_T
=
12720 case `echo -n x` in
12722 case `echo 'x\c'` in
12723 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12730 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12731 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12737 rm -f conf$$ conf$$.exe conf$$.
file
12738 if test -d conf$$.dir
; then
12739 rm -f conf$$.dir
/conf$$.
file
12745 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12747 # ... but there are two gotchas:
12748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12750 # In both cases, we have to default to `cp -p'.
12751 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12753 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12758 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12759 rmdir conf$$.dir
2>/dev
/null
12761 if mkdir
-p .
2>/dev
/null
; then
12764 test -d .
/-p && rmdir .
/-p
12768 if test -x / >/dev
/null
2>&1; then
12769 as_test_x
='test -x'
12771 if ls -dL / >/dev
/null
2>&1; then
12778 if test -d "$1"; then
12784 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12785 ???[sx]*):;;*)false;;esac;fi
12789 as_executable_p
=$as_test_x
12791 # Sed expression to map a string onto a valid CPP name.
12792 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12794 # Sed expression to map a string onto a valid variable name.
12795 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12800 # Save the log message, to keep $[0] and so on meaningful, and to
12801 # report actual input values of CONFIG_FILES etc. instead of their
12802 # values after options handling.
12804 This file was extended by $as_me, which was
12805 generated by GNU Autoconf 2.61. Invocation command line was
12807 CONFIG_FILES = $CONFIG_FILES
12808 CONFIG_HEADERS = $CONFIG_HEADERS
12809 CONFIG_LINKS = $CONFIG_LINKS
12810 CONFIG_COMMANDS = $CONFIG_COMMANDS
12813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12818 cat >>$CONFIG_STATUS <<_ACEOF
12819 # Files that config.status was made for.
12820 config_files="$ac_config_files"
12821 config_headers="$ac_config_headers"
12822 config_commands="$ac_config_commands"
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12828 \`$as_me' instantiates files from templates according to the
12829 current configuration.
12831 Usage: $0 [OPTIONS] [FILE]...
12833 -h, --help print this help, then exit
12834 -V, --version print version number and configuration settings, then exit
12835 -q, --quiet do not print progress messages
12836 -d, --debug don't remove temporary files
12837 --recheck update $as_me by reconfiguring in the same conditions
12838 --file=FILE[:TEMPLATE]
12839 instantiate the configuration file FILE
12840 --header=FILE[:TEMPLATE]
12841 instantiate the configuration header FILE
12843 Configuration files:
12846 Configuration headers:
12849 Configuration commands:
12852 Report bugs to <bug-autoconf@gnu.org>."
12855 cat >>$CONFIG_STATUS <<_ACEOF
12858 configured by $0, generated by GNU Autoconf 2.61,
12859 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12861 Copyright (C) 2006 Free Software Foundation, Inc.
12862 This config.status script is free software; the Free Software Foundation
12863 gives unlimited permission to copy, distribute and modify it."
12870 cat >>$CONFIG_STATUS <<\_ACEOF
12871 # If no file are specified by the user, then we need to provide default
12872 # value. By we need to know if files were specified by the user.
12878 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12879 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12890 # Handling of the options.
12891 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12893 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12894 echo "$ac_cs_version"; exit ;;
12895 --debug |
--debu |
--deb |
--de |
--d |
-d )
12897 --file |
--fil |
--fi |
--f )
12899 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12900 ac_need_defaults
=false
;;
12901 --header |
--heade |
--head |
--hea )
12903 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12904 ac_need_defaults
=false
;;
12906 # Conflict between --help and --header
12907 { echo "$as_me: error: ambiguous option: $1
12908 Try \`$0 --help' for more information." >&2
12909 { (exit 1); exit 1; }; };;
12910 --help |
--hel |
-h )
12911 echo "$ac_cs_usage"; exit ;;
12912 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12913 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12916 # This is an error.
12917 -*) { echo "$as_me: error: unrecognized option: $1
12918 Try \`$0 --help' for more information." >&2
12919 { (exit 1); exit 1; }; } ;;
12921 *) ac_config_targets
="$ac_config_targets $1"
12922 ac_need_defaults
=false
;;
12928 ac_configure_extra_args
=
12930 if $ac_cs_silent; then
12932 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12936 cat >>$CONFIG_STATUS <<_ACEOF
12937 if \$ac_cs_recheck; then
12938 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12939 CONFIG_SHELL=$SHELL
12940 export CONFIG_SHELL
12941 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12945 cat >>$CONFIG_STATUS <<\_ACEOF
12949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12950 ## Running $as_me. ##
12956 cat >>$CONFIG_STATUS <<_ACEOF
12964 cat >>$CONFIG_STATUS <<\_ACEOF
12966 # Handling of arguments.
12967 for ac_config_target
in $ac_config_targets
12969 case $ac_config_target in
12970 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12971 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12972 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12973 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
12975 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12976 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12977 { (exit 1); exit 1; }; };;
12982 # If the user did not use the arguments to specify the items to instantiate,
12983 # then the envvar interface is used. Set only those that are not.
12984 # We use the long form for the default assignment because of an extremely
12985 # bizarre bug on SunOS 4.1.3.
12986 if $ac_need_defaults; then
12987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12992 # Have a temporary directory for convenience. Make it in the build tree
12993 # simply because there is no reason against having it here, and in addition,
12994 # creating and moving files from /tmp can sometimes cause problems.
12995 # Hook for its removal unless debugging.
12996 # Note that there is a small window in which the directory will not be cleaned:
12997 # after its creation but before its name has been assigned to `$tmp'.
13001 trap 'exit_status=$?
13002 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13004 trap '{ (exit 1); exit 1; }' 1 2 13 15
13006 # Create a (secure) tmp directory for tmp files.
13009 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13010 test -n "$tmp" && test -d "$tmp"
13013 tmp
=.
/conf$$
-$RANDOM
13014 (umask 077 && mkdir
"$tmp")
13017 echo "$me: cannot create a temporary directory in ." >&2
13018 { (exit 1); exit 1; }
13022 # Set up the sed scripts for CONFIG_FILES section.
13025 # No need to generate the scripts if there are no CONFIG_FILES.
13026 # This happens for instance when ./config.status config.h
13027 if test -n "$CONFIG_FILES"; then
13034 for ac_last_try
in false false false false false
:; do
13035 cat >conf$
$subs.
sed <<_ACEOF
13036 SHELL!$SHELL$ac_delim
13037 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13038 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13039 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13040 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13041 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13042 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13043 exec_prefix!$exec_prefix$ac_delim
13044 prefix!$prefix$ac_delim
13045 program_transform_name!$program_transform_name$ac_delim
13046 bindir!$bindir$ac_delim
13047 sbindir!$sbindir$ac_delim
13048 libexecdir!$libexecdir$ac_delim
13049 datarootdir!$datarootdir$ac_delim
13050 datadir!$datadir$ac_delim
13051 sysconfdir!$sysconfdir$ac_delim
13052 sharedstatedir!$sharedstatedir$ac_delim
13053 localstatedir!$localstatedir$ac_delim
13054 includedir!$includedir$ac_delim
13055 oldincludedir!$oldincludedir$ac_delim
13056 docdir!$docdir$ac_delim
13057 infodir!$infodir$ac_delim
13058 htmldir!$htmldir$ac_delim
13059 dvidir!$dvidir$ac_delim
13060 pdfdir!$pdfdir$ac_delim
13061 psdir!$psdir$ac_delim
13062 libdir!$libdir$ac_delim
13063 localedir!$localedir$ac_delim
13064 mandir!$mandir$ac_delim
13065 DEFS!$DEFS$ac_delim
13066 ECHO_C!$ECHO_C$ac_delim
13067 ECHO_N!$ECHO_N$ac_delim
13068 ECHO_T!$ECHO_T$ac_delim
13069 LIBS!$LIBS$ac_delim
13070 build_alias!$build_alias$ac_delim
13071 host_alias!$host_alias$ac_delim
13072 target_alias!$target_alias$ac_delim
13073 build!$build$ac_delim
13074 build_cpu!$build_cpu$ac_delim
13075 build_vendor!$build_vendor$ac_delim
13076 build_os!$build_os$ac_delim
13077 host!$host$ac_delim
13078 host_cpu!$host_cpu$ac_delim
13079 host_vendor!$host_vendor$ac_delim
13080 host_os!$host_os$ac_delim
13081 SHLICC2!$SHLICC2$ac_delim
13083 CFLAGS!$CFLAGS$ac_delim
13084 LDFLAGS!$LDFLAGS$ac_delim
13085 CPPFLAGS!$CPPFLAGS$ac_delim
13086 ac_ct_CC!$ac_ct_CC$ac_delim
13087 EXEEXT!$EXEEXT$ac_delim
13088 OBJEXT!$OBJEXT$ac_delim
13090 GREP!$GREP$ac_delim
13091 EGREP!$EGREP$ac_delim
13092 LIBOBJS!$LIBOBJS$ac_delim
13093 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
13094 RANLIB!$RANLIB$ac_delim
13095 DEPENDENCY_CFLAG!$DEPENDENCY_CFLAG$ac_delim
13096 MKDEP!$MKDEP$ac_delim
13097 V_CCOPT!$V_CCOPT$ac_delim
13098 V_DEFS!$V_DEFS$ac_delim
13099 V_GROUP!$V_GROUP$ac_delim
13100 V_INCLS!$V_INCLS$ac_delim
13101 V_PCAPDEP!$V_PCAPDEP$ac_delim
13102 LOCALSRC!$LOCALSRC$ac_delim
13103 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
13104 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
13105 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13106 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13107 INSTALL_DATA!$INSTALL_DATA$ac_delim
13108 LTLIBOBJS!$LTLIBOBJS$ac_delim
13111 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
13113 elif $ac_last_try; then
13114 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13115 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13116 { (exit 1); exit 1; }; }
13118 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13122 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13123 if test -n "$ac_eof"; then
13124 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13125 ac_eof
=`expr $ac_eof + 1`
13128 cat >>$CONFIG_STATUS <<_ACEOF
13129 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13133 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13134 s/^/s,@/; s/!/@,|#_!!_#|/
13137 s/'"$ac_delim"'$/,g/; t
13139 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13140 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13141 rm -f conf$
$subs.
sed
13142 cat >>$CONFIG_STATUS <<_ACEOF
13149 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13150 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13151 # trailing colons and then remove the whole line if VPATH becomes empty
13152 # (actually we leave an empty line to preserve line numbers).
13153 if test "x$srcdir" = x.
; then
13154 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13155 s/:*\$(srcdir):*/:/
13156 s/:*\${srcdir}:*/:/
13158 s/^\([^=]*=[ ]*\):*/\1/
13164 cat >>$CONFIG_STATUS <<\_ACEOF
13165 fi # test -n "$CONFIG_FILES"
13168 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
13171 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13173 case $ac_mode$ac_tag in
13175 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13176 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13177 { (exit 1); exit 1; }; };;
13178 :[FH
]-) ac_tag
=-:-;;
13179 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13196 -) ac_f
="$tmp/stdin";;
13197 *) # Look for the file first in the build tree, then in the source tree
13198 # (if the path is not absolute). The absolute path cannot be DOS-style,
13199 # because $ac_f cannot contain `:'.
13203 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13205 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13206 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13207 { (exit 1); exit 1; }; };;
13209 ac_file_inputs
="$ac_file_inputs $ac_f"
13212 # Let's still pretend it is `configure' which instantiates (i.e., don't
13213 # use $as_me), people would be surprised to read:
13214 # /* config.h. Generated by config.status. */
13215 configure_input
="Generated from "`IFS=:
13216 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13217 if test x
"$ac_file" != x-
; then
13218 configure_input
="$ac_file. $configure_input"
13219 { echo "$as_me:$LINENO: creating $ac_file" >&5
13220 echo "$as_me: creating $ac_file" >&6;}
13224 *:-:* |
*:-) cat >"$tmp/stdin";;
13229 ac_dir
=`$as_dirname -- "$ac_file" ||
13230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231 X"$ac_file" : 'X\(//\)[^/]' \| \
13232 X"$ac_file" : 'X\(//\)$' \| \
13233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13239 /^X\(\/\/\)[^/].*/{
13254 -*) as_dir
=.
/$as_dir;;
13256 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13260 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13261 *) as_qdir
=$as_dir;;
13263 as_dirs
="'$as_qdir' $as_dirs"
13264 as_dir
=`$as_dirname -- "$as_dir" ||
13265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13266 X"$as_dir" : 'X\(//\)[^/]' \| \
13267 X"$as_dir" : 'X\(//\)$' \| \
13268 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13274 /^X\(\/\/\)[^/].*/{
13287 test -d "$as_dir" && break
13289 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13290 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13291 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13292 { (exit 1); exit 1; }; }; }
13296 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13298 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13299 # A ".." for each directory in $ac_dir_suffix.
13300 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13301 case $ac_top_builddir_sub in
13302 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13303 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13306 ac_abs_top_builddir
=$ac_pwd
13307 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13308 # for backward compatibility:
13309 ac_top_builddir
=$ac_top_build_prefix
13312 .
) # We are building in place.
13314 ac_top_srcdir
=$ac_top_builddir_sub
13315 ac_abs_top_srcdir
=$ac_pwd ;;
13316 [\\/]* | ?
:[\\/]* ) # Absolute name.
13317 ac_srcdir
=$srcdir$ac_dir_suffix;
13318 ac_top_srcdir
=$srcdir
13319 ac_abs_top_srcdir
=$srcdir ;;
13320 *) # Relative name.
13321 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13322 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13323 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13325 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13335 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13336 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13340 cat >>$CONFIG_STATUS <<\_ACEOF
13341 # If the template does not know about datarootdir, expand it.
13342 # FIXME: This hack should be removed a few years after 2.60.
13343 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13345 case `sed -n '/datarootdir/ {
13354 ' $ac_file_inputs` in
13355 *datarootdir
*) ac_datarootdir_seen
=yes;;
13356 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13357 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13358 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13360 cat >>$CONFIG_STATUS <<_ACEOF
13361 ac_datarootdir_hack='
13362 s&@datadir@&$datadir&g
13363 s&@docdir@&$docdir&g
13364 s&@infodir@&$infodir&g
13365 s&@localedir@&$localedir&g
13366 s&@mandir@&$mandir&g
13367 s&\\\${datarootdir}&$datarootdir&g' ;;
13371 # Neutralize VPATH when `$srcdir' = `.'.
13372 # Shell code in configure.ac might set extrasub.
13373 # FIXME: do we really want to maintain this feature?
13374 cat >>$CONFIG_STATUS <<_ACEOF
13378 cat >>$CONFIG_STATUS <<\_ACEOF
13380 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13381 s
&@configure_input@
&$configure_input&;t t
13382 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13383 s
&@srcdir@
&$ac_srcdir&;t t
13384 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13385 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13386 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13387 s
&@builddir@
&$ac_builddir&;t t
13388 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13389 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13390 s
&@INSTALL@
&$ac_INSTALL&;t t
13391 $ac_datarootdir_hack
13392 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
13394 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13395 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13397 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13398 which seems to be undefined. Please make sure it is defined." >&5
13399 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13400 which seems to be undefined. Please make sure it is defined." >&2;}
13404 -) cat "$tmp/out"; rm -f "$tmp/out";;
13405 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13414 # Transform confdefs.h into a sed script `conftest.defines', that
13415 # substitutes the proper values into config.h.in to produce config.h.
13416 rm -f conftest.defines conftest.
tail
13417 # First, append a space to every undef/define line, to ease matching.
13418 echo 's/$/ /' >conftest.defines
13419 # Then, protect against being on the right side of a sed subst, or in
13420 # an unquoted here document, in config.status. If some macros were
13421 # called several times there might be several #defines for the same
13422 # symbol, which is useless. But do not sort them, since the last
13423 # AC_DEFINE must be honored.
13424 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
13425 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13426 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13427 # PARAMS is the parameter list in the macro definition--in most cases, it's
13428 # just an empty string.
13429 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13430 ac_dB
='\\)[ (].*,\\1define\\2'
13438 s/^[ ]*#[ ]*define[ ][ ]*//
13443 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13444 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13445 ' >>conftest.defines
13447 # Remove the space that was appended to ease matching.
13448 # Then replace #undef with comments. This is necessary, for
13449 # example, in the case of _POSIX_SOURCE, which is predefined and required
13450 # on some systems where configure will not decide to define it.
13451 # (The regexp can be short, since the line contains either #define or #undef.)
13453 s,^[ #]*u.*,/* & */,' >>conftest.defines
13455 # Break up conftest.defines:
13456 ac_max_sed_lines
=50
13458 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13459 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13460 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13462 ac_in
='$ac_file_inputs'
13463 ac_out
='"$tmp/out1"'
13464 ac_nxt
='"$tmp/out2"'
13468 # Write a here document:
13469 cat >>$CONFIG_STATUS <<_ACEOF
13470 # First, check the format of the line:
13471 cat >"\$tmp/defines.sed" <<\\CEOF
13472 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13473 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13477 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
13479 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13480 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
13481 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
13482 grep . conftest.
tail >/dev
/null ||
break
13483 rm -f conftest.defines
13484 mv conftest.
tail conftest.defines
13486 rm -f conftest.defines conftest.
tail
13488 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13489 cat >>$CONFIG_STATUS <<\_ACEOF
13490 if test x
"$ac_file" != x-
; then
13491 echo "/* $configure_input */" >"$tmp/config.h"
13492 cat "$ac_result" >>"$tmp/config.h"
13493 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
13494 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13495 echo "$as_me: $ac_file is unchanged" >&6;}
13498 mv "$tmp/config.h" $ac_file
13501 echo "/* $configure_input */"
13507 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13508 echo "$as_me: executing $ac_file commands" >&6;}
13513 case $ac_file$ac_mode in
13514 "default-1":C
) if test -f .devel
; then
13515 echo timestamp
> stamp-h
13516 cat Makefile-devel-adds
>> Makefile
13524 { (exit 0); exit 0; }
13526 chmod +x
$CONFIG_STATUS
13527 ac_clean_files
=$ac_clean_files_save
13530 # configure is writing to config.log, and then calls config.status.
13531 # config.status does its own redirection, appending to config.log.
13532 # Unfortunately, on DOS this fails, as config.log is still kept open
13533 # by configure, so config.status won't be able to write to it; its
13534 # output is simply discarded. So we exec the FD to /dev/null,
13535 # effectively closing config.log, so it can be properly (re)opened and
13536 # appended to by config.status. When coming back to configure, we
13537 # need to make the FD available again.
13538 if test "$no_create" != yes; then
13540 ac_config_status_args
=
13541 test "$silent" = yes &&
13542 ac_config_status_args
="$ac_config_status_args --quiet"
13544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13547 # would make configure fail if this is the last instruction.
13548 $ac_cs_success ||
{ (exit 1); exit 1; }