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
689 ac_precious_vars
='build_alias
700 # Initialize some variables set by options.
702 ac_init_version
=false
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
712 program_transform_name
=s
,x
,x
,
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir
='${exec_prefix}/bin'
727 sbindir
='${exec_prefix}/sbin'
728 libexecdir
='${exec_prefix}/libexec'
729 datarootdir
='${prefix}/share'
730 datadir
='${datarootdir}'
731 sysconfdir
='${prefix}/etc'
732 sharedstatedir
='${prefix}/com'
733 localstatedir
='${prefix}/var'
734 includedir
='${prefix}/include'
735 oldincludedir
='/usr/include'
736 docdir
='${datarootdir}/doc/${PACKAGE}'
737 infodir
='${datarootdir}/info'
742 libdir
='${exec_prefix}/lib'
743 localedir
='${datarootdir}/locale'
744 mandir
='${datarootdir}/man'
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\
$ac_option
758 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
762 # Accept the important Cygnus configure options, so we can diagnose typos.
764 case $ac_dashdash$ac_option in
768 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
770 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
773 -build |
--build |
--buil |
--bui |
--bu)
774 ac_prev
=build_alias
;;
775 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
776 build_alias
=$ac_optarg ;;
778 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
779 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
780 ac_prev
=cache_file
;;
781 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
782 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
783 cache_file
=$ac_optarg ;;
786 cache_file
=config.cache
;;
788 -datadir |
--datadir |
--datadi |
--datad)
790 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
791 datadir
=$ac_optarg ;;
793 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
794 |
--dataroo |
--dataro |
--datar)
795 ac_prev
=datarootdir
;;
796 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
797 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
798 datarootdir
=$ac_optarg ;;
800 -disable-* |
--disable-*)
801 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
807 eval enable_
$ac_feature=no
;;
809 -docdir |
--docdir |
--docdi |
--doc |
--do)
811 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
814 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
816 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
819 -enable-* |
--enable-*)
820 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_
$ac_feature=\
$ac_optarg ;;
828 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
829 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
830 |
--exec |
--exe |
--ex)
831 ac_prev
=exec_prefix
;;
832 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
833 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
834 |
--exec=* |
--exe=* |
--ex=*)
835 exec_prefix
=$ac_optarg ;;
837 -gas |
--gas |
--ga |
--g)
838 # Obsolete; use --with-gas.
841 -help |
--help |
--hel |
--he |
-h)
843 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
844 ac_init_help
=recursive
;;
845 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
846 ac_init_help
=short
;;
848 -host |
--host |
--hos |
--ho)
849 ac_prev
=host_alias
;;
850 -host=* |
--host=* |
--hos=* |
--ho=*)
851 host_alias
=$ac_optarg ;;
853 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
855 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
857 htmldir
=$ac_optarg ;;
859 -includedir |
--includedir |
--includedi |
--included |
--include \
860 |
--includ |
--inclu |
--incl |
--inc)
861 ac_prev
=includedir
;;
862 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
863 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
864 includedir
=$ac_optarg ;;
866 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
868 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
869 infodir
=$ac_optarg ;;
871 -libdir |
--libdir |
--libdi |
--libd)
873 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
876 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
877 |
--libexe |
--libex |
--libe)
878 ac_prev
=libexecdir
;;
879 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
880 |
--libexe=* |
--libex=* |
--libe=*)
881 libexecdir
=$ac_optarg ;;
883 -localedir |
--localedir |
--localedi |
--localed |
--locale)
885 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
886 localedir
=$ac_optarg ;;
888 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
889 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
890 ac_prev
=localstatedir
;;
891 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
892 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
893 localstatedir
=$ac_optarg ;;
895 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
897 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
901 # Obsolete; use --without-fp.
904 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
905 |
--no-cr |
--no-c |
-n)
908 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
909 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
912 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
913 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
914 |
--oldin |
--oldi |
--old |
--ol |
--o)
915 ac_prev
=oldincludedir
;;
916 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
917 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
918 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
919 oldincludedir
=$ac_optarg ;;
921 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
923 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
926 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
927 |
--program-pre |
--program-pr |
--program-p)
928 ac_prev
=program_prefix
;;
929 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
930 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
931 program_prefix
=$ac_optarg ;;
933 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
934 |
--program-suf |
--program-su |
--program-s)
935 ac_prev
=program_suffix
;;
936 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
937 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
938 program_suffix
=$ac_optarg ;;
940 -program-transform-name |
--program-transform-name \
941 |
--program-transform-nam |
--program-transform-na \
942 |
--program-transform-n |
--program-transform- \
943 |
--program-transform |
--program-transfor \
944 |
--program-transfo |
--program-transf \
945 |
--program-trans |
--program-tran \
946 |
--progr-tra |
--program-tr |
--program-t)
947 ac_prev
=program_transform_name
;;
948 -program-transform-name=* |
--program-transform-name=* \
949 |
--program-transform-nam=* |
--program-transform-na=* \
950 |
--program-transform-n=* |
--program-transform-=* \
951 |
--program-transform=* |
--program-transfor=* \
952 |
--program-transfo=* |
--program-transf=* \
953 |
--program-trans=* |
--program-tran=* \
954 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
955 program_transform_name
=$ac_optarg ;;
957 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
959 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
962 -psdir |
--psdir |
--psdi |
--psd |
--ps)
964 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
967 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
968 |
-silent |
--silent |
--silen |
--sile |
--sil)
971 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
973 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
975 sbindir
=$ac_optarg ;;
977 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
978 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
979 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
981 ac_prev
=sharedstatedir
;;
982 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
983 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
984 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
986 sharedstatedir
=$ac_optarg ;;
988 -site |
--site |
--sit)
990 -site=* |
--site=* |
--sit=*)
993 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
995 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
998 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
999 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1000 ac_prev
=sysconfdir
;;
1001 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1002 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1003 sysconfdir
=$ac_optarg ;;
1005 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1006 ac_prev
=target_alias
;;
1007 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1008 target_alias
=$ac_optarg ;;
1010 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1013 -version |
--version |
--versio |
--versi |
--vers |
-V)
1014 ac_init_version
=: ;;
1017 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_
$ac_package=\
$ac_optarg ;;
1025 -without-* |
--without-*)
1026 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1029 { echo "$as_me: error: invalid package name: $ac_package" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1032 eval with_
$ac_package=no
;;
1035 # Obsolete; use --with-x.
1038 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1039 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1040 ac_prev
=x_includes
;;
1041 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1042 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1043 x_includes
=$ac_optarg ;;
1045 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1046 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1047 ac_prev
=x_libraries
;;
1048 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1049 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1050 x_libraries
=$ac_optarg ;;
1052 -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 Try \`$0 --help' for more information." >&2
1054 { (exit 1); exit 1; }; }
1058 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062 { (exit 1); exit 1; }; }
1063 eval $ac_envvar=\
$ac_optarg
1064 export $ac_envvar ;;
1067 # FIXME: should be removed in autoconf 3.0.
1068 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1077 if test -n "$ac_prev"; then
1078 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1079 { echo "$as_me: error: missing argument to $ac_option" >&2
1080 { (exit 1); exit 1; }; }
1083 # Be sure to have absolute directory names.
1084 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1089 eval ac_val
=\$
$ac_var
1091 [\\/$
]* | ?
:[\\/]* ) continue;;
1092 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1094 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095 { (exit 1); exit 1; }; }
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1103 target
=$target_alias
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x
; then
1107 if test "x$build_alias" = x
; then
1108 cross_compiling
=maybe
1109 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 If a cross compiler is detected then cross compile mode will be used." >&2
1111 elif test "x$build_alias" != "x$host_alias"; then
1117 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1119 test "$silent" = yes && exec 6>/dev
/null
1122 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di
=`ls -di .` &&
1124 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1125 { echo "$as_me: error: Working directory cannot be determined" >&2
1126 { (exit 1); exit 1; }; }
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 { echo "$as_me: error: pwd does not report name of working directory" >&2
1129 { (exit 1); exit 1; }; }
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134 ac_srcdir_defaulted
=yes
1135 # Try the directory containing this script, then the parent directory.
1136 ac_confdir
=`$as_dirname -- "$0" ||
1137 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 X"$0" : 'X\(//\)[^/]' \| \
1139 X"$0" : 'X\(//\)$' \| \
1140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1164 ac_srcdir_defaulted
=no
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1168 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169 { (exit 1); exit 1; }; }
1171 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1173 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174 { (exit 1); exit 1; }; }
1176 # When building in place, set srcdir=.
1177 if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 # Remove unnecessary trailing slashes from srcdir.
1181 # Double slashes in file names in object file debugging info
1182 # mess up M-x gdb in Emacs.
1184 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186 for ac_var
in $ac_precious_vars; do
1187 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1188 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1189 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1190 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1194 # Report the --help message.
1196 if test "$ac_init_help" = "long"; then
1197 # Omit some internal or obsolete options to make the list less imposing.
1198 # This message is too long to be a string in the A/UX 3.1 sh.
1200 \`configure' configures this package to adapt to many kinds of systems.
1202 Usage: $0 [OPTION]... [VAR=VALUE]...
1204 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 VAR=VALUE. See below for descriptions of some of the useful variables.
1207 Defaults for the options are specified in brackets.
1210 -h, --help display this help and exit
1211 --help=short display options specific to this package
1212 --help=recursive display the short help of all the included packages
1213 -V, --version display version information and exit
1214 -q, --quiet, --silent do not print \`checking...' messages
1215 --cache-file=FILE cache test results in FILE [disabled]
1216 -C, --config-cache alias for \`--cache-file=config.cache'
1217 -n, --no-create do not create output files
1218 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220 Installation directories:
1221 --prefix=PREFIX install architecture-independent files in PREFIX
1222 [$ac_default_prefix]
1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1226 By default, \`make install' will install all the files in
1227 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 for instance \`--prefix=\$HOME'.
1231 For better control, use the options below.
1233 Fine tuning of the installation directories:
1234 --bindir=DIR user executables [EPREFIX/bin]
1235 --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 --libexecdir=DIR program executables [EPREFIX/libexec]
1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 --libdir=DIR object code libraries [EPREFIX/lib]
1241 --includedir=DIR C header files [PREFIX/include]
1242 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 --infodir=DIR info documentation [DATAROOTDIR/info]
1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 --mandir=DIR man documentation [DATAROOTDIR/man]
1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 --htmldir=DIR html documentation [DOCDIR]
1250 --dvidir=DIR dvi documentation [DOCDIR]
1251 --pdfdir=DIR pdf documentation [DOCDIR]
1252 --psdir=DIR ps documentation [DOCDIR]
1258 --build=BUILD configure
for building on BUILD
[guessed
]
1259 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1263 if test -n "$ac_init_help"; then
1268 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1269 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1270 --disable-universal don
't build universal on OS X
1271 --enable-smb enable possibly-buggy SMB printer default=yes
1272 --disable-smb disable possibly-buggy SMB printer
1273 --enable-ipv6 enable ipv6 (with ipv4) support
1274 --disable-ipv6 disable ipv6 support
1277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1279 --without-gcc don't use gcc
1280 --with-smi link with libsmi
(allows to load MIBs on the fly to decode SNMP packets. default
=yes
1281 --without-smi don
't link with libsmi
1282 --with-user=USERNAME drop privileges by default to USERNAME
1283 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1284 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1285 supplied). [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
"
3051 V_CCOPT="$V_CCOPT -xansi -signed -O"
3056 # Presumed to be DEC OSF/1, Digital UNIX, or
3059 V_CCOPT="$V_CCOPT -O"
3063 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3064 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3065 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3066 echo $ECHO_N "(cached
) $ECHO_C" >&6
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <sys/types.h>
3078 struct a { int b; };
3079 void c(const struct a *)
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3101 ac_cv_lbl_cc_const_proto=yes
3103 echo "$as_me: failed program was
:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 ac_cv_lbl_cc_const_proto=no
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3113 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3114 if test $ac_cv_lbl_cc_const_proto = no ; then
3116 cat >>confdefs.h <<\_ACEOF
3125 { echo "$as_me:$LINENO: checking
for inline
" >&5
3126 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3127 save_CFLAGS="$CFLAGS"
3129 if test "${ac_cv_lbl_inline+set}" = set; then
3130 echo $ECHO_N "(cached
) $ECHO_C" >&6
3135 for ac_lbl_inline in inline __inline__ __inline
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #define inline $ac_lbl_inline
3144 static inline struct iltest *foo(void);
3150 static inline struct iltest *
3153 static struct iltest xxx;
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_lbl_cc_inline=yes
3184 echo "$as_me: failed program was
:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 if test "$ac_lbl_cc_inline" = yes ; then
3195 if test "$ac_lbl_cc_inline" = yes ; then
3196 ac_cv_lbl_inline=$ac_lbl_inline
3200 CFLAGS="$save_CFLAGS"
3201 if test ! -z "$ac_cv_lbl_inline" ; then
3202 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3203 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3205 { echo "$as_me:$LINENO: result
: no
" >&5
3206 echo "${ECHO_T}no
" >&6; }
3209 cat >>confdefs.h <<_ACEOF
3210 #define inline $ac_cv_lbl_inline
3214 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3215 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3216 if test "${ac_cv___attribute__+set}" = set; then
3217 echo $ECHO_N "(cached
) $ECHO_C" >&6
3220 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3230 static void foo(void) __attribute__ ((noreturn));
3239 main(int argc, char **argv)
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_compile") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3258 (exit $ac_status); } && {
3259 test -z "$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3261 } && test -s conftest.$ac_objext; then
3262 ac_cv___attribute__=yes
3264 echo "$as_me: failed program was
:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 ac_cv___attribute__=no
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 if test "$ac_cv___attribute__" = "yes"; then
3275 cat >>confdefs.h <<\_ACEOF
3276 #define HAVE___ATTRIBUTE__ 1
3279 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3281 V_DEFS="$V_DEFS -D_U_=\"\""
3283 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3284 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3286 if test "$ac_cv___attribute__" = "yes"; then
3288 { echo "$as_me:$LINENO: checking whether __attribute__
((format
)) can be applied to
function pointers
" >&5
3289 echo $ECHO_N "checking whether __attribute__
((format
)) can be applied to
function pointers...
$ECHO_C" >&6; }
3290 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3291 echo $ECHO_N "(cached
) $ECHO_C" >&6
3294 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3304 extern int (*foo)(const char *fmt, ...)
3305 __attribute__ ((format (printf, 1, 2)));
3308 main(int argc, char **argv)
3310 (*foo)("%s
", "test");
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_compile") 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3327 (exit $ac_status); } && {
3328 test -z "$ac_c_werror_flag" ||
3329 test ! -s conftest.err
3330 } && test -s conftest.$ac_objext; then
3331 ac_cv___attribute___format_function_pointer=yes
3333 echo "$as_me: failed program was
:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 ac_cv___attribute___format_function_pointer=no
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3344 cat >>confdefs.h <<\_ACEOF
3345 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3349 { echo "$as_me:$LINENO: result
: $ac_cv___attribute___format_function_pointer" >&5
3350 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3359 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3360 # On Suns, sometimes $CPP names a directory.
3361 if test -n "$CPP" && test -d "$CPP"; then
3364 if test -z "$CPP"; then
3365 if test "${ac_cv_prog_CPP+set}" = set; then
3366 echo $ECHO_N "(cached
) $ECHO_C" >&6
3368 # Double quotes because CPP needs to be expanded
3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3372 for ac_c_preproc_warn_flag in '' yes
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error
" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3387 # include <limits.h>
3389 # include <assert.h>
3393 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3405 (exit $ac_status); } >/dev/null && {
3406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3411 echo "$as_me: failed program was
:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 # Broken: fails on valid input.
3418 rm -f conftest.err conftest.$ac_ext
3420 # OK, works on sane cases. Now check whether nonexistent headers
3421 # can be detected and how.
3422 cat >conftest.$ac_ext <<_ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <ac_nonexistent.h>
3430 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3442 (exit $ac_status); } >/dev/null && {
3443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3446 # Broken: success on invalid input.
3449 echo "$as_me: failed program was
:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 # Passes both tests.
3457 rm -f conftest.err conftest.$ac_ext
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3474 { echo "$as_me:$LINENO: result
: $CPP" >&5
3475 echo "${ECHO_T}$CPP" >&6; }
3477 for ac_c_preproc_warn_flag in '' yes
3479 # Use a header file that comes with gcc, so configuring glibc
3480 # with a fresh cross-compiler works.
3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482 # <limits.h> exists even on freestanding compilers.
3483 # On the NeXT, cc -E runs the code through the compiler's parser,
3484 # not just through cpp. "Syntax error
" is here to catch this case.
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3492 # include <limits.h>
3494 # include <assert.h>
3498 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3510 (exit $ac_status); } >/dev/null && {
3511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3516 echo "$as_me: failed program was
:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 # Broken: fails on valid input.
3523 rm -f conftest.err conftest.$ac_ext
3525 # OK, works on sane cases. Now check whether nonexistent headers
3526 # can be detected and how.
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <ac_nonexistent.h>
3535 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3547 (exit $ac_status); } >/dev/null && {
3548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3551 # Broken: success on invalid input.
3554 echo "$as_me: failed program was
:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 # Passes both tests.
3562 rm -f conftest.err conftest.$ac_ext
3565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3566 rm -f conftest.err conftest.$ac_ext
3567 if $ac_preproc_ok; then
3570 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3571 See \
`config.log' for more details." >&5
3572 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3573 See \`config.log
' for more details." >&2;}
3574 { (exit 1); exit 1; }; }
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3580 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3585 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3586 if test "${ac_cv_path_GREP+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 # Extract the first word of "grep ggrep" to use in msg output
3590 if test -z "$GREP"; then
3591 set dummy grep ggrep; ac_prog_name=$2
3592 if test "${ac_cv_path_GREP+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 ac_path_GREP_found=false
3596 # Loop through the user's path and
test for each of PROGNAME-LIST
3597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3598 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3601 test -z "$as_dir" && as_dir
=.
3602 for ac_prog
in grep ggrep
; do
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3606 # Check for GNU ac_path_GREP and select it if it is found.
3607 # Check for GNU $ac_path_GREP
3608 case `"$ac_path_GREP" --version 2>&1` in
3610 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3613 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3616 cat "conftest.in" "conftest.in" >"conftest.tmp"
3617 mv "conftest.tmp" "conftest.in"
3618 cp "conftest.in" "conftest.nl"
3619 echo 'GREP' >> "conftest.nl"
3620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3621 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3622 ac_count
=`expr $ac_count + 1`
3623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3624 # Best one so far, save it but keep looking for a better one
3625 ac_cv_path_GREP
="$ac_path_GREP"
3626 ac_path_GREP_max
=$ac_count
3628 # 10*(2^10) chars as input seems more than enough
3629 test $ac_count -gt 10 && break
3631 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3635 $ac_path_GREP_found && break 3
3645 GREP
="$ac_cv_path_GREP"
3646 if test -z "$GREP"; then
3647 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3648 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3649 { (exit 1); exit 1; }; }
3653 ac_cv_path_GREP
=$GREP
3658 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3659 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3660 GREP
="$ac_cv_path_GREP"
3663 { echo "$as_me:$LINENO: checking for egrep" >&5
3664 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3669 then ac_cv_path_EGREP
="$GREP -E"
3671 # Extract the first word of "egrep" to use in msg output
3672 if test -z "$EGREP"; then
3673 set dummy
egrep; ac_prog_name
=$2
3674 if test "${ac_cv_path_EGREP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_path_EGREP_found
=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3680 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3683 test -z "$as_dir" && as_dir
=.
3684 for ac_prog
in egrep; do
3685 for ac_exec_ext
in '' $ac_executable_extensions; do
3686 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3688 # Check for GNU ac_path_EGREP and select it if it is found.
3689 # Check for GNU $ac_path_EGREP
3690 case `"$ac_path_EGREP" --version 2>&1` in
3692 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 echo 'EGREP' >> "conftest.nl"
3702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3703 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3704 ac_count
=`expr $ac_count + 1`
3705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_EGREP
="$ac_path_EGREP"
3708 ac_path_EGREP_max
=$ac_count
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3713 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3717 $ac_path_EGREP_found && break 3
3727 EGREP
="$ac_cv_path_EGREP"
3728 if test -z "$EGREP"; then
3729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731 { (exit 1); exit 1; }; }
3735 ac_cv_path_EGREP
=$EGREP
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3743 EGREP
="$ac_cv_path_EGREP"
3746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3748 if test "${ac_cv_header_stdc+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 cat >conftest.
$ac_ext <<_ACEOF
3754 cat confdefs.h
>>conftest.
$ac_ext
3755 cat >>conftest.
$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3770 rm -f conftest.
$ac_objext
3771 if { (ac_try
="$ac_compile"
3773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compile") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } && {
3784 test -z "$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 } && test -s conftest.$ac_objext; then
3787 ac_cv_header_stdc=yes
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_cv_header_stdc=no
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 if test $ac_cv_header_stdc = yes; then
3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799 cat >conftest.$ac_ext <<_ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809 $EGREP "memchr" >/dev/null 2>&1; then
3812 ac_cv_header_stdc=no
3818 if test $ac_cv_header_stdc = yes; then
3819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 $EGREP "free" >/dev/null 2>&1; then
3833 ac_cv_header_stdc=no
3839 if test $ac_cv_header_stdc = yes; then
3840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3841 if test "$cross_compiling" = yes; then
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3852 #if ((' ' & 0x0FF) == 0x020)
3853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3856 # define ISLOWER(c) \
3857 (('a' <= (c) && (c) <= 'i') \
3858 || ('j' <= (c) && (c) <= 'r') \
3859 || ('s' <= (c) && (c) <= 'z'))
3860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3868 for (i = 0; i < 256; i++)
3869 if (XOR (islower (i), ISLOWER (i))
3870 || toupper (i) != TOUPPER (i))
3875 rm -f conftest$ac_exeext
3876 if { (ac_try="$ac_link"
3878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3879 *) ac_try_echo
=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_link") 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3886 { (case "(($ac_try" in
3887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_try") 2>&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3897 echo "$as_me: program exited with status $ac_status" >&5
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_cv_header_stdc=no
3904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3910 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3911 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3912 if test $ac_cv_header_stdc = yes; then
3914 cat >>confdefs.h <<\_ACEOF
3915 #define STDC_HEADERS 1
3920 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3930 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3931 inttypes.h stdint.h unistd.h
3933 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 $ac_includes_default
3947 #include <$ac_header>
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3953 *) ac_try_echo
=$ac_try;;
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_compile") 2>conftest.er1
3958 grep -v '^ *+' conftest.er1
>conftest.err
3960 cat conftest.err
>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && {
3963 test -z "$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 } && test -s conftest.
$ac_objext; then
3966 eval "$as_ac_Header=yes"
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.
$ac_ext >&5
3971 eval "$as_ac_Header=no"
3974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3976 ac_res
=`eval echo '${'$as_ac_Header'}'`
3977 { echo "$as_me:$LINENO: result: $ac_res" >&5
3978 echo "${ECHO_T}$ac_res" >&6; }
3979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3980 cat >>confdefs.h
<<_ACEOF
3981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3993 for ac_header
in fcntl.h rpc
/rpc.h rpc
/rpcent.h netdnet
/dnetdb.h
3995 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3996 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 ac_res
=`eval echo '${'$as_ac_Header'}'`
4003 { echo "$as_me:$LINENO: result: $ac_res" >&5
4004 echo "${ECHO_T}$ac_res" >&6; }
4006 # Is the header compilable?
4007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4009 cat >conftest.
$ac_ext <<_ACEOF
4012 cat confdefs.h
>>conftest.
$ac_ext
4013 cat >>conftest.
$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4016 #include <$ac_header>
4018 rm -f conftest.
$ac_objext
4019 if { (ac_try
="$ac_compile"
4021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_compile") 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest.$ac_objext; then
4035 ac_header_compiler=yes
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 ac_header_compiler=no
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4045 echo "${ECHO_T}$ac_header_compiler" >&6; }
4047 # Is the header present?
4048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <$ac_header>
4058 if { (ac_try="$ac_cpp conftest.$ac_ext"
4060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4061 *) ac_try_echo
=$ac_try;;
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4066 grep -v '^ *+' conftest.er1
>conftest.err
4068 cat conftest.err
>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } >/dev
/null
&& {
4071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4074 ac_header_preproc
=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.
$ac_ext >&5
4079 ac_header_preproc
=no
4082 rm -f conftest.err conftest.
$ac_ext
4083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4084 echo "${ECHO_T}$ac_header_preproc" >&6; }
4086 # So? What about this header?
4087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4093 ac_header_preproc
=yes
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4113 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 eval "$as_ac_Header=\$ac_header_preproc"
4118 ac_res
=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124 cat >>confdefs.h
<<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4133 for ac_header
in net
/pfvar.h
4135 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4138 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 cat >conftest.
$ac_ext <<_ACEOF
4144 cat confdefs.h
>>conftest.
$ac_ext
4145 cat >>conftest.
$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 #include <sys/socket.h>
4151 #include <$ac_header>
4153 rm -f conftest.
$ac_objext
4154 if { (ac_try
="$ac_compile"
4156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } && {
4167 test -z "$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 } && test -s conftest.$ac_objext; then
4170 eval "$as_ac_Header=yes"
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 eval "$as_ac_Header=no"
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_res=`eval echo '${'$as_ac_Header'}'`
4181 { echo "$as_me:$LINENO: result: $ac_res" >&5
4182 echo "${ECHO_T}$ac_res" >&6; }
4183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4184 cat >>confdefs.h <<_ACEOF
4185 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4192 if test "$ac_cv_header_net_pfvar_h" = yes; then
4193 LOCALSRC="print-pflog.c $LOCALSRC"
4196 for ac_header in netinet/if_ether.h
4198 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 #include <sys/socket.h>
4213 #include <$ac_header>
4215 rm -f conftest.$ac_objext
4216 if { (ac_try="$ac_compile"
4218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4219 *) ac_try_echo
=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compile") 2>conftest.er1
4224 grep -v '^ *+' conftest.er1
>conftest.err
4226 cat conftest.err
>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && {
4229 test -z "$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 } && test -s conftest.
$ac_objext; then
4232 eval "$as_ac_Header=yes"
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.
$ac_ext >&5
4237 eval "$as_ac_Header=no"
4240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4242 ac_res
=`eval echo '${'$as_ac_Header'}'`
4243 { echo "$as_me:$LINENO: result: $ac_res" >&5
4244 echo "${ECHO_T}$ac_res" >&6; }
4245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4246 cat >>confdefs.h
<<_ACEOF
4247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4254 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4256 # The simple test didn't work.
4257 # Do we need to include <net/if.h> first?
4258 # Unset ac_cv_header_netinet_if_ether_h so we don't
4259 # treat the previous failure as a cached value and
4260 # suppress the next test.
4262 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4263 echo "$as_me: Rechecking with some additional includes" >&6;}
4264 unset ac_cv_header_netinet_if_ether_h
4266 for ac_header
in netinet
/if_ether.h
4268 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 cat >conftest.
$ac_ext <<_ACEOF
4277 cat confdefs.h
>>conftest.
$ac_ext
4278 cat >>conftest.
$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 #include <sys/types.h>
4281 #include <sys/socket.h>
4282 #include <netinet/in.h>
4287 #include <$ac_header>
4289 rm -f conftest.
$ac_objext
4290 if { (ac_try
="$ac_compile"
4292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && {
4303 test -z "$ac_c_werror_flag" ||
4304 test ! -s conftest.err
4305 } && test -s conftest.$ac_objext; then
4306 eval "$as_ac_Header=yes"
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 eval "$as_ac_Header=no"
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_res=`eval echo '${'$as_ac_Header'}'`
4317 { echo "$as_me:$LINENO: result: $ac_res" >&5
4318 echo "${ECHO_T}$ac_res" >&6; }
4319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320 cat >>confdefs.h <<_ACEOF
4321 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4330 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4331 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4332 if test "${ac_cv_header_time+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 #include <sys/types.h>
4342 #include <sys/time.h>
4348 if ((struct tm *) 0)
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4358 *) ac_try_echo
=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4363 grep -v '^ *+' conftest.er1
>conftest.err
4365 cat conftest.err
>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.
$ac_objext; then
4371 ac_cv_header_time
=yes
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.
$ac_ext >&5
4376 ac_cv_header_time
=no
4379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4381 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4382 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4383 if test $ac_cv_header_time = yes; then
4385 cat >>confdefs.h
<<\_ACEOF
4386 #define TIME_WITH_SYS_TIME 1
4395 # Check whether --enable-universal was given.
4396 if test "${enable_universal+set}" = set; then
4397 enableval
=$enable_universal;
4400 if test "$enable_universal" != "no"; then
4405 # Leopard. Build for x86 and 32-bit PowerPC, with
4406 # x86 first. (That's what Apple does.)
4408 V_CCOPT
="$V_CCOPT -arch i386 -arch ppc"
4409 LDFLAGS
="$LDFLAGS -arch i386 -arch ppc"
4414 # Snow Leopard. Build for x86-64 and x86, with
4415 # x86-64 first. (That's what Apple does.)
4417 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386"
4418 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386"
4425 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4426 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4427 if test "$cross_compiling" = yes; then
4428 if test "${ac_cv_linux_vers+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 ac_cv_linux_vers
=unknown
4435 if test "${ac_cv_linux_vers+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 ac_cv_linux_vers
=`uname -r 2>&1 | \
4439 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4443 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4444 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4445 if test $ac_cv_linux_vers = unknown
; then
4446 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4447 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4448 { (exit 1); exit 1; }; }
4450 if test $ac_cv_linux_vers -lt 2 ; then
4451 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4452 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4453 { (exit 1); exit 1; }; }
4463 # Check whether --with-smi was given.
4464 if test "${with_smi+set}" = set; then
4471 if test "x$with_smi" != "xno" ; then
4473 for ac_header
in smi.h
4475 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_res
=`eval echo '${'$as_ac_Header'}'`
4483 { echo "$as_me:$LINENO: result: $ac_res" >&5
4484 echo "${ECHO_T}$ac_res" >&6; }
4486 # Is the header compilable?
4487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4489 cat >conftest.
$ac_ext <<_ACEOF
4492 cat confdefs.h
>>conftest.
$ac_ext
4493 cat >>conftest.
$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 $ac_includes_default
4496 #include <$ac_header>
4498 rm -f conftest.
$ac_objext
4499 if { (ac_try
="$ac_compile"
4501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_compile") 2>conftest.er1
4507 grep -v '^ *+' conftest.er1 >conftest.err
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } && {
4512 test -z "$ac_c_werror_flag" ||
4513 test ! -s conftest.err
4514 } && test -s conftest.$ac_objext; then
4515 ac_header_compiler=yes
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 ac_header_compiler=no
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525 echo "${ECHO_T}$ac_header_compiler" >&6; }
4527 # Is the header present?
4528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <$ac_header>
4538 if { (ac_try="$ac_cpp conftest.$ac_ext"
4540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4541 *) ac_try_echo
=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4546 grep -v '^ *+' conftest.er1
>conftest.err
4548 cat conftest.err
>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } >/dev
/null
&& {
4551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4554 ac_header_preproc
=yes
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.
$ac_ext >&5
4559 ac_header_preproc
=no
4562 rm -f conftest.err conftest.
$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6; }
4566 # So? What about this header?
4567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573 ac_header_preproc
=yes
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4593 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 eval "$as_ac_Header=\$ac_header_preproc"
4598 ac_res
=`eval echo '${'$as_ac_Header'}'`
4599 { echo "$as_me:$LINENO: result: $ac_res" >&5
4600 echo "${ECHO_T}$ac_res" >&6; }
4603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4604 cat >>confdefs.h
<<_ACEOF
4605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4614 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4615 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 ac_check_lib_save_LIBS
=$LIBS
4620 cat >conftest.
$ac_ext <<_ACEOF
4623 cat confdefs.h
>>conftest.
$ac_ext
4624 cat >>conftest.
$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4627 /* Override any GCC internal prototype to avoid an error.
4628 Use char because int might match the return type of a GCC
4629 builtin and then its argument prototype would still apply. */
4642 rm -f conftest.
$ac_objext conftest
$ac_exeext
4643 if { (ac_try
="$ac_link"
4645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649 (eval "$ac_link") 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && {
4656 test -z "$ac_c_werror_flag" ||
4657 test ! -s conftest.err
4658 } && test -s conftest$ac_exeext &&
4659 $as_test_x conftest$ac_exeext; then
4660 ac_cv_lib_smi_smiInit=yes
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_cv_lib_smi_smiInit=no
4668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4669 conftest$ac_exeext conftest.$ac_ext
4670 LIBS=$ac_check_lib_save_LIBS
4672 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4673 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4674 if test $ac_cv_lib_smi_smiInit = yes; then
4675 cat >>confdefs.h <<_ACEOF
4676 #define HAVE_LIBSMI 1
4683 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4685 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4686 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4687 if test "$cross_compiling" = yes; then
4688 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4689 echo "${ECHO_T}not when cross-compiling" >&6; }
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 /* libsmi available check */
4703 int current, revision, age, n;
4704 const int required = 2;
4707 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4709 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4712 if (required < current - age || required > current)
4718 rm -f conftest$ac_exeext
4719 if { (ac_try="$ac_link"
4721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4722 *) ac_try_echo
=$ac_try;;
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_link") 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4729 { (case "(($ac_try" in
4730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_try") 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 { echo "$as_me:$LINENO: result: yes" >&5
4739 echo "${ECHO_T}yes" >&6; }
4740 cat >>confdefs.h <<\_ACEOF
4746 echo "$as_me: program exited with status $ac_status" >&5
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4752 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4753 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4754 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4755 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4756 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4757 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4758 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4759 echo "${ECHO_T}no - too old" >&6; } ;;
4760 *) { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; } ;;
4765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4772 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4773 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4774 # Check whether --enable-smb was given.
4775 if test "${enable_smb+set}" = set; then
4776 enableval=$enable_smb;
4781 case "$enableval" in
4782 yes) { echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6; }
4784 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4785 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4786 cat >>confdefs.h <<\_ACEOF
4787 #define TCPDUMP_DO_SMB 1
4790 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4792 *) { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4798 # Check whether --with-user was given.
4799 if test "${with_user+set}" = set; then
4803 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4804 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4805 if test ! -z "$with_user" ; then
4806 cat >>confdefs.h <<_ACEOF
4807 #define WITH_USER "$withval"
4810 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4811 echo "${ECHO_T}to \"$withval\"" >&6; }
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4818 # Check whether --with-chroot was given.
4819 if test "${with_chroot+set}" = set; then
4820 withval=$with_chroot;
4823 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4824 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4825 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4826 cat >>confdefs.h <<_ACEOF
4827 #define WITH_CHROOT "$withval"
4830 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4831 echo "${ECHO_T}to \"$withval\"" >&6; }
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4837 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4838 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4839 # Check whether --enable-ipv6 was given.
4840 if test "${enable_ipv6+set}" = set; then
4841 enableval=$enable_ipv6; case "$enableval" in
4842 yes) { echo "$as_me:$LINENO: result: yes" >&5
4843 echo "${ECHO_T}yes" >&6; }
4844 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"
4845 cat >>confdefs.h <<\_ACEOF
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4858 if test "$cross_compiling" = yes; then
4859 { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 /* AF_INET6 available check */
4871 #include <sys/types.h>
4872 #include <sys/socket.h>
4875 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4882 rm -f conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4886 *) ac_try_echo
=$ac_try;;
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_link") 2>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4893 { (case "(($ac_try" in
4894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_try") 2>&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 { echo "$as_me:$LINENO: result: yes" >&5
4903 echo "${ECHO_T}yes" >&6; }
4904 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"
4905 cat >>confdefs.h <<\_ACEOF
4911 echo "$as_me: program exited with status $ac_status" >&5
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4931 if test "$ipv6" = "yes"; then
4932 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4933 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4934 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4937 cat >conftest.$ac_ext <<_ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #include <netinet/in.h>
4944 #ifdef IPV6_INRIA_VERSION
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949 $EGREP "yes" >/dev/null 2>&1; then
4951 CFLAGS="-DINET6 $CFLAGS"
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 #include <netinet/in.h>
4968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4969 $EGREP "yes" >/dev/null 2>&1; then
4972 ipv6libdir=/usr/local/v6/lib;
4974 CFLAGS="-DINET6 $CFLAGS"
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 #include <features.h>
4987 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992 $EGREP "yes" >/dev/null 2>&1; then
4994 CFLAGS="-DINET6 $CFLAGS"
5000 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5003 ipv6libdir=/usr/inet6/lib
5005 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #include <sys/param.h>
5016 #ifdef _TOSHIBA_INET6
5020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021 $EGREP "yes" >/dev/null 2>&1; then
5024 ipv6libdir=/usr/local/v6/lib;
5025 CFLAGS="-DINET6 $CFLAGS"
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include </usr/local/v6/include/sys/v6config.h>
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043 $EGREP "yes" >/dev/null 2>&1; then
5046 ipv6libdir=/usr/local/v6/lib;
5047 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5053 cat >conftest.$ac_ext <<_ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #include <sys/param.h>
5060 #ifdef _ZETA_MINAMI_INET6
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065 $EGREP "yes" >/dev/null 2>&1; then
5068 ipv6libdir=/usr/local/v6/lib;
5069 CFLAGS="-DINET6 $CFLAGS"
5075 if test "$ipv6type" != "unknown"; then
5079 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5080 echo "${ECHO_T}$ipv6type" >&6; }
5083 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5084 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5085 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5086 echo "You have $ipv6lib library, using it"
5088 if test "$ipv6trylibc" = "yes"; then
5089 echo "You do not have $ipv6lib library, using libc"
5091 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5092 echo "You need to fetch lib$ipv6lib.a from appropriate"
5093 echo 'ipv6 kit and compile beforehand.'
5100 if test "$ipv6" = "yes"; then
5102 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5103 # function in libc; there are "ngetaddrinfo()" and
5104 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5105 # "getaddrinfo" to be either "ngetaddrinfo" or
5106 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5107 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5109 # So this test doesn't work on Tru64 5.1, and possibly
5110 # on other 5.x releases. This causes the configure
5111 # script to become confused, and results in libpcap
5112 # being unbuildable.
5114 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5115 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5116 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_func_search_save_LIBS=$LIBS
5120 cat >conftest.$ac_ext <<_ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5127 /* Override any GCC internal prototype to avoid an error.
5128 Use char because int might match the return type of a GCC
5129 builtin and then its argument prototype would still apply. */
5133 char getaddrinfo ();
5137 return getaddrinfo ();
5142 for ac_lib in '' socket; do
5143 if test -z "$ac_lib"; then
5144 ac_res="none required"
5147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5149 rm -f conftest.$ac_objext conftest$ac_exeext
5150 if { (ac_try="$ac_link"
5152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5153 *) ac_try_echo
=$ac_try;;
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_link") 2>conftest.er1
5158 grep -v '^ *+' conftest.er1
>conftest.err
5160 cat conftest.err
>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && {
5163 test -z "$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5165 } && test -s conftest
$ac_exeext &&
5166 $as_test_x conftest
$ac_exeext; then
5167 ac_cv_search_getaddrinfo
=$ac_res
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.
$ac_ext >&5
5175 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5177 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5181 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5184 ac_cv_search_getaddrinfo
=no
5187 LIBS
=$ac_func_search_save_LIBS
5189 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5190 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5191 ac_res
=$ac_cv_search_getaddrinfo
5192 if test "$ac_res" != no
; then
5193 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5194 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5195 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5196 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test "$cross_compiling" = yes; then
5200 td_cv_buggygetaddrinfo
=yes
5202 cat >conftest.
$ac_ext <<_ACEOF
5205 cat confdefs.h
>>conftest.
$ac_ext
5206 cat >>conftest.
$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5209 #include <sys/types.h>
5212 #include <sys/socket.h>
5213 #include <netinet/in.h>
5217 int passive, gaierr, inet4 = 0, inet6 = 0;
5218 struct addrinfo hints, *ai, *aitop;
5219 char straddr[INET6_ADDRSTRLEN], strport[16];
5221 for (passive = 0; passive <= 1; passive++) {
5222 memset(&hints, 0, sizeof(hints));
5223 hints.ai_family = AF_UNSPEC;
5224 hints.ai_flags = passive ? AI_PASSIVE : 0;
5225 hints.ai_socktype = SOCK_STREAM;
5226 hints.ai_protocol = IPPROTO_TCP;
5227 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5228 (void)gai_strerror(gaierr);
5231 for (ai = aitop; ai; ai = ai->ai_next) {
5232 if (ai->ai_addr == NULL ||
5233 ai->ai_addrlen == 0 ||
5234 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5235 straddr, sizeof(straddr), strport, sizeof(strport),
5236 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5239 switch (ai->ai_family) {
5241 if (strcmp(strport, "54321") != 0) {
5245 if (strcmp(straddr, "0.0.0.0") != 0) {
5249 if (strcmp(straddr, "127.0.0.1") != 0) {
5256 if (strcmp(strport, "54321") != 0) {
5260 if (strcmp(straddr, "::") != 0) {
5264 if (strcmp(straddr, "::1") != 0) {
5281 /* another family support? */
5287 /* supported family should be 2, unsupported family should be 0 */
5288 if (!(inet4 == 0 || inet4 == 2))
5290 if (!(inet6 == 0 || inet6 == 2))
5294 freeaddrinfo(aitop);
5299 freeaddrinfo(aitop);
5304 rm -f conftest
$ac_exeext
5305 if { (ac_try
="$ac_link"
5307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_link") 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5315 { (case "(($ac_try" in
5316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5317 *) ac_try_echo
=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_try") 2>&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 td_cv_buggygetaddrinfo
=no
5326 echo "$as_me: program exited with status $ac_status" >&5
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.
$ac_ext >&5
5331 td_cv_buggygetaddrinfo
=yes
5333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5339 if test "$td_cv_buggygetaddrinfo" = no
; then
5340 { echo "$as_me:$LINENO: result: good" >&5
5341 echo "${ECHO_T}good" >&6; }
5343 { echo "$as_me:$LINENO: result: buggy" >&5
5344 echo "${ECHO_T}buggy" >&6; }
5347 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5349 # XXX - it doesn't appear that "ipv6type" can ever be
5350 # set to "linux". Should this be testing for
5351 # "linux-glibc", or for that *or* "linux-libinet6"?
5352 # If the latter, note that "linux-libinet6" is also
5353 # the type given to some non-Linux OSes.
5355 if test "$ipv6type" != "linux"; then
5356 echo 'Fatal: You must get working getaddrinfo() function.'
5357 echo ' or you can specify "--disable-ipv6"'.
5360 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5361 echo ' Better upgrade your system library to newest version'
5362 echo ' of GNU C library (aka glibc).'
5369 for ac_func
in getnameinfo
5371 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5374 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 cat >conftest.
$ac_ext <<_ACEOF
5380 cat confdefs.h
>>conftest.
$ac_ext
5381 cat >>conftest.
$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5385 #define $ac_func innocuous_$ac_func
5387 /* System header to define __stub macros and hopefully few prototypes,
5388 which can conflict with char $ac_func (); below.
5389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390 <limits.h> exists even on freestanding compilers. */
5393 # include <limits.h>
5395 # include <assert.h>
5400 /* Override any GCC internal prototype to avoid an error.
5401 Use char because int might match the return type of a GCC
5402 builtin and then its argument prototype would still apply. */
5407 /* The GNU C library defines this for functions which it implements
5408 to always fail with ENOSYS. Some functions are actually named
5409 something starting with __ and the normal name is an alias. */
5410 #if defined __stub_$ac_func || defined __stub___$ac_func
5422 rm -f conftest.
$ac_objext conftest
$ac_exeext
5423 if { (ac_try
="$ac_link"
5425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_link") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_c_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest$ac_exeext &&
5439 $as_test_x conftest$ac_exeext; then
5440 eval "$as_ac_var=yes"
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 eval "$as_ac_var=no"
5448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5449 conftest$ac_exeext conftest.$ac_ext
5451 ac_res=`eval echo '${'$as_ac_var'}'`
5452 { echo "$as_me:$LINENO: result: $ac_res" >&5
5453 echo "${ECHO_T}$ac_res" >&6; }
5454 if test `eval echo '${'$as_ac_var'}'` = yes; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5460 case " $LIBOBJS " in
5461 *" $ac_func.$ac_objext "* ) ;;
5462 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5472 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5473 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5474 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 cat >conftest.$ac_ext <<_ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 #include <netdnet/dnetdb.h>
5486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5487 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5488 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5490 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5495 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5496 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5497 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5498 cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5505 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5506 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5507 if test "${ac_cv_addrinfo+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5530 *) ac_try_echo
=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1
>conftest.err
5537 cat conftest.err
>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.
$ac_objext; then
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5555 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5556 if test $ac_cv_addrinfo = yes; then
5557 cat >>confdefs.h
<<\_ACEOF
5558 #define HAVE_ADDRINFO 1
5562 cat >>confdefs.h
<<\_ACEOF
5563 #define NEED_ADDRINFO_H 1
5568 if test "$ac_cv_addrinfo" = no
; then
5569 missing_includes
=yes
5573 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5574 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5575 if test "${ac_cv_maxserv+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.
$ac_ext <<_ACEOF
5581 cat confdefs.h
>>conftest.
$ac_ext
5582 cat >>conftest.
$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590 $EGREP "yes" >/dev
/null
2>&1; then
5599 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5600 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5601 if test $ac_cv_maxserv != yes; then
5602 cat >>confdefs.h
<<\_ACEOF
5603 #define NEED_ADDRINFO_H 1
5608 if test "$ac_cv_maxserv" = no
; then
5609 missing_includes
=yes
5613 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5614 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5615 if test "${ac_cv_namereqd+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 cat >conftest.
$ac_ext <<_ACEOF
5621 cat confdefs.h
>>conftest.
$ac_ext
5622 cat >>conftest.
$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "yes" >/dev
/null
2>&1; then
5639 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5640 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
5641 if test $ac_cv_namereqd != yes; then
5642 cat >>confdefs.h
<<\_ACEOF
5643 #define NEED_ADDRINFO_H 1
5648 if test "$ac_cv_namereqd" = no
; then
5649 missing_includes
=yes
5653 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5654 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5655 if test "${ac_cv_sa_storage+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 cat >conftest.
$ac_ext <<_ACEOF
5661 cat confdefs.h
>>conftest.
$ac_ext
5662 cat >>conftest.
$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 # include <sys/types.h>
5666 # include <sys/socket.h>
5670 struct sockaddr_storage s
5675 rm -f conftest.
$ac_objext
5676 if { (ac_try
="$ac_compile"
5678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5684 grep -v '^ *+' conftest.er1 >conftest.err
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 ac_cv_sa_storage=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5704 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
5705 if test $ac_cv_sa_storage = yes; then
5706 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_SOCKADDR_STORAGE 1
5712 if test "$ac_cv_sa_storage" = no; then
5713 missing_includes=yes
5722 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
5724 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5738 #define $ac_func innocuous_$ac_func
5740 /* System header to define __stub macros and hopefully few prototypes,
5741 which can conflict with char $ac_func (); below.
5742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5743 <limits.h> exists even on freestanding compilers. */
5746 # include <limits.h>
5748 # include <assert.h>
5753 /* Override any GCC internal prototype to avoid an error.
5754 Use char because int might match the return type of a GCC
5755 builtin and then its argument prototype would still apply. */
5760 /* The GNU C library defines this for functions which it implements
5761 to always fail with ENOSYS. Some functions are actually named
5762 something starting with __ and the normal name is an alias. */
5763 #if defined __stub_$ac_func || defined __stub___$ac_func
5775 rm -f conftest.$ac_objext conftest$ac_exeext
5776 if { (ac_try="$ac_link"
5778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5779 *) ac_try_echo
=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_link") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1
>conftest.err
5786 cat conftest.err
>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest
$ac_exeext &&
5792 $as_test_x conftest
$ac_exeext; then
5793 eval "$as_ac_var=yes"
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.
$ac_ext >&5
5798 eval "$as_ac_var=no"
5801 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5802 conftest
$ac_exeext conftest.
$ac_ext
5804 ac_res
=`eval echo '${'$as_ac_var'}'`
5805 { echo "$as_me:$LINENO: result: $ac_res" >&5
5806 echo "${ECHO_T}$ac_res" >&6; }
5807 if test `eval echo '${'$as_ac_var'}'` = yes; then
5808 cat >>confdefs.h
<<_ACEOF
5809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5813 case " $LIBOBJS " in
5814 *" $ac_func.$ac_objext "* ) ;;
5815 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5826 for ac_func
in fork vfork strftime
5828 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5831 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.
$ac_ext <<_ACEOF
5837 cat confdefs.h
>>conftest.
$ac_ext
5838 cat >>conftest.
$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5842 #define $ac_func innocuous_$ac_func
5844 /* System header to define __stub macros and hopefully few prototypes,
5845 which can conflict with char $ac_func (); below.
5846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847 <limits.h> exists even on freestanding compilers. */
5850 # include <limits.h>
5852 # include <assert.h>
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5864 /* The GNU C library defines this for functions which it implements
5865 to always fail with ENOSYS. Some functions are actually named
5866 something starting with __ and the normal name is an alias. */
5867 #if defined __stub_$ac_func || defined __stub___$ac_func
5879 rm -f conftest.
$ac_objext conftest
$ac_exeext
5880 if { (ac_try
="$ac_link"
5882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_link") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest$ac_exeext &&
5896 $as_test_x conftest$ac_exeext; then
5897 eval "$as_ac_var=yes"
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 eval "$as_ac_var=no"
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906 conftest$ac_exeext conftest.$ac_ext
5908 ac_res=`eval echo '${'$as_ac_var'}'`
5909 { echo "$as_me:$LINENO: result: $ac_res" >&5
5910 echo "${ECHO_T}$ac_res" >&6; }
5911 if test `eval echo '${'$as_ac_var'}'` = yes; then
5912 cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5921 for ac_func in setlinebuf alarm
5923 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5937 #define $ac_func innocuous_$ac_func
5939 /* System header to define __stub macros and hopefully few prototypes,
5940 which can conflict with char $ac_func (); below.
5941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5942 <limits.h> exists even on freestanding compilers. */
5945 # include <limits.h>
5947 # include <assert.h>
5952 /* Override any GCC internal prototype to avoid an error.
5953 Use char because int might match the return type of a GCC
5954 builtin and then its argument prototype would still apply. */
5959 /* The GNU C library defines this for functions which it implements
5960 to always fail with ENOSYS. Some functions are actually named
5961 something starting with __ and the normal name is an alias. */
5962 #if defined __stub_$ac_func || defined __stub___$ac_func
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5978 *) ac_try_echo
=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1
>conftest.err
5985 cat conftest.err
>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest
$ac_exeext &&
5991 $as_test_x conftest
$ac_exeext; then
5992 eval "$as_ac_var=yes"
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
5997 eval "$as_ac_var=no"
6000 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6001 conftest
$ac_exeext conftest.
$ac_ext
6003 ac_res
=`eval echo '${'$as_ac_var'}'`
6004 { echo "$as_me:$LINENO: result: $ac_res" >&5
6005 echo "${ECHO_T}$ac_res" >&6; }
6006 if test `eval echo '${'$as_ac_var'}'` = yes; then
6007 cat >>confdefs.h
<<_ACEOF
6008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6018 for ac_func
in vsnprintf snprintf
6020 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6023 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.
$ac_ext <<_ACEOF
6029 cat confdefs.h
>>conftest.
$ac_ext
6030 cat >>conftest.
$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6034 #define $ac_func innocuous_$ac_func
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char $ac_func (); below.
6038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039 <limits.h> exists even on freestanding compilers. */
6042 # include <limits.h>
6044 # include <assert.h>
6049 /* Override any GCC internal prototype to avoid an error.
6050 Use char because int might match the return type of a GCC
6051 builtin and then its argument prototype would still apply. */
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined __stub_$ac_func || defined __stub___$ac_func
6071 rm -f conftest.
$ac_objext conftest
$ac_exeext
6072 if { (ac_try
="$ac_link"
6074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_link") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest$ac_exeext &&
6088 $as_test_x conftest$ac_exeext; then
6089 eval "$as_ac_var=yes"
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 eval "$as_ac_var=no"
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098 conftest$ac_exeext conftest.$ac_ext
6100 ac_res=`eval echo '${'$as_ac_var'}'`
6101 { echo "$as_me:$LINENO: result: $ac_res" >&5
6102 echo "${ECHO_T}$ac_res" >&6; }
6103 if test `eval echo '${'$as_ac_var'}'` = yes; then
6104 cat >>confdefs.h <<_ACEOF
6105 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6113 if test $needsnprintf = yes; then
6114 case " $LIBOBJS " in
6115 *" snprintf.$ac_objext "* ) ;;
6116 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6123 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6124 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6125 if test "${ac_cv_type_signal+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <sys/types.h>
6140 return *(signal (0, 0)) (0) == 1;
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6149 *) ac_try_echo
=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1
>conftest.err
6156 cat conftest.err
>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && {
6159 test -z "$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6161 } && test -s conftest.
$ac_objext; then
6162 ac_cv_type_signal
=int
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6167 ac_cv_type_signal
=void
6170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6173 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6175 cat >>confdefs.h
<<_ACEOF
6176 #define RETSIGTYPE $ac_cv_type_signal
6180 if test "$ac_cv_type_signal" = void
; then
6182 cat >>confdefs.h
<<\_ACEOF
6188 cat >>confdefs.h
<<\_ACEOF
6189 #define RETSIGVAL (0)
6197 cat >>confdefs.h
<<\_ACEOF
6198 #define _BSD_SIGNALS 1
6205 for ac_func
in sigaction
6207 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6210 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 cat >conftest.
$ac_ext <<_ACEOF
6216 cat confdefs.h
>>conftest.
$ac_ext
6217 cat >>conftest.
$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6221 #define $ac_func innocuous_$ac_func
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func (); below.
6225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 <limits.h> exists even on freestanding compilers. */
6229 # include <limits.h>
6231 # include <assert.h>
6236 /* Override any GCC internal prototype to avoid an error.
6237 Use char because int might match the return type of a GCC
6238 builtin and then its argument prototype would still apply. */
6243 /* The GNU C library defines this for functions which it implements
6244 to always fail with ENOSYS. Some functions are actually named
6245 something starting with __ and the normal name is an alias. */
6246 #if defined __stub_$ac_func || defined __stub___$ac_func
6258 rm -f conftest.
$ac_objext conftest
$ac_exeext
6259 if { (ac_try
="$ac_link"
6261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_link") 2>conftest.er1
6267 grep -v '^ *+' conftest.er1 >conftest.err
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest$ac_exeext &&
6275 $as_test_x conftest$ac_exeext; then
6276 eval "$as_ac_var=yes"
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 eval "$as_ac_var=no"
6284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6285 conftest$ac_exeext conftest.$ac_ext
6287 ac_res=`eval echo '${'$as_ac_var'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6290 if test `eval echo '${'$as_ac_var'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6298 if test $ac_cv_func_sigaction = no ; then
6300 for ac_func in sigset
6302 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6316 #define $ac_func innocuous_$ac_func
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char $ac_func (); below.
6320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6321 <limits.h> exists even on freestanding compilers. */
6324 # include <limits.h>
6326 # include <assert.h>
6331 /* Override any GCC internal prototype to avoid an error.
6332 Use char because int might match the return type of a GCC
6333 builtin and then its argument prototype would still apply. */
6338 /* The GNU C library defines this for functions which it implements
6339 to always fail with ENOSYS. Some functions are actually named
6340 something starting with __ and the normal name is an alias. */
6341 #if defined __stub_$ac_func || defined __stub___$ac_func
6353 rm -f conftest.$ac_objext conftest$ac_exeext
6354 if { (ac_try="$ac_link"
6356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6357 *) ac_try_echo
=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_link") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1
>conftest.err
6364 cat conftest.err
>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest
$ac_exeext &&
6370 $as_test_x conftest
$ac_exeext; then
6371 eval "$as_ac_var=yes"
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.
$ac_ext >&5
6376 eval "$as_ac_var=no"
6379 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6380 conftest
$ac_exeext conftest.
$ac_ext
6382 ac_res
=`eval echo '${'$as_ac_var'}'`
6383 { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6385 if test `eval echo '${'$as_ac_var'}'` = yes; then
6386 cat >>confdefs.h
<<_ACEOF
6387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6397 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6398 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6399 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 ac_func_search_save_LIBS
=$LIBS
6403 cat >conftest.
$ac_ext <<_ACEOF
6406 cat confdefs.h
>>conftest.
$ac_ext
6407 cat >>conftest.
$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6410 /* Override any GCC internal prototype to avoid an error.
6411 Use char because int might match the return type of a GCC
6412 builtin and then its argument prototype would still apply. */
6420 return dnet_htoa ();
6425 for ac_lib
in '' dnet
; do
6426 if test -z "$ac_lib"; then
6427 ac_res
="none required"
6430 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6432 rm -f conftest.
$ac_objext conftest
$ac_exeext
6433 if { (ac_try
="$ac_link"
6435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_link") 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest$ac_exeext &&
6449 $as_test_x conftest$ac_exeext; then
6450 ac_cv_search_dnet_htoa=$ac_res
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6460 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6464 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6467 ac_cv_search_dnet_htoa=no
6470 LIBS=$ac_func_search_save_LIBS
6472 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6473 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6474 ac_res=$ac_cv_search_dnet_htoa
6475 if test "$ac_res" != no; then
6476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6477 cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_DNET_HTOA 1
6485 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6486 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6487 if test "${ac_cv_lib_rpc_main+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 ac_check_lib_save_LIBS=$LIBS
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6512 *) ac_try_echo
=$ac_try;;
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_link") 2>conftest.er1
6517 grep -v '^ *+' conftest.er1
>conftest.err
6519 cat conftest.err
>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest
$ac_exeext &&
6525 $as_test_x conftest
$ac_exeext; then
6526 ac_cv_lib_rpc_main
=yes
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.
$ac_ext >&5
6531 ac_cv_lib_rpc_main
=no
6534 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6535 conftest
$ac_exeext conftest.
$ac_ext
6536 LIBS
=$ac_check_lib_save_LIBS
6538 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6539 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6540 if test $ac_cv_lib_rpc_main = yes; then
6541 cat >>confdefs.h
<<_ACEOF
6542 #define HAVE_LIBRPC 1
6549 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6550 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6551 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 ac_func_search_save_LIBS
=$LIBS
6555 cat >conftest.
$ac_ext <<_ACEOF
6558 cat confdefs.h
>>conftest.
$ac_ext
6559 cat >>conftest.
$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6562 /* Override any GCC internal prototype to avoid an error.
6563 Use char because int might match the return type of a GCC
6564 builtin and then its argument prototype would still apply. */
6568 char getrpcbynumber ();
6572 return getrpcbynumber ();
6577 for ac_lib
in '' nsl
; do
6578 if test -z "$ac_lib"; then
6579 ac_res
="none required"
6582 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6584 rm -f conftest.
$ac_objext conftest
$ac_exeext
6585 if { (ac_try
="$ac_link"
6587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_link") 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest$ac_exeext &&
6601 $as_test_x conftest$ac_exeext; then
6602 ac_cv_search_getrpcbynumber=$ac_res
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6612 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6616 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6619 ac_cv_search_getrpcbynumber=no
6622 LIBS=$ac_func_search_save_LIBS
6624 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6625 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6626 ac_res=$ac_cv_search_getrpcbynumber
6627 if test "$ac_res" != no; then
6628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6629 cat >>confdefs.h <<\_ACEOF
6630 #define HAVE_GETRPCBYNUMBER 1
6638 # Most operating systems have gethostbyname() in the default searched
6639 # libraries (i.e. libc):
6640 # Some OSes (eg. Solaris) place it in libnsl
6641 # Some strange OSes (SINIX) have it in libsocket:
6642 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6643 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6644 if test "${ac_cv_search_gethostbyname+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 ac_func_search_save_LIBS=$LIBS
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6655 /* Override any GCC internal prototype to avoid an error.
6656 Use char because int might match the return type of a GCC
6657 builtin and then its argument prototype would still apply. */
6661 char gethostbyname ();
6665 return gethostbyname ();
6670 for ac_lib in '' nsl socket resolv; do
6671 if test -z "$ac_lib"; then
6672 ac_res="none required"
6675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (ac_try="$ac_link"
6680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6681 *) ac_try_echo
=$ac_try;;
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_link") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1
>conftest.err
6688 cat conftest.err
>&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest
$ac_exeext &&
6694 $as_test_x conftest
$ac_exeext; then
6695 ac_cv_search_gethostbyname
=$ac_res
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.
$ac_ext >&5
6703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6705 if test "${ac_cv_search_gethostbyname+set}" = set; then
6709 if test "${ac_cv_search_gethostbyname+set}" = set; then
6712 ac_cv_search_gethostbyname
=no
6715 LIBS
=$ac_func_search_save_LIBS
6717 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6718 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6719 ac_res
=$ac_cv_search_gethostbyname
6720 if test "$ac_res" != no
; then
6721 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6725 # Unfortunately libsocket sometimes depends on libnsl and
6726 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6727 if test "$ac_cv_search_gethostbyname" = "no"
6729 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6730 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6731 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_check_lib_save_LIBS
=$LIBS
6735 LIBS
="-lsocket -lnsl $LIBS"
6736 cat >conftest.
$ac_ext <<_ACEOF
6739 cat confdefs.h
>>conftest.
$ac_ext
6740 cat >>conftest.
$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6743 /* Override any GCC internal prototype to avoid an error.
6744 Use char because int might match the return type of a GCC
6745 builtin and then its argument prototype would still apply. */
6749 char gethostbyname ();
6753 return gethostbyname ();
6758 rm -f conftest.
$ac_objext conftest
$ac_exeext
6759 if { (ac_try
="$ac_link"
6761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_link") 2>conftest.er1
6767 grep -v '^ *+' conftest.er1 >conftest.err
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } && {
6772 test -z "$ac_c_werror_flag" ||
6773 test ! -s conftest.err
6774 } && test -s conftest$ac_exeext &&
6775 $as_test_x conftest$ac_exeext; then
6776 ac_cv_lib_socket_gethostbyname=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_cv_lib_socket_gethostbyname=no
6784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6785 conftest$ac_exeext conftest.$ac_ext
6786 LIBS=$ac_check_lib_save_LIBS
6788 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6789 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6790 if test $ac_cv_lib_socket_gethostbyname = yes; then
6791 LIBS="-lsocket -lnsl $LIBS"
6795 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6796 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6797 if test "${ac_cv_search_socket+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_func_search_save_LIBS=$LIBS
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6808 /* Override any GCC internal prototype to avoid an error.
6809 Use char because int might match the return type of a GCC
6810 builtin and then its argument prototype would still apply. */
6823 for ac_lib in '' socket; do
6824 if test -z "$ac_lib"; then
6825 ac_res="none required"
6828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6830 rm -f conftest.$ac_objext conftest$ac_exeext
6831 if { (ac_try="$ac_link"
6833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6834 *) ac_try_echo
=$ac_try;;
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_link") 2>conftest.er1
6839 grep -v '^ *+' conftest.er1
>conftest.err
6841 cat conftest.err
>&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest
$ac_exeext &&
6847 $as_test_x conftest
$ac_exeext; then
6848 ac_cv_search_socket
=$ac_res
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.
$ac_ext >&5
6856 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6858 if test "${ac_cv_search_socket+set}" = set; then
6862 if test "${ac_cv_search_socket+set}" = set; then
6865 ac_cv_search_socket
=no
6868 LIBS
=$ac_func_search_save_LIBS
6870 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6871 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6872 ac_res
=$ac_cv_search_socket
6873 if test "$ac_res" != no
; then
6874 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6877 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6878 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6879 if test "${ac_cv_lib_socket_socket+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 ac_check_lib_save_LIBS
=$LIBS
6883 LIBS
="-lsocket -lnsl $LIBS"
6884 cat >conftest.
$ac_ext <<_ACEOF
6887 cat confdefs.h
>>conftest.
$ac_ext
6888 cat >>conftest.
$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6891 /* Override any GCC internal prototype to avoid an error.
6892 Use char because int might match the return type of a GCC
6893 builtin and then its argument prototype would still apply. */
6906 rm -f conftest.
$ac_objext conftest
$ac_exeext
6907 if { (ac_try
="$ac_link"
6909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_link") 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && {
6920 test -z "$ac_c_werror_flag" ||
6921 test ! -s conftest.err
6922 } && test -s conftest$ac_exeext &&
6923 $as_test_x conftest$ac_exeext; then
6924 ac_cv_lib_socket_socket=yes
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_cv_lib_socket_socket=no
6932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6933 conftest$ac_exeext conftest.$ac_ext
6934 LIBS=$ac_check_lib_save_LIBS
6936 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6937 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6938 if test $ac_cv_lib_socket_socket = yes; then
6939 LIBS="-lsocket -lnsl $LIBS"
6944 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6945 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6946 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6947 if test "${ac_cv_search_putmsg+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 ac_func_search_save_LIBS=$LIBS
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6958 /* Override any GCC internal prototype to avoid an error.
6959 Use char because int might match the return type of a GCC
6960 builtin and then its argument prototype would still apply. */
6973 for ac_lib in '' str; do
6974 if test -z "$ac_lib"; then
6975 ac_res="none required"
6978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6984 *) ac_try_echo
=$ac_try;;
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_link") 2>conftest.er1
6989 grep -v '^ *+' conftest.er1
>conftest.err
6991 cat conftest.err
>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest
$ac_exeext &&
6997 $as_test_x conftest
$ac_exeext; then
6998 ac_cv_search_putmsg
=$ac_res
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7006 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7008 if test "${ac_cv_search_putmsg+set}" = set; then
7012 if test "${ac_cv_search_putmsg+set}" = set; then
7015 ac_cv_search_putmsg
=no
7018 LIBS
=$ac_func_search_save_LIBS
7020 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7021 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
7022 ac_res
=$ac_cv_search_putmsg
7023 if test "$ac_res" != no
; then
7024 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7031 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
7032 if test -f $pfopen ; then
7034 for ac_func
in pfopen
7036 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7039 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 cat >conftest.
$ac_ext <<_ACEOF
7045 cat confdefs.h
>>conftest.
$ac_ext
7046 cat >>conftest.
$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7050 #define $ac_func innocuous_$ac_func
7052 /* System header to define __stub macros and hopefully few prototypes,
7053 which can conflict with char $ac_func (); below.
7054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7055 <limits.h> exists even on freestanding compilers. */
7058 # include <limits.h>
7060 # include <assert.h>
7065 /* Override any GCC internal prototype to avoid an error.
7066 Use char because int might match the return type of a GCC
7067 builtin and then its argument prototype would still apply. */
7072 /* The GNU C library defines this for functions which it implements
7073 to always fail with ENOSYS. Some functions are actually named
7074 something starting with __ and the normal name is an alias. */
7075 #if defined __stub_$ac_func || defined __stub___$ac_func
7087 rm -f conftest.
$ac_objext conftest
$ac_exeext
7088 if { (ac_try
="$ac_link"
7090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_link") 2>conftest.er1
7096 grep -v '^ *+' conftest.er1 >conftest.err
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } && {
7101 test -z "$ac_c_werror_flag" ||
7102 test ! -s conftest.err
7103 } && test -s conftest$ac_exeext &&
7104 $as_test_x conftest$ac_exeext; then
7105 eval "$as_ac_var=yes"
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 eval "$as_ac_var=no"
7113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7114 conftest$ac_exeext conftest.$ac_ext
7116 ac_res=`eval echo '${'$as_ac_var'}'`
7117 { echo "$as_me:$LINENO: result: $ac_res" >&5
7118 echo "${ECHO_T}$ac_res" >&6; }
7119 if test `eval echo '${'$as_ac_var'}'` = yes; then
7120 cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
7127 if test $ac_cv_func_pfopen = "no" ; then
7128 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7129 echo "${ECHO_T}Using $pfopen" >&6; }
7130 LIBS="$LIBS $pfopen"
7133 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7134 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7137 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7138 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7139 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7140 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
7141 sed -e 's/-PRE-GIT$//' `
7142 if test $lastdir = $basedir ; then
7146 if test -r $dir/libpcap.a ; then
7147 libpcap=$dir/libpcap.a
7151 if test $libpcap = FAIL ; then
7152 { echo "$as_me:$LINENO: result: not found" >&5
7153 echo "${ECHO_T}not found" >&6; }
7156 # Look for pcap-config.
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 case $PCAP_CONFIG in
7168 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7190 if test -n "$PCAP_CONFIG"; then
7191 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7192 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7194 { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7200 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7201 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7202 # Extract the first word of "pcap-config", so it can be a program name with args.
7203 set dummy pcap-config; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 case $ac_pt_PCAP_CONFIG in
7211 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7233 if test -n "$ac_pt_PCAP_CONFIG"; then
7234 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7235 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7241 if test "x$ac_pt_PCAP_CONFIG" = x; then
7244 case $cross_compiling:$ac_tool_warned in
7246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7247 whose name does not start with the host triplet. If you think this
7248 configuration is useful to you, please write to autoconf@gnu.org." >&5
7249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7250 whose name does not start with the host triplet. If you think this
7251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7252 ac_tool_warned=yes ;;
7254 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7257 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7260 if test -n "$PCAP_CONFIG" ; then
7262 # Found - use it to get the include flags for
7263 # libpcap and the flags to link with libpcap.
7265 # Please read section 11.6 "Shell Substitutions"
7266 # in the autoconf manual before doing anything
7267 # to this that involves quoting. Especially note
7268 # the statement "There is just no portable way to use
7269 # double-quoted strings inside double-quoted back-quoted
7270 # expressions (pfew!)."
7272 cflags=`"$PCAP_CONFIG" --cflags`
7273 V_INCLS="$cflags $V_INCLS"
7274 libpcap=`"$PCAP_CONFIG" --libs`
7277 # Not found; look for pcap.
7279 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7280 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7281 if test "${ac_cv_lib_pcap_main+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 ac_check_lib_save_LIBS=$LIBS
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (ac_try="$ac_link"
7305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7306 *) ac_try_echo
=$ac_try;;
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_link") 2>conftest.er1
7311 grep -v '^ *+' conftest.er1
>conftest.err
7313 cat conftest.err
>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest
$ac_exeext &&
7319 $as_test_x conftest
$ac_exeext; then
7320 ac_cv_lib_pcap_main
=yes
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.
$ac_ext >&5
7325 ac_cv_lib_pcap_main
=no
7328 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7329 conftest
$ac_exeext conftest.
$ac_ext
7330 LIBS
=$ac_check_lib_save_LIBS
7332 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7333 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7334 if test $ac_cv_lib_pcap_main = yes; then
7338 if test $libpcap = FAIL
; then
7339 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7340 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7341 { (exit 1); exit 1; }; }
7343 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7344 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7345 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
7346 \
( ! -r /usr
/include
/pcap.h \
); then
7347 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
7348 d
="/usr/local/include/pcap"
7349 elif test -r /usr
/include
/pcap
/pcap.h
; then
7350 d
="/usr/include/pcap"
7353 if test -z "$d" ; then
7354 { echo "$as_me:$LINENO: result: not found" >&5
7355 echo "${ECHO_T}not found" >&6; }
7357 V_INCLS
="-I$d $V_INCLS"
7358 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7359 echo "${ECHO_T}found -- -I$d added" >&6; }
7364 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7365 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7366 if test -r $d/pcap.h
; then
7367 V_INCLS
="-I$d $V_INCLS"
7368 elif test -r $places/pcap.h
; then
7369 V_INCLS
="-I$places $V_INCLS"
7371 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7372 echo "$as_me: error: cannot find pcap.h" >&2;}
7373 { (exit see INSTALL
); exit see INSTALL
; }; }
7375 { echo "$as_me:$LINENO: result: $libpcap" >&5
7376 echo "${ECHO_T}$libpcap" >&6; }
7377 # Extract the first word of "pcap-config", so it can be a program name with args.
7378 set dummy pcap-config
; ac_word
=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 case $PCAP_CONFIG in
7386 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
7389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir
=.
7394 for ac_exec_ext
in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
7408 if test -n "$PCAP_CONFIG"; then
7409 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7410 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 if test -n "$PCAP_CONFIG"; then
7419 # The libpcap directory has a pcap-config script.
7420 # Use it to get any additioal libraries needed
7421 # to link with the libpcap archive library in
7424 # Please read section 11.6 "Shell Substitutions"
7425 # in the autoconf manual before doing anything
7426 # to this that involves quoting. Especially note
7427 # the statement "There is just no portable way to use
7428 # double-quoted strings inside double-quoted back-quoted
7429 # expressions (pfew!)."
7431 additional_libs
=`"$PCAP_CONFIG" --additional-libs --static`
7432 libpcap
="$libpcap $additional_libs"
7435 LIBS
="$libpcap $LIBS"
7436 if ! test -n "$PCAP_CONFIG" ; then
7438 # We don't have pcap-config; find out any additional link flags
7439 # we need. (If we have pcap-config, we assume it tells us what
7446 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7447 # present, as we use the STREAMS routines.
7449 # (XXX - true only if we're linking with a static libpcap?)
7451 pseexe
="/lib/pse.exp"
7452 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7453 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7454 if test -f $pseexe ; then
7455 { echo "$as_me:$LINENO: result: yes" >&5
7456 echo "${ECHO_T}yes" >&6; }
7457 LIBS
="$LIBS -I:$pseexe"
7461 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7462 # we use them to load the BPF module.
7464 # (XXX - true only if we're linking with a static libpcap?)
7466 LIBS
="$LIBS -lodm -lcfg"
7471 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7472 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7473 if test "${ac_cv_func_pcap_loop+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 cat >conftest.
$ac_ext <<_ACEOF
7479 cat confdefs.h
>>conftest.
$ac_ext
7480 cat >>conftest.
$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7484 #define pcap_loop innocuous_pcap_loop
7486 /* System header to define __stub macros and hopefully few prototypes,
7487 which can conflict with char pcap_loop (); below.
7488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7489 <limits.h> exists even on freestanding compilers. */
7492 # include <limits.h>
7494 # include <assert.h>
7499 /* Override any GCC internal prototype to avoid an error.
7500 Use char because int might match the return type of a GCC
7501 builtin and then its argument prototype would still apply. */
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7516 return pcap_loop ();
7521 rm -f conftest.
$ac_objext conftest
$ac_exeext
7522 if { (ac_try
="$ac_link"
7524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1 >conftest.err
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest$ac_exeext &&
7538 $as_test_x conftest$ac_exeext; then
7539 ac_cv_func_pcap_loop=yes
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_cv_func_pcap_loop=no
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7550 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7551 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7552 if test $ac_cv_func_pcap_loop = yes; then
7556 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7557 config.log file in your report. If you have downloaded libpcap from
7558 tcpdump.org, and built it yourself, please also include the config.log
7559 file from the libpcap source directory, the Makefile from the libpcap
7560 source directory, and the output of the make process for libpcap, as
7561 this could be a problem with the libpcap that was built, and we will
7562 not be able to determine why this is happening, and thus will not be
7563 able to fix it, without that information, as we have not been able to
7564 reproduce this problem ourselves." >&5
7565 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7566 config.log file in your report. If you have downloaded libpcap from
7567 tcpdump.org, and built it yourself, please also include the config.log
7568 file from the libpcap source directory, the Makefile from the libpcap
7569 source directory, and the output of the make process for libpcap, as
7570 this could be a problem with the libpcap that was built, and we will
7571 not be able to determine why this is happening, and thus will not be
7572 able to fix it, without that information, as we have not been able to
7573 reproduce this problem ourselves." >&2;}
7574 { (exit 1); exit 1; }; }
7579 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7580 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7581 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 cat >conftest.$ac_ext <<_ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7592 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7594 /* System header to define __stub macros and hopefully few prototypes,
7595 which can conflict with char pcap_list_datalinks (); below.
7596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7597 <limits.h> exists even on freestanding compilers. */
7600 # include <limits.h>
7602 # include <assert.h>
7605 #undef pcap_list_datalinks
7607 /* Override any GCC internal prototype to avoid an error.
7608 Use char because int might match the return type of a GCC
7609 builtin and then its argument prototype would still apply. */
7613 char pcap_list_datalinks ();
7614 /* The GNU C library defines this for functions which it implements
7615 to always fail with ENOSYS. Some functions are actually named
7616 something starting with __ and the normal name is an alias. */
7617 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7624 return pcap_list_datalinks ();
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7633 *) ac_try_echo
=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_link") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1
>conftest.err
7640 cat conftest.err
>&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest
$ac_exeext &&
7646 $as_test_x conftest
$ac_exeext; then
7647 ac_cv_func_pcap_list_datalinks
=yes
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.
$ac_ext >&5
7652 ac_cv_func_pcap_list_datalinks
=no
7655 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7656 conftest
$ac_exeext conftest.
$ac_ext
7658 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7659 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7660 if test $ac_cv_func_pcap_list_datalinks = yes; then
7661 cat >>confdefs.h
<<\_ACEOF
7662 #define HAVE_PCAP_LIST_DATALINKS 1
7667 case " $LIBOBJS " in
7668 *" datalinks.$ac_objext "* ) ;;
7669 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
7676 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7677 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7678 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 cat >conftest.
$ac_ext <<_ACEOF
7684 cat confdefs.h
>>conftest.
$ac_ext
7685 cat >>conftest.
$ac_ext <<_ACEOF
7686 /* end confdefs.h. */
7687 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7689 #define pcap_set_datalink innocuous_pcap_set_datalink
7691 /* System header to define __stub macros and hopefully few prototypes,
7692 which can conflict with char pcap_set_datalink (); below.
7693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7694 <limits.h> exists even on freestanding compilers. */
7697 # include <limits.h>
7699 # include <assert.h>
7702 #undef pcap_set_datalink
7704 /* Override any GCC internal prototype to avoid an error.
7705 Use char because int might match the return type of a GCC
7706 builtin and then its argument prototype would still apply. */
7710 char pcap_set_datalink ();
7711 /* The GNU C library defines this for functions which it implements
7712 to always fail with ENOSYS. Some functions are actually named
7713 something starting with __ and the normal name is an alias. */
7714 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7721 return pcap_set_datalink ();
7726 rm -f conftest.
$ac_objext conftest
$ac_exeext
7727 if { (ac_try
="$ac_link"
7729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_link") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest$ac_exeext &&
7743 $as_test_x conftest$ac_exeext; then
7744 ac_cv_func_pcap_set_datalink=yes
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 ac_cv_func_pcap_set_datalink=no
7752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7753 conftest$ac_exeext conftest.$ac_ext
7755 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7756 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7757 if test $ac_cv_func_pcap_set_datalink = yes; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_PCAP_SET_DATALINK 1
7764 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7765 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7766 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7775 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7777 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7779 /* System header to define __stub macros and hopefully few prototypes,
7780 which can conflict with char pcap_datalink_name_to_val (); below.
7781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7782 <limits.h> exists even on freestanding compilers. */
7785 # include <limits.h>
7787 # include <assert.h>
7790 #undef pcap_datalink_name_to_val
7792 /* Override any GCC internal prototype to avoid an error.
7793 Use char because int might match the return type of a GCC
7794 builtin and then its argument prototype would still apply. */
7798 char pcap_datalink_name_to_val ();
7799 /* The GNU C library defines this for functions which it implements
7800 to always fail with ENOSYS. Some functions are actually named
7801 something starting with __ and the normal name is an alias. */
7802 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7809 return pcap_datalink_name_to_val ();
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (ac_try="$ac_link"
7817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7818 *) ac_try_echo
=$ac_try;;
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_link") 2>conftest.er1
7823 grep -v '^ *+' conftest.er1
>conftest.err
7825 cat conftest.err
>&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && {
7828 test -z "$ac_c_werror_flag" ||
7829 test ! -s conftest.err
7830 } && test -s conftest
$ac_exeext &&
7831 $as_test_x conftest
$ac_exeext; then
7832 ac_cv_func_pcap_datalink_name_to_val
=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.
$ac_ext >&5
7837 ac_cv_func_pcap_datalink_name_to_val
=no
7840 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7841 conftest
$ac_exeext conftest.
$ac_ext
7843 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7844 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7845 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7847 cat >>confdefs.h
<<\_ACEOF
7848 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7851 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7852 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7853 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.
$ac_ext <<_ACEOF
7859 cat confdefs.h
>>conftest.
$ac_ext
7860 cat >>conftest.
$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7864 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7866 /* System header to define __stub macros and hopefully few prototypes,
7867 which can conflict with char pcap_datalink_val_to_description (); below.
7868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7869 <limits.h> exists even on freestanding compilers. */
7872 # include <limits.h>
7874 # include <assert.h>
7877 #undef pcap_datalink_val_to_description
7879 /* Override any GCC internal prototype to avoid an error.
7880 Use char because int might match the return type of a GCC
7881 builtin and then its argument prototype would still apply. */
7885 char pcap_datalink_val_to_description ();
7886 /* The GNU C library defines this for functions which it implements
7887 to always fail with ENOSYS. Some functions are actually named
7888 something starting with __ and the normal name is an alias. */
7889 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7896 return pcap_datalink_val_to_description ();
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext
7902 if { (ac_try
="$ac_link"
7904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_link") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest$ac_exeext &&
7918 $as_test_x conftest$ac_exeext; then
7919 ac_cv_func_pcap_datalink_val_to_description=yes
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 ac_cv_func_pcap_datalink_val_to_description=no
7927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928 conftest$ac_exeext conftest.$ac_ext
7930 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7931 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7932 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7933 cat >>confdefs.h <<\_ACEOF
7934 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7939 case " $LIBOBJS " in
7940 *" dlnames.$ac_objext "* ) ;;
7941 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7951 case " $LIBOBJS " in
7952 *" dlnames.$ac_objext "* ) ;;
7953 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7962 for ac_func in pcap_breakloop
7964 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7978 #define $ac_func innocuous_$ac_func
7980 /* System header to define __stub macros and hopefully few prototypes,
7981 which can conflict with char $ac_func (); below.
7982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7983 <limits.h> exists even on freestanding compilers. */
7986 # include <limits.h>
7988 # include <assert.h>
7993 /* Override any GCC internal prototype to avoid an error.
7994 Use char because int might match the return type of a GCC
7995 builtin and then its argument prototype would still apply. */
8000 /* The GNU C library defines this for functions which it implements
8001 to always fail with ENOSYS. Some functions are actually named
8002 something starting with __ and the normal name is an alias. */
8003 #if defined __stub_$ac_func || defined __stub___$ac_func
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (ac_try="$ac_link"
8018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8019 *) ac_try_echo
=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_link") 2>conftest.er1
8024 grep -v '^ *+' conftest.er1
>conftest.err
8026 cat conftest.err
>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest
$ac_exeext &&
8032 $as_test_x conftest
$ac_exeext; then
8033 eval "$as_ac_var=yes"
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.
$ac_ext >&5
8038 eval "$as_ac_var=no"
8041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8042 conftest
$ac_exeext conftest.
$ac_ext
8044 ac_res
=`eval echo '${'$as_ac_var'}'`
8045 { echo "$as_me:$LINENO: result: $ac_res" >&5
8046 echo "${ECHO_T}$ac_res" >&6; }
8047 if test `eval echo '${'$as_ac_var'}'` = yes; then
8048 cat >>confdefs.h
<<_ACEOF
8049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8056 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8057 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8058 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.
$ac_ext <<_ACEOF
8064 cat confdefs.h
>>conftest.
$ac_ext
8065 cat >>conftest.
$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8069 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8071 /* System header to define __stub macros and hopefully few prototypes,
8072 which can conflict with char pcap_dump_ftell (); below.
8073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074 <limits.h> exists even on freestanding compilers. */
8077 # include <limits.h>
8079 # include <assert.h>
8082 #undef pcap_dump_ftell
8084 /* Override any GCC internal prototype to avoid an error.
8085 Use char because int might match the return type of a GCC
8086 builtin and then its argument prototype would still apply. */
8090 char pcap_dump_ftell ();
8091 /* The GNU C library defines this for functions which it implements
8092 to always fail with ENOSYS. Some functions are actually named
8093 something starting with __ and the normal name is an alias. */
8094 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8101 return pcap_dump_ftell ();
8106 rm -f conftest.
$ac_objext conftest
$ac_exeext
8107 if { (ac_try
="$ac_link"
8109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_link") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest$ac_exeext &&
8123 $as_test_x conftest$ac_exeext; then
8124 ac_cv_func_pcap_dump_ftell=yes
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_func_pcap_dump_ftell=no
8132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8133 conftest$ac_exeext conftest.$ac_ext
8135 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8136 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8137 if test $ac_cv_func_pcap_dump_ftell = yes; then
8138 cat >>confdefs.h <<\_ACEOF
8139 #define HAVE_PCAP_DUMP_FTELL 1
8144 case " $LIBOBJS " in
8145 *" pcap_dump_ftell.$ac_objext "* ) ;;
8146 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8156 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8157 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8159 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8160 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8161 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8162 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8163 # it does not ship with a libc symbol "inet_ntop()", it ships with
8164 # "_inet_ntop()", and has a #define macro in one of the system headers
8167 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8168 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #include <sys/types.h>
8176 #include <sys/socket.h>
8177 #include <netinet/in.h>
8178 #include <arpa/inet.h>
8182 char src[4], dst[128];
8183 inet_ntop(AF_INET, src, dst, sizeof(dst));
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (ac_try="$ac_link"
8191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8192 *) ac_try_echo
=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_link") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1
>conftest.err
8199 cat conftest.err
>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest
$ac_exeext &&
8205 $as_test_x conftest
$ac_exeext; then
8206 { echo "$as_me:$LINENO: result: yes" >&5
8207 echo "${ECHO_T}yes" >&6; }
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.
$ac_ext >&5
8212 { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8214 case " $LIBOBJS " in
8215 *" inet_ntop.$ac_objext "* ) ;;
8216 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8222 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8223 conftest
$ac_exeext conftest.
$ac_ext
8224 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8225 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8226 cat >conftest.
$ac_ext <<_ACEOF
8229 cat confdefs.h
>>conftest.
$ac_ext
8230 cat >>conftest.
$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 #include <sys/types.h>
8233 #include <sys/socket.h>
8234 #include <netinet/in.h>
8235 #include <arpa/inet.h>
8239 char src[128], dst[4];
8240 inet_pton(AF_INET, src, dst);
8245 rm -f conftest.
$ac_objext conftest
$ac_exeext
8246 if { (ac_try
="$ac_link"
8248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest$ac_exeext &&
8262 $as_test_x conftest$ac_exeext; then
8263 { echo "$as_me:$LINENO: result: yes" >&5
8264 echo "${ECHO_T}yes" >&6; }
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8271 case " $LIBOBJS " in
8272 *" inet_pton.$ac_objext "* ) ;;
8273 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8280 conftest$ac_exeext conftest.$ac_ext
8281 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8282 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 #include <sys/types.h>
8290 #include <netinet/in.h>
8291 #include <arpa/inet.h>
8297 inet_aton(src, &dst);
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8306 *) ac_try_echo
=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_link") 2>conftest.er1
8311 grep -v '^ *+' conftest.er1
>conftest.err
8313 cat conftest.err
>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest
$ac_exeext &&
8319 $as_test_x conftest
$ac_exeext; then
8320 { echo "$as_me:$LINENO: result: yes" >&5
8321 echo "${ECHO_T}yes" >&6; }
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.
$ac_ext >&5
8326 { echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; }
8328 case " $LIBOBJS " in
8329 *" inet_aton.$ac_objext "* ) ;;
8330 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
8336 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8337 conftest
$ac_exeext conftest.
$ac_ext
8340 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8342 # You are in a twisty little maze of UN*Xes, all different.
8343 # Some might not have ether_ntohost().
8344 # Some might have it, but not declare it in any header file.
8345 # Some might have it, but declare it in <netinet/if_ether.h>.
8346 # Some might have it, but declare it in <netinet/ether.h>
8347 # (And some might have it but document it as something declared in
8348 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8350 # Before you is a C compiler.
8353 for ac_func
in ether_ntohost
8355 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8358 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 cat >conftest.
$ac_ext <<_ACEOF
8364 cat confdefs.h
>>conftest.
$ac_ext
8365 cat >>conftest.
$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8369 #define $ac_func innocuous_$ac_func
8371 /* System header to define __stub macros and hopefully few prototypes,
8372 which can conflict with char $ac_func (); below.
8373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8374 <limits.h> exists even on freestanding compilers. */
8377 # include <limits.h>
8379 # include <assert.h>
8384 /* Override any GCC internal prototype to avoid an error.
8385 Use char because int might match the return type of a GCC
8386 builtin and then its argument prototype would still apply. */
8391 /* The GNU C library defines this for functions which it implements
8392 to always fail with ENOSYS. Some functions are actually named
8393 something starting with __ and the normal name is an alias. */
8394 #if defined __stub_$ac_func || defined __stub___$ac_func
8406 rm -f conftest.
$ac_objext conftest
$ac_exeext
8407 if { (ac_try
="$ac_link"
8409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_link") 2>conftest.er1
8415 grep -v '^ *+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest$ac_exeext &&
8423 $as_test_x conftest$ac_exeext; then
8424 eval "$as_ac_var=yes"
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 eval "$as_ac_var=no"
8432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433 conftest$ac_exeext conftest.$ac_ext
8435 ac_res=`eval echo '${'$as_ac_var'}'`
8436 { echo "$as_me:$LINENO: result: $ac_res" >&5
8437 echo "${ECHO_T}$ac_res" >&6; }
8438 if test `eval echo '${'$as_ac_var'}'` = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8443 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8444 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8445 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 if test "$cross_compiling" = yes; then
8450 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8460 #include <sys/types.h>
8461 #include <sys/param.h>
8462 #include <sys/socket.h>
8465 main(int argc, char **argv)
8467 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8468 char name[MAXHOSTNAMELEN];
8470 ether_ntohost(name, (struct ether_addr *)ea);
8475 rm -f conftest$ac_exeext
8476 if { (ac_try="$ac_link"
8478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8479 *) ac_try_echo
=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_link") 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8486 { (case "(($ac_try" in
8487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_try") 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_cv_buggy_ether_ntohost=no
8497 echo "$as_me: program exited with status $ac_status" >&5
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_cv_buggy_ether_ntohost=yes
8504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8509 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8510 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8511 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8512 cat >>confdefs.h <<\_ACEOF
8513 #define USE_ETHER_NTOHOST 1
8521 if test "$ac_cv_func_ether_ntohost" = yes -a \
8522 "$ac_cv_buggy_ether_ntohost" = "no"; then
8524 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8526 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8528 # Yes. Does it declare ether_ntohost()?
8530 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8531 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8532 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8542 #include <sys/types.h>
8543 #include <sys/socket.h>
8544 #include <netinet/in.h>
8545 #include <arpa/inet.h>
8549 #include <netinet/if_ether.h>
8555 #ifndef ether_ntohost
8556 (void) ether_ntohost;
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8567 *) ac_try_echo
=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1
>conftest.err
8574 cat conftest.err
>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.
$ac_objext; then
8580 ac_cv_have_decl_ether_ntohost
=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 ac_cv_have_decl_ether_ntohost
=no
8588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8590 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8591 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8592 if test $ac_cv_have_decl_ether_ntohost = yes; then
8595 cat >>confdefs.h
<<\_ACEOF
8596 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8606 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8608 # No, how about <netinet/ether.h>, as on Linux?
8611 for ac_header
in netinet
/ether.h
8613 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8617 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 ac_res
=`eval echo '${'$as_ac_Header'}'`
8621 { echo "$as_me:$LINENO: result: $ac_res" >&5
8622 echo "${ECHO_T}$ac_res" >&6; }
8624 # Is the header compilable?
8625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8627 cat >conftest.
$ac_ext <<_ACEOF
8630 cat confdefs.h
>>conftest.
$ac_ext
8631 cat >>conftest.
$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8634 #include <$ac_header>
8636 rm -f conftest.
$ac_objext
8637 if { (ac_try
="$ac_compile"
8639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_compile") 2>conftest.er1
8645 grep -v '^ *+' conftest.er1 >conftest.err
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
8652 } && test -s conftest.$ac_objext; then
8653 ac_header_compiler=yes
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_header_compiler=no
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663 echo "${ECHO_T}$ac_header_compiler" >&6; }
8665 # Is the header present?
8666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <$ac_header>
8676 if { (ac_try="$ac_cpp conftest.$ac_ext"
8678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8679 *) ac_try_echo
=$ac_try;;
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8684 grep -v '^ *+' conftest.er1
>conftest.err
8686 cat conftest.err
>&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } >/dev
/null
&& {
8689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8692 ac_header_preproc
=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.
$ac_ext >&5
8697 ac_header_preproc
=no
8700 rm -f conftest.err conftest.
$ac_ext
8701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8702 echo "${ECHO_T}$ac_header_preproc" >&6; }
8704 # So? What about this header?
8705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8711 ac_header_preproc
=yes
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8731 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 eval "$as_ac_Header=\$ac_header_preproc"
8736 ac_res
=`eval echo '${'$as_ac_Header'}'`
8737 { echo "$as_me:$LINENO: result: $ac_res" >&5
8738 echo "${ECHO_T}$ac_res" >&6; }
8741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8742 cat >>confdefs.h
<<_ACEOF
8743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8750 if test "$ac_cv_header_netinet_ether_h" = yes; then
8752 # We have it - does it declare ether_ntohost()?
8753 # Unset ac_cv_have_decl_ether_ntohost so we don't
8754 # treat the previous failure as a cached value and
8755 # suppress the next test.
8757 unset ac_cv_have_decl_ether_ntohost
8758 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8759 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8760 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 cat >conftest.
$ac_ext <<_ACEOF
8766 cat confdefs.h
>>conftest.
$ac_ext
8767 cat >>conftest.
$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8770 #include <netinet/ether.h>
8776 #ifndef ether_ntohost
8777 (void) ether_ntohost;
8784 rm -f conftest.
$ac_objext
8785 if { (ac_try
="$ac_compile"
8787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
8793 grep -v '^ *+' conftest.er1 >conftest.err
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } && {
8798 test -z "$ac_c_werror_flag" ||
8799 test ! -s conftest.err
8800 } && test -s conftest.$ac_objext; then
8801 ac_cv_have_decl_ether_ntohost=yes
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 ac_cv_have_decl_ether_ntohost=no
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8812 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8813 if test $ac_cv_have_decl_ether_ntohost = yes; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8826 # Is ether_ntohost() declared?
8828 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8830 # No, we'll have to declare it ourselves.
8831 # Do we have "struct ether_addr"?
8833 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8834 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8835 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 cat >conftest.$ac_ext <<_ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8845 #include <sys/types.h>
8846 #include <sys/socket.h>
8847 #include <netinet/in.h>
8848 #include <arpa/inet.h>
8852 #include <netinet/if_ether.h>
8855 typedef struct ether_addr ac__type_new_;
8859 if ((ac__type_new_ *) 0)
8861 if (sizeof (ac__type_new_))
8867 rm -f conftest.$ac_objext
8868 if { (ac_try="$ac_compile"
8870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8871 *) ac_try_echo
=$ac_try;;
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_compile") 2>conftest.er1
8876 grep -v '^ *+' conftest.er1
>conftest.err
8878 cat conftest.err
>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest.
$ac_objext; then
8884 ac_cv_type_struct_ether_addr
=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.
$ac_ext >&5
8889 ac_cv_type_struct_ether_addr
=no
8892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8894 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8895 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8896 if test $ac_cv_type_struct_ether_addr = yes; then
8898 cat >>confdefs.h
<<_ACEOF
8899 #define HAVE_STRUCT_ETHER_ADDR 1
8906 cat >>confdefs.h
<<\_ACEOF
8907 #define HAVE_DECL_ETHER_NTOHOST 0
8912 cat >>confdefs.h
<<\_ACEOF
8913 #define HAVE_DECL_ETHER_NTOHOST 1
8919 # libdlpi is needed for Solaris 11 and later.
8920 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8921 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8922 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 ac_check_lib_save_LIBS
=$LIBS
8926 LIBS
="-ldlpi -L/lib $LIBS"
8927 cat >conftest.
$ac_ext <<_ACEOF
8930 cat confdefs.h
>>conftest.
$ac_ext
8931 cat >>conftest.
$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8944 return dlpi_walk ();
8949 rm -f conftest.
$ac_objext conftest
$ac_exeext
8950 if { (ac_try
="$ac_link"
8952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_link") 2>conftest.er1
8958 grep -v '^ *+' conftest.er1 >conftest.err
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } && {
8963 test -z "$ac_c_werror_flag" ||
8964 test ! -s conftest.err
8965 } && test -s conftest$ac_exeext &&
8966 $as_test_x conftest$ac_exeext; then
8967 ac_cv_lib_dlpi_dlpi_walk=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_lib_dlpi_dlpi_walk=no
8975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8976 conftest$ac_exeext conftest.$ac_ext
8977 LIBS=$ac_check_lib_save_LIBS
8979 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8980 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8981 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8982 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8987 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8988 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8989 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8999 # include <sys/types.h>
9000 # include <sys/socket.h>
9004 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9009 rm -f conftest.$ac_objext
9010 if { (ac_try="$ac_compile"
9012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9013 *) ac_try_echo
=$ac_try;;
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_compile") 2>conftest.er1
9018 grep -v '^ *+' conftest.er1
>conftest.err
9020 cat conftest.err
>&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest.
$ac_objext; then
9026 ac_cv_sockaddr_has_sa_len
=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.
$ac_ext >&5
9031 ac_cv_sockaddr_has_sa_len
=no
9034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9037 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9038 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9039 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9040 cat >>confdefs.h
<<\_ACEOF
9041 #define HAVE_SOCKADDR_SA_LEN 1
9046 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9047 missing_includes
=yes
9051 # Do we have the new open API? Check for pcap_create, and assume that,
9052 # if we do, we also have pcap_activate() and the other new routines
9053 # introduced in libpcap 1.0.0.
9056 for ac_func
in pcap_create
9058 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9061 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 cat >conftest.
$ac_ext <<_ACEOF
9067 cat confdefs.h
>>conftest.
$ac_ext
9068 cat >>conftest.
$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9072 #define $ac_func innocuous_$ac_func
9074 /* System header to define __stub macros and hopefully few prototypes,
9075 which can conflict with char $ac_func (); below.
9076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9077 <limits.h> exists even on freestanding compilers. */
9080 # include <limits.h>
9082 # include <assert.h>
9087 /* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9094 /* The GNU C library defines this for functions which it implements
9095 to always fail with ENOSYS. Some functions are actually named
9096 something starting with __ and the normal name is an alias. */
9097 #if defined __stub_$ac_func || defined __stub___$ac_func
9109 rm -f conftest.
$ac_objext conftest
$ac_exeext
9110 if { (ac_try
="$ac_link"
9112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_link") 2>conftest.er1
9118 grep -v '^ *+' conftest.er1 >conftest.err
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && {
9123 test -z "$ac_c_werror_flag" ||
9124 test ! -s conftest.err
9125 } && test -s conftest$ac_exeext &&
9126 $as_test_x conftest$ac_exeext; then
9127 eval "$as_ac_var=yes"
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 eval "$as_ac_var=no"
9135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 conftest$ac_exeext conftest.$ac_ext
9138 ac_res=`eval echo '${'$as_ac_var'}'`
9139 { echo "$as_me:$LINENO: result: $ac_res" >&5
9140 echo "${ECHO_T}$ac_res" >&6; }
9141 if test `eval echo '${'$as_ac_var'}'` = yes; then
9142 cat >>confdefs.h <<_ACEOF
9143 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9149 if test $ac_cv_func_pcap_create = "yes" ; then
9151 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9152 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9155 for ac_func in pcap_set_tstamp_type
9157 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9171 #define $ac_func innocuous_$ac_func
9173 /* System header to define __stub macros and hopefully few prototypes,
9174 which can conflict with char $ac_func (); below.
9175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9176 <limits.h> exists even on freestanding compilers. */
9179 # include <limits.h>
9181 # include <assert.h>
9186 /* Override any GCC internal prototype to avoid an error.
9187 Use char because int might match the return type of a GCC
9188 builtin and then its argument prototype would still apply. */
9193 /* The GNU C library defines this for functions which it implements
9194 to always fail with ENOSYS. Some functions are actually named
9195 something starting with __ and the normal name is an alias. */
9196 #if defined __stub_$ac_func || defined __stub___$ac_func
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (ac_try="$ac_link"
9211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9212 *) ac_try_echo
=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_link") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1
>conftest.err
9219 cat conftest.err
>&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest
$ac_exeext &&
9225 $as_test_x conftest
$ac_exeext; then
9226 eval "$as_ac_var=yes"
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.
$ac_ext >&5
9231 eval "$as_ac_var=no"
9234 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9235 conftest
$ac_exeext conftest.
$ac_ext
9237 ac_res
=`eval echo '${'$as_ac_var'}'`
9238 { echo "$as_me:$LINENO: result: $ac_res" >&5
9239 echo "${ECHO_T}$ac_res" >&6; }
9240 if test `eval echo '${'$as_ac_var'}'` = yes; then
9241 cat >>confdefs.h
<<_ACEOF
9242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9253 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9255 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9258 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 cat >conftest.
$ac_ext <<_ACEOF
9264 cat confdefs.h
>>conftest.
$ac_ext
9265 cat >>conftest.
$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9269 #define $ac_func innocuous_$ac_func
9271 /* System header to define __stub macros and hopefully few prototypes,
9272 which can conflict with char $ac_func (); below.
9273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9274 <limits.h> exists even on freestanding compilers. */
9277 # include <limits.h>
9279 # include <assert.h>
9284 /* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9291 /* The GNU C library defines this for functions which it implements
9292 to always fail with ENOSYS. Some functions are actually named
9293 something starting with __ and the normal name is an alias. */
9294 #if defined __stub_$ac_func || defined __stub___$ac_func
9306 rm -f conftest.
$ac_objext conftest
$ac_exeext
9307 if { (ac_try
="$ac_link"
9309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_link") 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } && {
9320 test -z "$ac_c_werror_flag" ||
9321 test ! -s conftest.err
9322 } && test -s conftest$ac_exeext &&
9323 $as_test_x conftest$ac_exeext; then
9324 eval "$as_ac_var=yes"
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 eval "$as_ac_var=no"
9332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333 conftest$ac_exeext conftest.$ac_ext
9335 ac_res=`eval echo '${'$as_ac_var'}'`
9336 { echo "$as_me:$LINENO: result: $ac_res" >&5
9337 echo "${ECHO_T}$ac_res" >&6; }
9338 if test `eval echo '${'$as_ac_var'}'` = yes; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9346 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9347 savedcppflags="$CPPFLAGS"
9348 CPPFLAGS="$CPPFLAGS $V_INCLS"
9349 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9350 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9351 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9362 typedef pcap_if_t ac__type_new_;
9366 if ((ac__type_new_ *) 0)
9368 if (sizeof (ac__type_new_))
9374 rm -f conftest.$ac_objext
9375 if { (ac_try="$ac_compile"
9377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9378 *) ac_try_echo
=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_compile") 2>conftest.er1
9383 grep -v '^ *+' conftest.er1
>conftest.err
9385 cat conftest.err
>&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } && {
9388 test -z "$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 } && test -s conftest.
$ac_objext; then
9391 ac_cv_type_pcap_if_t
=yes
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.
$ac_ext >&5
9396 ac_cv_type_pcap_if_t
=no
9399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9401 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9402 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9403 if test $ac_cv_type_pcap_if_t = yes; then
9405 cat >>confdefs.h
<<_ACEOF
9406 #define HAVE_PCAP_IF_T 1
9412 CPPFLAGS
="$savedcppflags"
9415 if test $ac_cv_func_pcap_lib_version = "no" ; then
9416 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9417 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9418 cat >conftest.
$ac_ext <<_ACEOF
9421 cat confdefs.h
>>conftest.
$ac_ext
9422 cat >>conftest.
$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9429 extern char pcap_version[];
9431 return (int)pcap_version;
9437 rm -f conftest.
$ac_objext conftest
$ac_exeext
9438 if { (ac_try
="$ac_link"
9440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_link") 2>conftest.er1
9446 grep -v '^ *+' conftest.er1 >conftest.err
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest$ac_exeext &&
9454 $as_test_x conftest$ac_exeext; then
9455 ac_lbl_cv_pcap_version_defined=yes
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_lbl_cv_pcap_version_defined=no
9463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9464 conftest$ac_exeext conftest.$ac_ext
9465 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9466 { echo "$as_me:$LINENO: result: yes" >&5
9467 echo "${ECHO_T}yes" >&6; }
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_PCAP_VERSION 1
9473 { echo "$as_me:$LINENO: result: no" >&5
9474 echo "${ECHO_T}no" >&6; }
9477 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9478 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9479 cat >conftest.$ac_ext <<_ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9490 extern int pcap_debug;
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9502 *) ac_try_echo
=$ac_try;;
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>conftest.er1
9507 grep -v '^ *+' conftest.er1
>conftest.err
9509 cat conftest.err
>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } && {
9512 test -z "$ac_c_werror_flag" ||
9513 test ! -s conftest.err
9514 } && test -s conftest
$ac_exeext &&
9515 $as_test_x conftest
$ac_exeext; then
9516 ac_lbl_cv_pcap_debug_defined
=yes
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.
$ac_ext >&5
9521 ac_lbl_cv_pcap_debug_defined
=no
9524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9525 conftest
$ac_exeext conftest.
$ac_ext
9526 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9527 { echo "$as_me:$LINENO: result: yes" >&5
9528 echo "${ECHO_T}yes" >&6; }
9529 cat >>confdefs.h
<<\_ACEOF
9530 #define HAVE_PCAP_DEBUG 1
9534 { echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6; }
9537 # OK, what about "yydebug"?
9539 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9540 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9541 cat >conftest.
$ac_ext <<_ACEOF
9544 cat confdefs.h
>>conftest.
$ac_ext
9545 cat >>conftest.
$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9560 rm -f conftest.
$ac_objext conftest
$ac_exeext
9561 if { (ac_try
="$ac_link"
9563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
9569 grep -v '^ *+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext &&
9577 $as_test_x conftest$ac_exeext; then
9578 ac_lbl_cv_yydebug_defined=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_lbl_cv_yydebug_defined=no
9586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9587 conftest$ac_exeext conftest.$ac_ext
9588 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9589 { echo "$as_me:$LINENO: result: yes" >&5
9590 echo "${ECHO_T}yes" >&6; }
9591 cat >>confdefs.h <<\_ACEOF
9592 #define HAVE_YYDEBUG 1
9596 { echo "$as_me:$LINENO: result: no" >&5
9597 echo "${ECHO_T}no" >&6; }
9601 for ac_func in bpf_dump
9603 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617 #define $ac_func innocuous_$ac_func
9619 /* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char $ac_func (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9625 # include <limits.h>
9627 # include <assert.h>
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9639 /* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642 #if defined __stub_$ac_func || defined __stub___$ac_func
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9658 *) ac_try_echo
=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_link") 2>conftest.er1
9663 grep -v '^ *+' conftest.er1
>conftest.err
9665 cat conftest.err
>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest
$ac_exeext &&
9671 $as_test_x conftest
$ac_exeext; then
9672 eval "$as_ac_var=yes"
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.
$ac_ext >&5
9677 eval "$as_ac_var=no"
9680 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9681 conftest
$ac_exeext conftest.
$ac_ext
9683 ac_res
=`eval echo '${'$as_ac_var'}'`
9684 { echo "$as_me:$LINENO: result: $ac_res" >&5
9685 echo "${ECHO_T}$ac_res" >&6; }
9686 if test `eval echo '${'$as_ac_var'}'` = yes; then
9687 cat >>confdefs.h
<<_ACEOF
9688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9692 case " $LIBOBJS " in
9693 *" $ac_func.$ac_objext "* ) ;;
9694 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9703 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9707 # Assume V7/BSD convention for man pages (file formats in section 5,
9708 # miscellaneous info in section 7).
9716 cat >>confdefs.h
<<\_ACEOF
9724 # Use System V conventions for man pages.
9734 # Use System V conventions for man pages.
9744 # Use System V conventions for man pages.
9754 # Use System V conventions for man pages.
9761 if test -f /dev
/bpf0
; then
9766 for ac_header
in sys
/bitypes.h
9768 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9772 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 ac_res
=`eval echo '${'$as_ac_Header'}'`
9776 { echo "$as_me:$LINENO: result: $ac_res" >&5
9777 echo "${ECHO_T}$ac_res" >&6; }
9779 # Is the header compilable?
9780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9782 cat >conftest.
$ac_ext <<_ACEOF
9785 cat confdefs.h
>>conftest.
$ac_ext
9786 cat >>conftest.
$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 #include <$ac_header>
9791 rm -f conftest.
$ac_objext
9792 if { (ac_try
="$ac_compile"
9794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_compile") 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest.$ac_objext; then
9808 ac_header_compiler=yes
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_header_compiler=no
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 echo "${ECHO_T}$ac_header_compiler" >&6; }
9820 # Is the header present?
9821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 #include <$ac_header>
9831 if { (ac_try="$ac_cpp conftest.$ac_ext"
9833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9834 *) ac_try_echo
=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1
>conftest.err
9841 cat conftest.err
>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } >/dev
/null
&& {
9844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9847 ac_header_preproc
=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.
$ac_ext >&5
9852 ac_header_preproc
=no
9855 rm -f conftest.err conftest.
$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 echo "${ECHO_T}$ac_header_preproc" >&6; }
9859 # So? What about this header?
9860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9866 ac_header_preproc
=yes
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9886 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 eval "$as_ac_Header=\$ac_header_preproc"
9891 ac_res
=`eval echo '${'$as_ac_Header'}'`
9892 { echo "$as_me:$LINENO: result: $ac_res" >&5
9893 echo "${ECHO_T}$ac_res" >&6; }
9896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9897 cat >>confdefs.h
<<_ACEOF
9898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9906 { echo "$as_me:$LINENO: checking for int8_t" >&5
9907 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9908 if test "${ac_cv_type_int8_t+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.
$ac_ext <<_ACEOF
9914 cat confdefs.h
>>conftest.
$ac_ext
9915 cat >>conftest.
$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 $ac_includes_default
9918 #ifdef HAVE_SYS_BITYPES_H
9919 #include <sys/bitypes.h>
9922 typedef int8_t ac__type_new_;
9926 if ((ac__type_new_ *) 0)
9928 if (sizeof (ac__type_new_))
9934 rm -f conftest.
$ac_objext
9935 if { (ac_try
="$ac_compile"
9937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_compile") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest.$ac_objext; then
9951 ac_cv_type_int8_t=yes
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9956 ac_cv_type_int8_t=no
9959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9962 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9963 if test $ac_cv_type_int8_t = yes; then
9967 cat >>confdefs.h <<\_ACEOF
9968 #define int8_t signed char
9973 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9974 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9975 if test "${ac_cv_type_u_int8_t+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 #ifdef HAVE_SYS_BITYPES_H
9986 #include <sys/bitypes.h>
9989 typedef u_int8_t ac__type_new_;
9993 if ((ac__type_new_ *) 0)
9995 if (sizeof (ac__type_new_))
10001 rm -f conftest.$ac_objext
10002 if { (ac_try="$ac_compile"
10003 case "(($ac_try" in
10004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10005 *) ac_try_echo
=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_compile") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1
>conftest.err
10012 cat conftest.err
>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest.
$ac_objext; then
10018 ac_cv_type_u_int8_t
=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.
$ac_ext >&5
10023 ac_cv_type_u_int8_t
=no
10026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10028 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10029 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10030 if test $ac_cv_type_u_int8_t = yes; then
10034 cat >>confdefs.h
<<\_ACEOF
10035 #define u_int8_t unsigned char
10040 { echo "$as_me:$LINENO: checking for int16_t" >&5
10041 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10042 if test "${ac_cv_type_int16_t+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 cat >conftest.
$ac_ext <<_ACEOF
10048 cat confdefs.h
>>conftest.
$ac_ext
10049 cat >>conftest.
$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 $ac_includes_default
10052 typedef int16_t ac__type_new_;
10056 if ((ac__type_new_ *) 0)
10058 if (sizeof (ac__type_new_))
10064 rm -f conftest.
$ac_objext
10065 if { (ac_try
="$ac_compile"
10066 case "(($ac_try" in
10067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_compile") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest.$ac_objext; then
10081 ac_cv_type_int16_t=yes
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_cv_type_int16_t=no
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10092 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10093 if test $ac_cv_type_int16_t = yes; then
10097 cat >>confdefs.h <<\_ACEOF
10098 #define int16_t short
10101 $ac_includes_default
10102 #ifdef HAVE_SYS_BITYPES_H
10103 #include <sys/bitypes.h>
10107 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10108 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10109 if test "${ac_cv_type_u_int16_t+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 $ac_includes_default
10119 #ifdef HAVE_SYS_BITYPES_H
10120 #include <sys/bitypes.h>
10123 typedef u_int16_t ac__type_new_;
10127 if ((ac__type_new_ *) 0)
10129 if (sizeof (ac__type_new_))
10135 rm -f conftest.$ac_objext
10136 if { (ac_try="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10139 *) ac_try_echo
=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1
>conftest.err
10146 cat conftest.err
>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.
$ac_objext; then
10152 ac_cv_type_u_int16_t
=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.
$ac_ext >&5
10157 ac_cv_type_u_int16_t
=no
10160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10162 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10163 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10164 if test $ac_cv_type_u_int16_t = yes; then
10168 cat >>confdefs.h
<<\_ACEOF
10169 #define u_int16_t unsigned short
10174 { echo "$as_me:$LINENO: checking for int32_t" >&5
10175 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10176 if test "${ac_cv_type_int32_t+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 cat >conftest.
$ac_ext <<_ACEOF
10182 cat confdefs.h
>>conftest.
$ac_ext
10183 cat >>conftest.
$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 $ac_includes_default
10186 #ifdef HAVE_SYS_BITYPES_H
10187 #include <sys/bitypes.h>
10190 typedef int32_t ac__type_new_;
10194 if ((ac__type_new_ *) 0)
10196 if (sizeof (ac__type_new_))
10202 rm -f conftest.
$ac_objext
10203 if { (ac_try
="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_cv_type_int32_t=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_type_int32_t=no
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10230 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10231 if test $ac_cv_type_int32_t = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define int32_t int
10241 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10242 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10243 if test "${ac_cv_type_u_int32_t+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 $ac_includes_default
10253 #ifdef HAVE_SYS_BITYPES_H
10254 #include <sys/bitypes.h>
10257 typedef u_int32_t ac__type_new_;
10261 if ((ac__type_new_ *) 0)
10263 if (sizeof (ac__type_new_))
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10273 *) ac_try_echo
=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_compile") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1
>conftest.err
10280 cat conftest.err
>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && {
10283 test -z "$ac_c_werror_flag" ||
10284 test ! -s conftest.err
10285 } && test -s conftest.
$ac_objext; then
10286 ac_cv_type_u_int32_t
=yes
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.
$ac_ext >&5
10291 ac_cv_type_u_int32_t
=no
10294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10296 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10297 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10298 if test $ac_cv_type_u_int32_t = yes; then
10302 cat >>confdefs.h
<<\_ACEOF
10303 #define u_int32_t unsigned int
10308 { echo "$as_me:$LINENO: checking for int64_t" >&5
10309 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10310 if test "${ac_cv_type_int64_t+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 cat >conftest.
$ac_ext <<_ACEOF
10316 cat confdefs.h
>>conftest.
$ac_ext
10317 cat >>conftest.
$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 $ac_includes_default
10320 #ifdef HAVE_SYS_BITYPES_H
10321 #include <sys/bitypes.h>
10324 typedef int64_t ac__type_new_;
10328 if ((ac__type_new_ *) 0)
10330 if (sizeof (ac__type_new_))
10336 rm -f conftest.
$ac_objext
10337 if { (ac_try
="$ac_compile"
10338 case "(($ac_try" in
10339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_compile") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest.$ac_objext; then
10353 ac_cv_type_int64_t=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_cv_type_int64_t=no
10361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10364 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10365 if test $ac_cv_type_int64_t = yes; then
10369 cat >>confdefs.h <<\_ACEOF
10370 #define int64_t long long
10375 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10376 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10377 if test "${ac_cv_type_u_int64_t+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 $ac_includes_default
10387 #ifdef HAVE_SYS_BITYPES_H
10388 #include <sys/bitypes.h>
10391 typedef u_int64_t ac__type_new_;
10395 if ((ac__type_new_ *) 0)
10397 if (sizeof (ac__type_new_))
10403 rm -f conftest.$ac_objext
10404 if { (ac_try="$ac_compile"
10405 case "(($ac_try" in
10406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10407 *) ac_try_echo
=$ac_try;;
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_compile") 2>conftest.er1
10412 grep -v '^ *+' conftest.er1
>conftest.err
10414 cat conftest.err
>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && {
10417 test -z "$ac_c_werror_flag" ||
10418 test ! -s conftest.err
10419 } && test -s conftest.
$ac_objext; then
10420 ac_cv_type_u_int64_t
=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.
$ac_ext >&5
10425 ac_cv_type_u_int64_t
=no
10428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10430 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10431 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10432 if test $ac_cv_type_u_int64_t = yes; then
10436 cat >>confdefs.h
<<\_ACEOF
10437 #define u_int64_t unsigned long long
10444 # We can't just check for <inttypes.h> - some systems have one that
10445 # doesn't define all the PRI[doxu]64 macros.
10448 for ac_header
in inttypes.h
10450 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10451 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10454 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 ac_res
=`eval echo '${'$as_ac_Header'}'`
10458 { echo "$as_me:$LINENO: result: $ac_res" >&5
10459 echo "${ECHO_T}$ac_res" >&6; }
10461 # Is the header compilable?
10462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10464 cat >conftest.
$ac_ext <<_ACEOF
10467 cat confdefs.h
>>conftest.
$ac_ext
10468 cat >>conftest.
$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 $ac_includes_default
10471 #include <$ac_header>
10473 rm -f conftest.
$ac_objext
10474 if { (ac_try
="$ac_compile"
10475 case "(($ac_try" in
10476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_compile") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest.$ac_objext; then
10490 ac_header_compiler=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_header_compiler=no
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10500 echo "${ECHO_T}$ac_header_compiler" >&6; }
10502 # Is the header present?
10503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 #include <$ac_header>
10513 if { (ac_try="$ac_cpp conftest.$ac_ext"
10514 case "(($ac_try" in
10515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10516 *) ac_try_echo
=$ac_try;;
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10521 grep -v '^ *+' conftest.er1
>conftest.err
10523 cat conftest.err
>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } >/dev
/null
&& {
10526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10529 ac_header_preproc
=yes
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.
$ac_ext >&5
10534 ac_header_preproc
=no
10537 rm -f conftest.err conftest.
$ac_ext
10538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10539 echo "${ECHO_T}$ac_header_preproc" >&6; }
10541 # So? What about this header?
10542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10548 ac_header_preproc
=yes
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10568 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 eval "$as_ac_Header=\$ac_header_preproc"
10573 ac_res
=`eval echo '${'$as_ac_Header'}'`
10574 { echo "$as_me:$LINENO: result: $ac_res" >&5
10575 echo "${ECHO_T}$ac_res" >&6; }
10578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10579 cat >>confdefs.h
<<_ACEOF
10580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10584 # OK, we have inttypes.h, but does it define those macros?
10586 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10587 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10588 cat >conftest.
$ac_ext <<_ACEOF
10592 cat confdefs.h
>>conftest.
$ac_ext
10593 cat >>conftest.
$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10596 #include <inttypes.h>
10598 #include <sys/types.h>
10599 #ifdef HAVE_SYS_BITYPES_H
10600 #include <sys/bitypes.h>
10605 printf("%" PRId64 "\n", (u_int64_t)1);
10606 printf("%" PRIo64 "\n", (u_int64_t)1);
10607 printf("%" PRIx64 "\n", (u_int64_t)1);
10608 printf("%" PRIu64 "\n", (u_int64_t)1);
10613 rm -f conftest.
$ac_objext
10614 if { (ac_try
="$ac_compile"
10615 case "(($ac_try" in
10616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_compile") 2>conftest.er1
10622 grep -v '^ *+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest.$ac_objext; then
10631 { echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6; }
10633 ac_lbl_inttypes_h_defines_formats=yes
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10640 { echo "$as_me:$LINENO: result: no" >&5
10641 echo "${ECHO_T}no" >&6; }
10642 ac_lbl_inttypes_h_defines_formats=no
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 # We don't have inttypes.h, so it obviously can't define those
10654 ac_lbl_inttypes_h_defines_formats=no
10660 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10662 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10663 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10664 if test "$cross_compiling" = yes; then
10665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10666 See \`config.log
' for more details." >&5
10667 echo "$as_me: error: cannot run test program while cross compiling
10668 See \`config.log' for more details.
" >&2;}
10669 { (exit 1); exit 1; }; }
10671 cat >conftest.$ac_ext <<_ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10679 # ifdef HAVE_INTTYPES_H
10680 #include <inttypes.h>
10682 # ifdef HAVE_SYS_BITYPES_H
10683 #include <sys/bitypes.h>
10686 #include <sys/types.h>
10692 sprintf(strbuf, "%016lx
", t << 32);
10693 if (strcmp(strbuf, "0000000100000000") == 0)
10701 rm -f conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_link") 2>&5
10710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_try") 2>&5
10719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10720 (exit $ac_status); }; }; then
10722 cat >>confdefs.h <<\_ACEOF
10723 #define PRId64 "ld
"
10726 cat >>confdefs.h <<\_ACEOF
10727 #define PRIo64 "lo
"
10730 cat >>confdefs.h <<\_ACEOF
10731 #define PRIx64 "lx
"
10734 cat >>confdefs.h <<\_ACEOF
10735 #define PRIu64 "lu
"
10738 { echo "$as_me:$LINENO: result
: yes" >&5
10739 echo "${ECHO_T}yes" >&6; }
10742 echo "$as_me: program exited with status
$ac_status" >&5
10743 echo "$as_me: failed program was
:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ( exit $ac_status )
10748 { echo "$as_me:$LINENO: result
: no
" >&5
10749 echo "${ECHO_T}no
" >&6; }
10752 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
10753 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
10754 if test "$cross_compiling" = yes; then
10755 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
10756 See \
`config.log' for more details." >&5
10757 echo "$as_me: error: cannot run test program while cross compiling
10758 See \`config.log
' for more details." >&2;}
10759 { (exit 1); exit 1; }; }
10761 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10769 # ifdef HAVE_INTTYPES_H
10770 #include <inttypes.h>
10772 # ifdef HAVE_SYS_BITYPES_H
10773 #include <sys/bitypes.h>
10776 #include <sys/types.h>
10782 sprintf(strbuf, "%016llx", t << 32);
10783 if (strcmp(strbuf, "0000000100000000") == 0)
10791 rm -f conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_link") 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10812 cat >>confdefs.h <<\_ACEOF
10813 #define PRId64 "lld"
10816 cat >>confdefs.h <<\_ACEOF
10817 #define PRIo64 "llo"
10820 cat >>confdefs.h <<\_ACEOF
10821 #define PRIx64 "llx"
10824 cat >>confdefs.h <<\_ACEOF
10825 #define PRIu64 "llu"
10828 { echo "$as_me:$LINENO: result: yes" >&5
10829 echo "${ECHO_T}yes" >&6; }
10832 echo "$as_me: program exited with status $ac_status" >&5
10833 echo "$as_me: failed program was:" >&5
10834 sed 's
/^
/|
/' conftest.$ac_ext >&5
10836 ( exit $ac_status )
10838 { echo "$as_me:$LINENO: result: no" >&5
10839 echo "${ECHO_T}no" >&6; }
10842 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10843 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10844 if test "$cross_compiling" = yes; then
10845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10846 See \`config.log' for more details.
" >&5
10847 echo "$as_me: error
: cannot run
test program
while cross compiling
10848 See \
`config.log' for more details." >&2;}
10849 { (exit 1); exit 1; }; }
10851 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10859 # ifdef HAVE_INTTYPES_H
10860 #include <inttypes.h>
10862 # ifdef HAVE_SYS_BITYPES_H
10863 #include <sys/bitypes.h>
10866 #include <sys/types.h>
10872 sprintf(strbuf, "%016Lx", t << 32);
10873 if (strcmp(strbuf, "0000000100000000") == 0)
10881 rm -f conftest$ac_exeext
10882 if { (ac_try="$ac_link"
10883 case "(($ac_try" in
10884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10885 *) ac_try_echo
=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_link") 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10892 { (case "(($ac_try" in
10893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_try") 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; }; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define PRId64 "Ld"
10906 cat >>confdefs.h <<\_ACEOF
10907 #define PRIo64 "Lo"
10910 cat >>confdefs.h <<\_ACEOF
10911 #define PRIx64 "Lx"
10914 cat >>confdefs.h <<\_ACEOF
10915 #define PRIu64 "Lu"
10918 { echo "$as_me:$LINENO: result: yes" >&5
10919 echo "${ECHO_T}yes" >&6; }
10922 echo "$as_me: program exited with status $ac_status" >&5
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ( exit $ac_status )
10928 { echo "$as_me:$LINENO: result: no" >&5
10929 echo "${ECHO_T}no" >&6; }
10932 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10933 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10934 if test "$cross_compiling" = yes; then
10935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10936 See \`config.log
' for more details." >&5
10937 echo "$as_me: error: cannot run test program while cross compiling
10938 See \`config.log' for more details.
" >&2;}
10939 { (exit 1); exit 1; }; }
10941 cat >conftest.$ac_ext <<_ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10949 # ifdef HAVE_INTTYPES_H
10950 #include <inttypes.h>
10952 # ifdef HAVE_SYS_BITYPES_H
10953 #include <sys/bitypes.h>
10956 #include <sys/types.h>
10962 sprintf(strbuf, "%016qx
", t << 32);
10963 if (strcmp(strbuf, "0000000100000000") == 0)
10971 rm -f conftest$ac_exeext
10972 if { (ac_try="$ac_link"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_link") 2>&5
10980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10990 (exit $ac_status); }; }; then
10992 cat >>confdefs.h <<\_ACEOF
10993 #define PRId64 "qd
"
10996 cat >>confdefs.h <<\_ACEOF
10997 #define PRIo64 "qo
"
11000 cat >>confdefs.h <<\_ACEOF
11001 #define PRIx64 "qx
"
11004 cat >>confdefs.h <<\_ACEOF
11005 #define PRIu64 "qu
"
11008 { echo "$as_me:$LINENO: result
: yes" >&5
11009 echo "${ECHO_T}yes" >&6; }
11012 echo "$as_me: program exited with status
$ac_status" >&5
11013 echo "$as_me: failed program was
:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ( exit $ac_status )
11018 { echo "$as_me:$LINENO: result
: no
" >&5
11019 echo "${ECHO_T}no
" >&6; }
11021 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
11022 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
11023 { (exit 1); exit 1; }; }
11027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11059 # Check for some headers introduced in later versions of libpcap
11060 # and used by some printers.
11062 # Those headers use the {u_}intN_t types, so we must do this after
11063 # we check for what's needed to get them defined.
11065 savedcppflags="$CPPFLAGS"
11066 CPPFLAGS="$CPPFLAGS $V_INCLS"
11068 for ac_header in pcap/bluetooth.h
11070 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11071 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11072 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11073 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11074 echo $ECHO_N "(cached
) $ECHO_C" >&6
11076 cat >conftest.$ac_ext <<_ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <tcpdump-stdinc.h>
11084 #include <$ac_header>
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_compile") 2>conftest.er1
11095 grep -v '^ *+' conftest.er1 >conftest.err
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest.$ac_objext; then
11103 eval "$as_ac_Header=yes"
11105 echo "$as_me: failed program was
:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 eval "$as_ac_Header=no
"
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 ac_res=`eval echo '${'$as_ac_Header'}'`
11114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11126 for ac_header in pcap/usb.h
11128 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11129 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11130 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11132 echo $ECHO_N "(cached
) $ECHO_C" >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 #include <tcpdump-stdinc.h>
11142 #include <$ac_header>
11144 rm -f conftest.$ac_objext
11145 if { (ac_try="$ac_compile"
11146 case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_compile") 2>conftest.er1
11153 grep -v '^ *+' conftest.er1 >conftest.err
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11157 (exit $ac_status); } && {
11158 test -z "$ac_c_werror_flag" ||
11159 test ! -s conftest.err
11160 } && test -s conftest.$ac_objext; then
11161 eval "$as_ac_Header=yes"
11163 echo "$as_me: failed program was
:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 eval "$as_ac_Header=no
"
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 ac_res=`eval echo '${'$as_ac_Header'}'`
11172 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11173 echo "${ECHO_T}$ac_res" >&6; }
11174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11175 cat >>confdefs.h <<_ACEOF
11176 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11183 CPPFLAGS="$savedcppflags"
11185 if test -n "$ac_tool_prefix"; then
11186 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
11187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11188 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11189 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11190 if test "${ac_cv_prog_RANLIB+set}" = set; then
11191 echo $ECHO_N "(cached
) $ECHO_C" >&6
11193 if test -n "$RANLIB"; then
11194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
11204 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11213 RANLIB=$ac_cv_prog_RANLIB
11214 if test -n "$RANLIB"; then
11215 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
11216 echo "${ECHO_T}$RANLIB" >&6; }
11218 { echo "$as_me:$LINENO: result
: no
" >&5
11219 echo "${ECHO_T}no
" >&6; }
11224 if test -z "$ac_cv_prog_RANLIB"; then
11225 ac_ct_RANLIB=$RANLIB
11226 # Extract the first word of "ranlib
", so it can be a program name with args.
11227 set dummy ranlib; ac_word=$2
11228 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11229 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11230 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11231 echo $ECHO_N "(cached
) $ECHO_C" >&6
11233 if test -n "$ac_ct_RANLIB"; then
11234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243 ac_cv_prog_ac_ct_RANLIB="ranlib
"
11244 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11254 if test -n "$ac_ct_RANLIB"; then
11255 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
11256 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11258 { echo "$as_me:$LINENO: result
: no
" >&5
11259 echo "${ECHO_T}no
" >&6; }
11262 if test "x
$ac_ct_RANLIB" = x; then
11265 case $cross_compiling:$ac_tool_warned in
11267 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
11268 whose name does not start with the
host triplet. If you think this
11269 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
11270 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
11271 whose name does not start with the
host triplet. If you think this
11272 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
11273 ac_tool_warned=yes ;;
11275 RANLIB=$ac_ct_RANLIB
11278 RANLIB="$ac_cv_prog_RANLIB"
11283 if test "${LBL_CFLAGS+set}" = set; then
11284 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11286 if test -f .devel ; then
11287 if test "$GCC" = yes ; then
11288 if test "${LBL_CFLAGS+set}" != set; then
11289 if test "$ac_cv_prog_cc_g" = yes ; then
11290 V_CCOPT="-g $V_CCOPT"
11292 V_CCOPT="$V_CCOPT -Wall"
11293 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11294 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
11301 V_CCOPT="$V_CCOPT -n32"
11308 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11309 name="lbl
/os-
$os.h
"
11310 if test -f $name ; then
11311 ln -s $name os-proto.h
11313 cat >>confdefs.h <<\_ACEOF
11314 #define HAVE_OS_PROTO_H 1
11318 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
11319 echo "$as_me: WARNING: can't
find $name" >&2;}
11323 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
11324 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
11325 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11326 echo $ECHO_N "(cached
) $ECHO_C" >&6
11328 cat >conftest.$ac_ext <<_ACEOF
11331 cat confdefs.h >>conftest.$ac_ext
11332 cat >>conftest.$ac_ext <<_ACEOF
11333 /* end confdefs.h. */
11335 # include <sys/types.h>
11336 # include <sys/socket.h>
11340 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11345 rm -f conftest.$ac_objext
11346 if { (ac_try="$ac_compile"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_compile") 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest.$ac_objext; then
11362 ac_cv_lbl_sockaddr_has_sa_len=yes
11364 echo "$as_me: failed program was
:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_cv_lbl_sockaddr_has_sa_len=no
11370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11374 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11375 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11377 cat >>confdefs.h <<\_ACEOF
11378 #define HAVE_SOCKADDR_SA_LEN 1
11383 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
11384 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
11385 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11386 echo $ECHO_N "(cached
) $ECHO_C" >&6
11388 case "$host_cpu" in
11391 # These are CPU types where:
11393 # the CPU faults on an unaligned access, but at least some
11394 # OSes that support that CPU catch the fault and simulate
11395 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11396 # the simulation is slow, so we don't want to use it;
11398 # the CPU, I infer (from the old
11400 # XXX: should also check that they don't do weird things (like on arm)
11402 # comment) doesn't fault on unaligned accesses, but doesn't
11403 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11405 # for whatever reason, the test program doesn't work
11406 # (this has been claimed to be the case for several of those
11407 # CPUs - I don't know what the problem is; the problem
11408 # was reported as "the
test program dumps core
" for SuperH,
11409 # but that's what the test program is *supposed* to do -
11410 # it dumps core before it writes anything, so the test
11411 # for an empty output file should find an empty output
11412 # file and conclude that unaligned accesses don't work).
11414 # This run-time test won't work if you're cross-compiling, so
11415 # in order to support cross-compiling for a particular CPU,
11416 # we have to wire in the list of CPU types anyway, as far as
11417 # I know, so perhaps we should just have a set of CPUs on
11418 # which we know it doesn't work, a set of CPUs on which we
11419 # know it does work, and have the script just fail on other
11420 # cpu types and update it when such a failure occurs.
11422 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11423 ac_cv_lbl_unaligned_fail=yes
11427 cat >conftest.c <<EOF
11428 # include <sys/types.h>
11429 # include <sys/wait.h>
11430 # include <stdio.h>
11431 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11436 /* avoid "core dumped
" message */
11442 pid = waitpid(pid, &status, 0);
11445 exit(!WIFEXITED(status));
11448 i = *(unsigned int *)&a[1];
11453 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11454 conftest.c $LIBS >/dev/null 2>&1
11455 if test ! -x conftest ; then
11456 ac_cv_lbl_unaligned_fail=yes
11458 ./conftest >conftest.out
11459 if test ! -s conftest.out ; then
11460 ac_cv_lbl_unaligned_fail=yes
11462 ac_cv_lbl_unaligned_fail=no
11465 rm -f -r conftest* core core.conftest
11470 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
11471 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11472 if test $ac_cv_lbl_unaligned_fail = yes ; then
11474 cat >>confdefs.h <<\_ACEOF
11475 #define LBL_ALIGN 1
11481 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
11482 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
11483 if test "${ac_cv_var_h_errno+set}" = set; then
11484 echo $ECHO_N "(cached
) $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11493 # include <sys/types.h>
11494 # include <netdb.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
11520 ac_cv_var_h_errno=yes
11522 echo "$as_me: failed program was
:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 ac_cv_var_h_errno=no
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
11532 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11533 if test "$ac_cv_var_h_errno" = "yes"; then
11534 cat >>confdefs.h <<\_ACEOF
11535 #define HAVE_H_ERRNO 1
11542 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto
" >&5
11543 echo $ECHO_N "checking whether to use SSLeay libcrypto...
$ECHO_C" >&6; }
11544 # Specify location for both includes and libraries.
11545 want_libcrypto=youmama
11547 # Check whether --with-crypto was given.
11548 if test "${with_crypto+set}" = set; then
11549 withval=$with_crypto;
11550 if test $withval = no
11553 { echo "$as_me:$LINENO: result
: no
" >&5
11554 echo "${ECHO_T}no
" >&6; }
11555 elif test $withval = yes
11558 { echo "$as_me:$LINENO: result
: yes" >&5
11559 echo "${ECHO_T}yes" >&6; }
11562 { echo "$as_me:$LINENO: result
: yes" >&5
11563 echo "${ECHO_T}yes" >&6; }
11564 crypto_dir=$withval
11570 # Use libcrypto if it's present, otherwise don't.
11572 want_libcrypto=ifavailable
11573 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
11574 echo "${ECHO_T}yes, if available
" >&6; }
11578 if test "$want_libcrypto" != "no
"; then
11579 ac_cv_ssleay_path=no
11581 if test "x
$crypto_dir" = x; then
11583 # Location not specified; check the default locations.
11585 { echo "$as_me:$LINENO: checking where SSLeay is located
" >&5
11586 echo $ECHO_N "checking where SSLeay is located...
$ECHO_C" >&6; }
11587 dirs="/usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
"
11588 if test "x
${host_alias}" != x; then
11589 dirs="/usr
/${host_alias} $dirs"
11591 for dir in $dirs; do
11594 # Find the last component of $libdir; it's not necessarily
11595 # "lib
" - it might be "lib64
" on, for example, x86-64
11598 # We assume the directory in which we're looking for
11599 # libcrypto has a subdirectory with that as its name.
11601 tmplib=`echo "$libdir" | sed 's,.*/,,'`
11604 # XXX - is there a better way to check if a given library is
11605 # in a given directory than checking each of the possible
11606 # shared library suffixes?
11608 # Are there any other suffixes we need to look for? Do we
11609 # have to worry about ".so.
{version
}"?
11611 # Or should we just look for "libcrypto.
*"?
11613 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a
" -o \
11614 -f "$dir/$tmplib/libcrypto.so
" -o \
11615 -f "$dir/$tmplib/libcrypto.sl
" -o \
11616 -f "$dir/$tmplib/libcrypto.dylib
" \); then
11617 ac_cv_ssleay_path="$dir"
11621 # Make sure we have the headers as well.
11623 if test -d "$dir/include
/openssl
" -a -f "$dir/include
/openssl
/des.h
"; then
11624 incdir="-I$dir/include
"
11628 if test "$ac_cv_ssleay_path" != "no
" -a "$incdir" != "no
"; then
11631 ac_cv_ssleay_path=no
11635 if test "$ac_cv_ssleay_path" != no; then
11636 { echo "$as_me:$LINENO: result
: $ac_cv_ssleay_path" >&5
11637 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
11640 { echo "$as_me:$LINENO: checking
for SSLeay
in $crypto_dir" >&5
11641 echo $ECHO_N "checking
for SSLeay
in $crypto_dir...
$ECHO_C" >&6; }
11644 # Find the last component of $libdir; it's not necessarily
11645 # "lib
" - it might be "lib64
" on, for example, x86-64
11648 # We assume the directory in which we're looking for
11649 # libcrypto has a subdirectory with that as its name.
11651 tmplib=`echo "$libdir" | sed 's,.*/,,'`
11654 # XXX - is there a better way to check if a given library is
11655 # in a given directory than checking each of the possible
11656 # shared library suffixes?
11658 # Are there any other suffixes we need to look for? Do we
11659 # have to worry about ".so.
{version
}"?
11661 # Or should we just look for "libcrypto.
*"?
11663 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a
" -o \
11664 -f "$crypto_dir/$tmplib/libcrypto.so
" -o \
11665 -f "$crypto_dir/$tmplib/libcrypto.sl
" -o \
11666 -f "$crypto_dir/$tmplib/libcrypto.dylib
" \); then
11667 ac_cv_ssleay_path="$crypto_dir"
11671 # Make sure we have the headers as well.
11673 if test -d "$crypto_dir/include
/openssl
" -a -f "$crypto_dir/include
/openssl
/des.h
"; then
11674 incdir="-I$crypto_dir/include
"
11677 if test "$ac_cv_ssleay_path" != no; then
11678 { echo "$as_me:$LINENO: result
: found
" >&5
11679 echo "${ECHO_T}found
" >&6; }
11682 if test "$ac_cv_ssleay_path" != no; then
11683 V_INCLS="$V_INCLS $incdir"
11684 if test "$dir" != "/usr
"; then
11685 LDFLAGS="-L$dir/lib
$LDFLAGS"
11687 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11688 LIBS="$LIBS -lRSAglue"
11690 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11691 LIBS="$LIBS -lrsaref"
11694 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
11695 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
11696 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11697 echo $ECHO_N "(cached
) $ECHO_C" >&6
11699 ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-lcrypto $LIBS"
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11708 /* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11714 char DES_cbc_encrypt ();
11718 return DES_cbc_encrypt ();
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_link") 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11736 (exit $ac_status); } && {
11737 test -z "$ac_c_werror_flag" ||
11738 test ! -s conftest.err
11739 } && test -s conftest$ac_exeext &&
11740 $as_test_x conftest$ac_exeext; then
11741 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11743 echo "$as_me: failed program was
:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_cv_lib_crypto_DES_cbc_encrypt=no
11749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_lib_save_LIBS
11753 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11754 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
11755 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11756 cat >>confdefs.h <<_ACEOF
11757 #define HAVE_LIBCRYPTO 1
11760 LIBS="-lcrypto $LIBS"
11765 savedcppflags="$CPPFLAGS"
11766 CPPFLAGS="$CPPFLAGS $V_INCLS"
11768 for ac_header in openssl/evp.h
11770 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11775 echo $ECHO_N "(cached
) $ECHO_C" >&6
11777 ac_res=`eval echo '${'$as_ac_Header'}'`
11778 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11779 echo "${ECHO_T}$ac_res" >&6; }
11781 # Is the header compilable?
11782 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11783 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11784 cat >conftest.$ac_ext <<_ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 $ac_includes_default
11791 #include <$ac_header>
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest.$ac_objext; then
11810 ac_header_compiler=yes
11812 echo "$as_me: failed program was
:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_header_compiler=no
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11820 echo "${ECHO_T}$ac_header_compiler" >&6; }
11822 # Is the header present?
11823 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11824 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 #include <$ac_header>
11833 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11841 grep -v '^ *+' conftest.er1 >conftest.err
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11845 (exit $ac_status); } >/dev/null && {
11846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11849 ac_header_preproc=yes
11851 echo "$as_me: failed program was
:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_header_preproc=no
11857 rm -f conftest.err conftest.$ac_ext
11858 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11859 echo "${ECHO_T}$ac_header_preproc" >&6; }
11861 # So? What about this header?
11862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11865 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11866 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11868 ac_header_preproc=yes
11871 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11872 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11873 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11874 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11875 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11876 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11877 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11878 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11879 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11881 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11882 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11886 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11887 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11889 echo $ECHO_N "(cached
) $ECHO_C" >&6
11891 eval "$as_ac_Header=\
$ac_header_preproc"
11893 ac_res=`eval echo '${'$as_ac_Header'}'`
11894 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11895 echo "${ECHO_T}$ac_res" >&6; }
11898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11899 cat >>confdefs.h <<_ACEOF
11900 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11907 CPPFLAGS="$savedcppflags"
11910 # Not found. Did the user explicitly ask for it?
11912 { echo "$as_me:$LINENO: result
: not found
" >&5
11913 echo "${ECHO_T}not found
" >&6; }
11914 if test "$want_libcrypto" = yes; then
11915 { { echo "$as_me:$LINENO: error
: SSLeay not found
" >&5
11916 echo "$as_me: error
: SSLeay not found
" >&2;}
11917 { (exit 1); exit 1; }; }
11922 if test "$missing_includes" = "yes"; then
11923 CPPFLAGS="$CPPFLAGS -I$srcdir/missing
"
11924 V_INCLS="$V_INCLS -I$srcdir/missing
"
11936 # Find a good install program. We prefer a C program (faster),
11937 # so one script is as good as another. But avoid the broken or
11938 # incompatible versions:
11939 # SysV /etc/install, /usr/sbin/install
11940 # SunOS /usr/etc/install
11941 # IRIX /sbin/install
11943 # AmigaOS /C/install, which installs bootblocks on floppy discs
11944 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11945 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11946 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
11947 # OS/2's system install, which has a completely different semantic
11948 # ./install, which can be erroneously created by make from ./install.sh.
11949 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
11950 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
11951 if test -z "$INSTALL"; then
11952 if test "${ac_cv_path_install+set}" = set; then
11953 echo $ECHO_N "(cached
) $ECHO_C" >&6
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11959 test -z "$as_dir" && as_dir=.
11960 # Account for people who put trailing slashes in PATH elements.
11962 ./ | .// | /cC/* | \
11963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11964 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11967 # OSF1 and SCO ODT 3.0 have their own names for install.
11968 # Don't use installbsd from OSF since it installs stuff as root
11970 for ac_prog in ginstall scoinst install; do
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11973 if test $ac_prog = install &&
11974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11975 # AIX install. It has an incompatible calling convention.
11977 elif test $ac_prog = install &&
11978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11979 # program-specific install script used by HP pwplus--don't use.
11982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11995 if test "${ac_cv_path_install+set}" = set; then
11996 INSTALL=$ac_cv_path_install
11998 # As a last resort, use the slow shell script. Don't cache a
11999 # value for INSTALL within a source directory, because that will
12000 # break other packages using the cache if that directory is
12001 # removed, or if the value is a relative name.
12002 INSTALL=$ac_install_sh
12005 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
12006 echo "${ECHO_T}$INSTALL" >&6; }
12008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12009 # It thinks the first close brace ends the variable substitution.
12010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12017 ac_config_headers="$ac_config_headers config.h
"
12020 ac_config_commands="$ac_config_commands default-1
"
12022 ac_config_files="$ac_config_files Makefile tcpdump
.1"
12024 cat >confcache <<\_ACEOF
12025 # This file is a shell script that caches the results of configure
12026 # tests run on this system so they can be shared between configure
12027 # scripts and configure runs, see configure's option --config-cache.
12028 # It is not useful on other systems. If it contains results you don't
12029 # want to keep, you may remove or edit it.
12031 # config.status only pays attention to the cache file if you give it
12032 # the --recheck option to rerun configure.
12034 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12035 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12036 # following values.
12040 # The following way of writing the cache mishandles newlines in values,
12041 # but we know of no workaround that is simple, portable, and efficient.
12042 # So, we kill variables containing newlines.
12043 # Ultrix sh set writes to stderr and can't be redirected directly,
12044 # and sets the high bit in the cache file unless we assign to the vars.
12046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12047 eval ac_val=\$$ac_var
12051 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
12052 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
12055 _ | IFS | as_nl) ;; #(
12056 *) $as_unset $ac_var ;;
12062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12063 *${as_nl}ac_space=\ *)
12064 # `set' does not quote correctly, so add quotes (double-quote
12065 # substitution turns \\\\ into \\, and sed turns \\ into \).
12068 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
12071 # `set' quotes correctly as required by POSIX, so do not add quotes.
12072 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
12081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12086 if test -w "$cache_file"; then
12087 test "x
$cache_file" != "x
/dev
/null
" &&
12088 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
12089 echo "$as_me: updating cache
$cache_file" >&6;}
12090 cat confcache >$cache_file
12092 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
12093 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
12098 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
12099 # Let make expand exec_prefix.
12100 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
12102 DEFS=-DHAVE_CONFIG_H
12106 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
12107 # 1. Remove the extension, and $U if already installed.
12108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12109 ac_i=`echo "$ac_i" | sed "$ac_script"`
12110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12111 # will be set to the directory where LIBOBJS objects are built.
12112 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
12113 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
12115 LIBOBJS=$ac_libobjs
12117 LTLIBOBJS=$ac_ltlibobjs
12121 : ${CONFIG_STATUS=./config.status}
12122 ac_clean_files_save=$ac_clean_files
12123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12124 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
12125 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
12126 cat >$CONFIG_STATUS <<_ACEOF
12128 # Generated by $as_me.
12129 # Run this file to recreate the current configuration.
12130 # Compiler output produced by configure, useful for debugging
12131 # configure, is in config.log if it exists.
12134 ac_cs_recheck=false
12136 SHELL=\${CONFIG_SHELL-$SHELL}
12139 cat >>$CONFIG_STATUS <<\_ACEOF
12140 ## --------------------- ##
12141 ## M4sh Initialization. ##
12142 ## --------------------- ##
12144 # Be more Bourne compatible
12145 DUALCASE=1; export DUALCASE # for MKS sh
12146 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12149 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12150 # is contrary to our usage. Disable this feature.
12151 alias -g '${1+"$@"}'='"$@
"'
12152 setopt NO_GLOB_SUBST
12154 case `(set -o) 2>/dev/null` in
12155 *posix*) set -o posix ;;
12164 # Avoid depending upon Character Ranges.
12165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12168 as_cr_digits='0123456789'
12169 as_cr_alnum=$as_cr_Letters$as_cr_digits
12171 # The user is always right.
12172 if test "${PATH_SEPARATOR+set}" != set; then
12173 echo "#! /bin/sh" >conf$$.sh
12174 echo "exit 0" >>conf$$.sh
12176 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12184 # Support unset when possible.
12185 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12193 # We need space, tab and new line, in precisely that order. Quoting is
12194 # there to prevent editors from complaining about space-tab.
12195 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12196 # splitting by setting IFS to empty value.)
12201 # Find who we are. Look in the path if we contain no directory separator.
12203 *[\\/]* ) as_myself
=$0 ;;
12204 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12205 for as_dir
in $PATH
12208 test -z "$as_dir" && as_dir
=.
12209 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12215 # We did not find ourselves, most probably we were run as `sh COMMAND'
12216 # in which case we are not to be found in the path.
12217 if test "x$as_myself" = x
; then
12220 if test ! -f "$as_myself"; then
12221 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12222 { (exit 1); exit 1; }
12225 # Work around bugs in pre-3.0 UWIN ksh.
12226 for as_var
in ENV MAIL MAILPATH
12227 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12237 LC_TELEPHONE LC_TIME
12239 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12240 eval $as_var=C
; export $as_var
12242 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12246 # Required to use basename.
12247 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12248 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12254 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12255 as_basename
=basename
12261 # Name of the executable.
12262 as_me
=`$as_basename -- "$0" ||
12263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12264 X"$0" : 'X\(//\)$' \| \
12265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12267 sed '/^.*\/\([^/][^/]*\)\/*$/{
12286 as_lineno_1
=$LINENO
12287 as_lineno_2
=$LINENO
12288 test "x$as_lineno_1" != "x$as_lineno_2" &&
12289 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12292 # uniformly replaced by the line number. The first 'sed' inserts a
12293 # line-number line after each line using $LINENO; the second 'sed'
12294 # does the real work. The second script uses 'N' to pair each
12295 # line-number line with the line containing $LINENO, and appends
12296 # trailing '-' during substitution so that $LINENO is not a special
12297 # case at line end.
12298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12299 # scripts with optimization help from Paolo Bonzini. Blame Lee
12300 # E. McMahon (1931-1989) for sed's syntax. :-)
12312 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12315 ' >$as_me.lineno
&&
12316 chmod +x
"$as_me.lineno" ||
12317 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12318 { (exit 1); exit 1; }; }
12320 # Don't try to exec as it changes $[0], causing all sort of problems
12321 # (the dirname of $[0] is not the place where we might find the
12322 # original and so on. Autoconf is especially sensitive to this).
12323 .
"./$as_me.lineno"
12324 # Exit status is that of the last command.
12329 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12335 ECHO_C
= ECHO_N
= ECHO_T
=
12336 case `echo -n x` in
12338 case `echo 'x\c'` in
12339 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12346 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12347 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12353 rm -f conf$$ conf$$.exe conf$$.
file
12354 if test -d conf$$.dir
; then
12355 rm -f conf$$.dir
/conf$$.
file
12361 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12363 # ... but there are two gotchas:
12364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12366 # In both cases, we have to default to `cp -p'.
12367 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12369 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12374 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12375 rmdir conf$$.dir
2>/dev
/null
12377 if mkdir
-p .
2>/dev
/null
; then
12380 test -d .
/-p && rmdir .
/-p
12384 if test -x / >/dev
/null
2>&1; then
12385 as_test_x
='test -x'
12387 if ls -dL / >/dev
/null
2>&1; then
12394 if test -d "$1"; then
12400 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12401 ???[sx]*):;;*)false;;esac;fi
12405 as_executable_p
=$as_test_x
12407 # Sed expression to map a string onto a valid CPP name.
12408 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12410 # Sed expression to map a string onto a valid variable name.
12411 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12416 # Save the log message, to keep $[0] and so on meaningful, and to
12417 # report actual input values of CONFIG_FILES etc. instead of their
12418 # values after options handling.
12420 This file was extended by $as_me, which was
12421 generated by GNU Autoconf 2.61. Invocation command line was
12423 CONFIG_FILES = $CONFIG_FILES
12424 CONFIG_HEADERS = $CONFIG_HEADERS
12425 CONFIG_LINKS = $CONFIG_LINKS
12426 CONFIG_COMMANDS = $CONFIG_COMMANDS
12429 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12434 cat >>$CONFIG_STATUS <<_ACEOF
12435 # Files that config.status was made for.
12436 config_files="$ac_config_files"
12437 config_headers="$ac_config_headers"
12438 config_commands="$ac_config_commands"
12442 cat >>$CONFIG_STATUS <<\_ACEOF
12444 \`$as_me' instantiates files from templates according to the
12445 current configuration.
12447 Usage: $0 [OPTIONS] [FILE]...
12449 -h, --help print this help, then exit
12450 -V, --version print version number and configuration settings, then exit
12451 -q, --quiet do not print progress messages
12452 -d, --debug don't remove temporary files
12453 --recheck update $as_me by reconfiguring in the same conditions
12454 --file=FILE[:TEMPLATE]
12455 instantiate the configuration file FILE
12456 --header=FILE[:TEMPLATE]
12457 instantiate the configuration header FILE
12459 Configuration files:
12462 Configuration headers:
12465 Configuration commands:
12468 Report bugs to <bug-autoconf@gnu.org>."
12471 cat >>$CONFIG_STATUS <<_ACEOF
12474 configured by $0, generated by GNU Autoconf 2.61,
12475 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12477 Copyright (C) 2006 Free Software Foundation, Inc.
12478 This config.status script is free software; the Free Software Foundation
12479 gives unlimited permission to copy, distribute and modify it."
12486 cat >>$CONFIG_STATUS <<\_ACEOF
12487 # If no file are specified by the user, then we need to provide default
12488 # value. By we need to know if files were specified by the user.
12494 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12495 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12506 # Handling of the options.
12507 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12509 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12510 echo "$ac_cs_version"; exit ;;
12511 --debug |
--debu |
--deb |
--de |
--d |
-d )
12513 --file |
--fil |
--fi |
--f )
12515 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12516 ac_need_defaults
=false
;;
12517 --header |
--heade |
--head |
--hea )
12519 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12520 ac_need_defaults
=false
;;
12522 # Conflict between --help and --header
12523 { echo "$as_me: error: ambiguous option: $1
12524 Try \`$0 --help' for more information." >&2
12525 { (exit 1); exit 1; }; };;
12526 --help |
--hel |
-h )
12527 echo "$ac_cs_usage"; exit ;;
12528 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12529 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12532 # This is an error.
12533 -*) { echo "$as_me: error: unrecognized option: $1
12534 Try \`$0 --help' for more information." >&2
12535 { (exit 1); exit 1; }; } ;;
12537 *) ac_config_targets
="$ac_config_targets $1"
12538 ac_need_defaults
=false
;;
12544 ac_configure_extra_args
=
12546 if $ac_cs_silent; then
12548 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12552 cat >>$CONFIG_STATUS <<_ACEOF
12553 if \$ac_cs_recheck; then
12554 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12555 CONFIG_SHELL=$SHELL
12556 export CONFIG_SHELL
12557 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12561 cat >>$CONFIG_STATUS <<\_ACEOF
12565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12566 ## Running $as_me. ##
12572 cat >>$CONFIG_STATUS <<_ACEOF
12580 cat >>$CONFIG_STATUS <<\_ACEOF
12582 # Handling of arguments.
12583 for ac_config_target
in $ac_config_targets
12585 case $ac_config_target in
12586 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12587 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12588 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12589 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
12591 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12592 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12593 { (exit 1); exit 1; }; };;
12598 # If the user did not use the arguments to specify the items to instantiate,
12599 # then the envvar interface is used. Set only those that are not.
12600 # We use the long form for the default assignment because of an extremely
12601 # bizarre bug on SunOS 4.1.3.
12602 if $ac_need_defaults; then
12603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12608 # Have a temporary directory for convenience. Make it in the build tree
12609 # simply because there is no reason against having it here, and in addition,
12610 # creating and moving files from /tmp can sometimes cause problems.
12611 # Hook for its removal unless debugging.
12612 # Note that there is a small window in which the directory will not be cleaned:
12613 # after its creation but before its name has been assigned to `$tmp'.
12617 trap 'exit_status=$?
12618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12620 trap '{ (exit 1); exit 1; }' 1 2 13 15
12622 # Create a (secure) tmp directory for tmp files.
12625 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12626 test -n "$tmp" && test -d "$tmp"
12629 tmp
=.
/conf$$
-$RANDOM
12630 (umask 077 && mkdir
"$tmp")
12633 echo "$me: cannot create a temporary directory in ." >&2
12634 { (exit 1); exit 1; }
12638 # Set up the sed scripts for CONFIG_FILES section.
12641 # No need to generate the scripts if there are no CONFIG_FILES.
12642 # This happens for instance when ./config.status config.h
12643 if test -n "$CONFIG_FILES"; then
12650 for ac_last_try
in false false false false false
:; do
12651 cat >conf$
$subs.
sed <<_ACEOF
12652 SHELL!$SHELL$ac_delim
12653 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12654 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12655 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12656 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12657 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12658 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12659 exec_prefix!$exec_prefix$ac_delim
12660 prefix!$prefix$ac_delim
12661 program_transform_name!$program_transform_name$ac_delim
12662 bindir!$bindir$ac_delim
12663 sbindir!$sbindir$ac_delim
12664 libexecdir!$libexecdir$ac_delim
12665 datarootdir!$datarootdir$ac_delim
12666 datadir!$datadir$ac_delim
12667 sysconfdir!$sysconfdir$ac_delim
12668 sharedstatedir!$sharedstatedir$ac_delim
12669 localstatedir!$localstatedir$ac_delim
12670 includedir!$includedir$ac_delim
12671 oldincludedir!$oldincludedir$ac_delim
12672 docdir!$docdir$ac_delim
12673 infodir!$infodir$ac_delim
12674 htmldir!$htmldir$ac_delim
12675 dvidir!$dvidir$ac_delim
12676 pdfdir!$pdfdir$ac_delim
12677 psdir!$psdir$ac_delim
12678 libdir!$libdir$ac_delim
12679 localedir!$localedir$ac_delim
12680 mandir!$mandir$ac_delim
12681 DEFS!$DEFS$ac_delim
12682 ECHO_C!$ECHO_C$ac_delim
12683 ECHO_N!$ECHO_N$ac_delim
12684 ECHO_T!$ECHO_T$ac_delim
12685 LIBS!$LIBS$ac_delim
12686 build_alias!$build_alias$ac_delim
12687 host_alias!$host_alias$ac_delim
12688 target_alias!$target_alias$ac_delim
12689 build!$build$ac_delim
12690 build_cpu!$build_cpu$ac_delim
12691 build_vendor!$build_vendor$ac_delim
12692 build_os!$build_os$ac_delim
12693 host!$host$ac_delim
12694 host_cpu!$host_cpu$ac_delim
12695 host_vendor!$host_vendor$ac_delim
12696 host_os!$host_os$ac_delim
12697 SHLICC2!$SHLICC2$ac_delim
12699 CFLAGS!$CFLAGS$ac_delim
12700 LDFLAGS!$LDFLAGS$ac_delim
12701 CPPFLAGS!$CPPFLAGS$ac_delim
12702 ac_ct_CC!$ac_ct_CC$ac_delim
12703 EXEEXT!$EXEEXT$ac_delim
12704 OBJEXT!$OBJEXT$ac_delim
12706 GREP!$GREP$ac_delim
12707 EGREP!$EGREP$ac_delim
12708 LIBOBJS!$LIBOBJS$ac_delim
12709 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
12710 RANLIB!$RANLIB$ac_delim
12711 V_CCOPT!$V_CCOPT$ac_delim
12712 V_DEFS!$V_DEFS$ac_delim
12713 V_GROUP!$V_GROUP$ac_delim
12714 V_INCLS!$V_INCLS$ac_delim
12715 V_PCAPDEP!$V_PCAPDEP$ac_delim
12716 LOCALSRC!$LOCALSRC$ac_delim
12717 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12718 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12719 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12720 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12721 INSTALL_DATA!$INSTALL_DATA$ac_delim
12722 LTLIBOBJS!$LTLIBOBJS$ac_delim
12725 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
12727 elif $ac_last_try; then
12728 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12729 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12730 { (exit 1); exit 1; }; }
12732 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12736 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12737 if test -n "$ac_eof"; then
12738 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12739 ac_eof
=`expr $ac_eof + 1`
12742 cat >>$CONFIG_STATUS <<_ACEOF
12743 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12747 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12748 s/^/s,@/; s/!/@,|#_!!_#|/
12751 s/'"$ac_delim"'$/,g/; t
12753 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12754 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12755 rm -f conf$
$subs.
sed
12756 cat >>$CONFIG_STATUS <<_ACEOF
12763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12765 # trailing colons and then remove the whole line if VPATH becomes empty
12766 # (actually we leave an empty line to preserve line numbers).
12767 if test "x$srcdir" = x.
; then
12768 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12769 s/:*\$(srcdir):*/:/
12770 s/:*\${srcdir}:*/:/
12772 s/^\([^=]*=[ ]*\):*/\1/
12778 cat >>$CONFIG_STATUS <<\_ACEOF
12779 fi # test -n "$CONFIG_FILES"
12782 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
12785 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12787 case $ac_mode$ac_tag in
12789 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12790 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12791 { (exit 1); exit 1; }; };;
12792 :[FH
]-) ac_tag
=-:-;;
12793 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12810 -) ac_f
="$tmp/stdin";;
12811 *) # Look for the file first in the build tree, then in the source tree
12812 # (if the path is not absolute). The absolute path cannot be DOS-style,
12813 # because $ac_f cannot contain `:'.
12817 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12819 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12820 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12821 { (exit 1); exit 1; }; };;
12823 ac_file_inputs
="$ac_file_inputs $ac_f"
12826 # Let's still pretend it is `configure' which instantiates (i.e., don't
12827 # use $as_me), people would be surprised to read:
12828 # /* config.h. Generated by config.status. */
12829 configure_input
="Generated from "`IFS=:
12830 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12831 if test x
"$ac_file" != x-
; then
12832 configure_input
="$ac_file. $configure_input"
12833 { echo "$as_me:$LINENO: creating $ac_file" >&5
12834 echo "$as_me: creating $ac_file" >&6;}
12838 *:-:* |
*:-) cat >"$tmp/stdin";;
12843 ac_dir
=`$as_dirname -- "$ac_file" ||
12844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12845 X"$ac_file" : 'X\(//\)[^/]' \| \
12846 X"$ac_file" : 'X\(//\)$' \| \
12847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12853 /^X\(\/\/\)[^/].*/{
12868 -*) as_dir
=.
/$as_dir;;
12870 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
12874 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12875 *) as_qdir
=$as_dir;;
12877 as_dirs
="'$as_qdir' $as_dirs"
12878 as_dir
=`$as_dirname -- "$as_dir" ||
12879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12880 X"$as_dir" : 'X\(//\)[^/]' \| \
12881 X"$as_dir" : 'X\(//\)$' \| \
12882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12888 /^X\(\/\/\)[^/].*/{
12901 test -d "$as_dir" && break
12903 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12904 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12905 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12906 { (exit 1); exit 1; }; }; }
12910 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12912 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12913 # A ".." for each directory in $ac_dir_suffix.
12914 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12915 case $ac_top_builddir_sub in
12916 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12917 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12920 ac_abs_top_builddir
=$ac_pwd
12921 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12922 # for backward compatibility:
12923 ac_top_builddir
=$ac_top_build_prefix
12926 .
) # We are building in place.
12928 ac_top_srcdir
=$ac_top_builddir_sub
12929 ac_abs_top_srcdir
=$ac_pwd ;;
12930 [\\/]* | ?
:[\\/]* ) # Absolute name.
12931 ac_srcdir
=$srcdir$ac_dir_suffix;
12932 ac_top_srcdir
=$srcdir
12933 ac_abs_top_srcdir
=$srcdir ;;
12934 *) # Relative name.
12935 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12936 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12937 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12939 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12949 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12950 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12954 cat >>$CONFIG_STATUS <<\_ACEOF
12955 # If the template does not know about datarootdir, expand it.
12956 # FIXME: This hack should be removed a few years after 2.60.
12957 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12959 case `sed -n '/datarootdir/ {
12968 ' $ac_file_inputs` in
12969 *datarootdir
*) ac_datarootdir_seen
=yes;;
12970 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12971 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12972 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12974 cat >>$CONFIG_STATUS <<_ACEOF
12975 ac_datarootdir_hack='
12976 s&@datadir@&$datadir&g
12977 s&@docdir@&$docdir&g
12978 s&@infodir@&$infodir&g
12979 s&@localedir@&$localedir&g
12980 s&@mandir@&$mandir&g
12981 s&\\\${datarootdir}&$datarootdir&g' ;;
12985 # Neutralize VPATH when `$srcdir' = `.'.
12986 # Shell code in configure.ac might set extrasub.
12987 # FIXME: do we really want to maintain this feature?
12988 cat >>$CONFIG_STATUS <<_ACEOF
12992 cat >>$CONFIG_STATUS <<\_ACEOF
12994 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12995 s
&@configure_input@
&$configure_input&;t t
12996 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12997 s
&@srcdir@
&$ac_srcdir&;t t
12998 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12999 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13000 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13001 s
&@builddir@
&$ac_builddir&;t t
13002 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13003 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13004 s
&@INSTALL@
&$ac_INSTALL&;t t
13005 $ac_datarootdir_hack
13006 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
13008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13009 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13011 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13012 which seems to be undefined. Please make sure it is defined." >&5
13013 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13014 which seems to be undefined. Please make sure it is defined." >&2;}
13018 -) cat "$tmp/out"; rm -f "$tmp/out";;
13019 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13028 # Transform confdefs.h into a sed script `conftest.defines', that
13029 # substitutes the proper values into config.h.in to produce config.h.
13030 rm -f conftest.defines conftest.
tail
13031 # First, append a space to every undef/define line, to ease matching.
13032 echo 's/$/ /' >conftest.defines
13033 # Then, protect against being on the right side of a sed subst, or in
13034 # an unquoted here document, in config.status. If some macros were
13035 # called several times there might be several #defines for the same
13036 # symbol, which is useless. But do not sort them, since the last
13037 # AC_DEFINE must be honored.
13038 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
13039 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13040 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13041 # PARAMS is the parameter list in the macro definition--in most cases, it's
13042 # just an empty string.
13043 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13044 ac_dB
='\\)[ (].*,\\1define\\2'
13052 s/^[ ]*#[ ]*define[ ][ ]*//
13057 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13058 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13059 ' >>conftest.defines
13061 # Remove the space that was appended to ease matching.
13062 # Then replace #undef with comments. This is necessary, for
13063 # example, in the case of _POSIX_SOURCE, which is predefined and required
13064 # on some systems where configure will not decide to define it.
13065 # (The regexp can be short, since the line contains either #define or #undef.)
13067 s,^[ #]*u.*,/* & */,' >>conftest.defines
13069 # Break up conftest.defines:
13070 ac_max_sed_lines
=50
13072 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13073 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13074 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13076 ac_in
='$ac_file_inputs'
13077 ac_out
='"$tmp/out1"'
13078 ac_nxt
='"$tmp/out2"'
13082 # Write a here document:
13083 cat >>$CONFIG_STATUS <<_ACEOF
13084 # First, check the format of the line:
13085 cat >"\$tmp/defines.sed" <<\\CEOF
13086 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13087 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13091 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
13093 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13094 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
13095 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
13096 grep . conftest.
tail >/dev
/null ||
break
13097 rm -f conftest.defines
13098 mv conftest.
tail conftest.defines
13100 rm -f conftest.defines conftest.
tail
13102 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13103 cat >>$CONFIG_STATUS <<\_ACEOF
13104 if test x
"$ac_file" != x-
; then
13105 echo "/* $configure_input */" >"$tmp/config.h"
13106 cat "$ac_result" >>"$tmp/config.h"
13107 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
13108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13109 echo "$as_me: $ac_file is unchanged" >&6;}
13112 mv "$tmp/config.h" $ac_file
13115 echo "/* $configure_input */"
13121 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13122 echo "$as_me: executing $ac_file commands" >&6;}
13127 case $ac_file$ac_mode in
13128 "default-1":C
) if test -f .devel
; then
13129 echo timestamp
> stamp-h
13130 cat Makefile-devel-adds
>> Makefile
13138 { (exit 0); exit 0; }
13140 chmod +x
$CONFIG_STATUS
13141 ac_clean_files
=$ac_clean_files_save
13144 # configure is writing to config.log, and then calls config.status.
13145 # config.status does its own redirection, appending to config.log.
13146 # Unfortunately, on DOS this fails, as config.log is still kept open
13147 # by configure, so config.status won't be able to write to it; its
13148 # output is simply discarded. So we exec the FD to /dev/null,
13149 # effectively closing config.log, so it can be properly (re)opened and
13150 # appended to by config.status. When coming back to configure, we
13151 # need to make the FD available again.
13152 if test "$no_create" != yes; then
13154 ac_config_status_args
=
13155 test "$silent" = yes &&
13156 ac_config_status_args
="$ac_config_status_args --quiet"
13158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13161 # would make configure fail if this is the last instruction.
13162 $ac_cs_success ||
{ (exit 1); exit 1; }