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 --enable-smb enable possibly-buggy SMB printer default
=yes
1271 --disable-smb disable possibly-buggy SMB printer
1272 --enable-ipv6 enable ipv6
(with ipv4
) support
1273 --disable-ipv6 disable ipv6 support
1276 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1277 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1278 --without-gcc don
't use gcc
1279 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1280 --without-smi don't link with libsmi
1281 --with-user=USERNAME drop privileges by default to USERNAME
1282 --with-chroot=DIRECTORY when dropping privileges
, chroot to DIRECTORY
1283 --with-crypto[=PATH
] use SSLeay libcrypto
(located
in directory PATH
, if
1284 supplied
).
[default
=yes, if available
]
1286 Some influential environment variables
:
1287 CC C compiler
command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1290 nonstandard directory
<lib dir
>
1291 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1292 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1293 you have headers
in a nonstandard directory
<include dir
>
1296 Use these variables to override the choices made by
`configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1303 if test "$ac_init_help" = "recursive"; then
1304 # If there are subdirs, report their specific --help.
1305 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306 test -d "$ac_dir" || continue
1310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1320 ac_abs_top_builddir=$ac_pwd
1321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir=$ac_top_build_prefix
1326 .) # We are building in place.
1328 ac_top_srcdir=$ac_top_builddir_sub
1329 ac_abs_top_srcdir=$ac_pwd ;;
1330 [\\/]* | ?:[\\/]* ) # Absolute name.
1331 ac_srcdir=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir=$srcdir
1333 ac_abs_top_srcdir=$srcdir ;;
1335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341 cd "$ac_dir" || { ac_status=$?; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 cd "$ac_pwd" || { ac_status=$?; break; }
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1360 generated by GNU Autoconf 2.61
1362 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364 This configure script is free software; the Free Software Foundation
1365 gives unlimited permission to copy, distribute and modify it.
1369 cat >config.log <<_ACEOF
1370 This file contains any messages produced by compilers while
1371 running configure, to aid debugging if configure makes a mistake.
1373 It was created by $as_me, which was
1374 generated by GNU Autoconf 2.61. Invocation command line was
1386 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1387 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1388 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1389 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1390 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1392 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1393 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1395 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1396 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1397 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1398 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1399 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1400 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1401 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 test -z "$as_dir" && as_dir=.
1410 echo "PATH: $as_dir"
1426 # Keep a trace of the command line.
1427 # Strip out --no-create and --no-recursion so they do not pile up.
1428 # Strip out --silent because we don't want to record it for future runs.
1429 # Also quote any args containing shell meta-characters.
1430 # Make two passes to allow for proper duplicate-argument suppression.
1434 ac_must_keep_next=false
1440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1445 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1448 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451 if test $ac_must_keep_next = true; then
1452 ac_must_keep_next=false # Got value, back to normal.
1455 *=* | --config-cache | -C | -disable-* | --disable-* \
1456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458 | -with-* | --with-* | -without-* | --without-* | --x)
1459 case "$ac_configure_args0 " in
1460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1463 -* ) ac_must_keep_next=true ;;
1466 ac_configure_args="$ac_configure_args '$ac_arg'"
1471 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474 # When interrupted or exit'd, cleanup temporary files, and complete
1475 # config.log. We remove comments because anyway the quotes in there
1476 # would cause problems or look ugly.
1477 # WARNING: Use '\'' to represent an apostrophe within the trap.
1478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 trap 'exit_status=$?
1480 # Save into config.log some information that might help in debugging.
1485 ## ---------------- ##
1486 ## Cache variables. ##
1487 ## ---------------- ##
1490 # The following way of writing the cache mishandles newlines in values,
1492 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1493 eval ac_val=\$$ac_var
1497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1501 _ | IFS | as_nl) ;; #(
1502 *) $as_unset $ac_var ;;
1507 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1508 *${as_nl}ac_space=\ *)
1510 "s/'\''/'\''\\\\'\'''\''/g;
1511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1522 ## ----------------- ##
1523 ## Output variables. ##
1524 ## ----------------- ##
1527 for ac_var in $ac_subst_vars
1529 eval ac_val=\$$ac_var
1531 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 echo "$ac_var='\''$ac_val'\''"
1537 if test -n "$ac_subst_files"; then
1539 ## ------------------- ##
1540 ## File substitutions. ##
1541 ## ------------------- ##
1544 for ac_var in $ac_subst_files
1546 eval ac_val=\$$ac_var
1548 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 echo "$ac_var='\''$ac_val'\''"
1555 if test -s confdefs.h; then
1565 test "$ac_signal" != 0 &&
1566 echo "$as_me: caught signal $ac_signal"
1567 echo "$as_me: exit $exit_status"
1569 rm -f core *.core core.conftest.* &&
1570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1573 for ac_signal in 1 2 13 15; do
1574 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 rm -f -r conftest* confdefs.h
1581 # Predefined preprocessor variables.
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_NAME "$PACKAGE_NAME"
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_STRING "$PACKAGE_STRING"
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1608 # Let the site file select an alternate cache file if it wants to.
1609 # Prefer explicitly selected file to automatically selected ones.
1610 if test -n "$CONFIG_SITE"; then
1611 set x "$CONFIG_SITE"
1612 elif test "x$prefix" != xNONE; then
1613 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 set x "$ac_default_prefix/share/config.site" \
1616 "$ac_default_prefix/etc/config.site"
1621 if test -r "$ac_site_file"; then
1622 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 echo "$as_me: loading site script $ac_site_file" >&6;}
1624 sed 's/^/| /' "$ac_site_file" >&5
1629 if test -r "$cache_file"; then
1630 # Some versions of bash will fail to source /dev/null (special
1631 # files actually), so we avoid doing that.
1632 if test -f "$cache_file"; then
1633 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 echo "$as_me: loading cache $cache_file" >&6;}
1636 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637 *) . "./$cache_file";;
1641 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 echo "$as_me: creating cache $cache_file" >&6;}
1646 # Check that the precious variables saved in the cache have kept the same
1648 ac_cache_corrupted=false
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651 eval ac_new_set=\$ac_env_${ac_var}_set
1652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653 eval ac_new_val=\$ac_env_${ac_var}_value
1654 case $ac_old_set,$ac_new_set in
1656 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1657 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 ac_cache_corrupted=: ;;
1660 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1661 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1662 ac_cache_corrupted=: ;;
1665 if test "x$ac_old_val" != "x$ac_new_val"; then
1666 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1668 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1669 echo "$as_me: former value
: $ac_old_val" >&2;}
1670 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1671 echo "$as_me: current value
: $ac_new_val" >&2;}
1672 ac_cache_corrupted=:
1675 # Pass precious variables to config.status.
1676 if test "$ac_new_set" = set; then
1678 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1679 *) ac_arg=$ac_var=$ac_new_val ;;
1681 case " $ac_configure_args " in
1682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1687 if $ac_cache_corrupted; then
1688 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1689 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1690 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1692 { (exit 1); exit 1; }; }
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1720 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721 if test -f "$ac_dir/install-sh"; then
1723 ac_install_sh="$ac_aux_dir/install-sh -c"
1725 elif test -f "$ac_dir/install.sh"; then
1727 ac_install_sh="$ac_aux_dir/install.sh -c"
1729 elif test -f "$ac_dir/shtool"; then
1731 ac_install_sh="$ac_aux_dir/shtool install -c"
1735 if test -z "$ac_aux_dir"; then
1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738 { (exit 1); exit 1; }; }
1741 # These three variables are undocumented and unsupported,
1742 # and are intended to be withdrawn in a future Autoconf release.
1743 # They can cause serious problems if a builder's source tree is in a directory
1744 # whose full name contains unusual characters.
1745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1750 # Make sure we can run config.sub.
1751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 { (exit 1); exit 1; }; }
1756 { echo "$as_me:$LINENO: checking build system type" >&5
1757 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 if test "${ac_cv_build+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 ac_build_alias=$build_alias
1762 test "x$ac_build_alias" = x &&
1763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764 test "x$ac_build_alias" = x &&
1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 { (exit 1); exit 1; }; }
1768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 { (exit 1); exit 1; }; }
1774 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 echo "${ECHO_T}$ac_cv_build" >&6; }
1776 case $ac_cv_build in
1778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 echo "$as_me: error: invalid value of canonical build" >&2;}
1780 { (exit 1); exit 1; }; };;
1783 ac_save_IFS=$IFS; IFS='-'
1789 # Remember, the first character of IFS is used to create $*,
1790 # except with old shells:
1793 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1796 { echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 if test "x$host_alias" = x; then
1802 ac_cv_host=$ac_cv_build
1804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1811 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 echo "${ECHO_T}$ac_cv_host" >&6; }
1815 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 echo "$as_me: error: invalid value of canonical host" >&2;}
1817 { (exit 1); exit 1; }; };;
1820 ac_save_IFS=$IFS; IFS='-'
1826 # Remember, the first character of IFS is used to create $*,
1827 # except with old shells:
1830 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1839 # Check whether --with-gcc was given.
1840 if test "${with_gcc+set}" = set; then
1846 if test "${srcdir}" != "." ; then
1847 V_INCLS="-I\$(srcdir)"
1849 if test "${CFLAGS+set}" = set; then
1850 LBL_CFLAGS="$CFLAGS"
1852 if test -z "$CC" ; then
1856 # Extract the first word of "shlicc2", so it can be a program name with args.
1857 set dummy shlicc2; ac_word=$2
1858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1860 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$SHLICC2"; then
1864 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1873 ac_cv_prog_SHLICC2="yes"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1884 SHLICC2=$ac_cv_prog_SHLICC2
1885 if test -n "$SHLICC2"; then
1886 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1887 echo "${ECHO_T}$SHLICC2" >&6; }
1889 { echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6; }
1894 if test $SHLICC2 = yes ; then
1901 if test -z "$CC" -a "$with_gcc" = no ; then
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 if test -n "$ac_tool_prefix"; then
1911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 if test -n "$CC"; then
1940 { echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6; }
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1949 if test -z "$ac_cv_prog_CC"; then
1951 # Extract the first word of "gcc", so it can be a program name with args.
1952 set dummy gcc; ac_word=$2
1953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$ac_ct_CC"; then
1959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1968 ac_cv_prog_ac_ct_CC="gcc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6; }
1983 { echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6; }
1987 if test "x$ac_ct_CC" = x; then
1990 case $cross_compiling:$ac_tool_warned in
1992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1993 whose name does not start with the host triplet. If you think this
1994 configuration is useful to you, please write to autoconf@gnu.org." >&5
1995 echo "$as_me: 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." >&2;}
1998 ac_tool_warned=yes ;;
2006 if test -z "$CC"; then
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}cc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_CC="${ac_tool_prefix}cc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 { echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6; }
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2047 if test -z "$CC"; then
2048 # Extract the first word of "cc", so it can be a program name with args.
2049 set dummy cc; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2067 ac_prog_rejected=yes
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 if test $ac_prog_rejected = yes; then
2079 # We found a bogon in the path, so make sure we never use it.
2080 set dummy $ac_cv_prog_CC
2082 if test $# != 0; then
2083 # We chose a different compiler from the bogus one.
2084 # However, it has the same basename, so the bogon will be chosen
2085 # first if we set CC to just the basename; use the full file name.
2087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2093 if test -n "$CC"; then
2094 { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2103 if test -z "$CC"; then
2104 if test -n "$ac_tool_prefix"; then
2105 for ac_prog in cl.exe
2107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 if test -n "$CC"; then
2136 { echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6; }
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2144 test -n "$CC" && break
2147 if test -z "$CC"; then
2149 for ac_prog in cl.exe
2151 # Extract the first word of "$ac_prog", so it can be a program name with args.
2152 set dummy $ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$ac_ct_CC"; then
2159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_ac_ct_CC="$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6; }
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2188 test -n "$ac_ct_CC" && break
2191 if test "x$ac_ct_CC" = x; then
2194 case $cross_compiling:$ac_tool_warned in
2196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2197 whose name does not start with the host triplet. If you think this
2198 configuration is useful to you, please write to autoconf@gnu.org." >&5
2199 echo "$as_me: 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." >&2;}
2202 ac_tool_warned=yes ;;
2211 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2212 See \`config.log
' for more details." >&5
2213 echo "$as_me: error: no acceptable C compiler found in \$PATH
2214 See \`config.log' for more details.
" >&2;}
2215 { (exit 1); exit 1; }; }
2217 # Provide some information about the compiler.
2218 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2219 ac_compiler=`set X $ac_compile; echo $2`
2220 { (ac_try="$ac_compiler --version >&5"
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2226 (eval "$ac_compiler --version >&5") 2>&5
2228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2229 (exit $ac_status); }
2230 { (ac_try="$ac_compiler -v >&5"
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_compiler -v >&5") 2>&5
2238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2239 (exit $ac_status); }
2240 { (ac_try="$ac_compiler -V >&5"
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2246 (eval "$ac_compiler -V >&5") 2>&5
2248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2249 (exit $ac_status); }
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2266 ac_clean_files_save=$ac_clean_files
2267 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2268 # Try to create an executable without -o first, disregard a.out.
2269 # It will help us diagnose broken compilers, and finding out an intuition
2271 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2272 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2273 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2275 # List of possible output files, starting from the most likely.
2276 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2277 # only as a last resort. b.out is created by i960 compilers.
2278 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2280 # The IRIX 6 linker writes into existing files which may not be
2281 # executable, retaining their permissions. Remove them first so a
2282 # subsequent execution test works.
2284 for ac_file in $ac_files
2287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2288 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2293 if { (ac_try="$ac_link_default"
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2299 (eval "$ac_link_default") 2>&5
2301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2302 (exit $ac_status); }; then
2303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2305 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2306 # so that the user can short-circuit this test for compilers unknown to
2308 for ac_file in $ac_files ''
2310 test -f "$ac_file" || continue
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2315 # We found the default executable, but exeext='' is most
2319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323 # We set ac_cv_exeext here because the later test for it is not
2324 # safe: cross compilers may not add the suffix if given an `-o'
2325 # argument, so we may need to know it at that point already.
2326 # Even if this section looks crufty: it has the advantage of
2333 test "$ac_cv_exeext" = no && ac_cv_exeext=
2339 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2340 echo "${ECHO_T}$ac_file" >&6; }
2341 if test -z "$ac_file"; then
2342 echo "$as_me: failed program was
:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2346 See \
`config.log' for more details." >&5
2347 echo "$as_me: error: C compiler cannot create executables
2348 See \`config.log
' for more details." >&2;}
2349 { (exit 77); exit 77; }; }
2352 ac_exeext=$ac_cv_exeext
2354 # Check that the compiler produces executables we can run. If not, either
2355 # the compiler is broken, or we cross compile.
2356 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2357 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2358 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2359 # If not cross compiling, check that we can run a simple program.
2360 if test "$cross_compiling" != yes; then
2361 if { ac_try='.
/$ac_file'
2362 { (case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_try") 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 if test "$cross_compiling" = maybe; then
2376 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2377 If you meant to cross compile, use \`--host'.
2378 See \
`config.log' for more details." >&5
2379 echo "$as_me: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details.
" >&2;}
2382 { (exit 1); exit 1; }; }
2386 { echo "$as_me:$LINENO: result
: yes" >&5
2387 echo "${ECHO_T}yes" >&6; }
2389 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2390 ac_clean_files=$ac_clean_files_save
2391 # Check that the compiler produces executables we can run. If not, either
2392 # the compiler is broken, or we cross compile.
2393 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2394 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2395 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2396 echo "${ECHO_T}$cross_compiling" >&6; }
2398 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2399 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2400 if { (ac_try="$ac_link"
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_link") 2>&5
2408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2409 (exit $ac_status); }; then
2410 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2411 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2412 # work properly (i.e., refer to `conftest.exe'), while it won't with
2414 for ac_file in conftest.exe conftest conftest.*; do
2415 test -f "$ac_file" || continue
2417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2424 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2425 See \
`config.log' for more details." >&5
2426 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log
' for more details." >&2;}
2428 { (exit 1); exit 1; }; }
2431 rm -f conftest$ac_cv_exeext
2432 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2433 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2435 rm -f conftest.$ac_ext
2436 EXEEXT=$ac_cv_exeext
2438 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2439 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2440 if test "${ac_cv_objext+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 cat >conftest.$ac_ext <<_ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 rm -f conftest.o conftest.obj
2459 if { (ac_try="$ac_compile"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compile") 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 for ac_file in conftest.o conftest.obj conftest.*; do
2470 test -f "$ac_file" || continue;
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2473 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2478 echo "$as_me: failed program was:" >&5
2479 sed 's
/^
/|
/' conftest.$ac_ext >&5
2481 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2482 See \`config.log' for more details.
" >&5
2483 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2484 See \
`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }
2488 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2490 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2491 echo "${ECHO_T}$ac_cv_objext" >&6; }
2492 OBJEXT=$ac_cv_objext
2494 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2495 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2496 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 cat >conftest.$ac_ext <<_ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2517 rm -f conftest.$ac_objext
2518 if { (ac_try="$ac_compile"
2520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2521 *) ac_try_echo
=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_compile") 2>conftest.er1
2526 grep -v '^ *+' conftest.er1
>conftest.err
2528 cat conftest.err
>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } && {
2531 test -z "$ac_c_werror_flag" ||
2532 test ! -s conftest.err
2533 } && test -s conftest.
$ac_objext; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.
$ac_ext >&5
2542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2543 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2546 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2548 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CFLAGS
=${CFLAGS+set}
2550 ac_save_CFLAGS
=$CFLAGS
2551 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2552 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_cc_g+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 ac_save_c_werror_flag
=$ac_c_werror_flag
2557 ac_c_werror_flag
=yes
2560 cat >conftest.
$ac_ext <<_ACEOF
2563 cat confdefs.h
>>conftest.
$ac_ext
2564 cat >>conftest.
$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2575 rm -f conftest.
$ac_objext
2576 if { (ac_try
="$ac_compile"
2578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_compile") 2>conftest.er1
2584 grep -v '^ *+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest.$ac_objext; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2617 *) ac_try_echo
=$ac_try;;
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2622 grep -v '^ *+' conftest.er1
>conftest.err
2624 cat conftest.err
>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } && {
2627 test -z "$ac_c_werror_flag" ||
2628 test ! -s conftest.err
2629 } && test -s conftest.
$ac_objext; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.
$ac_ext >&5
2635 ac_c_werror_flag
=$ac_save_c_werror_flag
2637 cat >conftest.
$ac_ext <<_ACEOF
2640 cat confdefs.h
>>conftest.
$ac_ext
2641 cat >>conftest.
$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.
$ac_objext
2653 if { (ac_try
="$ac_compile"
2655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659 (eval "$ac_compile") 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } && {
2666 test -z "$ac_c_werror_flag" ||
2667 test ! -s conftest.err
2668 } && test -s conftest.$ac_objext; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 ac_c_werror_flag=$ac_save_c_werror_flag
2686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2688 if test "$ac_test_CFLAGS" = set; then
2689 CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691 if test "$GCC" = yes; then
2697 if test "$GCC" = yes; then
2703 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2704 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_cc_c89+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 ac_cv_prog_cc_c89=no
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2734 s = g (p, va_arg (v,int));
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2740 function prototypes and stuff, but not '\xHH' hex character constants.
2741 These don't provoke an error unfortunately, instead are silently treated
2742 as 'x'. The following induces an error, until -std is added to get
2743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2744 array size at least. It's necessary to write '\x00'==0 to get something
2745 that's true only with -std. */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2749 inside strings and character constants. */
2751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2753 int test (int i, double x);
2754 struct s1 {int (*f) (int a);};
2755 struct s2 {int (*f) (double a);};
2756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 CC="$ac_save_CC $ac_arg"
2771 rm -f conftest.$ac_objext
2772 if { (ac_try="$ac_compile"
2774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2775 *) ac_try_echo
=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2780 grep -v '^ *+' conftest.er1
>conftest.err
2782 cat conftest.err
>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.
$ac_objext; then
2788 ac_cv_prog_cc_c89
=$ac_arg
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.
$ac_ext >&5
2796 rm -f core conftest.err conftest.
$ac_objext
2797 test "x$ac_cv_prog_cc_c89" != "xno" && break
2799 rm -f conftest.
$ac_ext
2804 case "x$ac_cv_prog_cc_c89" in
2806 { echo "$as_me:$LINENO: result: none needed" >&5
2807 echo "${ECHO_T}none needed" >&6; } ;;
2809 { echo "$as_me:$LINENO: result: unsupported" >&5
2810 echo "${ECHO_T}unsupported" >&6; } ;;
2812 CC
="$CC $ac_cv_prog_cc_c89"
2813 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2819 ac_cpp
='$CPP $CPPFLAGS'
2820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2824 if test "$GCC" = yes ; then
2825 if test "$SHLICC2" = yes ; then
2826 ac_cv_lbl_gcc_vers
=2
2829 { echo "$as_me:$LINENO: checking gcc version" >&5
2830 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2831 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2835 sed -e '/^gcc version /!d' \
2836 -e 's/^gcc version //' \
2837 -e 's/ .*//' -e 's/^[^0-9]*//' \
2841 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2842 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2843 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2848 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2849 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2850 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 cat >conftest.
$ac_ext <<_ACEOF
2857 cat confdefs.h
>>conftest.
$ac_ext
2858 cat >>conftest.
$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860 #include <sys/types.h>
2864 int frob(int, char *)
2869 rm -f conftest.
$ac_objext
2870 if { (ac_try
="$ac_compile"
2872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && {
2883 test -z "$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
2886 ac_cv_lbl_cc_ansi_prototypes=yes
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2891 ac_cv_lbl_cc_ansi_prototypes=no
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2898 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2899 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2903 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2904 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2905 savedcflags="$CFLAGS"
2906 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2907 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #include <sys/types.h>
2920 int frob(int, char *)
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2929 *) ac_try_echo
=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2934 grep -v '^ *+' conftest.er1
>conftest.err
2936 cat conftest.err
>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && {
2939 test -z "$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 } && test -s conftest.
$ac_objext; then
2942 ac_cv_lbl_cc_hpux_cc_aa
=yes
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.
$ac_ext >&5
2947 ac_cv_lbl_cc_hpux_cc_aa
=no
2950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2953 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2954 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2955 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2956 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2957 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2958 { (exit 1); exit 1; }; }
2960 CFLAGS
="$savedcflags"
2961 V_CCOPT
="-Aa $V_CCOPT"
2963 cat >>confdefs.h
<<\_ACEOF
2964 #define _HPUX_SOURCE 1
2970 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2971 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2972 savedcflags
="$CFLAGS"
2974 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 cat >conftest.
$ac_ext <<_ACEOF
2980 cat confdefs.h
>>conftest.
$ac_ext
2981 cat >>conftest.
$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <sys/types.h>
2987 int frob(int, char *)
2992 rm -f conftest.
$ac_objext
2993 if { (ac_try
="$ac_compile"
2995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compile") 2>conftest.er1
3001 grep -v '^ *+' conftest.er1 >conftest.err
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } && {
3006 test -z "$ac_c_werror_flag" ||
3007 test ! -s conftest.err
3008 } && test -s conftest.$ac_objext; then
3009 ac_cv_lbl_cc_osf1_cc_std1=yes
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3014 ac_cv_lbl_cc_osf1_cc_std1=no
3017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3021 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3022 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3023 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3024 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3025 { (exit 1); exit 1; }; }
3027 CFLAGS="$savedcflags"
3028 V_CCOPT="-std1 $V_CCOPT"
3032 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3033 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3034 { (exit 1); exit 1; }; }
3038 V_INCLS="$V_INCLS -I/usr/local/include"
3039 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3044 V_CCOPT="$V_CCOPT -xansi -signed -O"
3049 # Presumed to be DEC OSF/1, Digital UNIX, or
3052 V_CCOPT="$V_CCOPT -O"
3056 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3057 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3058 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <sys/types.h>
3071 struct a { int b; };
3072 void c(const struct a *)
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3081 *) ac_try_echo
=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3086 grep -v '^ *+' conftest.er1
>conftest.err
3088 cat conftest.err
>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.
$ac_objext; then
3094 ac_cv_lbl_cc_const_proto
=yes
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.
$ac_ext >&5
3099 ac_cv_lbl_cc_const_proto
=no
3102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3105 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3106 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3107 if test $ac_cv_lbl_cc_const_proto = no
; then
3109 cat >>confdefs.h
<<\_ACEOF
3118 { echo "$as_me:$LINENO: checking for inline" >&5
3119 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3120 save_CFLAGS
="$CFLAGS"
3122 if test "${ac_cv_lbl_inline+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 for ac_lbl_inline
in inline __inline__ __inline
3130 cat >conftest.
$ac_ext <<_ACEOF
3133 cat confdefs.h
>>conftest.
$ac_ext
3134 cat >>conftest.
$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #define inline $ac_lbl_inline
3137 static inline struct iltest *foo(void);
3143 static inline struct iltest *
3146 static struct iltest xxx;
3158 rm -f conftest.
$ac_objext
3159 if { (ac_try
="$ac_compile"
3161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_lbl_cc_inline=yes
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 if test "$ac_lbl_cc_inline" = yes ; then
3188 if test "$ac_lbl_cc_inline" = yes ; then
3189 ac_cv_lbl_inline=$ac_lbl_inline
3193 CFLAGS="$save_CFLAGS"
3194 if test ! -z "$ac_cv_lbl_inline" ; then
3195 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3196 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3198 { echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6; }
3202 cat >>confdefs.h <<_ACEOF
3203 #define inline $ac_cv_lbl_inline
3207 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3208 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3209 if test "${ac_cv___attribute__+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3222 static void foo(void) __attribute__ ((noreturn));
3231 main(int argc, char **argv)
3237 rm -f conftest.$ac_objext
3238 if { (ac_try="$ac_compile"
3240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3241 *) ac_try_echo
=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1
>conftest.err
3248 cat conftest.err
>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.
$ac_objext; then
3254 ac_cv___attribute__
=yes
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.
$ac_ext >&5
3259 ac_cv___attribute__
=no
3262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3265 if test "$ac_cv___attribute__" = "yes"; then
3267 cat >>confdefs.h
<<\_ACEOF
3268 #define HAVE___ATTRIBUTE__ 1
3271 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
3273 V_DEFS
="$V_DEFS -D_U_=\"\""
3275 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3276 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3278 if test "$ac_cv___attribute__" = "yes"; then
3280 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3281 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3282 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 cat >conftest.
$ac_ext <<_ACEOF
3289 cat confdefs.h
>>conftest.
$ac_ext
3290 cat >>conftest.
$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3295 extern int (*foo)(const char *fmt, ...)
3296 __attribute__ ((format (printf, 1, 2)));
3299 main(int argc, char **argv)
3301 (*foo)("%s", "test");
3305 rm -f conftest.
$ac_objext
3306 if { (ac_try
="$ac_compile"
3308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv___attribute___format_function_pointer=yes
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_cv___attribute___format_function_pointer=no
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3335 cat >>confdefs.h <<\_ACEOF
3336 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3340 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3341 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363 for ac_c_preproc_warn_flag in '' yes
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3378 # include <limits.h>
3380 # include <assert.h>
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3387 *) ac_try_echo
=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1
>conftest.err
3394 cat conftest.err
>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev
/null
&& {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.
$ac_ext >&5
3405 # Broken: fails on valid input.
3409 rm -f conftest.err conftest.
$ac_ext
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat >conftest.
$ac_ext <<_ACEOF
3416 cat confdefs.h
>>conftest.
$ac_ext
3417 cat >>conftest.
$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <ac_nonexistent.h>
3421 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null && {
3434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3437 # Broken: success on invalid input.
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Passes both tests.
3448 rm -f conftest.err conftest.$ac_ext
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.
$ac_ext
3453 if $ac_preproc_ok; then
3465 { echo "$as_me:$LINENO: result: $CPP" >&5
3466 echo "${ECHO_T}$CPP" >&6; }
3468 for ac_c_preproc_warn_flag
in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.
$ac_ext <<_ACEOF
3479 cat confdefs.h
>>conftest.
$ac_ext
3480 cat >>conftest.
$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3483 # include <limits.h>
3485 # include <assert.h>
3489 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3529 *) ac_try_echo
=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1
>conftest.err
3536 cat conftest.err
>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev
/null
&& {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3542 # Broken: success on invalid input.
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.
$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.
$ac_ext
3558 if $ac_preproc_ok; then
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3575 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3576 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3577 if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 # Extract the first word of "grep ggrep" to use in msg output
3581 if test -z "$GREP"; then
3582 set dummy
grep ggrep
; ac_prog_name
=$2
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 ac_path_GREP_found
=false
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3592 test -z "$as_dir" && as_dir
=.
3593 for ac_prog
in grep ggrep
; do
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599 case `"$ac_path_GREP" --version 2>&1` in
3601 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3612 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3613 ac_count
=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP
="$ac_path_GREP"
3617 ac_path_GREP_max
=$ac_count
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3622 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3626 $ac_path_GREP_found && break 3
3636 GREP
="$ac_cv_path_GREP"
3637 if test -z "$GREP"; then
3638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3639 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3640 { (exit 1); exit 1; }; }
3644 ac_cv_path_GREP
=$GREP
3649 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3651 GREP
="$ac_cv_path_GREP"
3654 { echo "$as_me:$LINENO: checking for egrep" >&5
3655 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_EGREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3660 then ac_cv_path_EGREP
="$GREP -E"
3662 # Extract the first word of "egrep" to use in msg output
3663 if test -z "$EGREP"; then
3664 set dummy
egrep; ac_prog_name
=$2
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_path_EGREP_found
=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3671 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3674 test -z "$as_dir" && as_dir
=.
3675 for ac_prog
in egrep; do
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681 case `"$ac_path_EGREP" --version 2>&1` in
3683 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3694 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3695 ac_count
=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP
="$ac_path_EGREP"
3699 ac_path_EGREP_max
=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3704 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3708 $ac_path_EGREP_found && break 3
3718 EGREP
="$ac_cv_path_EGREP"
3719 if test -z "$EGREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3726 ac_cv_path_EGREP
=$EGREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3734 EGREP
="$ac_cv_path_EGREP"
3737 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3739 if test "${ac_cv_header_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 cat >conftest.
$ac_ext <<_ACEOF
3745 cat confdefs.h
>>conftest.
$ac_ext
3746 cat >>conftest.
$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3761 rm -f conftest.
$ac_objext
3762 if { (ac_try
="$ac_compile"
3764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compile") 2>conftest.er1
3770 grep -v '^ *+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
3778 ac_cv_header_stdc=yes
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 ac_cv_header_stdc=no
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 if test $ac_cv_header_stdc = yes; then
3789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 $EGREP "memchr" >/dev/null 2>&1; then
3803 ac_cv_header_stdc=no
3809 if test $ac_cv_header_stdc = yes; then
3810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821 $EGREP "free" >/dev/null 2>&1; then
3824 ac_cv_header_stdc=no
3830 if test $ac_cv_header_stdc = yes; then
3831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3832 if test "$cross_compiling" = yes; then
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3843 #if ((' ' & 0x0FF) == 0x020)
3844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3847 # define ISLOWER(c) \
3848 (('a' <= (c) && (c) <= 'i') \
3849 || ('j' <= (c) && (c) <= 'r') \
3850 || ('s' <= (c) && (c) <= 'z'))
3851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3859 for (i = 0; i < 256; i++)
3860 if (XOR (islower (i), ISLOWER (i))
3861 || toupper (i) != TOUPPER (i))
3866 rm -f conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3870 *) ac_try_echo
=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3877 { (case "(($ac_try" in
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_try") 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3888 echo "$as_me: program exited with status $ac_status" >&5
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_cv_header_stdc=no
3895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3903 if test $ac_cv_header_stdc = yes; then
3905 cat >>confdefs.h <<\_ACEOF
3906 #define STDC_HEADERS 1
3911 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3921 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3922 inttypes.h stdint.h unistd.h
3924 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 $ac_includes_default
3938 #include <$ac_header>
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3944 *) ac_try_echo
=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1
>conftest.err
3951 cat conftest.err
>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.
$ac_objext; then
3957 eval "$as_ac_Header=yes"
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.
$ac_ext >&5
3962 eval "$as_ac_Header=no"
3965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3967 ac_res
=`eval echo '${'$as_ac_Header'}'`
3968 { echo "$as_me:$LINENO: result: $ac_res" >&5
3969 echo "${ECHO_T}$ac_res" >&6; }
3970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3971 cat >>confdefs.h
<<_ACEOF
3972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3985 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3989 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 ac_res
=`eval echo '${'$as_ac_Header'}'`
3993 { echo "$as_me:$LINENO: result: $ac_res" >&5
3994 echo "${ECHO_T}$ac_res" >&6; }
3996 # Is the header compilable?
3997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3999 cat >conftest.
$ac_ext <<_ACEOF
4002 cat confdefs.h
>>conftest.
$ac_ext
4003 cat >>conftest.
$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4006 #include <$ac_header>
4008 rm -f conftest.
$ac_objext
4009 if { (ac_try
="$ac_compile"
4011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.$ac_objext; then
4025 ac_header_compiler=yes
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_header_compiler=no
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4035 echo "${ECHO_T}$ac_header_compiler" >&6; }
4037 # Is the header present?
4038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #include <$ac_header>
4048 if { (ac_try="$ac_cpp conftest.$ac_ext"
4050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4051 *) ac_try_echo
=$ac_try;;
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4056 grep -v '^ *+' conftest.er1
>conftest.err
4058 cat conftest.err
>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev
/null
&& {
4061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4064 ac_header_preproc
=yes
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.
$ac_ext >&5
4069 ac_header_preproc
=no
4072 rm -f conftest.err conftest.
$ac_ext
4073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4074 echo "${ECHO_T}$ac_header_preproc" >&6; }
4076 # So? What about this header?
4077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4083 ac_header_preproc
=yes
4086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4103 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 eval "$as_ac_Header=\$ac_header_preproc"
4108 ac_res
=`eval echo '${'$as_ac_Header'}'`
4109 { echo "$as_me:$LINENO: result: $ac_res" >&5
4110 echo "${ECHO_T}$ac_res" >&6; }
4113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4114 cat >>confdefs.h
<<_ACEOF
4115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4123 for ac_header
in net
/pfvar.h
4125 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 cat >conftest.
$ac_ext <<_ACEOF
4134 cat confdefs.h
>>conftest.
$ac_ext
4135 cat >>conftest.
$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 #include <sys/socket.h>
4141 #include <$ac_header>
4143 rm -f conftest.
$ac_objext
4144 if { (ac_try
="$ac_compile"
4146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && {
4157 test -z "$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4159 } && test -s conftest.$ac_objext; then
4160 eval "$as_ac_Header=yes"
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 eval "$as_ac_Header=no"
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_res=`eval echo '${'$as_ac_Header'}'`
4171 { echo "$as_me:$LINENO: result: $ac_res" >&5
4172 echo "${ECHO_T}$ac_res" >&6; }
4173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4174 cat >>confdefs.h <<_ACEOF
4175 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4182 if test "$ac_cv_header_net_pfvar_h" = yes; then
4183 LOCALSRC="print-pflog.c $LOCALSRC"
4186 for ac_header in netinet/if_ether.h
4188 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/socket.h>
4203 #include <$ac_header>
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4209 *) ac_try_echo
=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1
>conftest.err
4216 cat conftest.err
>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && {
4219 test -z "$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 } && test -s conftest.
$ac_objext; then
4222 eval "$as_ac_Header=yes"
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.
$ac_ext >&5
4227 eval "$as_ac_Header=no"
4230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4232 ac_res
=`eval echo '${'$as_ac_Header'}'`
4233 { echo "$as_me:$LINENO: result: $ac_res" >&5
4234 echo "${ECHO_T}$ac_res" >&6; }
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236 cat >>confdefs.h
<<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4246 # The simple test didn't work.
4247 # Do we need to include <net/if.h> first?
4248 # Unset ac_cv_header_netinet_if_ether_h so we don't
4249 # treat the previous failure as a cached value and
4250 # suppress the next test.
4252 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4253 echo "$as_me: Rechecking with some additional includes" >&6;}
4254 unset ac_cv_header_netinet_if_ether_h
4256 for ac_header
in netinet
/if_ether.h
4258 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4261 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 cat >conftest.
$ac_ext <<_ACEOF
4267 cat confdefs.h
>>conftest.
$ac_ext
4268 cat >>conftest.
$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <sys/types.h>
4271 #include <sys/socket.h>
4272 #include <netinet/in.h>
4277 #include <$ac_header>
4279 rm -f conftest.
$ac_objext
4280 if { (ac_try
="$ac_compile"
4282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
4296 eval "$as_ac_Header=yes"
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 eval "$as_ac_Header=no"
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 ac_res=`eval echo '${'$as_ac_Header'}'`
4307 { echo "$as_me:$LINENO: result: $ac_res" >&5
4308 echo "${ECHO_T}$ac_res" >&6; }
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4320 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4321 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4322 if test "${ac_cv_header_time+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <sys/types.h>
4332 #include <sys/time.h>
4338 if ((struct tm *) 0)
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4348 *) ac_try_echo
=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1
>conftest.err
4355 cat conftest.err
>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.
$ac_objext; then
4361 ac_cv_header_time
=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.
$ac_ext >&5
4366 ac_cv_header_time
=no
4369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4372 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4373 if test $ac_cv_header_time = yes; then
4375 cat >>confdefs.h
<<\_ACEOF
4376 #define TIME_WITH_SYS_TIME 1
4385 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4386 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4387 if test "$cross_compiling" = yes; then
4388 if test "${ac_cv_linux_vers+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 ac_cv_linux_vers
=unknown
4395 if test "${ac_cv_linux_vers+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_cv_linux_vers
=`uname -r 2>&1 | \
4399 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4403 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4404 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4405 if test $ac_cv_linux_vers = unknown
; then
4406 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4407 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4408 { (exit 1); exit 1; }; }
4410 if test $ac_cv_linux_vers -lt 2 ; then
4411 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4412 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4413 { (exit 1); exit 1; }; }
4423 # Check whether --with-smi was given.
4424 if test "${with_smi+set}" = set; then
4431 if test "x$with_smi" != "xno" ; then
4433 for ac_header
in smi.h
4435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4439 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 ac_res
=`eval echo '${'$as_ac_Header'}'`
4443 { echo "$as_me:$LINENO: result: $ac_res" >&5
4444 echo "${ECHO_T}$ac_res" >&6; }
4446 # Is the header compilable?
4447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4449 cat >conftest.
$ac_ext <<_ACEOF
4452 cat confdefs.h
>>conftest.
$ac_ext
4453 cat >>conftest.
$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4456 #include <$ac_header>
4458 rm -f conftest.
$ac_objext
4459 if { (ac_try
="$ac_compile"
4461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_header_compiler=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_header_compiler=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4485 echo "${ECHO_T}$ac_header_compiler" >&6; }
4487 # Is the header present?
4488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #include <$ac_header>
4498 if { (ac_try="$ac_cpp conftest.$ac_ext"
4500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4501 *) ac_try_echo
=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4506 grep -v '^ *+' conftest.er1
>conftest.err
4508 cat conftest.err
>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev
/null
&& {
4511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4514 ac_header_preproc
=yes
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.
$ac_ext >&5
4519 ac_header_preproc
=no
4522 rm -f conftest.err conftest.
$ac_ext
4523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4524 echo "${ECHO_T}$ac_header_preproc" >&6; }
4526 # So? What about this header?
4527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4533 ac_header_preproc
=yes
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4553 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 eval "$as_ac_Header=\$ac_header_preproc"
4558 ac_res
=`eval echo '${'$as_ac_Header'}'`
4559 { echo "$as_me:$LINENO: result: $ac_res" >&5
4560 echo "${ECHO_T}$ac_res" >&6; }
4563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4564 cat >>confdefs.h
<<_ACEOF
4565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4574 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4575 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 ac_check_lib_save_LIBS
=$LIBS
4580 cat >conftest.
$ac_ext <<_ACEOF
4583 cat confdefs.h
>>conftest.
$ac_ext
4584 cat >>conftest.
$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4587 /* Override any GCC internal prototype to avoid an error.
4588 Use char because int might match the return type of a GCC
4589 builtin and then its argument prototype would still apply. */
4602 rm -f conftest.
$ac_objext conftest
$ac_exeext
4603 if { (ac_try
="$ac_link"
4605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_link") 2>conftest.er1
4611 grep -v '^ *+' conftest.er1 >conftest.err
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && {
4616 test -z "$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 } && test -s conftest$ac_exeext &&
4619 $as_test_x conftest$ac_exeext; then
4620 ac_cv_lib_smi_smiInit=yes
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_lib_smi_smiInit=no
4628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4629 conftest$ac_exeext conftest.$ac_ext
4630 LIBS=$ac_check_lib_save_LIBS
4632 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4633 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4634 if test $ac_cv_lib_smi_smiInit = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636 #define HAVE_LIBSMI 1
4643 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4645 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4646 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4647 if test "$cross_compiling" = yes; then
4648 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4649 echo "${ECHO_T}not when cross-compiling" >&6; }
4653 cat >conftest.$ac_ext <<_ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 /* libsmi available check */
4663 int current, revision, age, n;
4664 const int required = 2;
4667 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4669 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4672 if (required < current - age || required > current)
4678 rm -f conftest$ac_exeext
4679 if { (ac_try="$ac_link"
4681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4682 *) ac_try_echo
=$ac_try;;
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_link") 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4689 { (case "(($ac_try" in
4690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_try") 2>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4700 cat >>confdefs.h <<\_ACEOF
4706 echo "$as_me: program exited with status $ac_status" >&5
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4712 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4713 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4714 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4715 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4716 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4717 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4718 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4719 echo "${ECHO_T}no - too old" >&6; } ;;
4720 *) { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; } ;;
4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4733 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4734 # Check whether --enable-smb was given.
4735 if test "${enable_smb+set}" = set; then
4736 enableval=$enable_smb;
4741 case "$enableval" in
4742 yes) { echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6; }
4744 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4745 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4746 cat >>confdefs.h <<\_ACEOF
4747 #define TCPDUMP_DO_SMB 1
4750 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4752 *) { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4758 # Check whether --with-user was given.
4759 if test "${with_user+set}" = set; then
4763 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4764 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4765 if test ! -z "$with_user" ; then
4766 cat >>confdefs.h <<_ACEOF
4767 #define WITH_USER "$withval"
4770 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4771 echo "${ECHO_T}to \"$withval\"" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4778 # Check whether --with-chroot was given.
4779 if test "${with_chroot+set}" = set; then
4780 withval=$with_chroot;
4783 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4784 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4785 if test ! -z "$with_chroot" ; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define WITH_CHROOT "$withval"
4790 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4791 echo "${ECHO_T}to \"$withval\"" >&6; }
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4797 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4798 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4799 # Check whether --enable-ipv6 was given.
4800 if test "${enable_ipv6+set}" = set; then
4801 enableval=$enable_ipv6; case "$enableval" in
4802 yes) { echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6; }
4804 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 $LOCALSRC"
4805 cat >>confdefs.h <<\_ACEOF
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4818 if test "$cross_compiling" = yes; then
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 /* AF_INET6 available check */
4831 #include <sys/types.h>
4832 #include <sys/socket.h>
4835 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4842 rm -f conftest$ac_exeext
4843 if { (ac_try="$ac_link"
4845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4846 *) ac_try_echo
=$ac_try;;
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_link") 2>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4853 { (case "(($ac_try" in
4854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_try") 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 { echo "$as_me:$LINENO: result: yes" >&5
4863 echo "${ECHO_T}yes" >&6; }
4864 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 $LOCALSRC"
4865 cat >>confdefs.h <<\_ACEOF
4871 echo "$as_me: program exited with status $ac_status" >&5
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4891 if test "$ipv6" = "yes"; then
4892 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4893 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4894 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <netinet/in.h>
4904 #ifdef IPV6_INRIA_VERSION
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "yes" >/dev/null 2>&1; then
4911 CFLAGS="-DINET6 $CFLAGS"
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #include <netinet/in.h>
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "yes" >/dev/null 2>&1; then
4932 ipv6libdir=/usr/local/v6/lib;
4934 CFLAGS="-DINET6 $CFLAGS"
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <features.h>
4947 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4952 $EGREP "yes" >/dev/null 2>&1; then
4954 CFLAGS="-DINET6 $CFLAGS"
4960 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4963 ipv6libdir=/usr/inet6/lib
4965 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4969 cat >conftest.$ac_ext <<_ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <sys/param.h>
4976 #ifdef _TOSHIBA_INET6
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981 $EGREP "yes" >/dev/null 2>&1; then
4984 ipv6libdir=/usr/local/v6/lib;
4985 CFLAGS="-DINET6 $CFLAGS"
4991 cat >conftest.$ac_ext <<_ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #include </usr/local/v6/include/sys/v6config.h>
5002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003 $EGREP "yes" >/dev/null 2>&1; then
5006 ipv6libdir=/usr/local/v6/lib;
5007 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5013 cat >conftest.$ac_ext <<_ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 #include <sys/param.h>
5020 #ifdef _ZETA_MINAMI_INET6
5024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5025 $EGREP "yes" >/dev/null 2>&1; then
5028 ipv6libdir=/usr/local/v6/lib;
5029 CFLAGS="-DINET6 $CFLAGS"
5035 if test "$ipv6type" != "unknown"; then
5039 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5040 echo "${ECHO_T}$ipv6type" >&6; }
5043 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5044 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5045 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5046 echo "You have $ipv6lib library, using it"
5048 if test "$ipv6trylibc" = "yes"; then
5049 echo "You do not have $ipv6lib library, using libc"
5051 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5052 echo "You need to fetch lib$ipv6lib.a from appropriate"
5053 echo 'ipv6 kit and compile beforehand.'
5060 if test "$ipv6" = "yes"; then
5062 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5063 # function in libc; there are "ngetaddrinfo()" and
5064 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5065 # "getaddrinfo" to be either "ngetaddrinfo" or
5066 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5067 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5069 # So this test doesn't work on Tru64 5.1, and possibly
5070 # on other 5.x releases. This causes the configure
5071 # script to become confused, and results in libpcap
5072 # being unbuildable.
5074 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5075 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5076 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_func_search_save_LIBS=$LIBS
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5087 /* Override any GCC internal prototype to avoid an error.
5088 Use char because int might match the return type of a GCC
5089 builtin and then its argument prototype would still apply. */
5093 char getaddrinfo ();
5097 return getaddrinfo ();
5102 for ac_lib in '' socket; do
5103 if test -z "$ac_lib"; then
5104 ac_res="none required"
5107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5113 *) ac_try_echo
=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>conftest.er1
5118 grep -v '^ *+' conftest.er1
>conftest.err
5120 cat conftest.err
>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && {
5123 test -z "$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 } && test -s conftest
$ac_exeext &&
5126 $as_test_x conftest
$ac_exeext; then
5127 ac_cv_search_getaddrinfo
=$ac_res
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.
$ac_ext >&5
5135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5137 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5141 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5144 ac_cv_search_getaddrinfo
=no
5147 LIBS
=$ac_func_search_save_LIBS
5149 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5150 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5151 ac_res
=$ac_cv_search_getaddrinfo
5152 if test "$ac_res" != no
; then
5153 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5154 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5155 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5156 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 if test "$cross_compiling" = yes; then
5160 td_cv_buggygetaddrinfo
=yes
5162 cat >conftest.
$ac_ext <<_ACEOF
5165 cat confdefs.h
>>conftest.
$ac_ext
5166 cat >>conftest.
$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5169 #include <sys/types.h>
5172 #include <sys/socket.h>
5173 #include <netinet/in.h>
5177 int passive, gaierr, inet4 = 0, inet6 = 0;
5178 struct addrinfo hints, *ai, *aitop;
5179 char straddr[INET6_ADDRSTRLEN], strport[16];
5181 for (passive = 0; passive <= 1; passive++) {
5182 memset(&hints, 0, sizeof(hints));
5183 hints.ai_family = AF_UNSPEC;
5184 hints.ai_flags = passive ? AI_PASSIVE : 0;
5185 hints.ai_socktype = SOCK_STREAM;
5186 hints.ai_protocol = IPPROTO_TCP;
5187 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5188 (void)gai_strerror(gaierr);
5191 for (ai = aitop; ai; ai = ai->ai_next) {
5192 if (ai->ai_addr == NULL ||
5193 ai->ai_addrlen == 0 ||
5194 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5195 straddr, sizeof(straddr), strport, sizeof(strport),
5196 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5199 switch (ai->ai_family) {
5201 if (strcmp(strport, "54321") != 0) {
5205 if (strcmp(straddr, "0.0.0.0") != 0) {
5209 if (strcmp(straddr, "127.0.0.1") != 0) {
5216 if (strcmp(strport, "54321") != 0) {
5220 if (strcmp(straddr, "::") != 0) {
5224 if (strcmp(straddr, "::1") != 0) {
5241 /* another family support? */
5247 /* supported family should be 2, unsupported family should be 0 */
5248 if (!(inet4 == 0 || inet4 == 2))
5250 if (!(inet6 == 0 || inet6 == 2))
5254 freeaddrinfo(aitop);
5259 freeaddrinfo(aitop);
5264 rm -f conftest
$ac_exeext
5265 if { (ac_try
="$ac_link"
5267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_link") 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5275 { (case "(($ac_try" in
5276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5277 *) ac_try_echo
=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_try") 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 td_cv_buggygetaddrinfo
=no
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.
$ac_ext >&5
5291 td_cv_buggygetaddrinfo
=yes
5293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5299 if test "$td_cv_buggygetaddrinfo" = no
; then
5300 { echo "$as_me:$LINENO: result: good" >&5
5301 echo "${ECHO_T}good" >&6; }
5303 { echo "$as_me:$LINENO: result: buggy" >&5
5304 echo "${ECHO_T}buggy" >&6; }
5307 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5309 # XXX - it doesn't appear that "ipv6type" can ever be
5310 # set to "linux". Should this be testing for
5311 # "linux-glibc", or for that *or* "linux-libinet6"?
5312 # If the latter, note that "linux-libinet6" is also
5313 # the type given to some non-Linux OSes.
5315 if test "$ipv6type" != "linux"; then
5316 echo 'Fatal: You must get working getaddrinfo() function.'
5317 echo ' or you can specify "--disable-ipv6"'.
5320 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5321 echo ' Better upgrade your system library to newest version'
5322 echo ' of GNU C library (aka glibc).'
5329 for ac_func
in getnameinfo
5331 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5334 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 cat >conftest.
$ac_ext <<_ACEOF
5340 cat confdefs.h
>>conftest.
$ac_ext
5341 cat >>conftest.
$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5345 #define $ac_func innocuous_$ac_func
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func (); below.
5349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5350 <limits.h> exists even on freestanding compilers. */
5353 # include <limits.h>
5355 # include <assert.h>
5360 /* Override any GCC internal prototype to avoid an error.
5361 Use char because int might match the return type of a GCC
5362 builtin and then its argument prototype would still apply. */
5367 /* The GNU C library defines this for functions which it implements
5368 to always fail with ENOSYS. Some functions are actually named
5369 something starting with __ and the normal name is an alias. */
5370 #if defined __stub_$ac_func || defined __stub___$ac_func
5382 rm -f conftest.
$ac_objext conftest
$ac_exeext
5383 if { (ac_try
="$ac_link"
5385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_link") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest$ac_exeext &&
5399 $as_test_x conftest$ac_exeext; then
5400 eval "$as_ac_var=yes"
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 eval "$as_ac_var=no"
5408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5409 conftest$ac_exeext conftest.$ac_ext
5411 ac_res=`eval echo '${'$as_ac_var'}'`
5412 { echo "$as_me:$LINENO: result: $ac_res" >&5
5413 echo "${ECHO_T}$ac_res" >&6; }
5414 if test `eval echo '${'$as_ac_var'}'` = yes; then
5415 cat >>confdefs.h <<_ACEOF
5416 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5420 case " $LIBOBJS " in
5421 *" $ac_func.$ac_objext "* ) ;;
5422 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5432 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5433 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5434 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <netdnet/dnetdb.h>
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5448 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5450 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5455 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5456 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5457 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5458 cat >>confdefs.h <<\_ACEOF
5459 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5464 { echo "$as_me:$LINENO: checking for char" >&5
5465 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5466 if test "${ac_cv_type_char+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5476 typedef char ac__type_new_;
5480 if ((ac__type_new_ *) 0)
5482 if (sizeof (ac__type_new_))
5488 rm -f conftest.$ac_objext
5489 if { (ac_try="$ac_compile"
5491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5492 *) ac_try_echo
=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5497 grep -v '^ *+' conftest.er1
>conftest.err
5499 cat conftest.err
>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_c_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.
$ac_objext; then
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.
$ac_ext >&5
5513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5515 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5516 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5518 # The cast to long int works around a bug in the HP C Compiler
5519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5521 # This bug is HP SR number 8606223364.
5522 { echo "$as_me:$LINENO: checking size of char" >&5
5523 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5524 if test "${ac_cv_sizeof_char+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 if test "$cross_compiling" = yes; then
5528 # Depending upon the size, compute the lo and hi bounds.
5529 cat >conftest.
$ac_ext <<_ACEOF
5532 cat confdefs.h
>>conftest.
$ac_ext
5533 cat >>conftest.
$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 $ac_includes_default
5536 typedef char ac__type_sizeof_;
5540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5547 rm -f conftest.
$ac_objext
5548 if { (ac_try
="$ac_compile"
5550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5556 grep -v '^ *+' conftest.er1 >conftest.err
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 $ac_includes_default
5573 typedef char ac__type_sizeof_;
5577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5588 *) ac_try_echo
=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5593 grep -v '^ *+' conftest.er1
>conftest.err
5595 cat conftest.err
>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.
$ac_objext; then
5601 ac_hi
=$ac_mid; break
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.
$ac_ext >&5
5606 ac_lo
=`expr $ac_mid + 1`
5607 if test $ac_lo -le $ac_mid; then
5611 ac_mid
=`expr 2 '*' $ac_mid + 1`
5614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.
$ac_ext >&5
5620 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5627 typedef char ac__type_sizeof_;
5631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5638 rm -f conftest.
$ac_objext
5639 if { (ac_try
="$ac_compile"
5641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5647 grep -v '^ *+' conftest.er1 >conftest.err
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5657 cat >conftest.$ac_ext <<_ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 $ac_includes_default
5664 typedef char ac__type_sizeof_;
5668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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_lo
=$ac_mid; break
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.
$ac_ext >&5
5697 ac_hi
=`expr '(' $ac_mid ')' - 1`
5698 if test $ac_mid -le $ac_hi; then
5702 ac_mid
=`expr 2 '*' $ac_mid`
5705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.
$ac_ext >&5
5714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5718 # Binary search between lo and hi bounds.
5719 while test "x$ac_lo" != "x$ac_hi"; do
5720 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5721 cat >conftest.
$ac_ext <<_ACEOF
5724 cat confdefs.h
>>conftest.
$ac_ext
5725 cat >>conftest.
$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 $ac_includes_default
5728 typedef char ac__type_sizeof_;
5732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5739 rm -f conftest.
$ac_objext
5740 if { (ac_try
="$ac_compile"
5742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 ac_lo=`expr '(' $ac_mid ')' + 1`
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 ?*) ac_cv_sizeof_char=$ac_lo;;
5768 '') if test "$ac_cv_type_char" = yes; then
5769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5770 See \`config.log
' for more details." >&5
5771 echo "$as_me: error: cannot compute sizeof (char)
5772 See \`config.log' for more details.
" >&2;}
5773 { (exit 77); exit 77; }; }
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 $ac_includes_default
5786 typedef char ac__type_sizeof_;
5787 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5788 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5795 FILE *f = fopen ("conftest.val
", "w
");
5798 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5800 long int i = longval ();
5801 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5803 fprintf (f, "%ld
\n", i);
5807 unsigned long int i = ulongval ();
5808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5810 fprintf (f, "%lu
\n", i);
5812 return ferror (f) || fclose (f) != 0;
5818 rm -f conftest$ac_exeext
5819 if { (ac_try="$ac_link"
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_link") 2>&5
5827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_sizeof_char=`cat conftest.val`
5840 echo "$as_me: program exited with status
$ac_status" >&5
5841 echo "$as_me: failed program was
:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5845 if test "$ac_cv_type_char" = yes; then
5846 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
5847 See \
`config.log' for more details." >&5
5848 echo "$as_me: error: cannot compute sizeof (char)
5849 See \`config.log
' for more details." >&2;}
5850 { (exit 77); exit 77; }; }
5855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5859 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5860 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_CHAR $ac_cv_sizeof_char
5869 { echo "$as_me:$LINENO: checking for short" >&5
5870 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5871 if test "${ac_cv_type_short+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 $ac_includes_default
5881 typedef short ac__type_new_;
5885 if ((ac__type_new_ *) 0)
5887 if (sizeof (ac__type_new_))
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compile") 2>conftest.er1
5902 grep -v '^
*+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && {
5907 test -z "$ac_c_werror_flag" ||
5908 test ! -s conftest.err
5909 } && test -s conftest.$ac_objext; then
5910 ac_cv_type_short=yes
5912 echo "$as_me: failed program was:" >&5
5913 sed 's
/^
/|
/' conftest.$ac_ext >&5
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5921 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5923 # The cast to long int works around a bug in the HP C Compiler
5924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5926 # This bug is HP SR number 8606223364.
5927 { echo "$as_me:$LINENO: checking size of short" >&5
5928 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5929 if test "${ac_cv_sizeof_short+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 if test "$cross_compiling" = yes; then
5933 # Depending upon the size, compute the lo and hi bounds.
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 typedef short ac__type_sizeof_;
5945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5952 rm -f conftest.
$ac_objext
5953 if { (ac_try
="$ac_compile"
5955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 $ac_includes_default
5978 typedef short ac__type_sizeof_;
5982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5989 rm -f conftest.$ac_objext
5990 if { (ac_try="$ac_compile"
5992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5993 *) ac_try_echo
=$ac_try;;
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_compile") 2>conftest.er1
5998 grep -v '^ *+' conftest.er1
>conftest.err
6000 cat conftest.err
>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_c_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest.
$ac_objext; then
6006 ac_hi
=$ac_mid; break
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.
$ac_ext >&5
6011 ac_lo
=`expr $ac_mid + 1`
6012 if test $ac_lo -le $ac_mid; then
6016 ac_mid
=`expr 2 '*' $ac_mid + 1`
6019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.
$ac_ext >&5
6025 cat >conftest.
$ac_ext <<_ACEOF
6028 cat confdefs.h
>>conftest.
$ac_ext
6029 cat >>conftest.
$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6032 typedef short ac__type_sizeof_;
6036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6043 rm -f conftest.
$ac_objext
6044 if { (ac_try
="$ac_compile"
6046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_c_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6062 cat >conftest.$ac_ext <<_ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 $ac_includes_default
6069 typedef short ac__type_sizeof_;
6073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6084 *) ac_try_echo
=$ac_try;;
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compile") 2>conftest.er1
6089 grep -v '^ *+' conftest.er1
>conftest.err
6091 cat conftest.err
>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest.
$ac_objext; then
6097 ac_lo
=$ac_mid; break
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.
$ac_ext >&5
6102 ac_hi
=`expr '(' $ac_mid ')' - 1`
6103 if test $ac_mid -le $ac_hi; then
6107 ac_mid
=`expr 2 '*' $ac_mid`
6110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.
$ac_ext >&5
6119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6123 # Binary search between lo and hi bounds.
6124 while test "x$ac_lo" != "x$ac_hi"; do
6125 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6133 typedef short ac__type_sizeof_;
6137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6144 rm -f conftest.
$ac_objext
6145 if { (ac_try
="$ac_compile"
6147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compile") 2>conftest.er1
6153 grep -v '^ *+' conftest.er1 >conftest.err
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && {
6158 test -z "$ac_c_werror_flag" ||
6159 test ! -s conftest.err
6160 } && test -s conftest.$ac_objext; then
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_lo=`expr '(' $ac_mid ')' + 1`
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 ?*) ac_cv_sizeof_short=$ac_lo;;
6173 '') if test "$ac_cv_type_short" = yes; then
6174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6175 See \`config.log
' for more details." >&5
6176 echo "$as_me: error: cannot compute sizeof (short)
6177 See \`config.log' for more details.
" >&2;}
6178 { (exit 77); exit 77; }; }
6180 ac_cv_sizeof_short=0
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 typedef short ac__type_sizeof_;
6192 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6193 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6200 FILE *f = fopen ("conftest.val
", "w
");
6203 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6205 long int i = longval ();
6206 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6208 fprintf (f, "%ld
\n", i);
6212 unsigned long int i = ulongval ();
6213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6215 fprintf (f, "%lu
\n", i);
6217 return ferror (f) || fclose (f) != 0;
6223 rm -f conftest$ac_exeext
6224 if { (ac_try="$ac_link"
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_link") 2>&5
6232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_sizeof_short=`cat conftest.val`
6245 echo "$as_me: program exited with status
$ac_status" >&5
6246 echo "$as_me: failed program was
:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6250 if test "$ac_cv_type_short" = yes; then
6251 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
6252 See \
`config.log' for more details." >&5
6253 echo "$as_me: error: cannot compute sizeof (short)
6254 See \`config.log
' for more details." >&2;}
6255 { (exit 77); exit 77; }; }
6257 ac_cv_sizeof_short=0
6260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6264 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6265 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6269 cat >>confdefs.h <<_ACEOF
6270 #define SIZEOF_SHORT $ac_cv_sizeof_short
6274 { echo "$as_me:$LINENO: checking for int" >&5
6275 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6276 if test "${ac_cv_type_int+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6286 typedef int ac__type_new_;
6290 if ((ac__type_new_ *) 0)
6292 if (sizeof (ac__type_new_))
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6307 grep -v '^
*+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6317 echo "$as_me: failed program was:" >&5
6318 sed 's
/^
/|
/' conftest.$ac_ext >&5
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6326 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6328 # The cast to long int works around a bug in the HP C Compiler
6329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6331 # This bug is HP SR number 8606223364.
6332 { echo "$as_me:$LINENO: checking size of int" >&5
6333 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6334 if test "${ac_cv_sizeof_int+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 if test "$cross_compiling" = yes; then
6338 # Depending upon the size, compute the lo and hi bounds.
6339 cat >conftest.
$ac_ext <<_ACEOF
6342 cat confdefs.h
>>conftest.
$ac_ext
6343 cat >>conftest.
$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 $ac_includes_default
6346 typedef int ac__type_sizeof_;
6350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6357 rm -f conftest.
$ac_objext
6358 if { (ac_try
="$ac_compile"
6360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_compile") 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest.$ac_objext; then
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 $ac_includes_default
6383 typedef int ac__type_sizeof_;
6387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6398 *) ac_try_echo
=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1
>conftest.err
6405 cat conftest.err
>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest.
$ac_objext; then
6411 ac_hi
=$ac_mid; break
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.
$ac_ext >&5
6416 ac_lo
=`expr $ac_mid + 1`
6417 if test $ac_lo -le $ac_mid; then
6421 ac_mid
=`expr 2 '*' $ac_mid + 1`
6424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.
$ac_ext >&5
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6437 typedef int ac__type_sizeof_;
6441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6448 rm -f conftest.
$ac_objext
6449 if { (ac_try
="$ac_compile"
6451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_compile") 2>conftest.er1
6457 grep -v '^ *+' conftest.er1 >conftest.err
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } && {
6462 test -z "$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6464 } && test -s conftest.$ac_objext; then
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6474 typedef int ac__type_sizeof_;
6478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6489 *) ac_try_echo
=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1
>conftest.err
6496 cat conftest.err
>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.
$ac_objext; then
6502 ac_lo
=$ac_mid; break
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.
$ac_ext >&5
6507 ac_hi
=`expr '(' $ac_mid ')' - 1`
6508 if test $ac_mid -le $ac_hi; then
6512 ac_mid
=`expr 2 '*' $ac_mid`
6515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.
$ac_ext >&5
6524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6528 # Binary search between lo and hi bounds.
6529 while test "x$ac_lo" != "x$ac_hi"; do
6530 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6531 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 typedef int ac__type_sizeof_;
6542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6549 rm -f conftest.
$ac_objext
6550 if { (ac_try
="$ac_compile"
6552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 ac_lo=`expr '(' $ac_mid ')' + 1`
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 ?*) ac_cv_sizeof_int=$ac_lo;;
6578 '') if test "$ac_cv_type_int" = yes; then
6579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6580 See \`config.log
' for more details." >&5
6581 echo "$as_me: error: cannot compute sizeof (int)
6582 See \`config.log' for more details.
" >&2;}
6583 { (exit 77); exit 77; }; }
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 $ac_includes_default
6596 typedef int ac__type_sizeof_;
6597 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6598 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6605 FILE *f = fopen ("conftest.val
", "w
");
6608 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6610 long int i = longval ();
6611 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6613 fprintf (f, "%ld
\n", i);
6617 unsigned long int i = ulongval ();
6618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6620 fprintf (f, "%lu
\n", i);
6622 return ferror (f) || fclose (f) != 0;
6628 rm -f conftest$ac_exeext
6629 if { (ac_try="$ac_link"
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_link") 2>&5
6637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_sizeof_int=`cat conftest.val`
6650 echo "$as_me: program exited with status
$ac_status" >&5
6651 echo "$as_me: failed program was
:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6655 if test "$ac_cv_type_int" = yes; then
6656 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6657 See \
`config.log' for more details." >&5
6658 echo "$as_me: error: cannot compute sizeof (int)
6659 See \`config.log
' for more details." >&2;}
6660 { (exit 77); exit 77; }; }
6665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6670 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6674 cat >>confdefs.h <<_ACEOF
6675 #define SIZEOF_INT $ac_cv_sizeof_int
6679 { echo "$as_me:$LINENO: checking for long" >&5
6680 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6681 if test "${ac_cv_type_long+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 $ac_includes_default
6691 typedef long ac__type_new_;
6695 if ((ac__type_new_ *) 0)
6697 if (sizeof (ac__type_new_))
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_compile") 2>conftest.er1
6712 grep -v '^
*+' conftest.er1 >conftest.err
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } && {
6717 test -z "$ac_c_werror_flag" ||
6718 test ! -s conftest.err
6719 } && test -s conftest.$ac_objext; then
6722 echo "$as_me: failed program was:" >&5
6723 sed 's
/^
/|
/' conftest.$ac_ext >&5
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6731 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6733 # The cast to long int works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 { echo "$as_me:$LINENO: checking size of long" >&5
6738 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6739 if test "${ac_cv_sizeof_long+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 if test "$cross_compiling" = yes; then
6743 # Depending upon the size, compute the lo and hi bounds.
6744 cat >conftest.
$ac_ext <<_ACEOF
6747 cat confdefs.h
>>conftest.
$ac_ext
6748 cat >>conftest.
$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6751 typedef long ac__type_sizeof_;
6755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6762 rm -f conftest.
$ac_objext
6763 if { (ac_try
="$ac_compile"
6765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 $ac_includes_default
6788 typedef long ac__type_sizeof_;
6792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6799 rm -f conftest.$ac_objext
6800 if { (ac_try="$ac_compile"
6802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6803 *) ac_try_echo
=$ac_try;;
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6808 grep -v '^ *+' conftest.er1
>conftest.err
6810 cat conftest.err
>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.
$ac_objext; then
6816 ac_hi
=$ac_mid; break
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.
$ac_ext >&5
6821 ac_lo
=`expr $ac_mid + 1`
6822 if test $ac_lo -le $ac_mid; then
6826 ac_mid
=`expr 2 '*' $ac_mid + 1`
6829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.
$ac_ext >&5
6835 cat >conftest.
$ac_ext <<_ACEOF
6838 cat confdefs.h
>>conftest.
$ac_ext
6839 cat >>conftest.
$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6842 typedef long ac__type_sizeof_;
6846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6853 rm -f conftest.
$ac_objext
6854 if { (ac_try
="$ac_compile"
6856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6860 (eval "$ac_compile") 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } && {
6867 test -z "$ac_c_werror_flag" ||
6868 test ! -s conftest.err
6869 } && test -s conftest.$ac_objext; then
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 $ac_includes_default
6879 typedef long ac__type_sizeof_;
6883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6890 rm -f conftest.$ac_objext
6891 if { (ac_try="$ac_compile"
6893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6894 *) ac_try_echo
=$ac_try;;
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_compile") 2>conftest.er1
6899 grep -v '^ *+' conftest.er1
>conftest.err
6901 cat conftest.err
>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 } && test -s conftest.
$ac_objext; then
6907 ac_lo
=$ac_mid; break
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.
$ac_ext >&5
6912 ac_hi
=`expr '(' $ac_mid ')' - 1`
6913 if test $ac_mid -le $ac_hi; then
6917 ac_mid
=`expr 2 '*' $ac_mid`
6920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.
$ac_ext >&5
6929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6933 # Binary search between lo and hi bounds.
6934 while test "x$ac_lo" != "x$ac_hi"; do
6935 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6936 cat >conftest.
$ac_ext <<_ACEOF
6939 cat confdefs.h
>>conftest.
$ac_ext
6940 cat >>conftest.
$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6943 typedef long ac__type_sizeof_;
6947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6954 rm -f conftest.
$ac_objext
6955 if { (ac_try
="$ac_compile"
6957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961 (eval "$ac_compile") 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest.$ac_objext; then
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_lo=`expr '(' $ac_mid ')' + 1`
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 ?*) ac_cv_sizeof_long=$ac_lo;;
6983 '') if test "$ac_cv_type_long" = yes; then
6984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6985 See \`config.log
' for more details." >&5
6986 echo "$as_me: error: cannot compute sizeof (long)
6987 See \`config.log' for more details.
" >&2;}
6988 { (exit 77); exit 77; }; }
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 typedef long ac__type_sizeof_;
7002 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7003 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7010 FILE *f = fopen ("conftest.val
", "w
");
7013 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7015 long int i = longval ();
7016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7018 fprintf (f, "%ld
\n", i);
7022 unsigned long int i = ulongval ();
7023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7025 fprintf (f, "%lu
\n", i);
7027 return ferror (f) || fclose (f) != 0;
7033 rm -f conftest$ac_exeext
7034 if { (ac_try="$ac_link"
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_link") 2>&5
7042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7044 { (case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_try") 2>&5
7051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_sizeof_long=`cat conftest.val`
7055 echo "$as_me: program exited with status
$ac_status" >&5
7056 echo "$as_me: failed program was
:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7060 if test "$ac_cv_type_long" = yes; then
7061 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7062 See \
`config.log' for more details." >&5
7063 echo "$as_me: error: cannot compute sizeof (long)
7064 See \`config.log
' for more details." >&2;}
7065 { (exit 77); exit 77; }; }
7070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7074 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7075 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7079 cat >>confdefs.h <<_ACEOF
7080 #define SIZEOF_LONG $ac_cv_sizeof_long
7084 { echo "$as_me:$LINENO: checking for long long" >&5
7085 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7086 if test "${ac_cv_type_long_long+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 cat >conftest.$ac_ext <<_ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7096 typedef long long ac__type_new_;
7100 if ((ac__type_new_ *) 0)
7102 if (sizeof (ac__type_new_))
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7117 grep -v '^
*+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_type_long_long=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's
/^
/|
/' conftest.$ac_ext >&5
7130 ac_cv_type_long_long=no
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7136 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7138 # The cast to long int works around a bug in the HP C Compiler
7139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7141 # This bug is HP SR number 8606223364.
7142 { echo "$as_me:$LINENO: checking size of long long" >&5
7143 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7144 if test "${ac_cv_sizeof_long_long+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 if test "$cross_compiling" = yes; then
7148 # Depending upon the size, compute the lo and hi bounds.
7149 cat >conftest.
$ac_ext <<_ACEOF
7152 cat confdefs.h
>>conftest.
$ac_ext
7153 cat >>conftest.
$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7156 typedef long long ac__type_sizeof_;
7160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7167 rm -f conftest.
$ac_objext
7168 if { (ac_try
="$ac_compile"
7170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_compile") 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest.$ac_objext; then
7186 cat >conftest.$ac_ext <<_ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7193 typedef long long ac__type_sizeof_;
7197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7204 rm -f conftest.$ac_objext
7205 if { (ac_try="$ac_compile"
7207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7208 *) ac_try_echo
=$ac_try;;
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7213 grep -v '^ *+' conftest.er1
>conftest.err
7215 cat conftest.err
>&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.
$ac_objext; then
7221 ac_hi
=$ac_mid; break
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.
$ac_ext >&5
7226 ac_lo
=`expr $ac_mid + 1`
7227 if test $ac_lo -le $ac_mid; then
7231 ac_mid
=`expr 2 '*' $ac_mid + 1`
7234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.
$ac_ext >&5
7240 cat >conftest.
$ac_ext <<_ACEOF
7243 cat confdefs.h
>>conftest.
$ac_ext
7244 cat >>conftest.
$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 $ac_includes_default
7247 typedef long long ac__type_sizeof_;
7251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7258 rm -f conftest.
$ac_objext
7259 if { (ac_try
="$ac_compile"
7261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 $ac_includes_default
7284 typedef long long ac__type_sizeof_;
7288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7299 *) ac_try_echo
=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1
>conftest.err
7306 cat conftest.err
>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.
$ac_objext; then
7312 ac_lo
=$ac_mid; break
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.
$ac_ext >&5
7317 ac_hi
=`expr '(' $ac_mid ')' - 1`
7318 if test $ac_mid -le $ac_hi; then
7322 ac_mid
=`expr 2 '*' $ac_mid`
7325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.
$ac_ext >&5
7334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7338 # Binary search between lo and hi bounds.
7339 while test "x$ac_lo" != "x$ac_hi"; do
7340 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7341 cat >conftest.
$ac_ext <<_ACEOF
7344 cat confdefs.h
>>conftest.
$ac_ext
7345 cat >>conftest.
$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 $ac_includes_default
7348 typedef long long ac__type_sizeof_;
7352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7359 rm -f conftest.
$ac_objext
7360 if { (ac_try
="$ac_compile"
7362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_compile") 2>conftest.er1
7368 grep -v '^ *+' conftest.er1 >conftest.err
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } && {
7373 test -z "$ac_c_werror_flag" ||
7374 test ! -s conftest.err
7375 } && test -s conftest.$ac_objext; then
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7381 ac_lo=`expr '(' $ac_mid ')' + 1`
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7388 '') if test "$ac_cv_type_long_long" = yes; then
7389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7390 See \`config.log
' for more details." >&5
7391 echo "$as_me: error: cannot compute sizeof (long long)
7392 See \`config.log' for more details.
" >&2;}
7393 { (exit 77); exit 77; }; }
7395 ac_cv_sizeof_long_long=0
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 $ac_includes_default
7406 typedef long long ac__type_sizeof_;
7407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7415 FILE *f = fopen ("conftest.val
", "w
");
7418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7420 long int i = longval ();
7421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7423 fprintf (f, "%ld
\n", i);
7427 unsigned long int i = ulongval ();
7428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7430 fprintf (f, "%lu
\n", i);
7432 return ferror (f) || fclose (f) != 0;
7438 rm -f conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_link") 2>&5
7447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7449 { (case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_try") 2>&5
7456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_sizeof_long_long=`cat conftest.val`
7460 echo "$as_me: program exited with status
$ac_status" >&5
7461 echo "$as_me: failed program was
:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7465 if test "$ac_cv_type_long_long" = yes; then
7466 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
7467 See \
`config.log' for more details." >&5
7468 echo "$as_me: error: cannot compute sizeof (long long)
7469 See \`config.log
' for more details." >&2;}
7470 { (exit 77); exit 77; }; }
7472 ac_cv_sizeof_long_long=0
7475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7480 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7484 cat >>confdefs.h <<_ACEOF
7485 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7491 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7492 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7493 if test "${ac_cv_addrinfo+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7521 grep -v '^
*+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7531 echo "$as_me: failed program was:" >&5
7532 sed 's
/^
/|
/' conftest.$ac_ext >&5
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7541 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7542 if test $ac_cv_addrinfo = yes; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_ADDRINFO 1
7548 cat >>confdefs.h <<\_ACEOF
7549 #define NEED_ADDRINFO_H 1
7554 if test "$ac_cv_addrinfo" = no; then
7555 missing_includes=yes
7559 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7560 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7561 if test "${ac_cv_maxserv+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 $EGREP "yes" >/dev/null 2>&1; then
7585 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7586 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7587 if test $ac_cv_maxserv != yes; then
7588 cat >>confdefs.h <<\_ACEOF
7589 #define NEED_ADDRINFO_H 1
7594 if test "$ac_cv_maxserv" = no; then
7595 missing_includes=yes
7599 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7600 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7601 if test "${ac_cv_namereqd+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7616 $EGREP "yes" >/dev/null 2>&1; then
7625 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7626 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7627 if test $ac_cv_namereqd != yes; then
7628 cat >>confdefs.h <<\_ACEOF
7629 #define NEED_ADDRINFO_H 1
7634 if test "$ac_cv_namereqd" = no; then
7635 missing_includes=yes
7639 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7640 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7641 if test "${ac_cv_sa_storage+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7651 # include <sys/types.h>
7652 # include <sys/socket.h>
7656 struct sockaddr_storage s
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7670 grep -v '^
*+' conftest.er1 >conftest.err
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7678 ac_cv_sa_storage=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's
/^
/|
/' conftest.$ac_ext >&5
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7690 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7691 if test $ac_cv_sa_storage = yes; then
7692 cat >>confdefs.h <<\_ACEOF
7693 #define HAVE_SOCKADDR_STORAGE 1
7698 if test "$ac_cv_sa_storage" = no; then
7699 missing_includes=yes
7704 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7705 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7706 if test "${ac_cv_inaddrsz+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7716 # include <arpa/nameser.h>
7725 rm -f conftest.$ac_objext
7726 if { (ac_try="$ac_compile"
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_compile") 2>conftest.er1
7734 grep -v '^
*+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest.$ac_objext; then
7744 echo "$as_me: failed program was:" >&5
7745 sed 's
/^
/|
/' conftest.$ac_ext >&5
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7754 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7755 if test $ac_cv_inaddrsz = yes; then
7756 cat >>confdefs.h <<\_ACEOF
7757 #define HAVE_INADDRSZ 1
7763 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7764 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7765 if test "${ac_cv_in6addrsz+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7775 # include <arpa/nameser.h>
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7793 grep -v '^
*+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest.$ac_objext; then
7803 echo "$as_me: failed program was:" >&5
7804 sed 's
/^
/|
/' conftest.$ac_ext >&5
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7813 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7814 if test $ac_cv_in6addrsz = yes; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_IN6ADDRSZ 1
7823 if test "$ac_cv_addrsz" = no; then
7824 missing_includes=yes
7828 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7829 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7830 if test "${ac_cv_res_inet6+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7840 # include <sys/types.h>
7841 # include <netinet/in.h>
7842 # include <resolv.h>
7846 int a = RES_USE_INET6
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7860 grep -v '^
*+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then
7870 echo "$as_me: failed program was:" >&5
7871 sed 's
/^
/|
/' conftest.$ac_ext >&5
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7880 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7881 if test $ac_cv_res_inet6 = yes; then
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_RES_USE_INET6 1
7888 if test "$ac_cv_res_inet6" = no; then
7889 missing_includes=yes
7893 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7894 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7895 if test "${ac_cv_res_state_ext+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7905 # include <sys/types.h>
7906 # include <netinet/in.h>
7907 # include <netinet6/in6.h>
7908 # include <resolv.h>
7912 struct __res_state_ext e
7917 rm -f conftest.$ac_objext
7918 if { (ac_try="$ac_compile"
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_compile") 2>conftest.er1
7926 grep -v '^
*+' conftest.er1 >conftest.err
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } && {
7931 test -z "$ac_c_werror_flag" ||
7932 test ! -s conftest.err
7933 } && test -s conftest.$ac_objext; then
7934 ac_cv_res_state_ext=yes
7936 echo "$as_me: failed program was:" >&5
7937 sed 's
/^
/|
/' conftest.$ac_ext >&5
7939 ac_cv_res_state_ext=no
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7946 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7947 if test $ac_cv_res_state_ext = yes; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_RES_STATE_EXT 1
7954 if test "$ac_cv_res_state_ext" = no; then
7955 missing_includes=yes
7959 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7960 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7961 if test "${ac_cv_res_state+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7971 # include <sys/types.h>
7972 # include <netinet/in.h>
7973 # include <netinet6/in6.h>
7974 # include <resolv.h>
7978 struct __res_state e; e.nsort = 0
7983 rm -f conftest.$ac_objext
7984 if { (ac_try="$ac_compile"
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
7992 grep -v '^
*+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
8002 echo "$as_me: failed program was:" >&5
8003 sed 's
/^
/|
/' conftest.$ac_ext >&5
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8012 echo "${ECHO_T}$ac_cv_res_state" >&6; }
8013 if test $ac_cv_res_state = yes; then
8014 cat >>confdefs.h <<\_ACEOF
8015 #define HAVE_NEW_RES_STATE 1
8028 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8044 #define $ac_func innocuous_$ac_func
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char $ac_func (); below.
8048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8049 <limits.h> exists even on freestanding compilers. */
8052 # include <limits.h>
8054 # include <assert.h>
8059 /* Override any GCC internal prototype to avoid an error.
8060 Use char because int might match the return type of a GCC
8061 builtin and then its argument prototype would still apply. */
8066 /* The GNU C library defines this for functions which it implements
8067 to always fail with ENOSYS. Some functions are actually named
8068 something starting with __ and the normal name is an alias. */
8069 #if defined __stub_$ac_func || defined __stub___$ac_func
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8090 grep -v '^
*+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext &&
8098 $as_test_x conftest$ac_exeext; then
8099 eval "$as_ac_var=yes"
8101 echo "$as_me: failed program was:" >&5
8102 sed 's
/^
/|
/' conftest.$ac_ext >&5
8104 eval "$as_ac_var=no"
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108 conftest$ac_exeext conftest.$ac_ext
8110 ac_res=`eval echo '${'$as_ac_var'}'`
8111 { echo "$as_me:$LINENO: result: $ac_res" >&5
8112 echo "${ECHO_T}$ac_res" >&6; }
8113 if test `eval echo '${'$as_ac_var'}'` = yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8119 case " $LIBOBJS " in
8120 *" $ac_func.$ac_objext "* ) ;;
8121 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8130 for ac_func in strftime
8132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8146 #define $ac_func innocuous_$ac_func
8148 /* System header to define __stub macros and hopefully few prototypes,
8149 which can conflict with char $ac_func (); below.
8150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8151 <limits.h> exists even on freestanding compilers. */
8154 # include <limits.h>
8156 # include <assert.h>
8161 /* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8168 /* The GNU C library defines this for functions which it implements
8169 to always fail with ENOSYS. Some functions are actually named
8170 something starting with __ and the normal name is an alias. */
8171 #if defined __stub_$ac_func || defined __stub___$ac_func
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (ac_try="$ac_link"
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_link") 2>conftest.er1
8192 grep -v '^
*+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest$ac_exeext &&
8200 $as_test_x conftest$ac_exeext; then
8201 eval "$as_ac_var=yes"
8203 echo "$as_me: failed program was:" >&5
8204 sed 's
/^
/|
/' conftest.$ac_ext >&5
8206 eval "$as_ac_var=no"
8209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8210 conftest$ac_exeext conftest.$ac_ext
8212 ac_res=`eval echo '${'$as_ac_var'}'`
8213 { echo "$as_me:$LINENO: result: $ac_res" >&5
8214 echo "${ECHO_T}$ac_res" >&6; }
8215 if test `eval echo '${'$as_ac_var'}'` = yes; then
8216 cat >>confdefs.h <<_ACEOF
8217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8225 for ac_func in setlinebuf alarm
8227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.$ac_ext <<_ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8241 #define $ac_func innocuous_$ac_func
8243 /* System header to define __stub macros and hopefully few prototypes,
8244 which can conflict with char $ac_func (); below.
8245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8246 <limits.h> exists even on freestanding compilers. */
8249 # include <limits.h>
8251 # include <assert.h>
8256 /* Override any GCC internal prototype to avoid an error.
8257 Use char because int might match the return type of a GCC
8258 builtin and then its argument prototype would still apply. */
8263 /* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266 #if defined __stub_$ac_func || defined __stub___$ac_func
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_link") 2>conftest.er1
8287 grep -v '^
*+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest$ac_exeext &&
8295 $as_test_x conftest$ac_exeext; then
8296 eval "$as_ac_var=yes"
8298 echo "$as_me: failed program was:" >&5
8299 sed 's
/^
/|
/' conftest.$ac_ext >&5
8301 eval "$as_ac_var=no"
8304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8305 conftest$ac_exeext conftest.$ac_ext
8307 ac_res=`eval echo '${'$as_ac_var'}'`
8308 { echo "$as_me:$LINENO: result: $ac_res" >&5
8309 echo "${ECHO_T}$ac_res" >&6; }
8310 if test `eval echo '${'$as_ac_var'}'` = yes; then
8311 cat >>confdefs.h <<_ACEOF
8312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8322 for ac_func in vsnprintf snprintf
8324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338 #define $ac_func innocuous_$ac_func
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8346 # include <limits.h>
8348 # include <assert.h>
8353 /* Override any GCC internal prototype to avoid an error.
8354 Use char because int might match the return type of a GCC
8355 builtin and then its argument prototype would still apply. */
8360 /* The GNU C library defines this for functions which it implements
8361 to always fail with ENOSYS. Some functions are actually named
8362 something starting with __ and the normal name is an alias. */
8363 #if defined __stub_$ac_func || defined __stub___$ac_func
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_link") 2>conftest.er1
8384 grep -v '^
*+' conftest.er1 >conftest.err
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest$ac_exeext &&
8392 $as_test_x conftest$ac_exeext; then
8393 eval "$as_ac_var=yes"
8395 echo "$as_me: failed program was:" >&5
8396 sed 's
/^
/|
/' conftest.$ac_ext >&5
8398 eval "$as_ac_var=no"
8401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8402 conftest$ac_exeext conftest.$ac_ext
8404 ac_res=`eval echo '${'$as_ac_var'}'`
8405 { echo "$as_me:$LINENO: result: $ac_res" >&5
8406 echo "${ECHO_T}$ac_res" >&6; }
8407 if test `eval echo '${'$as_ac_var'}'` = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8417 if test $needsnprintf = yes; then
8418 case " $LIBOBJS " in
8419 *" snprintf.$ac_objext "* ) ;;
8420 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8427 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8428 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8429 if test "${ac_cv_type_signal+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 #include <sys/types.h>
8444 return *(signal (0, 0)) (0) == 1;
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8458 grep -v '^
*+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest.$ac_objext; then
8466 ac_cv_type_signal=int
8468 echo "$as_me: failed program was:" >&5
8469 sed 's
/^
/|
/' conftest.$ac_ext >&5
8471 ac_cv_type_signal=void
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8477 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8479 cat >>confdefs.h <<_ACEOF
8480 #define RETSIGTYPE $ac_cv_type_signal
8484 if test "$ac_cv_type_signal" = void ; then
8486 cat >>confdefs.h <<\_ACEOF
8492 cat >>confdefs.h <<\_ACEOF
8493 #define RETSIGVAL (0)
8501 cat >>confdefs.h <<\_ACEOF
8502 #define _BSD_SIGNALS 1
8509 for ac_func in sigaction
8511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8525 #define $ac_func innocuous_$ac_func
8527 /* System header to define __stub macros and hopefully few prototypes,
8528 which can conflict with char $ac_func (); below.
8529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8530 <limits.h> exists even on freestanding compilers. */
8533 # include <limits.h>
8535 # include <assert.h>
8540 /* Override any GCC internal prototype to avoid an error.
8541 Use char because int might match the return type of a GCC
8542 builtin and then its argument prototype would still apply. */
8547 /* The GNU C library defines this for functions which it implements
8548 to always fail with ENOSYS. Some functions are actually named
8549 something starting with __ and the normal name is an alias. */
8550 #if defined __stub_$ac_func || defined __stub___$ac_func
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>conftest.er1
8571 grep -v '^
*+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest$ac_exeext &&
8579 $as_test_x conftest$ac_exeext; then
8580 eval "$as_ac_var=yes"
8582 echo "$as_me: failed program was:" >&5
8583 sed 's
/^
/|
/' conftest.$ac_ext >&5
8585 eval "$as_ac_var=no"
8588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8589 conftest$ac_exeext conftest.$ac_ext
8591 ac_res=`eval echo '${'$as_ac_var'}'`
8592 { echo "$as_me:$LINENO: result: $ac_res" >&5
8593 echo "${ECHO_T}$ac_res" >&6; }
8594 if test `eval echo '${'$as_ac_var'}'` = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8602 if test $ac_cv_func_sigaction = no ; then
8604 for ac_func in sigset
8606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8620 #define $ac_func innocuous_$ac_func
8622 /* System header to define __stub macros and hopefully few prototypes,
8623 which can conflict with char $ac_func (); below.
8624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8625 <limits.h> exists even on freestanding compilers. */
8628 # include <limits.h>
8630 # include <assert.h>
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined __stub_$ac_func || defined __stub___$ac_func
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (ac_try="$ac_link"
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_link") 2>conftest.er1
8666 grep -v '^
*+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && {
8671 test -z "$ac_c_werror_flag" ||
8672 test ! -s conftest.err
8673 } && test -s conftest$ac_exeext &&
8674 $as_test_x conftest$ac_exeext; then
8675 eval "$as_ac_var=yes"
8677 echo "$as_me: failed program was:" >&5
8678 sed 's
/^
/|
/' conftest.$ac_ext >&5
8680 eval "$as_ac_var=no"
8683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8684 conftest$ac_exeext conftest.$ac_ext
8686 ac_res=`eval echo '${'$as_ac_var'}'`
8687 { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8689 if test `eval echo '${'$as_ac_var'}'` = yes; then
8690 cat >>confdefs.h <<_ACEOF
8691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8701 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8702 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8703 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 ac_func_search_save_LIBS=$LIBS
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8724 return dnet_htoa ();
8729 for ac_lib in '' dnet; do
8730 if test -z "$ac_lib"; then
8731 ac_res="none required"
8734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (ac_try="$ac_link"
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_link") 2>conftest.er1
8745 grep -v '^
*+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest$ac_exeext &&
8753 $as_test_x conftest$ac_exeext; then
8754 ac_cv_search_dnet_htoa=$ac_res
8756 echo "$as_me: failed program was:" >&5
8757 sed 's
/^
/|
/' conftest.$ac_ext >&5
8762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8764 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8768 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8771 ac_cv_search_dnet_htoa=no
8774 LIBS=$ac_func_search_save_LIBS
8776 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8777 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8778 ac_res=$ac_cv_search_dnet_htoa
8779 if test "$ac_res" != no; then
8780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8781 cat >>confdefs.h <<\_ACEOF
8782 #define HAVE_DNET_HTOA 1
8789 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8790 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8791 if test "${ac_cv_lib_rpc_main+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 ac_check_lib_save_LIBS=$LIBS
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (ac_try="$ac_link"
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_link") 2>conftest.er1
8821 grep -v '^
*+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && {
8826 test -z "$ac_c_werror_flag" ||
8827 test ! -s conftest.err
8828 } && test -s conftest$ac_exeext &&
8829 $as_test_x conftest$ac_exeext; then
8830 ac_cv_lib_rpc_main=yes
8832 echo "$as_me: failed program was:" >&5
8833 sed 's
/^
/|
/' conftest.$ac_ext >&5
8835 ac_cv_lib_rpc_main=no
8838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8839 conftest$ac_exeext conftest.$ac_ext
8840 LIBS=$ac_check_lib_save_LIBS
8842 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8843 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8844 if test $ac_cv_lib_rpc_main = yes; then
8845 cat >>confdefs.h <<_ACEOF
8846 #define HAVE_LIBRPC 1
8853 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8854 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8855 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 ac_func_search_save_LIBS=$LIBS
8859 cat >conftest.$ac_ext <<_ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8866 /* Override any GCC internal prototype to avoid an error.
8867 Use char because int might match the return type of a GCC
8868 builtin and then its argument prototype would still apply. */
8872 char getrpcbynumber ();
8876 return getrpcbynumber ();
8881 for ac_lib in '' nsl; do
8882 if test -z "$ac_lib"; then
8883 ac_res="none required"
8886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8888 rm -f conftest.$ac_objext conftest$ac_exeext
8889 if { (ac_try="$ac_link"
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_link") 2>conftest.er1
8897 grep -v '^
*+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest$ac_exeext &&
8905 $as_test_x conftest$ac_exeext; then
8906 ac_cv_search_getrpcbynumber=$ac_res
8908 echo "$as_me: failed program was:" >&5
8909 sed 's
/^
/|
/' conftest.$ac_ext >&5
8914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8916 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8920 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8923 ac_cv_search_getrpcbynumber=no
8926 LIBS=$ac_func_search_save_LIBS
8928 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8929 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8930 ac_res=$ac_cv_search_getrpcbynumber
8931 if test "$ac_res" != no; then
8932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8933 cat >>confdefs.h <<\_ACEOF
8934 #define HAVE_GETRPCBYNUMBER 1
8942 # Most operating systems have gethostbyname() in the default searched
8943 # libraries (i.e. libc):
8944 # Some OSes (eg. Solaris) place it in libnsl
8945 # Some strange OSes (SINIX) have it in libsocket:
8946 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8947 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8948 if test "${ac_cv_search_gethostbyname+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 ac_func_search_save_LIBS=$LIBS
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8965 char gethostbyname ();
8969 return gethostbyname ();
8974 for ac_lib in '' nsl socket resolv; do
8975 if test -z "$ac_lib"; then
8976 ac_res="none required"
8979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (ac_try="$ac_link"
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_link") 2>conftest.er1
8990 grep -v '^
*+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest$ac_exeext &&
8998 $as_test_x conftest$ac_exeext; then
8999 ac_cv_search_gethostbyname=$ac_res
9001 echo "$as_me: failed program was:" >&5
9002 sed 's
/^
/|
/' conftest.$ac_ext >&5
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9009 if test "${ac_cv_search_gethostbyname+set}" = set; then
9013 if test "${ac_cv_search_gethostbyname+set}" = set; then
9016 ac_cv_search_gethostbyname=no
9019 LIBS=$ac_func_search_save_LIBS
9021 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9022 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9023 ac_res=$ac_cv_search_gethostbyname
9024 if test "$ac_res" != no; then
9025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9029 # Unfortunately libsocket sometimes depends on libnsl and
9030 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9031 if test "$ac_cv_search_gethostbyname" = "no"
9033 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9034 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9035 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 ac_check_lib_save_LIBS
=$LIBS
9039 LIBS
="-lsocket -lnsl $LIBS"
9040 cat >conftest.
$ac_ext <<_ACEOF
9043 cat confdefs.h
>>conftest.
$ac_ext
9044 cat >>conftest.
$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9047 /* Override any GCC internal prototype to avoid an error.
9048 Use char because int might match the return type of a GCC
9049 builtin and then its argument prototype would still apply. */
9053 char gethostbyname ();
9057 return gethostbyname ();
9062 rm -f conftest.
$ac_objext conftest
$ac_exeext
9063 if { (ac_try
="$ac_link"
9065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_link") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest$ac_exeext &&
9079 $as_test_x conftest$ac_exeext; then
9080 ac_cv_lib_socket_gethostbyname=yes
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_cv_lib_socket_gethostbyname=no
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9092 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9093 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9094 if test $ac_cv_lib_socket_gethostbyname = yes; then
9095 LIBS="-lsocket -lnsl $LIBS"
9099 { echo "$as_me:$LINENO: checking for library containing socket" >&5
9100 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9101 if test "${ac_cv_search_socket+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 ac_func_search_save_LIBS=$LIBS
9105 cat >conftest.$ac_ext <<_ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9127 for ac_lib in '' socket; do
9128 if test -z "$ac_lib"; then
9129 ac_res="none required"
9132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9138 *) ac_try_echo
=$ac_try;;
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>conftest.er1
9143 grep -v '^ *+' conftest.er1
>conftest.err
9145 cat conftest.err
>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } && {
9148 test -z "$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9150 } && test -s conftest
$ac_exeext &&
9151 $as_test_x conftest
$ac_exeext; then
9152 ac_cv_search_socket
=$ac_res
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.
$ac_ext >&5
9160 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9162 if test "${ac_cv_search_socket+set}" = set; then
9166 if test "${ac_cv_search_socket+set}" = set; then
9169 ac_cv_search_socket
=no
9172 LIBS
=$ac_func_search_save_LIBS
9174 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9175 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9176 ac_res
=$ac_cv_search_socket
9177 if test "$ac_res" != no
; then
9178 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9181 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9182 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9183 if test "${ac_cv_lib_socket_socket+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 ac_check_lib_save_LIBS
=$LIBS
9187 LIBS
="-lsocket -lnsl $LIBS"
9188 cat >conftest.
$ac_ext <<_ACEOF
9191 cat confdefs.h
>>conftest.
$ac_ext
9192 cat >>conftest.
$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9210 rm -f conftest.
$ac_objext conftest
$ac_exeext
9211 if { (ac_try
="$ac_link"
9213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_link") 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest$ac_exeext &&
9227 $as_test_x conftest$ac_exeext; then
9228 ac_cv_lib_socket_socket=yes
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_cv_lib_socket_socket=no
9236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9241 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9242 if test $ac_cv_lib_socket_socket = yes; then
9243 LIBS="-lsocket -lnsl $LIBS"
9248 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9249 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9250 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9251 if test "${ac_cv_search_putmsg+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 ac_func_search_save_LIBS=$LIBS
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9262 /* Override any GCC internal prototype to avoid an error.
9263 Use char because int might match the return type of a GCC
9264 builtin and then its argument prototype would still apply. */
9277 for ac_lib in '' str; do
9278 if test -z "$ac_lib"; then
9279 ac_res="none required"
9282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (ac_try="$ac_link"
9287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9288 *) ac_try_echo
=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_link") 2>conftest.er1
9293 grep -v '^ *+' conftest.er1
>conftest.err
9295 cat conftest.err
>&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest
$ac_exeext &&
9301 $as_test_x conftest
$ac_exeext; then
9302 ac_cv_search_putmsg
=$ac_res
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.
$ac_ext >&5
9310 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9312 if test "${ac_cv_search_putmsg+set}" = set; then
9316 if test "${ac_cv_search_putmsg+set}" = set; then
9319 ac_cv_search_putmsg
=no
9322 LIBS
=$ac_func_search_save_LIBS
9324 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9325 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9326 ac_res
=$ac_cv_search_putmsg
9327 if test "$ac_res" != no
; then
9328 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9335 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9336 if test -f $pfopen ; then
9338 for ac_func
in pfopen
9340 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9343 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 cat >conftest.
$ac_ext <<_ACEOF
9349 cat confdefs.h
>>conftest.
$ac_ext
9350 cat >>conftest.
$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define $ac_func innocuous_$ac_func
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char $ac_func (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9362 # include <limits.h>
9364 # include <assert.h>
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_$ac_func || defined __stub___$ac_func
9391 rm -f conftest.
$ac_objext conftest
$ac_exeext
9392 if { (ac_try
="$ac_link"
9394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest$ac_exeext &&
9408 $as_test_x conftest$ac_exeext; then
9409 eval "$as_ac_var=yes"
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 eval "$as_ac_var=no"
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9420 ac_res=`eval echo '${'$as_ac_var'}'`
9421 { echo "$as_me:$LINENO: result: $ac_res" >&5
9422 echo "${ECHO_T}$ac_res" >&6; }
9423 if test `eval echo '${'$as_ac_var'}'` = yes; then
9424 cat >>confdefs.h <<_ACEOF
9425 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9431 if test $ac_cv_func_pfopen = "no" ; then
9432 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9433 echo "${ECHO_T}Using $pfopen" >&6; }
9434 LIBS="$LIBS $pfopen"
9437 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9438 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9441 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9442 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9443 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9444 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//'`
9445 if test $lastdir = $basedir ; then
9449 if test -r $dir/libpcap.a ; then
9450 libpcap=$dir/libpcap.a
9454 if test $libpcap = FAIL ; then
9455 { echo "$as_me:$LINENO: result: not found" >&5
9456 echo "${ECHO_T}not found" >&6; }
9459 # Look for pcap-config.
9461 # Extract the first word of "pcap-config", so it can be a program name with args.
9462 set dummy pcap-config; ac_word=$2
9463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9465 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 case $PCAP_CONFIG in
9470 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9480 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9491 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9492 if test -n "$PCAP_CONFIG"; then
9493 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9494 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9496 { echo "$as_me:$LINENO: result: no" >&5
9497 echo "${ECHO_T}no" >&6; }
9501 if test -n "$PCAP_CONFIG" ; then
9503 # Found - use it to get the include flags for
9504 # libpcap and the flags to link with libpcap.
9506 V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9507 libpcap="`\"$PCAP_CONFIG\" --libs`"
9510 # Not found; look for pcap.
9512 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9513 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9514 if test "${ac_cv_lib_pcap_main+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 ac_check_lib_save_LIBS=$LIBS
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9539 *) ac_try_echo
=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1
>conftest.err
9546 cat conftest.err
>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest
$ac_exeext &&
9552 $as_test_x conftest
$ac_exeext; then
9553 ac_cv_lib_pcap_main
=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.
$ac_ext >&5
9558 ac_cv_lib_pcap_main
=no
9561 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9562 conftest
$ac_exeext conftest.
$ac_ext
9563 LIBS
=$ac_check_lib_save_LIBS
9565 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9566 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9567 if test $ac_cv_lib_pcap_main = yes; then
9571 if test $libpcap = FAIL
; then
9572 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9573 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9574 { (exit 1); exit 1; }; }
9576 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9577 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9578 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9579 \
( ! -r /usr
/include
/pcap.h \
); then
9580 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9581 d
="/usr/local/include/pcap"
9582 elif test -r /usr
/include
/pcap
/pcap.h
; then
9583 d
="/usr/include/pcap"
9586 if test -z "$d" ; then
9587 { echo "$as_me:$LINENO: result: not found" >&5
9588 echo "${ECHO_T}not found" >&6; }
9590 V_INCLS
="-I$d $V_INCLS"
9591 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9592 echo "${ECHO_T}found -- -I$d added" >&6; }
9597 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9598 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9599 if test -r $d/pcap.h
; then
9600 V_INCLS
="-I$d $V_INCLS"
9601 elif test -r $places/pcap.h
; then
9602 V_INCLS
="-I$places $V_INCLS"
9604 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9605 echo "$as_me: error: cannot find pcap.h" >&2;}
9606 { (exit see INSTALL
); exit see INSTALL
; }; }
9608 { echo "$as_me:$LINENO: result: $libpcap" >&5
9609 echo "${ECHO_T}$libpcap" >&6; }
9610 # Extract the first word of "pcap-config", so it can be a program name with args.
9611 set dummy pcap-config
; ac_word
=$2
9612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9614 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 case $PCAP_CONFIG in
9619 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
9622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9626 test -z "$as_dir" && as_dir
=.
9627 for ac_exec_ext
in '' $ac_executable_extensions; do
9628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9629 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
9641 if test -n "$PCAP_CONFIG"; then
9642 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9643 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9645 { echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6; }
9650 if test -n "$PCAP_CONFIG"; then
9652 # The libpcap directory has a pcap-config script.
9653 # Use it to get any additioal libraries needed
9654 # to link with the libpcap archive library in
9657 libpcap
="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9660 LIBS
="$libpcap $LIBS"
9661 if ! test -n "$PCAP_CONFIG" ; then
9663 # We don't have pcap-config; find out any additional link flags
9664 # we need. (If we have pcap-config, we assume it tells us what
9671 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9672 # present, as we use the STREAMS routines.
9674 # (XXX - true only if we're linking with a static libpcap?)
9676 pseexe
="/lib/pse.exp"
9677 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9678 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9679 if test -f $pseexe ; then
9680 { echo "$as_me:$LINENO: result: yes" >&5
9681 echo "${ECHO_T}yes" >&6; }
9682 LIBS
="$LIBS -I:$pseexe"
9686 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9687 # we use them to load the BPF module.
9689 # (XXX - true only if we're linking with a static libpcap?)
9691 LIBS
="$LIBS -lodm -lcfg"
9696 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9697 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9698 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 cat >conftest.
$ac_ext <<_ACEOF
9704 cat confdefs.h
>>conftest.
$ac_ext
9705 cat >>conftest.
$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9709 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9711 /* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char pcap_list_datalinks (); below.
9713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714 <limits.h> exists even on freestanding compilers. */
9717 # include <limits.h>
9719 # include <assert.h>
9722 #undef pcap_list_datalinks
9724 /* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
9730 char pcap_list_datalinks ();
9731 /* The GNU C library defines this for functions which it implements
9732 to always fail with ENOSYS. Some functions are actually named
9733 something starting with __ and the normal name is an alias. */
9734 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9741 return pcap_list_datalinks ();
9746 rm -f conftest.
$ac_objext conftest
$ac_exeext
9747 if { (ac_try
="$ac_link"
9749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } && {
9760 test -z "$ac_c_werror_flag" ||
9761 test ! -s conftest.err
9762 } && test -s conftest$ac_exeext &&
9763 $as_test_x conftest$ac_exeext; then
9764 ac_cv_func_pcap_list_datalinks=yes
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_cv_func_pcap_list_datalinks=no
9772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773 conftest$ac_exeext conftest.$ac_ext
9775 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9776 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9777 if test $ac_cv_func_pcap_list_datalinks = yes; then
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_PCAP_LIST_DATALINKS 1
9784 case " $LIBOBJS " in
9785 *" datalinks.$ac_objext "* ) ;;
9786 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9793 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9794 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9795 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define pcap_set_datalink innocuous_pcap_set_datalink
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char pcap_set_datalink (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9814 # include <limits.h>
9816 # include <assert.h>
9819 #undef pcap_set_datalink
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9827 char pcap_set_datalink ();
9828 /* The GNU C library defines this for functions which it implements
9829 to always fail with ENOSYS. Some functions are actually named
9830 something starting with __ and the normal name is an alias. */
9831 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9838 return pcap_set_datalink ();
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9847 *) ac_try_echo
=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9852 grep -v '^ *+' conftest.er1
>conftest.err
9854 cat conftest.err
>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest
$ac_exeext &&
9860 $as_test_x conftest
$ac_exeext; then
9861 ac_cv_func_pcap_set_datalink
=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 ac_cv_func_pcap_set_datalink
=no
9869 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9870 conftest
$ac_exeext conftest.
$ac_ext
9872 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9873 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9874 if test $ac_cv_func_pcap_set_datalink = yes; then
9875 cat >>confdefs.h
<<\_ACEOF
9876 #define HAVE_PCAP_SET_DATALINK 1
9881 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9882 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9883 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 cat >conftest.
$ac_ext <<_ACEOF
9889 cat confdefs.h
>>conftest.
$ac_ext
9890 cat >>conftest.
$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9894 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9896 /* System header to define __stub macros and hopefully few prototypes,
9897 which can conflict with char pcap_datalink_name_to_val (); below.
9898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9899 <limits.h> exists even on freestanding compilers. */
9902 # include <limits.h>
9904 # include <assert.h>
9907 #undef pcap_datalink_name_to_val
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9915 char pcap_datalink_name_to_val ();
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9926 return pcap_datalink_name_to_val ();
9931 rm -f conftest.
$ac_objext conftest
$ac_exeext
9932 if { (ac_try
="$ac_link"
9934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest$ac_exeext &&
9948 $as_test_x conftest$ac_exeext; then
9949 ac_cv_func_pcap_datalink_name_to_val=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_func_pcap_datalink_name_to_val=no
9957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9958 conftest$ac_exeext conftest.$ac_ext
9960 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9961 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9962 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9968 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9969 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9970 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9981 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9983 /* System header to define __stub macros and hopefully few prototypes,
9984 which can conflict with char pcap_datalink_val_to_description (); below.
9985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9986 <limits.h> exists even on freestanding compilers. */
9989 # include <limits.h>
9991 # include <assert.h>
9994 #undef pcap_datalink_val_to_description
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
10002 char pcap_datalink_val_to_description ();
10003 /* The GNU C library defines this for functions which it implements
10004 to always fail with ENOSYS. Some functions are actually named
10005 something starting with __ and the normal name is an alias. */
10006 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10013 return pcap_datalink_val_to_description ();
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10022 *) ac_try_echo
=$ac_try;;
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_link") 2>conftest.er1
10027 grep -v '^ *+' conftest.er1
>conftest.err
10029 cat conftest.err
>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && {
10032 test -z "$ac_c_werror_flag" ||
10033 test ! -s conftest.err
10034 } && test -s conftest
$ac_exeext &&
10035 $as_test_x conftest
$ac_exeext; then
10036 ac_cv_func_pcap_datalink_val_to_description
=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.
$ac_ext >&5
10041 ac_cv_func_pcap_datalink_val_to_description
=no
10044 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10045 conftest
$ac_exeext conftest.
$ac_ext
10047 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10048 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10049 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10050 cat >>confdefs.h
<<\_ACEOF
10051 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10056 case " $LIBOBJS " in
10057 *" dlnames.$ac_objext "* ) ;;
10058 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
10068 case " $LIBOBJS " in
10069 *" dlnames.$ac_objext "* ) ;;
10070 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
10079 for ac_func
in pcap_breakloop
10081 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10084 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.
$ac_ext <<_ACEOF
10090 cat confdefs.h
>>conftest.
$ac_ext
10091 cat >>conftest.
$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10095 #define $ac_func innocuous_$ac_func
10097 /* System header to define __stub macros and hopefully few prototypes,
10098 which can conflict with char $ac_func (); below.
10099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10100 <limits.h> exists even on freestanding compilers. */
10103 # include <limits.h>
10105 # include <assert.h>
10110 /* Override any GCC internal prototype to avoid an error.
10111 Use char because int might match the return type of a GCC
10112 builtin and then its argument prototype would still apply. */
10117 /* The GNU C library defines this for functions which it implements
10118 to always fail with ENOSYS. Some functions are actually named
10119 something starting with __ and the normal name is an alias. */
10120 #if defined __stub_$ac_func || defined __stub___$ac_func
10127 return $ac_func ();
10132 rm -f conftest.
$ac_objext conftest
$ac_exeext
10133 if { (ac_try
="$ac_link"
10134 case "(($ac_try" in
10135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_link") 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest$ac_exeext &&
10149 $as_test_x conftest$ac_exeext; then
10150 eval "$as_ac_var=yes"
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 eval "$as_ac_var=no"
10158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10159 conftest$ac_exeext conftest.$ac_ext
10161 ac_res=`eval echo '${'$as_ac_var'}'`
10162 { echo "$as_me:$LINENO: result: $ac_res" >&5
10163 echo "${ECHO_T}$ac_res" >&6; }
10164 if test `eval echo '${'$as_ac_var'}'` = yes; then
10165 cat >>confdefs.h <<_ACEOF
10166 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10173 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10174 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10175 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char pcap_dump_ftell (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10194 # include <limits.h>
10196 # include <assert.h>
10199 #undef pcap_dump_ftell
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10207 char pcap_dump_ftell ();
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10218 return pcap_dump_ftell ();
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10227 *) ac_try_echo
=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1
>conftest.err
10234 cat conftest.err
>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest
$ac_exeext &&
10240 $as_test_x conftest
$ac_exeext; then
10241 ac_cv_func_pcap_dump_ftell
=yes
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.
$ac_ext >&5
10246 ac_cv_func_pcap_dump_ftell
=no
10249 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10250 conftest
$ac_exeext conftest.
$ac_ext
10252 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10253 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10254 if test $ac_cv_func_pcap_dump_ftell = yes; then
10255 cat >>confdefs.h
<<\_ACEOF
10256 #define HAVE_PCAP_DUMP_FTELL 1
10261 case " $LIBOBJS " in
10262 *" pcap_dump_ftell.$ac_objext "* ) ;;
10263 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext"
10273 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10274 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10276 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10277 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10278 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10279 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10280 # it does not ship with a libc symbol "inet_ntop()", it ships with
10281 # "_inet_ntop()", and has a #define macro in one of the system headers
10284 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10285 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10286 cat >conftest.
$ac_ext <<_ACEOF
10289 cat confdefs.h
>>conftest.
$ac_ext
10290 cat >>conftest.
$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 #include <sys/types.h>
10293 #include <sys/socket.h>
10294 #include <netinet/in.h>
10295 #include <arpa/inet.h>
10299 char src[4], dst[128];
10300 inet_ntop(AF_INET, src, dst, sizeof(dst));
10305 rm -f conftest.
$ac_objext conftest
$ac_exeext
10306 if { (ac_try
="$ac_link"
10307 case "(($ac_try" in
10308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } && {
10319 test -z "$ac_c_werror_flag" ||
10320 test ! -s conftest.err
10321 } && test -s conftest$ac_exeext &&
10322 $as_test_x conftest$ac_exeext; then
10323 { echo "$as_me:$LINENO: result: yes" >&5
10324 echo "${ECHO_T}yes" >&6; }
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 { echo "$as_me:$LINENO: result: no" >&5
10330 echo "${ECHO_T}no" >&6; }
10331 case " $LIBOBJS " in
10332 *" inet_ntop.$ac_objext "* ) ;;
10333 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10340 conftest$ac_exeext conftest.$ac_ext
10341 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10342 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 #include <sys/types.h>
10350 #include <sys/socket.h>
10351 #include <netinet/in.h>
10352 #include <arpa/inet.h>
10356 char src[128], dst[4];
10357 inet_pton(AF_INET, src, dst);
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10366 *) ac_try_echo
=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_link") 2>conftest.er1
10371 grep -v '^ *+' conftest.er1
>conftest.err
10373 cat conftest.err
>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && {
10376 test -z "$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 } && test -s conftest
$ac_exeext &&
10379 $as_test_x conftest
$ac_exeext; then
10380 { echo "$as_me:$LINENO: result: yes" >&5
10381 echo "${ECHO_T}yes" >&6; }
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.
$ac_ext >&5
10386 { echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6; }
10388 case " $LIBOBJS " in
10389 *" inet_pton.$ac_objext "* ) ;;
10390 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
10396 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10397 conftest
$ac_exeext conftest.
$ac_ext
10398 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10399 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10400 cat >conftest.
$ac_ext <<_ACEOF
10403 cat confdefs.h
>>conftest.
$ac_ext
10404 cat >>conftest.
$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 #include <sys/types.h>
10407 #include <netinet/in.h>
10408 #include <arpa/inet.h>
10413 struct in_addr dst;
10414 inet_aton(src, &dst);
10419 rm -f conftest.
$ac_objext conftest
$ac_exeext
10420 if { (ac_try
="$ac_link"
10421 case "(($ac_try" in
10422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && {
10433 test -z "$ac_c_werror_flag" ||
10434 test ! -s conftest.err
10435 } && test -s conftest$ac_exeext &&
10436 $as_test_x conftest$ac_exeext; then
10437 { echo "$as_me:$LINENO: result: yes" >&5
10438 echo "${ECHO_T}yes" >&6; }
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 { echo "$as_me:$LINENO: result: no" >&5
10444 echo "${ECHO_T}no" >&6; }
10445 case " $LIBOBJS " in
10446 *" inet_aton.$ac_objext "* ) ;;
10447 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10454 conftest$ac_exeext conftest.$ac_ext
10457 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10459 # You are in a twisty little maze of UN*Xes, all different.
10460 # Some might not have ether_ntohost().
10461 # Some might have it, but not declare it in any header file.
10462 # Some might have it, but declare it in <netinet/if_ether.h>.
10463 # Some might have it, but declare it in <netinet/ether.h>
10464 # (And some might have it but document it as something declared in
10465 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10467 # Before you is a C compiler.
10470 for ac_func in ether_ntohost
10472 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10486 #define $ac_func innocuous_$ac_func
10488 /* System header to define __stub macros and hopefully few prototypes,
10489 which can conflict with char $ac_func (); below.
10490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10491 <limits.h> exists even on freestanding compilers. */
10494 # include <limits.h>
10496 # include <assert.h>
10501 /* Override any GCC internal prototype to avoid an error.
10502 Use char because int might match the return type of a GCC
10503 builtin and then its argument prototype would still apply. */
10508 /* The GNU C library defines this for functions which it implements
10509 to always fail with ENOSYS. Some functions are actually named
10510 something starting with __ and the normal name is an alias. */
10511 #if defined __stub_$ac_func || defined __stub___$ac_func
10518 return $ac_func ();
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (ac_try="$ac_link"
10525 case "(($ac_try" in
10526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10527 *) ac_try_echo
=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_link") 2>conftest.er1
10532 grep -v '^ *+' conftest.er1
>conftest.err
10534 cat conftest.err
>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
10539 } && test -s conftest
$ac_exeext &&
10540 $as_test_x conftest
$ac_exeext; then
10541 eval "$as_ac_var=yes"
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.
$ac_ext >&5
10546 eval "$as_ac_var=no"
10549 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10550 conftest
$ac_exeext conftest.
$ac_ext
10552 ac_res
=`eval echo '${'$as_ac_var'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_var'}'` = yes; then
10556 cat >>confdefs.h
<<_ACEOF
10557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10560 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10561 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10562 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 if test "$cross_compiling" = yes; then
10567 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10569 cat >conftest.
$ac_ext <<_ACEOF
10572 cat confdefs.h
>>conftest.
$ac_ext
10573 cat >>conftest.
$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10577 #include <sys/types.h>
10578 #include <sys/param.h>
10579 #include <sys/socket.h>
10582 main(int argc, char **argv)
10584 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10585 char name[MAXHOSTNAMELEN];
10587 ether_ntohost(name, (struct ether_addr *)ea);
10592 rm -f conftest
$ac_exeext
10593 if { (ac_try
="$ac_link"
10594 case "(($ac_try" in
10595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10603 { (case "(($ac_try" in
10604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10605 *) ac_try_echo
=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_buggy_ether_ntohost
=no
10614 echo "$as_me: program exited with status $ac_status" >&5
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.
$ac_ext >&5
10618 ( exit $ac_status )
10619 ac_cv_buggy_ether_ntohost
=yes
10621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10626 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10627 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10628 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10629 cat >>confdefs.h
<<\_ACEOF
10630 #define USE_ETHER_NTOHOST 1
10638 if test "$ac_cv_func_ether_ntohost" = yes -a \
10639 "$ac_cv_buggy_ether_ntohost" = "no"; then
10641 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10643 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10645 # Yes. Does it declare ether_ntohost()?
10647 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10648 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10649 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 cat >conftest.
$ac_ext <<_ACEOF
10655 cat confdefs.h
>>conftest.
$ac_ext
10656 cat >>conftest.
$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10659 #include <sys/types.h>
10660 #include <sys/socket.h>
10661 #include <netinet/in.h>
10662 #include <arpa/inet.h>
10665 #include <net/if.h>
10666 #include <netinet/if_ether.h>
10672 #ifndef ether_ntohost
10673 (void) ether_ntohost;
10680 rm -f conftest.
$ac_objext
10681 if { (ac_try
="$ac_compile"
10682 case "(($ac_try" in
10683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_compile") 2>conftest.er1
10689 grep -v '^ *+' conftest.er1 >conftest.err
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest.$ac_objext; then
10697 ac_cv_have_decl_ether_ntohost=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702 ac_cv_have_decl_ether_ntohost=no
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10708 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10709 if test $ac_cv_have_decl_ether_ntohost = yes; then
10712 cat >>confdefs.h <<\_ACEOF
10713 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10721 # Did that succeed?
10723 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10725 # No, how about <netinet/ether.h>, as on Linux?
10728 for ac_header in netinet/ether.h
10730 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 ac_res=`eval echo '${'$as_ac_Header'}'`
10738 { echo "$as_me:$LINENO: result: $ac_res" >&5
10739 echo "${ECHO_T}$ac_res" >&6; }
10741 # Is the header compilable?
10742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10744 cat >conftest.$ac_ext <<_ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 #include <$ac_header>
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10757 *) ac_try_echo
=$ac_try;;
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10762 grep -v '^ *+' conftest.er1
>conftest.err
10764 cat conftest.err
>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.
$ac_objext; then
10770 ac_header_compiler
=yes
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.
$ac_ext >&5
10775 ac_header_compiler
=no
10778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10780 echo "${ECHO_T}$ac_header_compiler" >&6; }
10782 # Is the header present?
10783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10785 cat >conftest.
$ac_ext <<_ACEOF
10788 cat confdefs.h
>>conftest.
$ac_ext
10789 cat >>conftest.
$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <$ac_header>
10793 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10794 case "(($ac_try" in
10795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10801 grep -v '^ *+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } >/dev/null && {
10806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10809 ac_header_preproc=yes
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_header_preproc=no
10817 rm -f conftest.err conftest.$ac_ext
10818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10819 echo "${ECHO_T}$ac_header_preproc" >&6; }
10821 # So? What about this header?
10822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10828 ac_header_preproc=yes
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 eval "$as_ac_Header=\$ac_header_preproc"
10853 ac_res=`eval echo '${'$as_ac_Header'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10859 cat >>confdefs.h <<_ACEOF
10860 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10867 if test "$ac_cv_header_netinet_ether_h" = yes; then
10869 # We have it - does it declare ether_ntohost()?
10870 # Unset ac_cv_have_decl_ether_ntohost so we don't
10871 # treat the previous failure as a cached value and
10872 # suppress the next test.
10874 unset ac_cv_have_decl_ether_ntohost
10875 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10876 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10877 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10887 #include <netinet/ether.h>
10893 #ifndef ether_ntohost
10894 (void) ether_ntohost;
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10905 *) ac_try_echo
=$ac_try;;
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_compile") 2>conftest.er1
10910 grep -v '^ *+' conftest.er1
>conftest.err
10912 cat conftest.err
>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } && {
10915 test -z "$ac_c_werror_flag" ||
10916 test ! -s conftest.err
10917 } && test -s conftest.
$ac_objext; then
10918 ac_cv_have_decl_ether_ntohost
=yes
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.
$ac_ext >&5
10923 ac_cv_have_decl_ether_ntohost
=no
10926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10928 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10929 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10930 if test $ac_cv_have_decl_ether_ntohost = yes; then
10933 cat >>confdefs.h
<<\_ACEOF
10934 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10943 # Is ether_ntohost() declared?
10945 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10947 # No, we'll have to declare it ourselves.
10948 # Do we have "struct ether_addr"?
10950 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10951 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10952 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 cat >conftest.
$ac_ext <<_ACEOF
10958 cat confdefs.h
>>conftest.
$ac_ext
10959 cat >>conftest.
$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 #include <sys/types.h>
10963 #include <sys/socket.h>
10964 #include <netinet/in.h>
10965 #include <arpa/inet.h>
10968 #include <net/if.h>
10969 #include <netinet/if_ether.h>
10972 typedef struct ether_addr ac__type_new_;
10976 if ((ac__type_new_ *) 0)
10978 if (sizeof (ac__type_new_))
10984 rm -f conftest.
$ac_objext
10985 if { (ac_try
="$ac_compile"
10986 case "(($ac_try" in
10987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest.$ac_objext; then
11001 ac_cv_type_struct_ether_addr=yes
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_cv_type_struct_ether_addr=no
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11012 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11013 if test $ac_cv_type_struct_ether_addr = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_STRUCT_ETHER_ADDR 1
11023 cat >>confdefs.h <<\_ACEOF
11024 #define HAVE_DECL_ETHER_NTOHOST 0
11029 cat >>confdefs.h <<\_ACEOF
11030 #define HAVE_DECL_ETHER_NTOHOST 1
11036 # libdlpi is needed for Solaris 11 and later.
11037 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11038 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11039 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 ac_check_lib_save_LIBS=$LIBS
11043 LIBS="-ldlpi -L/lib $LIBS"
11044 cat >conftest.$ac_ext <<_ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11061 return dlpi_walk ();
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (ac_try="$ac_link"
11068 case "(($ac_try" in
11069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11070 *) ac_try_echo
=$ac_try;;
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_link") 2>conftest.er1
11075 grep -v '^ *+' conftest.er1
>conftest.err
11077 cat conftest.err
>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } && {
11080 test -z "$ac_c_werror_flag" ||
11081 test ! -s conftest.err
11082 } && test -s conftest
$ac_exeext &&
11083 $as_test_x conftest
$ac_exeext; then
11084 ac_cv_lib_dlpi_dlpi_walk
=yes
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.
$ac_ext >&5
11089 ac_cv_lib_dlpi_dlpi_walk
=no
11092 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11093 conftest
$ac_exeext conftest.
$ac_ext
11094 LIBS
=$ac_check_lib_save_LIBS
11096 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11097 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11098 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11099 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
11104 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11105 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11106 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 cat >conftest.
$ac_ext <<_ACEOF
11112 cat confdefs.h
>>conftest.
$ac_ext
11113 cat >>conftest.
$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11116 # include <sys/types.h>
11117 # include <sys/socket.h>
11121 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11126 rm -f conftest.
$ac_objext
11127 if { (ac_try
="$ac_compile"
11128 case "(($ac_try" in
11129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_compile") 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest.$ac_objext; then
11143 ac_cv_sockaddr_has_sa_len=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_cv_sockaddr_has_sa_len=no
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11154 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11155 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11156 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_SOCKADDR_SA_LEN 1
11163 if test "$ac_cv_sockaddr_has_sa_len" = no; then
11164 missing_includes=yes
11168 # Do we have the new open API? Check for pcap_create, and assume that,
11169 # if we do, we also have pcap_activate() and the other new routines.
11171 for ac_func in pcap_create
11173 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11187 #define $ac_func innocuous_$ac_func
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below.
11191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192 <limits.h> exists even on freestanding compilers. */
11195 # include <limits.h>
11197 # include <assert.h>
11202 /* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined __stub_$ac_func || defined __stub___$ac_func
11219 return $ac_func ();
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (ac_try="$ac_link"
11226 case "(($ac_try" in
11227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11228 *) ac_try_echo
=$ac_try;;
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11233 grep -v '^ *+' conftest.er1
>conftest.err
11235 cat conftest.err
>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest
$ac_exeext &&
11241 $as_test_x conftest
$ac_exeext; then
11242 eval "$as_ac_var=yes"
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.
$ac_ext >&5
11247 eval "$as_ac_var=no"
11250 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11251 conftest
$ac_exeext conftest.
$ac_ext
11253 ac_res
=`eval echo '${'$as_ac_var'}'`
11254 { echo "$as_me:$LINENO: result: $ac_res" >&5
11255 echo "${ECHO_T}$ac_res" >&6; }
11256 if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h
<<_ACEOF
11258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11268 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
11270 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11273 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 cat >conftest.
$ac_ext <<_ACEOF
11279 cat confdefs.h
>>conftest.
$ac_ext
11280 cat >>conftest.
$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11284 #define $ac_func innocuous_$ac_func
11286 /* System header to define __stub macros and hopefully few prototypes,
11287 which can conflict with char $ac_func (); below.
11288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11289 <limits.h> exists even on freestanding compilers. */
11292 # include <limits.h>
11294 # include <assert.h>
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11306 /* The GNU C library defines this for functions which it implements
11307 to always fail with ENOSYS. Some functions are actually named
11308 something starting with __ and the normal name is an alias. */
11309 #if defined __stub_$ac_func || defined __stub___$ac_func
11316 return $ac_func ();
11321 rm -f conftest.
$ac_objext conftest
$ac_exeext
11322 if { (ac_try
="$ac_link"
11323 case "(($ac_try" in
11324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_link") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest$ac_exeext &&
11338 $as_test_x conftest$ac_exeext; then
11339 eval "$as_ac_var=yes"
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 eval "$as_ac_var=no"
11347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11348 conftest$ac_exeext conftest.$ac_ext
11350 ac_res=`eval echo '${'$as_ac_var'}'`
11351 { echo "$as_me:$LINENO: result: $ac_res" >&5
11352 echo "${ECHO_T}$ac_res" >&6; }
11353 if test `eval echo '${'$as_ac_var'}'` = yes; then
11354 cat >>confdefs.h <<_ACEOF
11355 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11361 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11362 savedppflags="$CPPLAGS"
11363 CPPFLAGS="$CPPFLAGS $V_INCLS"
11364 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11365 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11366 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11377 typedef pcap_if_t ac__type_new_;
11381 if ((ac__type_new_ *) 0)
11383 if (sizeof (ac__type_new_))
11389 rm -f conftest.$ac_objext
11390 if { (ac_try="$ac_compile"
11391 case "(($ac_try" in
11392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11393 *) ac_try_echo
=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_compile") 2>conftest.er1
11398 grep -v '^ *+' conftest.er1
>conftest.err
11400 cat conftest.err
>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } && {
11403 test -z "$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11405 } && test -s conftest.
$ac_objext; then
11406 ac_cv_type_pcap_if_t
=yes
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.
$ac_ext >&5
11411 ac_cv_type_pcap_if_t
=no
11414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11417 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11418 if test $ac_cv_type_pcap_if_t = yes; then
11420 cat >>confdefs.h
<<_ACEOF
11421 #define HAVE_PCAP_IF_T 1
11427 CPPFLAGS
="$savedcppflags"
11430 if test $ac_cv_func_pcap_lib_version = "no" ; then
11431 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11432 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11433 cat >conftest.
$ac_ext <<_ACEOF
11436 cat confdefs.h
>>conftest.
$ac_ext
11437 cat >>conftest.
$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11444 extern char pcap_version[];
11446 return (int)pcap_version;
11452 rm -f conftest.
$ac_objext conftest
$ac_exeext
11453 if { (ac_try
="$ac_link"
11454 case "(($ac_try" in
11455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_link") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest$ac_exeext &&
11469 $as_test_x conftest$ac_exeext; then
11470 ac_lbl_cv_pcap_version_defined=yes
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_lbl_cv_pcap_version_defined=no
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479 conftest$ac_exeext conftest.$ac_ext
11480 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11481 { echo "$as_me:$LINENO: result: yes" >&5
11482 echo "${ECHO_T}yes" >&6; }
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_PCAP_VERSION 1
11488 { echo "$as_me:$LINENO: result: no" >&5
11489 echo "${ECHO_T}no" >&6; }
11492 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11493 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11505 extern int pcap_debug;
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11517 *) ac_try_echo
=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_link") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1
>conftest.err
11524 cat conftest.err
>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest
$ac_exeext &&
11530 $as_test_x conftest
$ac_exeext; then
11531 ac_lbl_cv_pcap_debug_defined
=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.
$ac_ext >&5
11536 ac_lbl_cv_pcap_debug_defined
=no
11539 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11540 conftest
$ac_exeext conftest.
$ac_ext
11541 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11542 { echo "$as_me:$LINENO: result: yes" >&5
11543 echo "${ECHO_T}yes" >&6; }
11544 cat >>confdefs.h
<<\_ACEOF
11545 #define HAVE_PCAP_DEBUG 1
11549 { echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6; }
11552 # OK, what about "yydebug"?
11554 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11555 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11556 cat >conftest.
$ac_ext <<_ACEOF
11559 cat confdefs.h
>>conftest.
$ac_ext
11560 cat >>conftest.
$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11567 extern int yydebug;
11575 rm -f conftest.
$ac_objext conftest
$ac_exeext
11576 if { (ac_try
="$ac_link"
11577 case "(($ac_try" in
11578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest$ac_exeext &&
11592 $as_test_x conftest$ac_exeext; then
11593 ac_lbl_cv_yydebug_defined=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_lbl_cv_yydebug_defined=no
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11604 { echo "$as_me:$LINENO: result: yes" >&5
11605 echo "${ECHO_T}yes" >&6; }
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_YYDEBUG 1
11611 { echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6; }
11616 for ac_func in bpf_dump
11618 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 cat >conftest.$ac_ext <<_ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11632 #define $ac_func innocuous_$ac_func
11634 /* System header to define __stub macros and hopefully few prototypes,
11635 which can conflict with char $ac_func (); below.
11636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11637 <limits.h> exists even on freestanding compilers. */
11640 # include <limits.h>
11642 # include <assert.h>
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11654 /* The GNU C library defines this for functions which it implements
11655 to always fail with ENOSYS. Some functions are actually named
11656 something starting with __ and the normal name is an alias. */
11657 #if defined __stub_$ac_func || defined __stub___$ac_func
11664 return $ac_func ();
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (ac_try="$ac_link"
11671 case "(($ac_try" in
11672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11673 *) ac_try_echo
=$ac_try;;
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_link") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1
>conftest.err
11680 cat conftest.err
>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && {
11683 test -z "$ac_c_werror_flag" ||
11684 test ! -s conftest.err
11685 } && test -s conftest
$ac_exeext &&
11686 $as_test_x conftest
$ac_exeext; then
11687 eval "$as_ac_var=yes"
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.
$ac_ext >&5
11692 eval "$as_ac_var=no"
11695 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11696 conftest
$ac_exeext conftest.
$ac_ext
11698 ac_res
=`eval echo '${'$as_ac_var'}'`
11699 { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702 cat >>confdefs.h
<<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11707 case " $LIBOBJS " in
11708 *" $ac_func.$ac_objext "* ) ;;
11709 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
11718 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11722 # Assume V7/BSD convention for man pages (file formats in section 5,
11723 # miscellaneous info in section 7).
11730 cat >>confdefs.h
<<\_ACEOF
11738 # Use System V conventions for man pages.
11748 # Use System V conventions for man pages.
11758 # Use System V conventions for man pages.
11768 # Use System V conventions for man pages.
11775 if test -f /dev
/bpf0
; then
11780 # Check for some headers introduced in later versions of libpcap
11781 # and used by some printers.
11783 savedcppflags
="$CPPFLAGS"
11784 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11786 for ac_header
in pcap
/bluetooth.h
11788 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11789 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11792 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 ac_res
=`eval echo '${'$as_ac_Header'}'`
11796 { echo "$as_me:$LINENO: result: $ac_res" >&5
11797 echo "${ECHO_T}$ac_res" >&6; }
11799 # Is the header compilable?
11800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11802 cat >conftest.
$ac_ext <<_ACEOF
11805 cat confdefs.h
>>conftest.
$ac_ext
11806 cat >>conftest.
$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 #include <$ac_header>
11811 rm -f conftest.
$ac_objext
11812 if { (ac_try
="$ac_compile"
11813 case "(($ac_try" in
11814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_compile") 2>conftest.er1
11820 grep -v '^ *+' conftest.er1 >conftest.err
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && {
11825 test -z "$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 } && test -s conftest.$ac_objext; then
11828 ac_header_compiler=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_header_compiler=no
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11838 echo "${ECHO_T}$ac_header_compiler" >&6; }
11840 # Is the header present?
11841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 #include <$ac_header>
11851 if { (ac_try="$ac_cpp conftest.$ac_ext"
11852 case "(($ac_try" in
11853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11854 *) ac_try_echo
=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11859 grep -v '^ *+' conftest.er1
>conftest.err
11861 cat conftest.err
>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } >/dev
/null
&& {
11864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11867 ac_header_preproc
=yes
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.
$ac_ext >&5
11872 ac_header_preproc
=no
11875 rm -f conftest.err conftest.
$ac_ext
11876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11877 echo "${ECHO_T}$ac_header_preproc" >&6; }
11879 # So? What about this header?
11880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11886 ac_header_preproc
=yes
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 eval "$as_ac_Header=\$ac_header_preproc"
11911 ac_res
=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h
<<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11926 for ac_header
in pcap
/usb.h
11928 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11929 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11932 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 ac_res
=`eval echo '${'$as_ac_Header'}'`
11936 { echo "$as_me:$LINENO: result: $ac_res" >&5
11937 echo "${ECHO_T}$ac_res" >&6; }
11939 # Is the header compilable?
11940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11942 cat >conftest.
$ac_ext <<_ACEOF
11945 cat confdefs.h
>>conftest.
$ac_ext
11946 cat >>conftest.
$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 $ac_includes_default
11949 #include <$ac_header>
11951 rm -f conftest.
$ac_objext
11952 if { (ac_try
="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.$ac_objext; then
11968 ac_header_compiler=yes
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_header_compiler=no
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978 echo "${ECHO_T}$ac_header_compiler" >&6; }
11980 # Is the header present?
11981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <$ac_header>
11991 if { (ac_try="$ac_cpp conftest.$ac_ext"
11992 case "(($ac_try" in
11993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11994 *) ac_try_echo
=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1
>conftest.err
12001 cat conftest.err
>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } >/dev
/null
&& {
12004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12007 ac_header_preproc
=yes
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.
$ac_ext >&5
12012 ac_header_preproc
=no
12015 rm -f conftest.err conftest.
$ac_ext
12016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12017 echo "${ECHO_T}$ac_header_preproc" >&6; }
12019 # So? What about this header?
12020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12026 ac_header_preproc
=yes
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12046 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 eval "$as_ac_Header=\$ac_header_preproc"
12051 ac_res
=`eval echo '${'$as_ac_Header'}'`
12052 { echo "$as_me:$LINENO: result: $ac_res" >&5
12053 echo "${ECHO_T}$ac_res" >&6; }
12056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12057 cat >>confdefs.h
<<_ACEOF
12058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12065 CPPFLAGS
="$savedcppflags"
12068 for ac_header
in sys
/bitypes.h
12070 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12071 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12074 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 ac_res
=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12081 # Is the header compilable?
12082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12084 cat >conftest.
$ac_ext <<_ACEOF
12087 cat confdefs.h
>>conftest.
$ac_ext
12088 cat >>conftest.
$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 $ac_includes_default
12091 #include <$ac_header>
12093 rm -f conftest.
$ac_objext
12094 if { (ac_try
="$ac_compile"
12095 case "(($ac_try" in
12096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_compile") 2>conftest.er1
12102 grep -v '^ *+' conftest.er1 >conftest.err
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && {
12107 test -z "$ac_c_werror_flag" ||
12108 test ! -s conftest.err
12109 } && test -s conftest.$ac_objext; then
12110 ac_header_compiler=yes
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_header_compiler=no
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12120 echo "${ECHO_T}$ac_header_compiler" >&6; }
12122 # Is the header present?
12123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 #include <$ac_header>
12133 if { (ac_try="$ac_cpp conftest.$ac_ext"
12134 case "(($ac_try" in
12135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12136 *) ac_try_echo
=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12141 grep -v '^ *+' conftest.er1
>conftest.err
12143 cat conftest.err
>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } >/dev
/null
&& {
12146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12149 ac_header_preproc
=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.
$ac_ext >&5
12154 ac_header_preproc
=no
12157 rm -f conftest.err conftest.
$ac_ext
12158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12159 echo "${ECHO_T}$ac_header_preproc" >&6; }
12161 # So? What about this header?
12162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12168 ac_header_preproc
=yes
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12188 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 eval "$as_ac_Header=\$ac_header_preproc"
12193 ac_res
=`eval echo '${'$as_ac_Header'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12199 cat >>confdefs.h
<<_ACEOF
12200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 { echo "$as_me:$LINENO: checking for int8_t" >&5
12209 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12210 if test "${ac_cv_type_int8_t+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 cat >conftest.
$ac_ext <<_ACEOF
12216 cat confdefs.h
>>conftest.
$ac_ext
12217 cat >>conftest.
$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 $ac_includes_default
12220 #ifdef HAVE_SYS_BITYPES_H
12221 #include <sys/bitypes.h>
12224 typedef int8_t ac__type_new_;
12228 if ((ac__type_new_ *) 0)
12230 if (sizeof (ac__type_new_))
12236 rm -f conftest.
$ac_objext
12237 if { (ac_try
="$ac_compile"
12238 case "(($ac_try" in
12239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest.$ac_objext; then
12253 ac_cv_type_int8_t=yes
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 ac_cv_type_int8_t=no
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12264 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12265 if test $ac_cv_type_int8_t = yes; then
12269 cat >>confdefs.h <<\_ACEOF
12270 #define int8_t signed char
12275 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12276 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12277 if test "${ac_cv_type_u_int8_t+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 $ac_includes_default
12287 #ifdef HAVE_SYS_BITYPES_H
12288 #include <sys/bitypes.h>
12291 typedef u_int8_t ac__type_new_;
12295 if ((ac__type_new_ *) 0)
12297 if (sizeof (ac__type_new_))
12303 rm -f conftest.$ac_objext
12304 if { (ac_try="$ac_compile"
12305 case "(($ac_try" in
12306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12307 *) ac_try_echo
=$ac_try;;
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_compile") 2>conftest.er1
12312 grep -v '^ *+' conftest.er1
>conftest.err
12314 cat conftest.err
>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } && {
12317 test -z "$ac_c_werror_flag" ||
12318 test ! -s conftest.err
12319 } && test -s conftest.
$ac_objext; then
12320 ac_cv_type_u_int8_t
=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.
$ac_ext >&5
12325 ac_cv_type_u_int8_t
=no
12328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12330 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12331 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12332 if test $ac_cv_type_u_int8_t = yes; then
12336 cat >>confdefs.h
<<\_ACEOF
12337 #define u_int8_t unsigned char
12342 { echo "$as_me:$LINENO: checking for int16_t" >&5
12343 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12344 if test "${ac_cv_type_int16_t+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 cat >conftest.
$ac_ext <<_ACEOF
12350 cat confdefs.h
>>conftest.
$ac_ext
12351 cat >>conftest.
$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12354 typedef int16_t ac__type_new_;
12358 if ((ac__type_new_ *) 0)
12360 if (sizeof (ac__type_new_))
12366 rm -f conftest.
$ac_objext
12367 if { (ac_try
="$ac_compile"
12368 case "(($ac_try" in
12369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_compile") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest.$ac_objext; then
12383 ac_cv_type_int16_t=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_cv_type_int16_t=no
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12394 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12395 if test $ac_cv_type_int16_t = yes; then
12399 cat >>confdefs.h <<\_ACEOF
12400 #define int16_t short
12403 $ac_includes_default
12404 #ifdef HAVE_SYS_BITYPES_H
12405 #include <sys/bitypes.h>
12409 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12410 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12411 if test "${ac_cv_type_u_int16_t+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 cat >conftest.$ac_ext <<_ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 $ac_includes_default
12421 #ifdef HAVE_SYS_BITYPES_H
12422 #include <sys/bitypes.h>
12425 typedef u_int16_t ac__type_new_;
12429 if ((ac__type_new_ *) 0)
12431 if (sizeof (ac__type_new_))
12437 rm -f conftest.$ac_objext
12438 if { (ac_try="$ac_compile"
12439 case "(($ac_try" in
12440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12441 *) ac_try_echo
=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_compile") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1
>conftest.err
12448 cat conftest.err
>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && {
12451 test -z "$ac_c_werror_flag" ||
12452 test ! -s conftest.err
12453 } && test -s conftest.
$ac_objext; then
12454 ac_cv_type_u_int16_t
=yes
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.
$ac_ext >&5
12459 ac_cv_type_u_int16_t
=no
12462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12464 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12466 if test $ac_cv_type_u_int16_t = yes; then
12470 cat >>confdefs.h
<<\_ACEOF
12471 #define u_int16_t unsigned short
12476 { echo "$as_me:$LINENO: checking for int32_t" >&5
12477 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12478 if test "${ac_cv_type_int32_t+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 cat >conftest.
$ac_ext <<_ACEOF
12484 cat confdefs.h
>>conftest.
$ac_ext
12485 cat >>conftest.
$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 $ac_includes_default
12488 #ifdef HAVE_SYS_BITYPES_H
12489 #include <sys/bitypes.h>
12492 typedef int32_t ac__type_new_;
12496 if ((ac__type_new_ *) 0)
12498 if (sizeof (ac__type_new_))
12504 rm -f conftest.
$ac_objext
12505 if { (ac_try
="$ac_compile"
12506 case "(($ac_try" in
12507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_compile") 2>conftest.er1
12513 grep -v '^ *+' conftest.er1 >conftest.err
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && {
12518 test -z "$ac_c_werror_flag" ||
12519 test ! -s conftest.err
12520 } && test -s conftest.$ac_objext; then
12521 ac_cv_type_int32_t=yes
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_cv_type_int32_t=no
12529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12532 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12533 if test $ac_cv_type_int32_t = yes; then
12537 cat >>confdefs.h <<\_ACEOF
12538 #define int32_t int
12543 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12544 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12545 if test "${ac_cv_type_u_int32_t+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 $ac_includes_default
12555 #ifdef HAVE_SYS_BITYPES_H
12556 #include <sys/bitypes.h>
12559 typedef u_int32_t ac__type_new_;
12563 if ((ac__type_new_ *) 0)
12565 if (sizeof (ac__type_new_))
12571 rm -f conftest.$ac_objext
12572 if { (ac_try="$ac_compile"
12573 case "(($ac_try" in
12574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12575 *) ac_try_echo
=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_compile") 2>conftest.er1
12580 grep -v '^ *+' conftest.er1
>conftest.err
12582 cat conftest.err
>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest.
$ac_objext; then
12588 ac_cv_type_u_int32_t
=yes
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.
$ac_ext >&5
12593 ac_cv_type_u_int32_t
=no
12596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12598 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12600 if test $ac_cv_type_u_int32_t = yes; then
12604 cat >>confdefs.h
<<\_ACEOF
12605 #define u_int32_t unsigned int
12610 { echo "$as_me:$LINENO: checking for int64_t" >&5
12611 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12612 if test "${ac_cv_type_int64_t+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 cat >conftest.
$ac_ext <<_ACEOF
12618 cat confdefs.h
>>conftest.
$ac_ext
12619 cat >>conftest.
$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 #ifdef HAVE_SYS_BITYPES_H
12623 #include <sys/bitypes.h>
12626 typedef int64_t ac__type_new_;
12630 if ((ac__type_new_ *) 0)
12632 if (sizeof (ac__type_new_))
12638 rm -f conftest.
$ac_objext
12639 if { (ac_try
="$ac_compile"
12640 case "(($ac_try" in
12641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_compile") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } && {
12652 test -z "$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12654 } && test -s conftest.$ac_objext; then
12655 ac_cv_type_int64_t=yes
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_cv_type_int64_t=no
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12666 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12667 if test $ac_cv_type_int64_t = yes; then
12671 cat >>confdefs.h <<\_ACEOF
12672 #define int64_t long long
12677 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12678 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12679 if test "${ac_cv_type_u_int64_t+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #ifdef HAVE_SYS_BITYPES_H
12690 #include <sys/bitypes.h>
12693 typedef u_int64_t ac__type_new_;
12697 if ((ac__type_new_ *) 0)
12699 if (sizeof (ac__type_new_))
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12709 *) ac_try_echo
=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_compile") 2>conftest.er1
12714 grep -v '^ *+' conftest.er1
>conftest.err
12716 cat conftest.err
>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest.
$ac_objext; then
12722 ac_cv_type_u_int64_t
=yes
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.
$ac_ext >&5
12727 ac_cv_type_u_int64_t
=no
12730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12732 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12733 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12734 if test $ac_cv_type_u_int64_t = yes; then
12738 cat >>confdefs.h
<<\_ACEOF
12739 #define u_int64_t unsigned long long
12746 # We can't just check for <inttypes.h> - some systems have one that
12747 # doesn't define all the PRI[doxu]64 macros.
12750 for ac_header
in inttypes.h
12752 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 ac_res
=`eval echo '${'$as_ac_Header'}'`
12760 { echo "$as_me:$LINENO: result: $ac_res" >&5
12761 echo "${ECHO_T}$ac_res" >&6; }
12763 # Is the header compilable?
12764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12766 cat >conftest.
$ac_ext <<_ACEOF
12769 cat confdefs.h
>>conftest.
$ac_ext
12770 cat >>conftest.
$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 $ac_includes_default
12773 #include <$ac_header>
12775 rm -f conftest.
$ac_objext
12776 if { (ac_try
="$ac_compile"
12777 case "(($ac_try" in
12778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_compile") 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && {
12789 test -z "$ac_c_werror_flag" ||
12790 test ! -s conftest.err
12791 } && test -s conftest.$ac_objext; then
12792 ac_header_compiler=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_header_compiler=no
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12802 echo "${ECHO_T}$ac_header_compiler" >&6; }
12804 # Is the header present?
12805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12807 cat >conftest.$ac_ext <<_ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813 #include <$ac_header>
12815 if { (ac_try="$ac_cpp conftest.$ac_ext"
12816 case "(($ac_try" in
12817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12818 *) ac_try_echo
=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823 grep -v '^ *+' conftest.er1
>conftest.err
12825 cat conftest.err
>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev
/null
&& {
12828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12831 ac_header_preproc
=yes
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.
$ac_ext >&5
12836 ac_header_preproc
=no
12839 rm -f conftest.err conftest.
$ac_ext
12840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12841 echo "${ECHO_T}$ac_header_preproc" >&6; }
12843 # So? What about this header?
12844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12850 ac_header_preproc
=yes
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12870 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 eval "$as_ac_Header=\$ac_header_preproc"
12875 ac_res
=`eval echo '${'$as_ac_Header'}'`
12876 { echo "$as_me:$LINENO: result: $ac_res" >&5
12877 echo "${ECHO_T}$ac_res" >&6; }
12880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12881 cat >>confdefs.h
<<_ACEOF
12882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12886 # OK, we have inttypes.h, but does it define those macros?
12888 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12889 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12890 cat >conftest.
$ac_ext <<_ACEOF
12894 cat confdefs.h
>>conftest.
$ac_ext
12895 cat >>conftest.
$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 #include <inttypes.h>
12900 #include <sys/types.h>
12901 #ifdef HAVE_SYS_BITYPES_H
12902 #include <sys/bitypes.h>
12907 printf("%" PRId64 "\n", (u_int64_t)1);
12908 printf("%" PRIo64 "\n", (u_int64_t)1);
12909 printf("%" PRIx64 "\n", (u_int64_t)1);
12910 printf("%" PRIu64 "\n", (u_int64_t)1);
12915 rm -f conftest.
$ac_objext
12916 if { (ac_try
="$ac_compile"
12917 case "(($ac_try" in
12918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_compile") 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest.$ac_objext; then
12933 { echo "$as_me:$LINENO: result: yes" >&5
12934 echo "${ECHO_T}yes" >&6; }
12935 ac_lbl_inttypes_h_defines_formats=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12942 { echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6; }
12944 ac_lbl_inttypes_h_defines_formats=no
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 # We don't have inttypes.h, so it obviously can't define those
12956 ac_lbl_inttypes_h_defines_formats=no
12962 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12964 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12965 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12966 if test "$cross_compiling" = yes; then
12967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12968 See \`config.log
' for more details." >&5
12969 echo "$as_me: error: cannot run test program while cross compiling
12970 See \`config.log' for more details.
" >&2;}
12971 { (exit 1); exit 1; }; }
12973 cat >conftest.$ac_ext <<_ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12981 # ifdef HAVE_INTTYPES_H
12982 #include <inttypes.h>
12984 # ifdef HAVE_SYS_BITYPES_H
12985 #include <sys/bitypes.h>
12988 #include <sys/types.h>
12994 sprintf(strbuf, "%016lx
", t << 32);
12995 if (strcmp(strbuf, "0000000100000000") == 0)
13003 rm -f conftest$ac_exeext
13004 if { (ac_try="$ac_link"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_link") 2>&5
13012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13022 (exit $ac_status); }; }; then
13024 cat >>confdefs.h <<\_ACEOF
13025 #define PRId64 "ld
"
13028 cat >>confdefs.h <<\_ACEOF
13029 #define PRIo64 "lo
"
13032 cat >>confdefs.h <<\_ACEOF
13033 #define PRIx64 "lx
"
13036 cat >>confdefs.h <<\_ACEOF
13037 #define PRIu64 "lu
"
13040 { echo "$as_me:$LINENO: result
: yes" >&5
13041 echo "${ECHO_T}yes" >&6; }
13044 echo "$as_me: program exited with status
$ac_status" >&5
13045 echo "$as_me: failed program was
:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ( exit $ac_status )
13050 { echo "$as_me:$LINENO: result
: no
" >&5
13051 echo "${ECHO_T}no
" >&6; }
13054 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
13055 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
13056 if test "$cross_compiling" = yes; then
13057 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
13058 See \
`config.log' for more details." >&5
13059 echo "$as_me: error: cannot run test program while cross compiling
13060 See \`config.log
' for more details." >&2;}
13061 { (exit 1); exit 1; }; }
13063 cat >conftest.$ac_ext <<_ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13071 # ifdef HAVE_INTTYPES_H
13072 #include <inttypes.h>
13074 # ifdef HAVE_SYS_BITYPES_H
13075 #include <sys/bitypes.h>
13078 #include <sys/types.h>
13084 sprintf(strbuf, "%016llx", t << 32);
13085 if (strcmp(strbuf, "0000000100000000") == 0)
13093 rm -f conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_link") 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
13104 { (case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_try") 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13114 cat >>confdefs.h <<\_ACEOF
13115 #define PRId64 "lld"
13118 cat >>confdefs.h <<\_ACEOF
13119 #define PRIo64 "llo"
13122 cat >>confdefs.h <<\_ACEOF
13123 #define PRIx64 "llx"
13126 cat >>confdefs.h <<\_ACEOF
13127 #define PRIu64 "llu"
13130 { echo "$as_me:$LINENO: result: yes" >&5
13131 echo "${ECHO_T}yes" >&6; }
13134 echo "$as_me: program exited with status $ac_status" >&5
13135 echo "$as_me: failed program was:" >&5
13136 sed 's
/^
/|
/' conftest.$ac_ext >&5
13138 ( exit $ac_status )
13140 { echo "$as_me:$LINENO: result: no" >&5
13141 echo "${ECHO_T}no" >&6; }
13144 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13145 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13146 if test "$cross_compiling" = yes; then
13147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13148 See \`config.log' for more details.
" >&5
13149 echo "$as_me: error
: cannot run
test program
while cross compiling
13150 See \
`config.log' for more details." >&2;}
13151 { (exit 1); exit 1; }; }
13153 cat >conftest.$ac_ext <<_ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13161 # ifdef HAVE_INTTYPES_H
13162 #include <inttypes.h>
13164 # ifdef HAVE_SYS_BITYPES_H
13165 #include <sys/bitypes.h>
13168 #include <sys/types.h>
13174 sprintf(strbuf, "%016Lx", t << 32);
13175 if (strcmp(strbuf, "0000000100000000") == 0)
13183 rm -f conftest$ac_exeext
13184 if { (ac_try="$ac_link"
13185 case "(($ac_try" in
13186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13187 *) ac_try_echo
=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_link") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13194 { (case "(($ac_try" in
13195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13204 cat >>confdefs.h <<\_ACEOF
13205 #define PRId64 "Ld"
13208 cat >>confdefs.h <<\_ACEOF
13209 #define PRIo64 "Lo"
13212 cat >>confdefs.h <<\_ACEOF
13213 #define PRIx64 "Lx"
13216 cat >>confdefs.h <<\_ACEOF
13217 #define PRIu64 "Lu"
13220 { echo "$as_me:$LINENO: result: yes" >&5
13221 echo "${ECHO_T}yes" >&6; }
13224 echo "$as_me: program exited with status $ac_status" >&5
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 ( exit $ac_status )
13230 { echo "$as_me:$LINENO: result: no" >&5
13231 echo "${ECHO_T}no" >&6; }
13234 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13235 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13236 if test "$cross_compiling" = yes; then
13237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13238 See \`config.log
' for more details." >&5
13239 echo "$as_me: error: cannot run test program while cross compiling
13240 See \`config.log' for more details.
" >&2;}
13241 { (exit 1); exit 1; }; }
13243 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 # ifdef HAVE_INTTYPES_H
13252 #include <inttypes.h>
13254 # ifdef HAVE_SYS_BITYPES_H
13255 #include <sys/bitypes.h>
13258 #include <sys/types.h>
13264 sprintf(strbuf, "%016qx
", t << 32);
13265 if (strcmp(strbuf, "0000000100000000") == 0)
13273 rm -f conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>&5
13282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13284 { (case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_try") 2>&5
13291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13292 (exit $ac_status); }; }; then
13294 cat >>confdefs.h <<\_ACEOF
13295 #define PRId64 "qd
"
13298 cat >>confdefs.h <<\_ACEOF
13299 #define PRIo64 "qo
"
13302 cat >>confdefs.h <<\_ACEOF
13303 #define PRIx64 "qx
"
13306 cat >>confdefs.h <<\_ACEOF
13307 #define PRIu64 "qu
"
13310 { echo "$as_me:$LINENO: result
: yes" >&5
13311 echo "${ECHO_T}yes" >&6; }
13314 echo "$as_me: program exited with status
$ac_status" >&5
13315 echo "$as_me: failed program was
:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ( exit $ac_status )
13320 { echo "$as_me:$LINENO: result
: no
" >&5
13321 echo "${ECHO_T}no
" >&6; }
13323 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
13324 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
13325 { (exit 1); exit 1; }; }
13329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13360 if test -n "$ac_tool_prefix"; then
13361 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13363 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13364 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13365 if test "${ac_cv_prog_RANLIB+set}" = set; then
13366 echo $ECHO_N "(cached
) $ECHO_C" >&6
13368 if test -n "$RANLIB"; then
13369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13379 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13388 RANLIB=$ac_cv_prog_RANLIB
13389 if test -n "$RANLIB"; then
13390 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
13391 echo "${ECHO_T}$RANLIB" >&6; }
13393 { echo "$as_me:$LINENO: result
: no
" >&5
13394 echo "${ECHO_T}no
" >&6; }
13399 if test -z "$ac_cv_prog_RANLIB"; then
13400 ac_ct_RANLIB=$RANLIB
13401 # Extract the first word of "ranlib
", so it can be a program name with args.
13402 set dummy ranlib; ac_word=$2
13403 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13404 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13406 echo $ECHO_N "(cached
) $ECHO_C" >&6
13408 if test -n "$ac_ct_RANLIB"; then
13409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13415 test -z "$as_dir" && as_dir=.
13416 for ac_exec_ext in '' $ac_executable_extensions; do
13417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13418 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13419 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13429 if test -n "$ac_ct_RANLIB"; then
13430 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
13431 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13433 { echo "$as_me:$LINENO: result
: no
" >&5
13434 echo "${ECHO_T}no
" >&6; }
13437 if test "x
$ac_ct_RANLIB" = x; then
13440 case $cross_compiling:$ac_tool_warned in
13442 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13443 whose name does not start with the
host triplet. If you think this
13444 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13445 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13446 whose name does not start with the
host triplet. If you think this
13447 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13448 ac_tool_warned=yes ;;
13450 RANLIB=$ac_ct_RANLIB
13453 RANLIB="$ac_cv_prog_RANLIB"
13458 if test "${LBL_CFLAGS+set}" = set; then
13459 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13461 if test -f .devel ; then
13462 if test "$GCC" = yes ; then
13463 if test "${LBL_CFLAGS+set}" != set; then
13464 if test "$ac_cv_prog_cc_g" = yes ; then
13465 V_CCOPT="-g $V_CCOPT"
13467 V_CCOPT="$V_CCOPT -Wall"
13468 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13469 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13476 V_CCOPT="$V_CCOPT -n32"
13483 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13484 name="lbl
/os-
$os.h
"
13485 if test -f $name ; then
13486 ln -s $name os-proto.h
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_OS_PROTO_H 1
13493 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
13494 echo "$as_me: WARNING: can't
find $name" >&2;}
13498 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
13499 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
13500 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13501 echo $ECHO_N "(cached
) $ECHO_C" >&6
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13510 # include <sys/types.h>
13511 # include <sys/socket.h>
13515 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_compile") 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13533 (exit $ac_status); } && {
13534 test -z "$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13536 } && test -s conftest.$ac_objext; then
13537 ac_cv_lbl_sockaddr_has_sa_len=yes
13539 echo "$as_me: failed program was
:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_cv_lbl_sockaddr_has_sa_len=no
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13549 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13550 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13552 cat >>confdefs.h <<\_ACEOF
13553 #define HAVE_SOCKADDR_SA_LEN 1
13558 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
13559 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
13560 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13561 echo $ECHO_N "(cached
) $ECHO_C" >&6
13563 case "$host_cpu" in
13566 # These are CPU types where:
13568 # the CPU faults on an unaligned access, but at least some
13569 # OSes that support that CPU catch the fault and simulate
13570 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13571 # the simulation is slow, so we don't want to use it;
13573 # the CPU, I infer (from the old
13575 # XXX: should also check that they don't do weird things (like on arm)
13577 # comment) doesn't fault on unaligned accesses, but doesn't
13578 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13580 # for whatever reason, the test program doesn't work
13581 # (this has been claimed to be the case for several of those
13582 # CPUs - I don't know what the problem is; the problem
13583 # was reported as "the
test program dumps core
" for SuperH,
13584 # but that's what the test program is *supposed* to do -
13585 # it dumps core before it writes anything, so the test
13586 # for an empty output file should find an empty output
13587 # file and conclude that unaligned accesses don't work).
13589 # This run-time test won't work if you're cross-compiling, so
13590 # in order to support cross-compiling for a particular CPU,
13591 # we have to wire in the list of CPU types anyway, as far as
13592 # I know, so perhaps we should just have a set of CPUs on
13593 # which we know it doesn't work, a set of CPUs on which we
13594 # know it does work, and have the script just fail on other
13595 # cpu types and update it when such a failure occurs.
13597 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13598 ac_cv_lbl_unaligned_fail=yes
13602 cat >conftest.c <<EOF
13603 # include <sys/types.h>
13604 # include <sys/wait.h>
13605 # include <stdio.h>
13606 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13611 /* avoid "core dumped
" message */
13617 pid = waitpid(pid, &status, 0);
13620 exit(!WIFEXITED(status));
13623 i = *(unsigned int *)&a[1];
13628 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13629 conftest.c $LIBS >/dev/null 2>&1
13630 if test ! -x conftest ; then
13631 ac_cv_lbl_unaligned_fail=yes
13633 ./conftest >conftest.out
13634 if test ! -s conftest.out ; then
13635 ac_cv_lbl_unaligned_fail=yes
13637 ac_cv_lbl_unaligned_fail=no
13640 rm -f conftest* core core.conftest
13645 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
13646 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13647 if test $ac_cv_lbl_unaligned_fail = yes ; then
13649 cat >>confdefs.h <<\_ACEOF
13650 #define LBL_ALIGN 1
13656 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
13657 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
13658 if test "${ac_cv_var_h_errno+set}" = set; then
13659 echo $ECHO_N "(cached
) $ECHO_C" >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 # include <sys/types.h>
13669 # include <netdb.h>
13678 rm -f conftest.$ac_objext
13679 if { (ac_try="$ac_compile"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest.$ac_objext; then
13695 ac_cv_var_h_errno=yes
13697 echo "$as_me: failed program was
:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 ac_cv_var_h_errno=no
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
13707 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13708 if test "$ac_cv_var_h_errno" = "yes"; then
13709 cat >>confdefs.h <<\_ACEOF
13710 #define HAVE_H_ERRNO 1
13717 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto
" >&5
13718 echo $ECHO_N "checking whether to use SSLeay libcrypto...
$ECHO_C" >&6; }
13719 # Specify location for both includes and libraries.
13720 want_libcrypto=youmama
13722 # Check whether --with-crypto was given.
13723 if test "${with_crypto+set}" = set; then
13724 withval=$with_crypto;
13725 if test $withval = no
13728 { echo "$as_me:$LINENO: result
: no
" >&5
13729 echo "${ECHO_T}no
" >&6; }
13730 elif test $withval = yes
13733 { echo "$as_me:$LINENO: result
: yes" >&5
13734 echo "${ECHO_T}yes" >&6; }
13737 { echo "$as_me:$LINENO: result
: yes" >&5
13738 echo "${ECHO_T}yes" >&6; }
13739 crypto_dir=$withval
13745 # Use libcrypto if it's present, otherwise don't.
13747 want_libcrypto=ifavailable
13748 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
13749 echo "${ECHO_T}yes, if available
" >&6; }
13753 if test "$want_libcrypto" != "no
"; then
13754 ac_cv_ssleay_path=no
13756 if test "x
$crypto_dir" = x; then
13758 # Location not specified; check the default locations.
13760 { echo "$as_me:$LINENO: checking where SSLeay is located
" >&5
13761 echo $ECHO_N "checking where SSLeay is located...
$ECHO_C" >&6; }
13762 dirs="/usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
"
13763 if test "x
${host_alias}" != x; then
13764 dirs="/usr
/${host_alias} $dirs"
13766 for dir in $dirs; do
13769 # Find the last component of $libdir; it's not necessarily
13770 # "lib
" - it might be "lib64
" on, for example, x86-64
13773 # We assume the directory in which we're looking for
13774 # libcrypto has a subdirectory with that as its name.
13776 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13779 # XXX - is there a better way to check if a given library is
13780 # in a given directory than checking each of the possible
13781 # shared library suffixes?
13783 # Are there any other suffixes we need to look for? Do we
13784 # have to worry about ".so.
{version
}"?
13786 # Or should we just look for "libcrypto.
*"?
13788 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a
" -o \
13789 -f "$dir/$tmplib/libcrypto.so
" -o \
13790 -f "$dir/$tmplib/libcrypto.sl
" -o \
13791 -f "$dir/$tmplib/libcrypto.dylib
" \); then
13792 ac_cv_ssleay_path="$dir"
13796 # Make sure we have the headers as well.
13798 if test -d "$dir/include
/openssl
" -a -f "$dir/include
/openssl
/des.h
"; then
13799 incdir="-I$dir/include
"
13803 if test "$ac_cv_ssleay_path" != "no
" -a "$incdir" != "no
"; then
13806 ac_cv_ssleay_path=no
13810 if test "$ac_cv_ssleay_path" != no; then
13811 { echo "$as_me:$LINENO: result
: $ac_cv_ssleay_path" >&5
13812 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13815 { echo "$as_me:$LINENO: checking
for SSLeay
in $crypto_dir" >&5
13816 echo $ECHO_N "checking
for SSLeay
in $crypto_dir...
$ECHO_C" >&6; }
13819 # Find the last component of $libdir; it's not necessarily
13820 # "lib
" - it might be "lib64
" on, for example, x86-64
13823 # We assume the directory in which we're looking for
13824 # libcrypto has a subdirectory with that as its name.
13826 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13829 # XXX - is there a better way to check if a given library is
13830 # in a given directory than checking each of the possible
13831 # shared library suffixes?
13833 # Are there any other suffixes we need to look for? Do we
13834 # have to worry about ".so.
{version
}"?
13836 # Or should we just look for "libcrypto.
*"?
13838 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a
" -o \
13839 -f "$crypto_dir/$tmplib/libcrypto.so
" -o \
13840 -f "$crypto_dir/$tmplib/libcrypto.sl
" -o \
13841 -f "$crypto_dir/$tmplib/libcrypto.dylib
" \); then
13842 ac_cv_ssleay_path="$crypto_dir"
13846 # Make sure we have the headers as well.
13848 if test -d "$crypto_dir/include
/openssl
" -a -f "$crypto_dir/include
/openssl
/des.h
"; then
13849 incdir="-I$crypto_dir/include
"
13852 if test "$ac_cv_ssleay_path" != no; then
13853 { echo "$as_me:$LINENO: result
: found
" >&5
13854 echo "${ECHO_T}found
" >&6; }
13857 if test "$ac_cv_ssleay_path" != no; then
13858 V_INCLS="$V_INCLS $incdir"
13859 if test "$dir" != "/usr
"; then
13860 LDFLAGS="-L$dir/lib
$LDFLAGS"
13862 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13863 LIBS="$LIBS -lRSAglue"
13865 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13866 LIBS="$LIBS -lrsaref"
13869 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
13870 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
13871 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13872 echo $ECHO_N "(cached
) $ECHO_C" >&6
13874 ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-lcrypto $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13889 char DES_cbc_encrypt ();
13893 return DES_cbc_encrypt ();
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (ac_try="$ac_link"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13907 grep -v '^ *+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13918 echo "$as_me: failed program was
:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ac_cv_lib_crypto_DES_cbc_encrypt=no
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13929 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13930 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_LIBCRYPTO 1
13935 LIBS="-lcrypto $LIBS"
13940 CPPFLAGS="$CPPFLAGS $V_INCLS"
13942 for ac_header in openssl/evp.h
13944 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13945 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13946 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13947 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13948 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13949 echo $ECHO_N "(cached
) $ECHO_C" >&6
13951 ac_res=`eval echo '${'$as_ac_Header'}'`
13952 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13953 echo "${ECHO_T}$ac_res" >&6; }
13955 # Is the header compilable?
13956 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13957 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13958 cat >conftest.$ac_ext <<_ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 $ac_includes_default
13965 #include <$ac_header>
13967 rm -f conftest.$ac_objext
13968 if { (ac_try="$ac_compile"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_compile") 2>conftest.er1
13976 grep -v '^ *+' conftest.er1 >conftest.err
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13980 (exit $ac_status); } && {
13981 test -z "$ac_c_werror_flag" ||
13982 test ! -s conftest.err
13983 } && test -s conftest.$ac_objext; then
13984 ac_header_compiler=yes
13986 echo "$as_me: failed program was
:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_header_compiler=no
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13994 echo "${ECHO_T}$ac_header_compiler" >&6; }
13996 # Is the header present?
13997 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13998 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 #include <$ac_header>
14007 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14008 case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14015 grep -v '^ *+' conftest.er1 >conftest.err
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14019 (exit $ac_status); } >/dev/null && {
14020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14021 test ! -s conftest.err
14023 ac_header_preproc=yes
14025 echo "$as_me: failed program was
:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 ac_header_preproc=no
14031 rm -f conftest.err conftest.$ac_ext
14032 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14033 echo "${ECHO_T}$ac_header_preproc" >&6; }
14035 # So? What about this header?
14036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14038 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14039 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14040 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14042 ac_header_preproc=yes
14045 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14046 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14047 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14048 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14049 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14050 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14051 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14052 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14053 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14055 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14056 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14060 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14061 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14062 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14063 echo $ECHO_N "(cached
) $ECHO_C" >&6
14065 eval "$as_ac_Header=\
$ac_header_preproc"
14067 ac_res=`eval echo '${'$as_ac_Header'}'`
14068 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14069 echo "${ECHO_T}$ac_res" >&6; }
14072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14083 # Not found. Did the user explicitly ask for it?
14085 { echo "$as_me:$LINENO: result
: not found
" >&5
14086 echo "${ECHO_T}not found
" >&6; }
14087 if test "$want_libcrypto" = yes; then
14088 { { echo "$as_me:$LINENO: error
: SSLeay not found
" >&5
14089 echo "$as_me: error
: SSLeay not found
" >&2;}
14090 { (exit 1); exit 1; }; }
14095 if test "$missing_includes" = "yes"; then
14096 CPPFLAGS="$CPPFLAGS -I\$
(srcdir
)/missing
"
14097 V_INCLS="$V_INCLS -I\$
(srcdir
)/missing
"
14109 # Find a good install program. We prefer a C program (faster),
14110 # so one script is as good as another. But avoid the broken or
14111 # incompatible versions:
14112 # SysV /etc/install, /usr/sbin/install
14113 # SunOS /usr/etc/install
14114 # IRIX /sbin/install
14116 # AmigaOS /C/install, which installs bootblocks on floppy discs
14117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
14120 # OS/2's system install, which has a completely different semantic
14121 # ./install, which can be erroneously created by make from ./install.sh.
14122 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
14123 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
14124 if test -z "$INSTALL"; then
14125 if test "${ac_cv_path_install+set}" = set; then
14126 echo $ECHO_N "(cached
) $ECHO_C" >&6
14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14132 test -z "$as_dir" && as_dir=.
14133 # Account for people who put trailing slashes in PATH elements.
14135 ./ | .// | /cC/* | \
14136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14137 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14140 # OSF1 and SCO ODT 3.0 have their own names for install.
14141 # Don't use installbsd from OSF since it installs stuff as root
14143 for ac_prog in ginstall scoinst install; do
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14146 if test $ac_prog = install &&
14147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14148 # AIX install. It has an incompatible calling convention.
14150 elif test $ac_prog = install &&
14151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14152 # program-specific install script used by HP pwplus--don't use.
14155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14168 if test "${ac_cv_path_install+set}" = set; then
14169 INSTALL=$ac_cv_path_install
14171 # As a last resort, use the slow shell script. Don't cache a
14172 # value for INSTALL within a source directory, because that will
14173 # break other packages using the cache if that directory is
14174 # removed, or if the value is a relative name.
14175 INSTALL=$ac_install_sh
14178 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
14179 echo "${ECHO_T}$INSTALL" >&6; }
14181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14182 # It thinks the first close brace ends the variable substitution.
14183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14187 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14190 ac_config_headers="$ac_config_headers config.h
"
14193 ac_config_commands="$ac_config_commands default-1
"
14195 ac_config_files="$ac_config_files Makefile tcpdump
.1"
14197 cat >confcache <<\_ACEOF
14198 # This file is a shell script that caches the results of configure
14199 # tests run on this system so they can be shared between configure
14200 # scripts and configure runs, see configure's option --config-cache.
14201 # It is not useful on other systems. If it contains results you don't
14202 # want to keep, you may remove or edit it.
14204 # config.status only pays attention to the cache file if you give it
14205 # the --recheck option to rerun configure.
14207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14209 # following values.
14213 # The following way of writing the cache mishandles newlines in values,
14214 # but we know of no workaround that is simple, portable, and efficient.
14215 # So, we kill variables containing newlines.
14216 # Ultrix sh set writes to stderr and can't be redirected directly,
14217 # and sets the high bit in the cache file unless we assign to the vars.
14219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14220 eval ac_val=\$$ac_var
14224 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
14225 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
14228 _ | IFS | as_nl) ;; #(
14229 *) $as_unset $ac_var ;;
14235 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14236 *${as_nl}ac_space=\ *)
14237 # `set' does not quote correctly, so add quotes (double-quote
14238 # substitution turns \\\\ into \\, and sed turns \\ into \).
14241 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
14244 # `set' quotes correctly as required by POSIX, so do not add quotes.
14245 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
14254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14256 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14258 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14259 if test -w "$cache_file"; then
14260 test "x
$cache_file" != "x
/dev
/null
" &&
14261 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
14262 echo "$as_me: updating cache
$cache_file" >&6;}
14263 cat confcache >$cache_file
14265 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
14266 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
14271 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
14272 # Let make expand exec_prefix.
14273 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
14275 DEFS=-DHAVE_CONFIG_H
14279 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
14280 # 1. Remove the extension, and $U if already installed.
14281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14282 ac_i=`echo "$ac_i" | sed "$ac_script"`
14283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14284 # will be set to the directory where LIBOBJS objects are built.
14285 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
14286 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
14288 LIBOBJS=$ac_libobjs
14290 LTLIBOBJS=$ac_ltlibobjs
14294 : ${CONFIG_STATUS=./config.status}
14295 ac_clean_files_save=$ac_clean_files
14296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14297 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
14298 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
14299 cat >$CONFIG_STATUS <<_ACEOF
14301 # Generated by $as_me.
14302 # Run this file to recreate the current configuration.
14303 # Compiler output produced by configure, useful for debugging
14304 # configure, is in config.log if it exists.
14307 ac_cs_recheck=false
14309 SHELL=\${CONFIG_SHELL-$SHELL}
14312 cat >>$CONFIG_STATUS <<\_ACEOF
14313 ## --------------------- ##
14314 ## M4sh Initialization. ##
14315 ## --------------------- ##
14317 # Be more Bourne compatible
14318 DUALCASE=1; export DUALCASE # for MKS sh
14319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14322 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14323 # is contrary to our usage. Disable this feature.
14324 alias -g '${1+"$@"}'='"$@
"'
14325 setopt NO_GLOB_SUBST
14327 case `(set -o) 2>/dev/null` in
14328 *posix*) set -o posix ;;
14337 # Avoid depending upon Character Ranges.
14338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14341 as_cr_digits='0123456789'
14342 as_cr_alnum=$as_cr_Letters$as_cr_digits
14344 # The user is always right.
14345 if test "${PATH_SEPARATOR+set}" != set; then
14346 echo "#! /bin/sh" >conf$$.sh
14347 echo "exit 0" >>conf$$.sh
14349 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14357 # Support unset when possible.
14358 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
14366 # We need space, tab and new line, in precisely that order. Quoting is
14367 # there to prevent editors from complaining about space-tab.
14368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14369 # splitting by setting IFS to empty value.)
14374 # Find who we are. Look in the path if we contain no directory separator.
14376 *[\\/]* ) as_myself
=$0 ;;
14377 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14378 for as_dir
in $PATH
14381 test -z "$as_dir" && as_dir
=.
14382 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14388 # We did not find ourselves, most probably we were run as `sh COMMAND'
14389 # in which case we are not to be found in the path.
14390 if test "x$as_myself" = x
; then
14393 if test ! -f "$as_myself"; then
14394 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14395 { (exit 1); exit 1; }
14398 # Work around bugs in pre-3.0 UWIN ksh.
14399 for as_var
in ENV MAIL MAILPATH
14400 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14408 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14409 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14410 LC_TELEPHONE LC_TIME
14412 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14413 eval $as_var=C
; export $as_var
14415 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14419 # Required to use basename.
14420 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14421 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14427 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14428 as_basename
=basename
14434 # Name of the executable.
14435 as_me
=`$as_basename -- "$0" ||
14436 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14437 X"$0" : 'X\(//\)$' \| \
14438 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14440 sed '/^.*\/\([^/][^/]*\)\/*$/{
14459 as_lineno_1
=$LINENO
14460 as_lineno_2
=$LINENO
14461 test "x$as_lineno_1" != "x$as_lineno_2" &&
14462 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
14464 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14465 # uniformly replaced by the line number. The first 'sed' inserts a
14466 # line-number line after each line using $LINENO; the second 'sed'
14467 # does the real work. The second script uses 'N' to pair each
14468 # line-number line with the line containing $LINENO, and appends
14469 # trailing '-' during substitution so that $LINENO is not a special
14470 # case at line end.
14471 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14472 # scripts with optimization help from Paolo Bonzini. Blame Lee
14473 # E. McMahon (1931-1989) for sed's syntax. :-)
14485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14488 ' >$as_me.lineno
&&
14489 chmod +x
"$as_me.lineno" ||
14490 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14491 { (exit 1); exit 1; }; }
14493 # Don't try to exec as it changes $[0], causing all sort of problems
14494 # (the dirname of $[0] is not the place where we might find the
14495 # original and so on. Autoconf is especially sensitive to this).
14496 .
"./$as_me.lineno"
14497 # Exit status is that of the last command.
14502 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14508 ECHO_C
= ECHO_N
= ECHO_T
=
14509 case `echo -n x` in
14511 case `echo 'x\c'` in
14512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14519 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14520 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14526 rm -f conf$$ conf$$.exe conf$$.
file
14527 if test -d conf$$.dir
; then
14528 rm -f conf$$.dir
/conf$$.
file
14534 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14536 # ... but there are two gotchas:
14537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14539 # In both cases, we have to default to `cp -p'.
14540 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14542 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14547 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14548 rmdir conf$$.dir
2>/dev
/null
14550 if mkdir
-p .
2>/dev
/null
; then
14553 test -d .
/-p && rmdir .
/-p
14557 if test -x / >/dev
/null
2>&1; then
14558 as_test_x
='test -x'
14560 if ls -dL / >/dev
/null
2>&1; then
14567 if test -d "$1"; then
14573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14574 ???[sx]*):;;*)false;;esac;fi
14578 as_executable_p
=$as_test_x
14580 # Sed expression to map a string onto a valid CPP name.
14581 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14583 # Sed expression to map a string onto a valid variable name.
14584 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14589 # Save the log message, to keep $[0] and so on meaningful, and to
14590 # report actual input values of CONFIG_FILES etc. instead of their
14591 # values after options handling.
14593 This file was extended by $as_me, which was
14594 generated by GNU Autoconf 2.61. Invocation command line was
14596 CONFIG_FILES = $CONFIG_FILES
14597 CONFIG_HEADERS = $CONFIG_HEADERS
14598 CONFIG_LINKS = $CONFIG_LINKS
14599 CONFIG_COMMANDS = $CONFIG_COMMANDS
14602 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14607 cat >>$CONFIG_STATUS <<_ACEOF
14608 # Files that config.status was made for.
14609 config_files="$ac_config_files"
14610 config_headers="$ac_config_headers"
14611 config_commands="$ac_config_commands"
14615 cat >>$CONFIG_STATUS <<\_ACEOF
14617 \`$as_me' instantiates files from templates according to the
14618 current configuration.
14620 Usage: $0 [OPTIONS] [FILE]...
14622 -h, --help print this help, then exit
14623 -V, --version print version number and configuration settings, then exit
14624 -q, --quiet do not print progress messages
14625 -d, --debug don't remove temporary files
14626 --recheck update $as_me by reconfiguring in the same conditions
14627 --file=FILE[:TEMPLATE]
14628 instantiate the configuration file FILE
14629 --header=FILE[:TEMPLATE]
14630 instantiate the configuration header FILE
14632 Configuration files:
14635 Configuration headers:
14638 Configuration commands:
14641 Report bugs to <bug-autoconf@gnu.org>."
14644 cat >>$CONFIG_STATUS <<_ACEOF
14647 configured by $0, generated by GNU Autoconf 2.61,
14648 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14650 Copyright (C) 2006 Free Software Foundation, Inc.
14651 This config.status script is free software; the Free Software Foundation
14652 gives unlimited permission to copy, distribute and modify it."
14659 cat >>$CONFIG_STATUS <<\_ACEOF
14660 # If no file are specified by the user, then we need to provide default
14661 # value. By we need to know if files were specified by the user.
14667 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14668 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14679 # Handling of the options.
14680 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14682 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14683 echo "$ac_cs_version"; exit ;;
14684 --debug |
--debu |
--deb |
--de |
--d |
-d )
14686 --file |
--fil |
--fi |
--f )
14688 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14689 ac_need_defaults
=false
;;
14690 --header |
--heade |
--head |
--hea )
14692 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14693 ac_need_defaults
=false
;;
14695 # Conflict between --help and --header
14696 { echo "$as_me: error: ambiguous option: $1
14697 Try \`$0 --help' for more information." >&2
14698 { (exit 1); exit 1; }; };;
14699 --help |
--hel |
-h )
14700 echo "$ac_cs_usage"; exit ;;
14701 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14702 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14705 # This is an error.
14706 -*) { echo "$as_me: error: unrecognized option: $1
14707 Try \`$0 --help' for more information." >&2
14708 { (exit 1); exit 1; }; } ;;
14710 *) ac_config_targets
="$ac_config_targets $1"
14711 ac_need_defaults
=false
;;
14717 ac_configure_extra_args
=
14719 if $ac_cs_silent; then
14721 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14725 cat >>$CONFIG_STATUS <<_ACEOF
14726 if \$ac_cs_recheck; then
14727 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14728 CONFIG_SHELL=$SHELL
14729 export CONFIG_SHELL
14730 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14734 cat >>$CONFIG_STATUS <<\_ACEOF
14738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14739 ## Running $as_me. ##
14745 cat >>$CONFIG_STATUS <<_ACEOF
14753 cat >>$CONFIG_STATUS <<\_ACEOF
14755 # Handling of arguments.
14756 for ac_config_target
in $ac_config_targets
14758 case $ac_config_target in
14759 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14760 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14761 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14762 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
14764 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14765 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14766 { (exit 1); exit 1; }; };;
14771 # If the user did not use the arguments to specify the items to instantiate,
14772 # then the envvar interface is used. Set only those that are not.
14773 # We use the long form for the default assignment because of an extremely
14774 # bizarre bug on SunOS 4.1.3.
14775 if $ac_need_defaults; then
14776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14781 # Have a temporary directory for convenience. Make it in the build tree
14782 # simply because there is no reason against having it here, and in addition,
14783 # creating and moving files from /tmp can sometimes cause problems.
14784 # Hook for its removal unless debugging.
14785 # Note that there is a small window in which the directory will not be cleaned:
14786 # after its creation but before its name has been assigned to `$tmp'.
14790 trap 'exit_status=$?
14791 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14793 trap '{ (exit 1); exit 1; }' 1 2 13 15
14795 # Create a (secure) tmp directory for tmp files.
14798 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14799 test -n "$tmp" && test -d "$tmp"
14802 tmp
=.
/conf$$
-$RANDOM
14803 (umask 077 && mkdir
"$tmp")
14806 echo "$me: cannot create a temporary directory in ." >&2
14807 { (exit 1); exit 1; }
14811 # Set up the sed scripts for CONFIG_FILES section.
14814 # No need to generate the scripts if there are no CONFIG_FILES.
14815 # This happens for instance when ./config.status config.h
14816 if test -n "$CONFIG_FILES"; then
14823 for ac_last_try
in false false false false false
:; do
14824 cat >conf$
$subs.
sed <<_ACEOF
14825 SHELL!$SHELL$ac_delim
14826 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14827 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14828 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14829 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14830 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14831 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14832 exec_prefix!$exec_prefix$ac_delim
14833 prefix!$prefix$ac_delim
14834 program_transform_name!$program_transform_name$ac_delim
14835 bindir!$bindir$ac_delim
14836 sbindir!$sbindir$ac_delim
14837 libexecdir!$libexecdir$ac_delim
14838 datarootdir!$datarootdir$ac_delim
14839 datadir!$datadir$ac_delim
14840 sysconfdir!$sysconfdir$ac_delim
14841 sharedstatedir!$sharedstatedir$ac_delim
14842 localstatedir!$localstatedir$ac_delim
14843 includedir!$includedir$ac_delim
14844 oldincludedir!$oldincludedir$ac_delim
14845 docdir!$docdir$ac_delim
14846 infodir!$infodir$ac_delim
14847 htmldir!$htmldir$ac_delim
14848 dvidir!$dvidir$ac_delim
14849 pdfdir!$pdfdir$ac_delim
14850 psdir!$psdir$ac_delim
14851 libdir!$libdir$ac_delim
14852 localedir!$localedir$ac_delim
14853 mandir!$mandir$ac_delim
14854 DEFS!$DEFS$ac_delim
14855 ECHO_C!$ECHO_C$ac_delim
14856 ECHO_N!$ECHO_N$ac_delim
14857 ECHO_T!$ECHO_T$ac_delim
14858 LIBS!$LIBS$ac_delim
14859 build_alias!$build_alias$ac_delim
14860 host_alias!$host_alias$ac_delim
14861 target_alias!$target_alias$ac_delim
14862 build!$build$ac_delim
14863 build_cpu!$build_cpu$ac_delim
14864 build_vendor!$build_vendor$ac_delim
14865 build_os!$build_os$ac_delim
14866 host!$host$ac_delim
14867 host_cpu!$host_cpu$ac_delim
14868 host_vendor!$host_vendor$ac_delim
14869 host_os!$host_os$ac_delim
14870 SHLICC2!$SHLICC2$ac_delim
14872 CFLAGS!$CFLAGS$ac_delim
14873 LDFLAGS!$LDFLAGS$ac_delim
14874 CPPFLAGS!$CPPFLAGS$ac_delim
14875 ac_ct_CC!$ac_ct_CC$ac_delim
14876 EXEEXT!$EXEEXT$ac_delim
14877 OBJEXT!$OBJEXT$ac_delim
14879 GREP!$GREP$ac_delim
14880 EGREP!$EGREP$ac_delim
14881 LIBOBJS!$LIBOBJS$ac_delim
14882 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14883 RANLIB!$RANLIB$ac_delim
14884 V_CCOPT!$V_CCOPT$ac_delim
14885 V_DEFS!$V_DEFS$ac_delim
14886 V_GROUP!$V_GROUP$ac_delim
14887 V_INCLS!$V_INCLS$ac_delim
14888 V_PCAPDEP!$V_PCAPDEP$ac_delim
14889 LOCALSRC!$LOCALSRC$ac_delim
14890 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14891 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14892 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14893 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14894 INSTALL_DATA!$INSTALL_DATA$ac_delim
14895 LTLIBOBJS!$LTLIBOBJS$ac_delim
14898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
14900 elif $ac_last_try; then
14901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14903 { (exit 1); exit 1; }; }
14905 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14909 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14910 if test -n "$ac_eof"; then
14911 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14912 ac_eof
=`expr $ac_eof + 1`
14915 cat >>$CONFIG_STATUS <<_ACEOF
14916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14921 s/^/s,@/; s/!/@,|#_!!_#|/
14924 s/'"$ac_delim"'$/,g/; t
14926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14927 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14928 rm -f conf$
$subs.
sed
14929 cat >>$CONFIG_STATUS <<_ACEOF
14936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14938 # trailing colons and then remove the whole line if VPATH becomes empty
14939 # (actually we leave an empty line to preserve line numbers).
14940 if test "x$srcdir" = x.
; then
14941 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14942 s/:*\$(srcdir):*/:/
14943 s/:*\${srcdir}:*/:/
14945 s/^\([^=]*=[ ]*\):*/\1/
14951 cat >>$CONFIG_STATUS <<\_ACEOF
14952 fi # test -n "$CONFIG_FILES"
14955 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
14958 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14960 case $ac_mode$ac_tag in
14962 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14963 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14964 { (exit 1); exit 1; }; };;
14965 :[FH
]-) ac_tag
=-:-;;
14966 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14983 -) ac_f
="$tmp/stdin";;
14984 *) # Look for the file first in the build tree, then in the source tree
14985 # (if the path is not absolute). The absolute path cannot be DOS-style,
14986 # because $ac_f cannot contain `:'.
14990 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14992 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14993 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14994 { (exit 1); exit 1; }; };;
14996 ac_file_inputs
="$ac_file_inputs $ac_f"
14999 # Let's still pretend it is `configure' which instantiates (i.e., don't
15000 # use $as_me), people would be surprised to read:
15001 # /* config.h. Generated by config.status. */
15002 configure_input
="Generated from "`IFS=:
15003 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15004 if test x
"$ac_file" != x-
; then
15005 configure_input
="$ac_file. $configure_input"
15006 { echo "$as_me:$LINENO: creating $ac_file" >&5
15007 echo "$as_me: creating $ac_file" >&6;}
15011 *:-:* |
*:-) cat >"$tmp/stdin";;
15016 ac_dir
=`$as_dirname -- "$ac_file" ||
15017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15018 X"$ac_file" : 'X\(//\)[^/]' \| \
15019 X"$ac_file" : 'X\(//\)$' \| \
15020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15026 /^X\(\/\/\)[^/].*/{
15041 -*) as_dir
=.
/$as_dir;;
15043 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
15047 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15048 *) as_qdir
=$as_dir;;
15050 as_dirs
="'$as_qdir' $as_dirs"
15051 as_dir
=`$as_dirname -- "$as_dir" ||
15052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15053 X"$as_dir" : 'X\(//\)[^/]' \| \
15054 X"$as_dir" : 'X\(//\)$' \| \
15055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15061 /^X\(\/\/\)[^/].*/{
15074 test -d "$as_dir" && break
15076 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15077 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15078 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15079 { (exit 1); exit 1; }; }; }
15083 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15085 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15086 # A ".." for each directory in $ac_dir_suffix.
15087 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15088 case $ac_top_builddir_sub in
15089 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15090 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15093 ac_abs_top_builddir
=$ac_pwd
15094 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15095 # for backward compatibility:
15096 ac_top_builddir
=$ac_top_build_prefix
15099 .
) # We are building in place.
15101 ac_top_srcdir
=$ac_top_builddir_sub
15102 ac_abs_top_srcdir
=$ac_pwd ;;
15103 [\\/]* | ?
:[\\/]* ) # Absolute name.
15104 ac_srcdir
=$srcdir$ac_dir_suffix;
15105 ac_top_srcdir
=$srcdir
15106 ac_abs_top_srcdir
=$srcdir ;;
15107 *) # Relative name.
15108 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15109 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15110 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15112 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15122 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15123 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15127 cat >>$CONFIG_STATUS <<\_ACEOF
15128 # If the template does not know about datarootdir, expand it.
15129 # FIXME: This hack should be removed a few years after 2.60.
15130 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15132 case `sed -n '/datarootdir/ {
15141 ' $ac_file_inputs` in
15142 *datarootdir
*) ac_datarootdir_seen
=yes;;
15143 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15144 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15145 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15147 cat >>$CONFIG_STATUS <<_ACEOF
15148 ac_datarootdir_hack='
15149 s&@datadir@&$datadir&g
15150 s&@docdir@&$docdir&g
15151 s&@infodir@&$infodir&g
15152 s&@localedir@&$localedir&g
15153 s&@mandir@&$mandir&g
15154 s&\\\${datarootdir}&$datarootdir&g' ;;
15158 # Neutralize VPATH when `$srcdir' = `.'.
15159 # Shell code in configure.ac might set extrasub.
15160 # FIXME: do we really want to maintain this feature?
15161 cat >>$CONFIG_STATUS <<_ACEOF
15165 cat >>$CONFIG_STATUS <<\_ACEOF
15167 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15168 s
&@configure_input@
&$configure_input&;t t
15169 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15170 s
&@srcdir@
&$ac_srcdir&;t t
15171 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15172 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15173 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15174 s
&@builddir@
&$ac_builddir&;t t
15175 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15176 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15177 s
&@INSTALL@
&$ac_INSTALL&;t t
15178 $ac_datarootdir_hack
15179 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
15181 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15182 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15183 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15184 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15185 which seems to be undefined. Please make sure it is defined." >&5
15186 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15187 which seems to be undefined. Please make sure it is defined." >&2;}
15191 -) cat "$tmp/out"; rm -f "$tmp/out";;
15192 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15201 # Transform confdefs.h into a sed script `conftest.defines', that
15202 # substitutes the proper values into config.h.in to produce config.h.
15203 rm -f conftest.defines conftest.
tail
15204 # First, append a space to every undef/define line, to ease matching.
15205 echo 's/$/ /' >conftest.defines
15206 # Then, protect against being on the right side of a sed subst, or in
15207 # an unquoted here document, in config.status. If some macros were
15208 # called several times there might be several #defines for the same
15209 # symbol, which is useless. But do not sort them, since the last
15210 # AC_DEFINE must be honored.
15211 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
15212 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15213 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15214 # PARAMS is the parameter list in the macro definition--in most cases, it's
15215 # just an empty string.
15216 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15217 ac_dB
='\\)[ (].*,\\1define\\2'
15225 s/^[ ]*#[ ]*define[ ][ ]*//
15230 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15231 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15232 ' >>conftest.defines
15234 # Remove the space that was appended to ease matching.
15235 # Then replace #undef with comments. This is necessary, for
15236 # example, in the case of _POSIX_SOURCE, which is predefined and required
15237 # on some systems where configure will not decide to define it.
15238 # (The regexp can be short, since the line contains either #define or #undef.)
15240 s,^[ #]*u.*,/* & */,' >>conftest.defines
15242 # Break up conftest.defines:
15243 ac_max_sed_lines
=50
15245 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15246 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15247 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15249 ac_in
='$ac_file_inputs'
15250 ac_out
='"$tmp/out1"'
15251 ac_nxt
='"$tmp/out2"'
15255 # Write a here document:
15256 cat >>$CONFIG_STATUS <<_ACEOF
15257 # First, check the format of the line:
15258 cat >"\$tmp/defines.sed" <<\\CEOF
15259 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15260 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15264 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
15266 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15267 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
15268 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
15269 grep . conftest.
tail >/dev
/null ||
break
15270 rm -f conftest.defines
15271 mv conftest.
tail conftest.defines
15273 rm -f conftest.defines conftest.
tail
15275 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15276 cat >>$CONFIG_STATUS <<\_ACEOF
15277 if test x
"$ac_file" != x-
; then
15278 echo "/* $configure_input */" >"$tmp/config.h"
15279 cat "$ac_result" >>"$tmp/config.h"
15280 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15281 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15282 echo "$as_me: $ac_file is unchanged" >&6;}
15285 mv "$tmp/config.h" $ac_file
15288 echo "/* $configure_input */"
15294 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15295 echo "$as_me: executing $ac_file commands" >&6;}
15300 case $ac_file$ac_mode in
15301 "default-1":C
) if test -f .devel
; then
15302 echo timestamp
> stamp-h
15303 cat Makefile-devel-adds
>> Makefile
15311 { (exit 0); exit 0; }
15313 chmod +x
$CONFIG_STATUS
15314 ac_clean_files
=$ac_clean_files_save
15317 # configure is writing to config.log, and then calls config.status.
15318 # config.status does its own redirection, appending to config.log.
15319 # Unfortunately, on DOS this fails, as config.log is still kept open
15320 # by configure, so config.status won't be able to write to it; its
15321 # output is simply discarded. So we exec the FD to /dev/null,
15322 # effectively closing config.log, so it can be properly (re)opened and
15323 # appended to by config.status. When coming back to configure, we
15324 # need to make the FD available again.
15325 if test "$no_create" != yes; then
15327 ac_config_status_args
=
15328 test "$silent" = yes &&
15329 ac_config_status_args
="$ac_config_status_args --quiet"
15331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15334 # would make configure fail if this is the last instruction.
15335 $ac_cs_success ||
{ (exit 1); exit 1; }