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
1840 # Check whether --with-gcc was given.
1841 if test "${with_gcc+set}" = set; then
1847 if test "${srcdir}" != "." ; then
1848 V_INCLS="-I\$(srcdir)"
1850 if test "${CFLAGS+set}" = set; then
1851 LBL_CFLAGS="$CFLAGS"
1853 if test -z "$CC" ; then
1857 # Extract the first word of "shlicc2", so it can be a program name with args.
1858 set dummy shlicc2; ac_word=$2
1859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$SHLICC2"; then
1865 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874 ac_cv_prog_SHLICC2="yes"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1885 SHLICC2=$ac_cv_prog_SHLICC2
1886 if test -n "$SHLICC2"; then
1887 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888 echo "${ECHO_T}$SHLICC2" >&6; }
1890 { echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6; }
1895 if test $SHLICC2 = yes ; then
1902 if test -z "$CC" -a "$with_gcc" = no ; then
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 if test -n "$CC"; then
1942 { echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6; }
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1951 if test -z "$ac_cv_prog_CC"; then
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_ac_ct_CC="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1989 if test "x$ac_ct_CC" = x; then
1992 case $cross_compiling:$ac_tool_warned in
1994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&5
1997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000 ac_tool_warned=yes ;;
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}cc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected=yes
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2105 if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then
2107 for ac_prog in cl.exe
2109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2146 test -n "$CC" && break
2149 if test -z "$CC"; then
2151 for ac_prog in cl.exe
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2190 test -n "$ac_ct_CC" && break
2193 if test "x$ac_ct_CC" = x; then
2196 case $cross_compiling:$ac_tool_warned in
2198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&5
2201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204 ac_tool_warned=yes ;;
2213 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 See \`config.log
' for more details." >&5
2215 echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details.
" >&2;}
2217 { (exit 1); exit 1; }; }
2219 # Provide some information about the compiler.
2220 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2221 ac_compiler=`set X $ac_compile; echo $2`
2222 { (ac_try="$ac_compiler --version >&5"
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler --version >&5") 2>&5
2230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2231 (exit $ac_status); }
2232 { (ac_try="$ac_compiler -v >&5"
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler -v >&5") 2>&5
2240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try="$ac_compiler -V >&5"
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -V >&5") 2>&5
2250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2251 (exit $ac_status); }
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2273 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2274 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2275 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 # List of possible output files, starting from the most likely.
2278 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279 # only as a last resort. b.out is created by i960 compilers.
2280 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 # The IRIX 6 linker writes into existing files which may not be
2283 # executable, retaining their permissions. Remove them first so a
2284 # subsequent execution test works.
2286 for ac_file in $ac_files
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2295 if { (ac_try="$ac_link_default"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link_default") 2>&5
2303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 # so that the user can short-circuit this test for compilers unknown to
2310 for ac_file in $ac_files ''
2312 test -f "$ac_file" || continue
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2317 # We found the default executable, but exeext='' is most
2321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 # We set ac_cv_exeext here because the later test for it is not
2326 # safe: cross compilers may not add the suffix if given an `-o'
2327 # argument, so we may need to know it at that point already.
2328 # Even if this section looks crufty: it has the advantage of
2335 test "$ac_cv_exeext" = no && ac_cv_exeext=
2341 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343 if test -z "$ac_file"; then
2344 echo "$as_me: failed program was
:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2348 See \
`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log
' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2354 ac_exeext=$ac_cv_exeext
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 # If not cross compiling, check that we can run a simple program.
2362 if test "$cross_compiling" != yes; then
2363 if { ac_try='.
/$ac_file'
2364 { (case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 if test "$cross_compiling" = maybe; then
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \
`config.log' for more details." >&5
2381 echo "$as_me: error: cannot run C compiled programs.
2382 If you meant to cross compile, use \`--host'.
2383 See \`config.log' for more details.
" >&2;}
2384 { (exit 1); exit 1; }; }
2388 { echo "$as_me:$LINENO: result
: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2391 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 ac_clean_files=$ac_clean_files_save
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2396 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2397 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2398 echo "${ECHO_T}$cross_compiling" >&6; }
2400 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2401 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2402 if { (ac_try="$ac_link"
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_link") 2>&5
2410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 for ac_file in conftest.exe conftest conftest.*; do
2417 test -f "$ac_file" || continue
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2427 See \
`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log
' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2433 rm -f conftest$ac_cv_exeext
2434 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2440 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 rm -f conftest.o conftest.obj
2461 if { (ac_try="$ac_compile"
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in conftest.o conftest.obj conftest.*; do
2472 test -f "$ac_file" || continue;
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2480 echo "$as_me: failed program was:" >&5
2481 sed 's
/^
/|
/' conftest.$ac_ext >&5
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details.
" >&5
2485 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2486 See \
`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2496 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2523 *) ac_try_echo
=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2528 grep -v '^ *+' conftest.er1
>conftest.err
2530 cat conftest.err
>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.
$ac_objext; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.
$ac_ext >&5
2544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2545 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2548 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS
=${CFLAGS+set}
2552 ac_save_CFLAGS
=$CFLAGS
2553 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_cc_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 ac_save_c_werror_flag
=$ac_c_werror_flag
2559 ac_c_werror_flag
=yes
2562 cat >conftest.
$ac_ext <<_ACEOF
2565 cat confdefs.h
>>conftest.
$ac_ext
2566 cat >>conftest.
$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.
$ac_objext
2578 if { (ac_try
="$ac_compile"
2580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2619 *) ac_try_echo
=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2624 grep -v '^ *+' conftest.er1
>conftest.err
2626 cat conftest.err
>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.
$ac_objext; then
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.
$ac_ext >&5
2637 ac_c_werror_flag
=$ac_save_c_werror_flag
2639 cat >conftest.
$ac_ext <<_ACEOF
2642 cat confdefs.h
>>conftest.
$ac_ext
2643 cat >>conftest.
$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.
$ac_objext
2655 if { (ac_try
="$ac_compile"
2657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2688 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692 elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2699 if test "$GCC" = yes; then
2705 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 ac_cv_prog_cc_c89=no
2712 cat >conftest.$ac_ext <<_ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2736 s = g (p, va_arg (v,int));
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std. */
2748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2777 *) ac_try_echo
=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.
$ac_objext; then
2790 ac_cv_prog_cc_c89
=$ac_arg
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.
$ac_ext >&5
2798 rm -f core conftest.err conftest.
$ac_objext
2799 test "x$ac_cv_prog_cc_c89" != "xno" && break
2801 rm -f conftest.
$ac_ext
2806 case "x$ac_cv_prog_cc_c89" in
2808 { echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6; } ;;
2811 { echo "$as_me:$LINENO: result: unsupported" >&5
2812 echo "${ECHO_T}unsupported" >&6; } ;;
2814 CC
="$CC $ac_cv_prog_cc_c89"
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2821 ac_cpp
='$CPP $CPPFLAGS'
2822 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2830 if test "$GCC" = yes ; then
2831 if test "$SHLICC2" = yes ; then
2832 ac_cv_lbl_gcc_vers
=2
2835 { echo "$as_me:$LINENO: checking gcc version" >&5
2836 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2837 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2841 sed -e '/^gcc version /!d' \
2842 -e 's/^gcc version //' \
2843 -e 's/ .*//' -e 's/^[^0-9]*//' \
2847 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2848 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2854 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2855 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2856 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 cat >conftest.
$ac_ext <<_ACEOF
2863 cat confdefs.h
>>conftest.
$ac_ext
2864 cat >>conftest.
$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <sys/types.h>
2870 int frob(int, char *)
2875 rm -f conftest.
$ac_objext
2876 if { (ac_try
="$ac_compile"
2878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2892 ac_cv_lbl_cc_ansi_prototypes=yes
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 ac_cv_lbl_cc_ansi_prototypes=no
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2909 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2910 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2911 savedcflags="$CFLAGS"
2912 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <sys/types.h>
2926 int frob(int, char *)
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2935 *) ac_try_echo
=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2940 grep -v '^ *+' conftest.er1
>conftest.err
2942 cat conftest.err
>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.
$ac_objext; then
2948 ac_cv_lbl_cc_hpux_cc_aa
=yes
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 ac_cv_lbl_cc_hpux_cc_aa
=no
2956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2959 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2962 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2963 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2964 { (exit 1); exit 1; }; }
2966 CFLAGS
="$savedcflags"
2967 V_CCOPT
="-Aa $V_CCOPT"
2969 cat >>confdefs.h
<<\_ACEOF
2970 #define _HPUX_SOURCE 1
2976 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2977 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2978 savedcflags
="$CFLAGS"
2980 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 cat >conftest.
$ac_ext <<_ACEOF
2986 cat confdefs.h
>>conftest.
$ac_ext
2987 cat >>conftest.
$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2993 int frob(int, char *)
2998 rm -f conftest.
$ac_objext
2999 if { (ac_try
="$ac_compile"
3001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3007 grep -v '^ *+' conftest.er1 >conftest.err
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_osf1_cc_std1=yes
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 ac_cv_lbl_cc_osf1_cc_std1=no
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3030 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3031 { (exit 1); exit 1; }; }
3033 CFLAGS="$savedcflags"
3034 V_CCOPT="-std1 $V_CCOPT"
3038 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3039 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3040 { (exit 1); exit 1; }; }
3044 V_INCLS="$V_INCLS -I/usr/local/include"
3045 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3050 V_CCOPT="$V_CCOPT -xansi -signed -O"
3055 # Presumed to be DEC OSF/1, Digital UNIX, or
3058 V_CCOPT="$V_CCOPT -O"
3062 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3063 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3064 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <sys/types.h>
3077 struct a { int b; };
3078 void c(const struct a *)
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3087 *) ac_try_echo
=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1
>conftest.err
3094 cat conftest.err
>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.
$ac_objext; then
3100 ac_cv_lbl_cc_const_proto
=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.
$ac_ext >&5
3105 ac_cv_lbl_cc_const_proto
=no
3108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3111 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113 if test $ac_cv_lbl_cc_const_proto = no
; then
3115 cat >>confdefs.h
<<\_ACEOF
3124 { echo "$as_me:$LINENO: checking for inline" >&5
3125 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3126 save_CFLAGS
="$CFLAGS"
3128 if test "${ac_cv_lbl_inline+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 for ac_lbl_inline
in inline __inline__ __inline
3136 cat >conftest.
$ac_ext <<_ACEOF
3139 cat confdefs.h
>>conftest.
$ac_ext
3140 cat >>conftest.
$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #define inline $ac_lbl_inline
3143 static inline struct iltest *foo(void);
3149 static inline struct iltest *
3152 static struct iltest xxx;
3164 rm -f conftest.
$ac_objext
3165 if { (ac_try
="$ac_compile"
3167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_lbl_cc_inline=yes
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 if test "$ac_lbl_cc_inline" = yes ; then
3194 if test "$ac_lbl_cc_inline" = yes ; then
3195 ac_cv_lbl_inline=$ac_lbl_inline
3199 CFLAGS="$save_CFLAGS"
3200 if test ! -z "$ac_cv_lbl_inline" ; then
3201 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3202 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3204 { echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6; }
3208 cat >>confdefs.h <<_ACEOF
3209 #define inline $ac_cv_lbl_inline
3213 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3214 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3215 if test "${ac_cv___attribute__+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3229 static void foo(void) __attribute__ ((noreturn));
3238 main(int argc, char **argv)
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3248 *) ac_try_echo
=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1
>conftest.err
3255 cat conftest.err
>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.
$ac_objext; then
3261 ac_cv___attribute__
=yes
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.
$ac_ext >&5
3266 ac_cv___attribute__
=no
3269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3272 if test "$ac_cv___attribute__" = "yes"; then
3274 cat >>confdefs.h
<<\_ACEOF
3275 #define HAVE___ATTRIBUTE__ 1
3278 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
3280 V_DEFS
="$V_DEFS -D_U_=\"\""
3282 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3283 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3285 if test "$ac_cv___attribute__" = "yes"; then
3287 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3288 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3289 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 cat >conftest.
$ac_ext <<_ACEOF
3296 cat confdefs.h
>>conftest.
$ac_ext
3297 cat >>conftest.
$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3302 extern int (*foo)(const char *fmt, ...)
3303 __attribute__ ((format (printf, 1, 2)));
3306 main(int argc, char **argv)
3308 (*foo)("%s", "test");
3312 rm -f conftest.
$ac_objext
3313 if { (ac_try
="$ac_compile"
3315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_cv___attribute___format_function_pointer=yes
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 ac_cv___attribute___format_function_pointer=no
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3342 cat >>confdefs.h <<\_ACEOF
3343 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3347 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3348 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3358 # On Suns, sometimes $CPP names a directory.
3359 if test -n "$CPP" && test -d "$CPP"; then
3362 if test -z "$CPP"; then
3363 if test "${ac_cv_prog_CPP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 # Double quotes because CPP needs to be expanded
3367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370 for ac_c_preproc_warn_flag in '' yes
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3385 # include <limits.h>
3387 # include <assert.h>
3391 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3394 *) ac_try_echo
=$ac_try;;
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev
/null
&& {
3404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3405 test ! -s conftest.err
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.
$ac_ext >&5
3412 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.
$ac_ext
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat >conftest.
$ac_ext <<_ACEOF
3423 cat confdefs.h
>>conftest.
$ac_ext
3424 cat >>conftest.
$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3428 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null && {
3441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3444 # Broken: success on invalid input.
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Passes both tests.
3455 rm -f conftest.err conftest.$ac_ext
3458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3459 rm -f conftest.err conftest.
$ac_ext
3460 if $ac_preproc_ok; then
3472 { echo "$as_me:$LINENO: result: $CPP" >&5
3473 echo "${ECHO_T}$CPP" >&6; }
3475 for ac_c_preproc_warn_flag
in '' yes
3477 # Use a header file that comes with gcc, so configuring glibc
3478 # with a fresh cross-compiler works.
3479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480 # <limits.h> exists even on freestanding compilers.
3481 # On the NeXT, cc -E runs the code through the compiler's parser,
3482 # not just through cpp. "Syntax error" is here to catch this case.
3483 cat >conftest.
$ac_ext <<_ACEOF
3486 cat confdefs.h
>>conftest.
$ac_ext
3487 cat >>conftest.
$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3490 # include <limits.h>
3492 # include <assert.h>
3496 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null && {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Broken: fails on valid input.
3521 rm -f conftest.err conftest.$ac_ext
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <ac_nonexistent.h>
3533 if { (ac_try="$ac_cpp conftest.$ac_ext"
3535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3536 *) ac_try_echo
=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1
>conftest.err
3543 cat conftest.err
>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev
/null
&& {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3549 # Broken: success on invalid input.
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.
$ac_ext >&5
3555 # Passes both tests.
3560 rm -f conftest.err conftest.
$ac_ext
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.
$ac_ext
3565 if $ac_preproc_ok; then
3568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3576 ac_cpp
='$CPP $CPPFLAGS'
3577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3582 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3583 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3584 if test "${ac_cv_path_GREP+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 # Extract the first word of "grep ggrep" to use in msg output
3588 if test -z "$GREP"; then
3589 set dummy
grep ggrep
; ac_prog_name
=$2
3590 if test "${ac_cv_path_GREP+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 ac_path_GREP_found
=false
3594 # Loop through the user's path and test for each of PROGNAME-LIST
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3596 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_prog
in grep ggrep
; do
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3604 # Check for GNU ac_path_GREP and select it if it is found.
3605 # Check for GNU $ac_path_GREP
3606 case `"$ac_path_GREP" --version 2>&1` in
3608 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3611 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3614 cat "conftest.in" "conftest.in" >"conftest.tmp"
3615 mv "conftest.tmp" "conftest.in"
3616 cp "conftest.in" "conftest.nl"
3617 echo 'GREP' >> "conftest.nl"
3618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3619 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3620 ac_count
=`expr $ac_count + 1`
3621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3622 # Best one so far, save it but keep looking for a better one
3623 ac_cv_path_GREP
="$ac_path_GREP"
3624 ac_path_GREP_max
=$ac_count
3626 # 10*(2^10) chars as input seems more than enough
3627 test $ac_count -gt 10 && break
3629 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3633 $ac_path_GREP_found && break 3
3643 GREP
="$ac_cv_path_GREP"
3644 if test -z "$GREP"; then
3645 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3646 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3647 { (exit 1); exit 1; }; }
3651 ac_cv_path_GREP
=$GREP
3656 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3657 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3658 GREP
="$ac_cv_path_GREP"
3661 { echo "$as_me:$LINENO: checking for egrep" >&5
3662 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3663 if test "${ac_cv_path_EGREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3667 then ac_cv_path_EGREP
="$GREP -E"
3669 # Extract the first word of "egrep" to use in msg output
3670 if test -z "$EGREP"; then
3671 set dummy
egrep; ac_prog_name
=$2
3672 if test "${ac_cv_path_EGREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_path_EGREP_found
=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_prog
in egrep; do
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3686 # Check for GNU ac_path_EGREP and select it if it is found.
3687 # Check for GNU $ac_path_EGREP
3688 case `"$ac_path_EGREP" --version 2>&1` in
3690 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'EGREP' >> "conftest.nl"
3700 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3702 ac_count
=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_EGREP
="$ac_path_EGREP"
3706 ac_path_EGREP_max
=$ac_count
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3715 $ac_path_EGREP_found && break 3
3725 EGREP
="$ac_cv_path_EGREP"
3726 if test -z "$EGREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3733 ac_cv_path_EGREP
=$EGREP
3739 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3740 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3741 EGREP
="$ac_cv_path_EGREP"
3744 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3746 if test "${ac_cv_header_stdc+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 cat >conftest.
$ac_ext <<_ACEOF
3752 cat confdefs.h
>>conftest.
$ac_ext
3753 cat >>conftest.
$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3768 rm -f conftest.
$ac_objext
3769 if { (ac_try
="$ac_compile"
3771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3777 grep -v '^ *+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 ac_cv_header_stdc=yes
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 ac_cv_header_stdc=no
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 if test $ac_cv_header_stdc = yes; then
3796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 $EGREP "memchr" >/dev/null 2>&1; then
3810 ac_cv_header_stdc=no
3816 if test $ac_cv_header_stdc = yes; then
3817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3828 $EGREP "free" >/dev/null 2>&1; then
3831 ac_cv_header_stdc=no
3837 if test $ac_cv_header_stdc = yes; then
3838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3839 if test "$cross_compiling" = yes; then
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3850 #if ((' ' & 0x0FF) == 0x020)
3851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3854 # define ISLOWER(c) \
3855 (('a' <= (c) && (c) <= 'i') \
3856 || ('j' <= (c) && (c) <= 'r') \
3857 || ('s' <= (c) && (c) <= 'z'))
3858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3866 for (i = 0; i < 256; i++)
3867 if (XOR (islower (i), ISLOWER (i))
3868 || toupper (i) != TOUPPER (i))
3873 rm -f conftest$ac_exeext
3874 if { (ac_try="$ac_link"
3876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3877 *) ac_try_echo
=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_link") 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3884 { (case "(($ac_try" in
3885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3895 echo "$as_me: program exited with status $ac_status" >&5
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3900 ac_cv_header_stdc=no
3902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3908 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3909 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3910 if test $ac_cv_header_stdc = yes; then
3912 cat >>confdefs.h <<\_ACEOF
3913 #define STDC_HEADERS 1
3918 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3928 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3929 inttypes.h stdint.h unistd.h
3931 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 $ac_includes_default
3945 #include <$ac_header>
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3951 *) ac_try_echo
=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1
>conftest.err
3958 cat conftest.err
>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.
$ac_objext; then
3964 eval "$as_ac_Header=yes"
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.
$ac_ext >&5
3969 eval "$as_ac_Header=no"
3972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3974 ac_res
=`eval echo '${'$as_ac_Header'}'`
3975 { echo "$as_me:$LINENO: result: $ac_res" >&5
3976 echo "${ECHO_T}$ac_res" >&6; }
3977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3978 cat >>confdefs.h
<<_ACEOF
3979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3993 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3996 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_res
=`eval echo '${'$as_ac_Header'}'`
4000 { echo "$as_me:$LINENO: result: $ac_res" >&5
4001 echo "${ECHO_T}$ac_res" >&6; }
4003 # Is the header compilable?
4004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4006 cat >conftest.
$ac_ext <<_ACEOF
4009 cat confdefs.h
>>conftest.
$ac_ext
4010 cat >>conftest.
$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4013 #include <$ac_header>
4015 rm -f conftest.
$ac_objext
4016 if { (ac_try
="$ac_compile"
4018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4024 grep -v '^ *+' conftest.er1 >conftest.err
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_header_compiler=yes
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ac_header_compiler=no
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4042 echo "${ECHO_T}$ac_header_compiler" >&6; }
4044 # Is the header present?
4045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <$ac_header>
4055 if { (ac_try="$ac_cpp conftest.$ac_ext"
4057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4058 *) ac_try_echo
=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4063 grep -v '^ *+' conftest.er1
>conftest.err
4065 cat conftest.err
>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev
/null
&& {
4068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4071 ac_header_preproc
=yes
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.
$ac_ext >&5
4076 ac_header_preproc
=no
4079 rm -f conftest.err conftest.
$ac_ext
4080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4081 echo "${ECHO_T}$ac_header_preproc" >&6; }
4083 # So? What about this header?
4084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4090 ac_header_preproc
=yes
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4110 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 eval "$as_ac_Header=\$ac_header_preproc"
4115 ac_res
=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117 echo "${ECHO_T}$ac_res" >&6; }
4120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121 cat >>confdefs.h
<<_ACEOF
4122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130 for ac_header
in net
/pfvar.h
4132 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4135 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 cat >conftest.
$ac_ext <<_ACEOF
4141 cat confdefs.h
>>conftest.
$ac_ext
4142 cat >>conftest.
$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4145 #include <sys/socket.h>
4148 #include <$ac_header>
4150 rm -f conftest.
$ac_objext
4151 if { (ac_try
="$ac_compile"
4153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 eval "$as_ac_Header=yes"
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 eval "$as_ac_Header=no"
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_res=`eval echo '${'$as_ac_Header'}'`
4178 { echo "$as_me:$LINENO: result: $ac_res" >&5
4179 echo "${ECHO_T}$ac_res" >&6; }
4180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4189 if test "$ac_cv_header_net_pfvar_h" = yes; then
4190 LOCALSRC="print-pflog.c $LOCALSRC"
4193 for ac_header in netinet/if_ether.h
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/socket.h>
4210 #include <$ac_header>
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4216 *) ac_try_echo
=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.
$ac_objext; then
4229 eval "$as_ac_Header=yes"
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.
$ac_ext >&5
4234 eval "$as_ac_Header=no"
4237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4239 ac_res
=`eval echo '${'$as_ac_Header'}'`
4240 { echo "$as_me:$LINENO: result: $ac_res" >&5
4241 echo "${ECHO_T}$ac_res" >&6; }
4242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243 cat >>confdefs.h
<<_ACEOF
4244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4253 # The simple test didn't work.
4254 # Do we need to include <net/if.h> first?
4255 # Unset ac_cv_header_netinet_if_ether_h so we don't
4256 # treat the previous failure as a cached value and
4257 # suppress the next test.
4259 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4260 echo "$as_me: Rechecking with some additional includes" >&6;}
4261 unset ac_cv_header_netinet_if_ether_h
4263 for ac_header
in netinet
/if_ether.h
4265 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4268 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 cat >conftest.
$ac_ext <<_ACEOF
4274 cat confdefs.h
>>conftest.
$ac_ext
4275 cat >>conftest.
$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <sys/types.h>
4278 #include <sys/socket.h>
4279 #include <netinet/in.h>
4284 #include <$ac_header>
4286 rm -f conftest.
$ac_objext
4287 if { (ac_try
="$ac_compile"
4289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_compile") 2>conftest.er1
4295 grep -v '^ *+' conftest.er1 >conftest.err
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_c_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest.$ac_objext; then
4303 eval "$as_ac_Header=yes"
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 eval "$as_ac_Header=no"
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_res=`eval echo '${'$as_ac_Header'}'`
4314 { echo "$as_me:$LINENO: result: $ac_res" >&5
4315 echo "${ECHO_T}$ac_res" >&6; }
4316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4327 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4328 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4329 if test "${ac_cv_header_time+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4339 #include <sys/time.h>
4345 if ((struct tm *) 0)
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4355 *) ac_try_echo
=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1
>conftest.err
4362 cat conftest.err
>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.
$ac_objext; then
4368 ac_cv_header_time
=yes
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.
$ac_ext >&5
4373 ac_cv_header_time
=no
4376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4380 if test $ac_cv_header_time = yes; then
4382 cat >>confdefs.h
<<\_ACEOF
4383 #define TIME_WITH_SYS_TIME 1
4392 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4393 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4394 if test "$cross_compiling" = yes; then
4395 if test "${ac_cv_linux_vers+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_cv_linux_vers
=unknown
4402 if test "${ac_cv_linux_vers+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 ac_cv_linux_vers
=`uname -r 2>&1 | \
4406 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4410 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4411 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4412 if test $ac_cv_linux_vers = unknown
; then
4413 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4414 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4415 { (exit 1); exit 1; }; }
4417 if test $ac_cv_linux_vers -lt 2 ; then
4418 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4419 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4420 { (exit 1); exit 1; }; }
4430 # Check whether --with-smi was given.
4431 if test "${with_smi+set}" = set; then
4438 if test "x$with_smi" != "xno" ; then
4440 for ac_header
in smi.h
4442 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 ac_res
=`eval echo '${'$as_ac_Header'}'`
4450 { echo "$as_me:$LINENO: result: $ac_res" >&5
4451 echo "${ECHO_T}$ac_res" >&6; }
4453 # Is the header compilable?
4454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4456 cat >conftest.
$ac_ext <<_ACEOF
4459 cat confdefs.h
>>conftest.
$ac_ext
4460 cat >>conftest.
$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4463 #include <$ac_header>
4465 rm -f conftest.
$ac_objext
4466 if { (ac_try
="$ac_compile"
4468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4474 grep -v '^ *+' conftest.er1 >conftest.err
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && {
4479 test -z "$ac_c_werror_flag" ||
4480 test ! -s conftest.err
4481 } && test -s conftest.$ac_objext; then
4482 ac_header_compiler=yes
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_header_compiler=no
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4492 echo "${ECHO_T}$ac_header_compiler" >&6; }
4494 # Is the header present?
4495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <$ac_header>
4505 if { (ac_try="$ac_cpp conftest.$ac_ext"
4507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4508 *) ac_try_echo
=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4513 grep -v '^ *+' conftest.er1
>conftest.err
4515 cat conftest.err
>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev
/null
&& {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4521 ac_header_preproc
=yes
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.
$ac_ext >&5
4526 ac_header_preproc
=no
4529 rm -f conftest.err conftest.
$ac_ext
4530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4531 echo "${ECHO_T}$ac_header_preproc" >&6; }
4533 # So? What about this header?
4534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4540 ac_header_preproc
=yes
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4560 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 eval "$as_ac_Header=\$ac_header_preproc"
4565 ac_res
=`eval echo '${'$as_ac_Header'}'`
4566 { echo "$as_me:$LINENO: result: $ac_res" >&5
4567 echo "${ECHO_T}$ac_res" >&6; }
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h
<<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4581 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4582 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 ac_check_lib_save_LIBS
=$LIBS
4587 cat >conftest.
$ac_ext <<_ACEOF
4590 cat confdefs.h
>>conftest.
$ac_ext
4591 cat >>conftest.
$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4594 /* Override any GCC internal prototype to avoid an error.
4595 Use char because int might match the return type of a GCC
4596 builtin and then its argument prototype would still apply. */
4609 rm -f conftest.
$ac_objext conftest
$ac_exeext
4610 if { (ac_try
="$ac_link"
4612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_link") 2>conftest.er1
4618 grep -v '^ *+' conftest.er1 >conftest.err
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } && {
4623 test -z "$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 } && test -s conftest$ac_exeext &&
4626 $as_test_x conftest$ac_exeext; then
4627 ac_cv_lib_smi_smiInit=yes
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_cv_lib_smi_smiInit=no
4635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4636 conftest$ac_exeext conftest.$ac_ext
4637 LIBS=$ac_check_lib_save_LIBS
4639 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4640 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4641 if test $ac_cv_lib_smi_smiInit = yes; then
4642 cat >>confdefs.h <<_ACEOF
4643 #define HAVE_LIBSMI 1
4650 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4652 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4653 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4654 if test "$cross_compiling" = yes; then
4655 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4656 echo "${ECHO_T}not when cross-compiling" >&6; }
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 /* libsmi available check */
4670 int current, revision, age, n;
4671 const int required = 2;
4674 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4676 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4679 if (required < current - age || required > current)
4685 rm -f conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4689 *) ac_try_echo
=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_link") 2>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4696 { (case "(($ac_try" in
4697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_try") 2>&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 { echo "$as_me:$LINENO: result: yes" >&5
4706 echo "${ECHO_T}yes" >&6; }
4707 cat >>confdefs.h <<\_ACEOF
4713 echo "$as_me: program exited with status $ac_status" >&5
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4719 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4720 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4721 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4722 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4723 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4724 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4725 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4726 echo "${ECHO_T}no - too old" >&6; } ;;
4727 *) { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; } ;;
4732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4739 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4740 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4741 # Check whether --enable-smb was given.
4742 if test "${enable_smb+set}" = set; then
4743 enableval=$enable_smb;
4748 case "$enableval" in
4749 yes) { echo "$as_me:$LINENO: result: yes" >&5
4750 echo "${ECHO_T}yes" >&6; }
4751 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4752 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4753 cat >>confdefs.h <<\_ACEOF
4754 #define TCPDUMP_DO_SMB 1
4757 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4759 *) { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; }
4765 # Check whether --with-user was given.
4766 if test "${with_user+set}" = set; then
4770 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4771 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4772 if test ! -z "$with_user" ; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define WITH_USER "$withval"
4777 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4778 echo "${ECHO_T}to \"$withval\"" >&6; }
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4785 # Check whether --with-chroot was given.
4786 if test "${with_chroot+set}" = set; then
4787 withval=$with_chroot;
4790 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4791 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4792 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4793 cat >>confdefs.h <<_ACEOF
4794 #define WITH_CHROOT "$withval"
4797 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4798 echo "${ECHO_T}to \"$withval\"" >&6; }
4800 { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4804 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4805 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4806 # Check whether --enable-ipv6 was given.
4807 if test "${enable_ipv6+set}" = set; then
4808 enableval=$enable_ipv6; case "$enableval" in
4809 yes) { echo "$as_me:$LINENO: result: yes" >&5
4810 echo "${ECHO_T}yes" >&6; }
4811 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"
4812 cat >>confdefs.h <<\_ACEOF
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4825 if test "$cross_compiling" = yes; then
4826 { echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6; }
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 /* AF_INET6 available check */
4838 #include <sys/types.h>
4839 #include <sys/socket.h>
4842 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4849 rm -f conftest$ac_exeext
4850 if { (ac_try="$ac_link"
4852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4853 *) ac_try_echo
=$ac_try;;
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_link") 2>&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4860 { (case "(($ac_try" in
4861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 { echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6; }
4871 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"
4872 cat >>confdefs.h <<\_ACEOF
4878 echo "$as_me: program exited with status $ac_status" >&5
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4898 if test "$ipv6" = "yes"; then
4899 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4900 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4901 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4904 cat >conftest.$ac_ext <<_ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #include <netinet/in.h>
4911 #ifdef IPV6_INRIA_VERSION
4915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4916 $EGREP "yes" >/dev/null 2>&1; then
4918 CFLAGS="-DINET6 $CFLAGS"
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #include <netinet/in.h>
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936 $EGREP "yes" >/dev/null 2>&1; then
4939 ipv6libdir=/usr/local/v6/lib;
4941 CFLAGS="-DINET6 $CFLAGS"
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #include <features.h>
4954 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959 $EGREP "yes" >/dev/null 2>&1; then
4961 CFLAGS="-DINET6 $CFLAGS"
4967 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4970 ipv6libdir=/usr/inet6/lib
4972 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <sys/param.h>
4983 #ifdef _TOSHIBA_INET6
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "yes" >/dev/null 2>&1; then
4991 ipv6libdir=/usr/local/v6/lib;
4992 CFLAGS="-DINET6 $CFLAGS"
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #include </usr/local/v6/include/sys/v6config.h>
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010 $EGREP "yes" >/dev/null 2>&1; then
5013 ipv6libdir=/usr/local/v6/lib;
5014 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <sys/param.h>
5027 #ifdef _ZETA_MINAMI_INET6
5031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "yes" >/dev/null 2>&1; then
5035 ipv6libdir=/usr/local/v6/lib;
5036 CFLAGS="-DINET6 $CFLAGS"
5042 if test "$ipv6type" != "unknown"; then
5046 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5047 echo "${ECHO_T}$ipv6type" >&6; }
5050 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5051 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5052 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5053 echo "You have $ipv6lib library, using it"
5055 if test "$ipv6trylibc" = "yes"; then
5056 echo "You do not have $ipv6lib library, using libc"
5058 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5059 echo "You need to fetch lib$ipv6lib.a from appropriate"
5060 echo 'ipv6 kit and compile beforehand.'
5067 if test "$ipv6" = "yes"; then
5069 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5070 # function in libc; there are "ngetaddrinfo()" and
5071 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5072 # "getaddrinfo" to be either "ngetaddrinfo" or
5073 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5074 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5076 # So this test doesn't work on Tru64 5.1, and possibly
5077 # on other 5.x releases. This causes the configure
5078 # script to become confused, and results in libpcap
5079 # being unbuildable.
5081 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5082 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5083 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_func_search_save_LIBS=$LIBS
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 /* Override any GCC internal prototype to avoid an error.
5095 Use char because int might match the return type of a GCC
5096 builtin and then its argument prototype would still apply. */
5100 char getaddrinfo ();
5104 return getaddrinfo ();
5109 for ac_lib in '' socket; do
5110 if test -z "$ac_lib"; then
5111 ac_res="none required"
5114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (ac_try="$ac_link"
5119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5120 *) ac_try_echo
=$ac_try;;
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_link") 2>conftest.er1
5125 grep -v '^ *+' conftest.er1
>conftest.err
5127 cat conftest.err
>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest
$ac_exeext &&
5133 $as_test_x conftest
$ac_exeext; then
5134 ac_cv_search_getaddrinfo
=$ac_res
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.
$ac_ext >&5
5142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5144 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5148 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5151 ac_cv_search_getaddrinfo
=no
5154 LIBS
=$ac_func_search_save_LIBS
5156 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5157 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5158 ac_res
=$ac_cv_search_getaddrinfo
5159 if test "$ac_res" != no
; then
5160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5161 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5162 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5163 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test "$cross_compiling" = yes; then
5167 td_cv_buggygetaddrinfo
=yes
5169 cat >conftest.
$ac_ext <<_ACEOF
5172 cat confdefs.h
>>conftest.
$ac_ext
5173 cat >>conftest.
$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5176 #include <sys/types.h>
5179 #include <sys/socket.h>
5180 #include <netinet/in.h>
5184 int passive, gaierr, inet4 = 0, inet6 = 0;
5185 struct addrinfo hints, *ai, *aitop;
5186 char straddr[INET6_ADDRSTRLEN], strport[16];
5188 for (passive = 0; passive <= 1; passive++) {
5189 memset(&hints, 0, sizeof(hints));
5190 hints.ai_family = AF_UNSPEC;
5191 hints.ai_flags = passive ? AI_PASSIVE : 0;
5192 hints.ai_socktype = SOCK_STREAM;
5193 hints.ai_protocol = IPPROTO_TCP;
5194 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5195 (void)gai_strerror(gaierr);
5198 for (ai = aitop; ai; ai = ai->ai_next) {
5199 if (ai->ai_addr == NULL ||
5200 ai->ai_addrlen == 0 ||
5201 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5202 straddr, sizeof(straddr), strport, sizeof(strport),
5203 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5206 switch (ai->ai_family) {
5208 if (strcmp(strport, "54321") != 0) {
5212 if (strcmp(straddr, "0.0.0.0") != 0) {
5216 if (strcmp(straddr, "127.0.0.1") != 0) {
5223 if (strcmp(strport, "54321") != 0) {
5227 if (strcmp(straddr, "::") != 0) {
5231 if (strcmp(straddr, "::1") != 0) {
5248 /* another family support? */
5254 /* supported family should be 2, unsupported family should be 0 */
5255 if (!(inet4 == 0 || inet4 == 2))
5257 if (!(inet6 == 0 || inet6 == 2))
5261 freeaddrinfo(aitop);
5266 freeaddrinfo(aitop);
5271 rm -f conftest
$ac_exeext
5272 if { (ac_try
="$ac_link"
5274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_link") 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5284 *) ac_try_echo
=$ac_try;;
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 td_cv_buggygetaddrinfo
=no
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.
$ac_ext >&5
5298 td_cv_buggygetaddrinfo
=yes
5300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5306 if test "$td_cv_buggygetaddrinfo" = no
; then
5307 { echo "$as_me:$LINENO: result: good" >&5
5308 echo "${ECHO_T}good" >&6; }
5310 { echo "$as_me:$LINENO: result: buggy" >&5
5311 echo "${ECHO_T}buggy" >&6; }
5314 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5316 # XXX - it doesn't appear that "ipv6type" can ever be
5317 # set to "linux". Should this be testing for
5318 # "linux-glibc", or for that *or* "linux-libinet6"?
5319 # If the latter, note that "linux-libinet6" is also
5320 # the type given to some non-Linux OSes.
5322 if test "$ipv6type" != "linux"; then
5323 echo 'Fatal: You must get working getaddrinfo() function.'
5324 echo ' or you can specify "--disable-ipv6"'.
5327 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5328 echo ' Better upgrade your system library to newest version'
5329 echo ' of GNU C library (aka glibc).'
5336 for ac_func
in getnameinfo
5338 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5341 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 cat >conftest.
$ac_ext <<_ACEOF
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5352 #define $ac_func innocuous_$ac_func
5354 /* System header to define __stub macros and hopefully few prototypes,
5355 which can conflict with char $ac_func (); below.
5356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 <limits.h> exists even on freestanding compilers. */
5360 # include <limits.h>
5362 # include <assert.h>
5367 /* Override any GCC internal prototype to avoid an error.
5368 Use char because int might match the return type of a GCC
5369 builtin and then its argument prototype would still apply. */
5374 /* The GNU C library defines this for functions which it implements
5375 to always fail with ENOSYS. Some functions are actually named
5376 something starting with __ and the normal name is an alias. */
5377 #if defined __stub_$ac_func || defined __stub___$ac_func
5389 rm -f conftest.
$ac_objext conftest
$ac_exeext
5390 if { (ac_try
="$ac_link"
5392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_link") 2>conftest.er1
5398 grep -v '^ *+' conftest.er1 >conftest.err
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest$ac_exeext &&
5406 $as_test_x conftest$ac_exeext; then
5407 eval "$as_ac_var=yes"
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 eval "$as_ac_var=no"
5415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5416 conftest$ac_exeext conftest.$ac_ext
5418 ac_res=`eval echo '${'$as_ac_var'}'`
5419 { echo "$as_me:$LINENO: result: $ac_res" >&5
5420 echo "${ECHO_T}$ac_res" >&6; }
5421 if test `eval echo '${'$as_ac_var'}'` = yes; then
5422 cat >>confdefs.h <<_ACEOF
5423 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5427 case " $LIBOBJS " in
5428 *" $ac_func.$ac_objext "* ) ;;
5429 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5439 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5440 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5441 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 #include <netdnet/dnetdb.h>
5453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5455 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5457 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5462 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5463 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5464 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5465 cat >>confdefs.h <<\_ACEOF
5466 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5471 { echo "$as_me:$LINENO: checking for char" >&5
5472 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5473 if test "${ac_cv_type_char+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5483 typedef char ac__type_new_;
5487 if ((ac__type_new_ *) 0)
5489 if (sizeof (ac__type_new_))
5495 rm -f conftest.$ac_objext
5496 if { (ac_try="$ac_compile"
5498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5499 *) ac_try_echo
=$ac_try;;
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_compile") 2>conftest.er1
5504 grep -v '^ *+' conftest.er1
>conftest.err
5506 cat conftest.err
>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && {
5509 test -z "$ac_c_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.
$ac_objext; then
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.
$ac_ext >&5
5520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5523 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5525 # The cast to long int works around a bug in the HP C Compiler
5526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5528 # This bug is HP SR number 8606223364.
5529 { echo "$as_me:$LINENO: checking size of char" >&5
5530 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5531 if test "${ac_cv_sizeof_char+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 if test "$cross_compiling" = yes; then
5535 # Depending upon the size, compute the lo and hi bounds.
5536 cat >conftest.
$ac_ext <<_ACEOF
5539 cat confdefs.h
>>conftest.
$ac_ext
5540 cat >>conftest.
$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 typedef char ac__type_sizeof_;
5547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5554 rm -f conftest.
$ac_objext
5555 if { (ac_try
="$ac_compile"
5557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 $ac_includes_default
5580 typedef char ac__type_sizeof_;
5584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5595 *) ac_try_echo
=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5600 grep -v '^ *+' conftest.er1
>conftest.err
5602 cat conftest.err
>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.
$ac_objext; then
5608 ac_hi
=$ac_mid; break
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.
$ac_ext >&5
5613 ac_lo
=`expr $ac_mid + 1`
5614 if test $ac_lo -le $ac_mid; then
5618 ac_mid
=`expr 2 '*' $ac_mid + 1`
5621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5634 typedef char ac__type_sizeof_;
5638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5645 rm -f conftest.
$ac_objext
5646 if { (ac_try
="$ac_compile"
5648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_compile") 2>conftest.er1
5654 grep -v '^ *+' conftest.er1 >conftest.err
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && {
5659 test -z "$ac_c_werror_flag" ||
5660 test ! -s conftest.err
5661 } && test -s conftest.$ac_objext; then
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 $ac_includes_default
5671 typedef char ac__type_sizeof_;
5675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5686 *) ac_try_echo
=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1
>conftest.err
5693 cat conftest.err
>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.
$ac_objext; then
5699 ac_lo
=$ac_mid; break
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.
$ac_ext >&5
5704 ac_hi
=`expr '(' $ac_mid ')' - 1`
5705 if test $ac_mid -le $ac_hi; then
5709 ac_mid
=`expr 2 '*' $ac_mid`
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.
$ac_ext >&5
5721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5725 # Binary search between lo and hi bounds.
5726 while test "x$ac_lo" != "x$ac_hi"; do
5727 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5728 cat >conftest.
$ac_ext <<_ACEOF
5731 cat confdefs.h
>>conftest.
$ac_ext
5732 cat >>conftest.
$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 $ac_includes_default
5735 typedef char ac__type_sizeof_;
5739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5746 rm -f conftest.
$ac_objext
5747 if { (ac_try
="$ac_compile"
5749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5768 ac_lo=`expr '(' $ac_mid ')' + 1`
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 ?*) ac_cv_sizeof_char=$ac_lo;;
5775 '') if test "$ac_cv_type_char" = yes; then
5776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5777 See \`config.log
' for more details." >&5
5778 echo "$as_me: error: cannot compute sizeof (char)
5779 See \`config.log' for more details.
" >&2;}
5780 { (exit 77); exit 77; }; }
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 $ac_includes_default
5793 typedef char ac__type_sizeof_;
5794 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5795 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5802 FILE *f = fopen ("conftest.val
", "w
");
5805 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5807 long int i = longval ();
5808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5810 fprintf (f, "%ld
\n", i);
5814 unsigned long int i = ulongval ();
5815 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5817 fprintf (f, "%lu
\n", i);
5819 return ferror (f) || fclose (f) != 0;
5825 rm -f conftest$ac_exeext
5826 if { (ac_try="$ac_link"
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_link") 2>&5
5834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5836 { (case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_try") 2>&5
5843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 ac_cv_sizeof_char=`cat conftest.val`
5847 echo "$as_me: program exited with status
$ac_status" >&5
5848 echo "$as_me: failed program was
:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5852 if test "$ac_cv_type_char" = yes; then
5853 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
5854 See \
`config.log' for more details." >&5
5855 echo "$as_me: error: cannot compute sizeof (char)
5856 See \`config.log
' for more details." >&2;}
5857 { (exit 77); exit 77; }; }
5862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5866 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5867 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5871 cat >>confdefs.h <<_ACEOF
5872 #define SIZEOF_CHAR $ac_cv_sizeof_char
5876 { echo "$as_me:$LINENO: checking for short" >&5
5877 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5878 if test "${ac_cv_type_short+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 cat >conftest.$ac_ext <<_ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5888 typedef short ac__type_new_;
5892 if ((ac__type_new_ *) 0)
5894 if (sizeof (ac__type_new_))
5900 rm -f conftest.$ac_objext
5901 if { (ac_try="$ac_compile"
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5909 grep -v '^
*+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest.$ac_objext; then
5917 ac_cv_type_short=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's
/^
/|
/' conftest.$ac_ext >&5
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5928 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5930 # The cast to long int works around a bug in the HP C Compiler
5931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5933 # This bug is HP SR number 8606223364.
5934 { echo "$as_me:$LINENO: checking size of short" >&5
5935 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5936 if test "${ac_cv_sizeof_short+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 if test "$cross_compiling" = yes; then
5940 # Depending upon the size, compute the lo and hi bounds.
5941 cat >conftest.
$ac_ext <<_ACEOF
5944 cat confdefs.h
>>conftest.
$ac_ext
5945 cat >>conftest.
$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 $ac_includes_default
5948 typedef short ac__type_sizeof_;
5952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5959 rm -f conftest.
$ac_objext
5960 if { (ac_try
="$ac_compile"
5962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_compile") 2>conftest.er1
5968 grep -v '^ *+' conftest.er1 >conftest.err
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && {
5973 test -z "$ac_c_werror_flag" ||
5974 test ! -s conftest.err
5975 } && test -s conftest.$ac_objext; then
5978 cat >conftest.$ac_ext <<_ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 $ac_includes_default
5985 typedef short ac__type_sizeof_;
5989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6000 *) ac_try_echo
=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1
>conftest.err
6007 cat conftest.err
>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.
$ac_objext; then
6013 ac_hi
=$ac_mid; break
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.
$ac_ext >&5
6018 ac_lo
=`expr $ac_mid + 1`
6019 if test $ac_lo -le $ac_mid; then
6023 ac_mid
=`expr 2 '*' $ac_mid + 1`
6026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.
$ac_ext >&5
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 $ac_includes_default
6039 typedef short ac__type_sizeof_;
6043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6050 rm -f conftest.
$ac_objext
6051 if { (ac_try
="$ac_compile"
6053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
6069 cat >conftest.$ac_ext <<_ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 $ac_includes_default
6076 typedef short ac__type_sizeof_;
6080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6087 rm -f conftest.$ac_objext
6088 if { (ac_try="$ac_compile"
6090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6091 *) ac_try_echo
=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1
>conftest.err
6098 cat conftest.err
>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.
$ac_objext; then
6104 ac_lo
=$ac_mid; break
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.
$ac_ext >&5
6109 ac_hi
=`expr '(' $ac_mid ')' - 1`
6110 if test $ac_mid -le $ac_hi; then
6114 ac_mid
=`expr 2 '*' $ac_mid`
6117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.
$ac_ext >&5
6126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6130 # Binary search between lo and hi bounds.
6131 while test "x$ac_lo" != "x$ac_hi"; do
6132 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6133 cat >conftest.
$ac_ext <<_ACEOF
6136 cat confdefs.h
>>conftest.
$ac_ext
6137 cat >>conftest.
$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 $ac_includes_default
6140 typedef short ac__type_sizeof_;
6144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6151 rm -f conftest.
$ac_objext
6152 if { (ac_try
="$ac_compile"
6154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_lo=`expr '(' $ac_mid ')' + 1`
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ?*) ac_cv_sizeof_short=$ac_lo;;
6180 '') if test "$ac_cv_type_short" = yes; then
6181 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6182 See \`config.log
' for more details." >&5
6183 echo "$as_me: error: cannot compute sizeof (short)
6184 See \`config.log' for more details.
" >&2;}
6185 { (exit 77); exit 77; }; }
6187 ac_cv_sizeof_short=0
6191 cat >conftest.$ac_ext <<_ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6198 typedef short ac__type_sizeof_;
6199 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6200 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6207 FILE *f = fopen ("conftest.val
", "w
");
6210 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6212 long int i = longval ();
6213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6215 fprintf (f, "%ld
\n", i);
6219 unsigned long int i = ulongval ();
6220 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6222 fprintf (f, "%lu
\n", i);
6224 return ferror (f) || fclose (f) != 0;
6230 rm -f conftest$ac_exeext
6231 if { (ac_try="$ac_link"
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_link") 2>&5
6239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6241 { (case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_try") 2>&5
6248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_cv_sizeof_short=`cat conftest.val`
6252 echo "$as_me: program exited with status
$ac_status" >&5
6253 echo "$as_me: failed program was
:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6257 if test "$ac_cv_type_short" = yes; then
6258 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
6259 See \
`config.log' for more details." >&5
6260 echo "$as_me: error: cannot compute sizeof (short)
6261 See \`config.log
' for more details." >&2;}
6262 { (exit 77); exit 77; }; }
6264 ac_cv_sizeof_short=0
6267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6272 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6276 cat >>confdefs.h <<_ACEOF
6277 #define SIZEOF_SHORT $ac_cv_sizeof_short
6281 { echo "$as_me:$LINENO: checking for int" >&5
6282 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6283 if test "${ac_cv_type_int+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6293 typedef int ac__type_new_;
6297 if ((ac__type_new_ *) 0)
6299 if (sizeof (ac__type_new_))
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6314 grep -v '^
*+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && {
6319 test -z "$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6321 } && test -s conftest.$ac_objext; then
6324 echo "$as_me: failed program was:" >&5
6325 sed 's
/^
/|
/' conftest.$ac_ext >&5
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6333 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6335 # The cast to long int works around a bug in the HP C Compiler
6336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6338 # This bug is HP SR number 8606223364.
6339 { echo "$as_me:$LINENO: checking size of int" >&5
6340 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6341 if test "${ac_cv_sizeof_int+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 if test "$cross_compiling" = yes; then
6345 # Depending upon the size, compute the lo and hi bounds.
6346 cat >conftest.
$ac_ext <<_ACEOF
6349 cat confdefs.h
>>conftest.
$ac_ext
6350 cat >>conftest.
$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 typedef int ac__type_sizeof_;
6357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6364 rm -f conftest.
$ac_objext
6365 if { (ac_try
="$ac_compile"
6367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 typedef int ac__type_sizeof_;
6394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6401 rm -f conftest.$ac_objext
6402 if { (ac_try="$ac_compile"
6404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6405 *) ac_try_echo
=$ac_try;;
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_compile") 2>conftest.er1
6410 grep -v '^ *+' conftest.er1
>conftest.err
6412 cat conftest.err
>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && {
6415 test -z "$ac_c_werror_flag" ||
6416 test ! -s conftest.err
6417 } && test -s conftest.
$ac_objext; then
6418 ac_hi
=$ac_mid; break
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.
$ac_ext >&5
6423 ac_lo
=`expr $ac_mid + 1`
6424 if test $ac_lo -le $ac_mid; then
6428 ac_mid
=`expr 2 '*' $ac_mid + 1`
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.
$ac_ext >&5
6437 cat >conftest.
$ac_ext <<_ACEOF
6440 cat confdefs.h
>>conftest.
$ac_ext
6441 cat >>conftest.
$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 $ac_includes_default
6444 typedef int ac__type_sizeof_;
6448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6455 rm -f conftest.
$ac_objext
6456 if { (ac_try
="$ac_compile"
6458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
6474 cat >conftest.$ac_ext <<_ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 $ac_includes_default
6481 typedef int ac__type_sizeof_;
6485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6496 *) ac_try_echo
=$ac_try;;
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compile") 2>conftest.er1
6501 grep -v '^ *+' conftest.er1
>conftest.err
6503 cat conftest.err
>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest.
$ac_objext; then
6509 ac_lo
=$ac_mid; break
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.
$ac_ext >&5
6514 ac_hi
=`expr '(' $ac_mid ')' - 1`
6515 if test $ac_mid -le $ac_hi; then
6519 ac_mid
=`expr 2 '*' $ac_mid`
6522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.
$ac_ext >&5
6531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 # Binary search between lo and hi bounds.
6536 while test "x$ac_lo" != "x$ac_hi"; do
6537 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6538 cat >conftest.
$ac_ext <<_ACEOF
6541 cat confdefs.h
>>conftest.
$ac_ext
6542 cat >>conftest.
$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 $ac_includes_default
6545 typedef int ac__type_sizeof_;
6549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6556 rm -f conftest.
$ac_objext
6557 if { (ac_try
="$ac_compile"
6559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_lo=`expr '(' $ac_mid ')' + 1`
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 ?*) ac_cv_sizeof_int=$ac_lo;;
6585 '') if test "$ac_cv_type_int" = yes; then
6586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6587 See \`config.log
' for more details." >&5
6588 echo "$as_me: error: cannot compute sizeof (int)
6589 See \`config.log' for more details.
" >&2;}
6590 { (exit 77); exit 77; }; }
6596 cat >conftest.$ac_ext <<_ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 $ac_includes_default
6603 typedef int ac__type_sizeof_;
6604 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6605 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6612 FILE *f = fopen ("conftest.val
", "w
");
6615 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6617 long int i = longval ();
6618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6620 fprintf (f, "%ld
\n", i);
6624 unsigned long int i = ulongval ();
6625 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6627 fprintf (f, "%lu
\n", i);
6629 return ferror (f) || fclose (f) != 0;
6635 rm -f conftest$ac_exeext
6636 if { (ac_try="$ac_link"
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_link") 2>&5
6644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_try") 2>&5
6653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_sizeof_int=`cat conftest.val`
6657 echo "$as_me: program exited with status
$ac_status" >&5
6658 echo "$as_me: failed program was
:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6662 if test "$ac_cv_type_int" = yes; then
6663 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6664 See \
`config.log' for more details." >&5
6665 echo "$as_me: error: cannot compute sizeof (int)
6666 See \`config.log
' for more details." >&2;}
6667 { (exit 77); exit 77; }; }
6672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6676 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6677 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6681 cat >>confdefs.h <<_ACEOF
6682 #define SIZEOF_INT $ac_cv_sizeof_int
6686 { echo "$as_me:$LINENO: checking for long" >&5
6687 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6688 if test "${ac_cv_type_long+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 cat >conftest.$ac_ext <<_ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6698 typedef long ac__type_new_;
6702 if ((ac__type_new_ *) 0)
6704 if (sizeof (ac__type_new_))
6710 rm -f conftest.$ac_objext
6711 if { (ac_try="$ac_compile"
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_compile") 2>conftest.er1
6719 grep -v '^
*+' conftest.er1 >conftest.err
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest.$ac_objext; then
6729 echo "$as_me: failed program was:" >&5
6730 sed 's
/^
/|
/' conftest.$ac_ext >&5
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6738 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6740 # The cast to long int works around a bug in the HP C Compiler
6741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6743 # This bug is HP SR number 8606223364.
6744 { echo "$as_me:$LINENO: checking size of long" >&5
6745 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6746 if test "${ac_cv_sizeof_long+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 if test "$cross_compiling" = yes; then
6750 # Depending upon the size, compute the lo and hi bounds.
6751 cat >conftest.
$ac_ext <<_ACEOF
6754 cat confdefs.h
>>conftest.
$ac_ext
6755 cat >>conftest.
$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6758 typedef long ac__type_sizeof_;
6762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6769 rm -f conftest.
$ac_objext
6770 if { (ac_try
="$ac_compile"
6772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_compile") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1 >conftest.err
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest.$ac_objext; then
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6795 typedef long ac__type_sizeof_;
6799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6810 *) ac_try_echo
=$ac_try;;
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_compile") 2>conftest.er1
6815 grep -v '^ *+' conftest.er1
>conftest.err
6817 cat conftest.err
>&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
6822 } && test -s conftest.
$ac_objext; then
6823 ac_hi
=$ac_mid; break
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.
$ac_ext >&5
6828 ac_lo
=`expr $ac_mid + 1`
6829 if test $ac_lo -le $ac_mid; then
6833 ac_mid
=`expr 2 '*' $ac_mid + 1`
6836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.
$ac_ext >&5
6842 cat >conftest.
$ac_ext <<_ACEOF
6845 cat confdefs.h
>>conftest.
$ac_ext
6846 cat >>conftest.
$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 $ac_includes_default
6849 typedef long ac__type_sizeof_;
6853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6860 rm -f conftest.
$ac_objext
6861 if { (ac_try
="$ac_compile"
6863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_compile") 2>conftest.er1
6869 grep -v '^ *+' conftest.er1 >conftest.err
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_c_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest.$ac_objext; then
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6886 typedef long ac__type_sizeof_;
6890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6901 *) ac_try_echo
=$ac_try;;
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1
>conftest.err
6908 cat conftest.err
>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.
$ac_objext; then
6914 ac_lo
=$ac_mid; break
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.
$ac_ext >&5
6919 ac_hi
=`expr '(' $ac_mid ')' - 1`
6920 if test $ac_mid -le $ac_hi; then
6924 ac_mid
=`expr 2 '*' $ac_mid`
6927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.
$ac_ext >&5
6936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6940 # Binary search between lo and hi bounds.
6941 while test "x$ac_lo" != "x$ac_hi"; do
6942 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6943 cat >conftest.
$ac_ext <<_ACEOF
6946 cat confdefs.h
>>conftest.
$ac_ext
6947 cat >>conftest.
$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6950 typedef long ac__type_sizeof_;
6954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6961 rm -f conftest.
$ac_objext
6962 if { (ac_try
="$ac_compile"
6964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_lo=`expr '(' $ac_mid ')' + 1`
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 ?*) ac_cv_sizeof_long=$ac_lo;;
6990 '') if test "$ac_cv_type_long" = yes; then
6991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6992 See \`config.log
' for more details." >&5
6993 echo "$as_me: error: cannot compute sizeof (long)
6994 See \`config.log' for more details.
" >&2;}
6995 { (exit 77); exit 77; }; }
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 $ac_includes_default
7008 typedef long ac__type_sizeof_;
7009 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7010 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7017 FILE *f = fopen ("conftest.val
", "w
");
7020 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7022 long int i = longval ();
7023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7025 fprintf (f, "%ld
\n", i);
7029 unsigned long int i = ulongval ();
7030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7032 fprintf (f, "%lu
\n", i);
7034 return ferror (f) || fclose (f) != 0;
7040 rm -f conftest$ac_exeext
7041 if { (ac_try="$ac_link"
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_link") 2>&5
7049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7051 { (case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_try") 2>&5
7058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_cv_sizeof_long=`cat conftest.val`
7062 echo "$as_me: program exited with status
$ac_status" >&5
7063 echo "$as_me: failed program was
:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7067 if test "$ac_cv_type_long" = yes; then
7068 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7069 See \
`config.log' for more details." >&5
7070 echo "$as_me: error: cannot compute sizeof (long)
7071 See \`config.log
' for more details." >&2;}
7072 { (exit 77); exit 77; }; }
7077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7081 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7082 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7086 cat >>confdefs.h <<_ACEOF
7087 #define SIZEOF_LONG $ac_cv_sizeof_long
7091 { echo "$as_me:$LINENO: checking for long long" >&5
7092 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7093 if test "${ac_cv_type_long_long+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 $ac_includes_default
7103 typedef long long ac__type_new_;
7107 if ((ac__type_new_ *) 0)
7109 if (sizeof (ac__type_new_))
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_compile") 2>conftest.er1
7124 grep -v '^
*+' conftest.er1 >conftest.err
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
7132 ac_cv_type_long_long=yes
7134 echo "$as_me: failed program was:" >&5
7135 sed 's
/^
/|
/' conftest.$ac_ext >&5
7137 ac_cv_type_long_long=no
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7143 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7145 # The cast to long int works around a bug in the HP C Compiler
7146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7148 # This bug is HP SR number 8606223364.
7149 { echo "$as_me:$LINENO: checking size of long long" >&5
7150 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7151 if test "${ac_cv_sizeof_long_long+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 if test "$cross_compiling" = yes; then
7155 # Depending upon the size, compute the lo and hi bounds.
7156 cat >conftest.
$ac_ext <<_ACEOF
7159 cat confdefs.h
>>conftest.
$ac_ext
7160 cat >>conftest.
$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 $ac_includes_default
7163 typedef long long ac__type_sizeof_;
7167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7174 rm -f conftest.
$ac_objext
7175 if { (ac_try
="$ac_compile"
7177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181 (eval "$ac_compile") 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest.$ac_objext; then
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7200 typedef long long ac__type_sizeof_;
7204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7211 rm -f conftest.$ac_objext
7212 if { (ac_try="$ac_compile"
7214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7215 *) ac_try_echo
=$ac_try;;
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7220 grep -v '^ *+' conftest.er1
>conftest.err
7222 cat conftest.err
>&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.
$ac_objext; then
7228 ac_hi
=$ac_mid; break
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.
$ac_ext >&5
7233 ac_lo
=`expr $ac_mid + 1`
7234 if test $ac_lo -le $ac_mid; then
7238 ac_mid
=`expr 2 '*' $ac_mid + 1`
7241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.
$ac_ext >&5
7247 cat >conftest.
$ac_ext <<_ACEOF
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7254 typedef long long ac__type_sizeof_;
7258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7265 rm -f conftest.
$ac_objext
7266 if { (ac_try
="$ac_compile"
7268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7291 typedef long long ac__type_sizeof_;
7295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7302 rm -f conftest.$ac_objext
7303 if { (ac_try="$ac_compile"
7305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7306 *) ac_try_echo
=$ac_try;;
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7311 grep -v '^ *+' conftest.er1
>conftest.err
7313 cat conftest.err
>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.
$ac_objext; then
7319 ac_lo
=$ac_mid; break
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.
$ac_ext >&5
7324 ac_hi
=`expr '(' $ac_mid ')' - 1`
7325 if test $ac_mid -le $ac_hi; then
7329 ac_mid
=`expr 2 '*' $ac_mid`
7332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.
$ac_ext >&5
7341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7345 # Binary search between lo and hi bounds.
7346 while test "x$ac_lo" != "x$ac_hi"; do
7347 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7348 cat >conftest.
$ac_ext <<_ACEOF
7351 cat confdefs.h
>>conftest.
$ac_ext
7352 cat >>conftest.
$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 $ac_includes_default
7355 typedef long long ac__type_sizeof_;
7359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7366 rm -f conftest.
$ac_objext
7367 if { (ac_try
="$ac_compile"
7369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_lo=`expr '(' $ac_mid ')' + 1`
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7395 '') if test "$ac_cv_type_long_long" = yes; then
7396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7397 See \`config.log
' for more details." >&5
7398 echo "$as_me: error: cannot compute sizeof (long long)
7399 See \`config.log' for more details.
" >&2;}
7400 { (exit 77); exit 77; }; }
7402 ac_cv_sizeof_long_long=0
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 $ac_includes_default
7413 typedef long long ac__type_sizeof_;
7414 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7415 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7422 FILE *f = fopen ("conftest.val
", "w
");
7425 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7427 long int i = longval ();
7428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7430 fprintf (f, "%ld
\n", i);
7434 unsigned long int i = ulongval ();
7435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7437 fprintf (f, "%lu
\n", i);
7439 return ferror (f) || fclose (f) != 0;
7445 rm -f conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_link") 2>&5
7454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7456 { (case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_try") 2>&5
7463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_sizeof_long_long=`cat conftest.val`
7467 echo "$as_me: program exited with status
$ac_status" >&5
7468 echo "$as_me: failed program was
:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7472 if test "$ac_cv_type_long_long" = yes; then
7473 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
7474 See \
`config.log' for more details." >&5
7475 echo "$as_me: error: cannot compute sizeof (long long)
7476 See \`config.log
' for more details." >&2;}
7477 { (exit 77); exit 77; }; }
7479 ac_cv_sizeof_long_long=0
7482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7486 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7487 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7491 cat >>confdefs.h <<_ACEOF
7492 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7498 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7499 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7500 if test "${ac_cv_addrinfo+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cat >conftest.$ac_ext <<_ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7528 grep -v '^
*+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7538 echo "$as_me: failed program was:" >&5
7539 sed 's
/^
/|
/' conftest.$ac_ext >&5
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7548 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7549 if test $ac_cv_addrinfo = yes; then
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_ADDRINFO 1
7555 cat >>confdefs.h <<\_ACEOF
7556 #define NEED_ADDRINFO_H 1
7561 if test "$ac_cv_addrinfo" = no; then
7562 missing_includes=yes
7566 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7567 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7568 if test "${ac_cv_maxserv+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583 $EGREP "yes" >/dev/null 2>&1; then
7592 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7593 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7594 if test $ac_cv_maxserv != yes; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define NEED_ADDRINFO_H 1
7601 if test "$ac_cv_maxserv" = no; then
7602 missing_includes=yes
7606 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7607 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7608 if test "${ac_cv_namereqd+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623 $EGREP "yes" >/dev/null 2>&1; then
7632 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7633 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7634 if test $ac_cv_namereqd != yes; then
7635 cat >>confdefs.h <<\_ACEOF
7636 #define NEED_ADDRINFO_H 1
7641 if test "$ac_cv_namereqd" = no; then
7642 missing_includes=yes
7646 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7647 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7648 if test "${ac_cv_sa_storage+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7658 # include <sys/types.h>
7659 # include <sys/socket.h>
7663 struct sockaddr_storage s
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7677 grep -v '^
*+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 ac_cv_sa_storage=yes
7687 echo "$as_me: failed program was:" >&5
7688 sed 's
/^
/|
/' conftest.$ac_ext >&5
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7697 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7698 if test $ac_cv_sa_storage = yes; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_SOCKADDR_STORAGE 1
7705 if test "$ac_cv_sa_storage" = no; then
7706 missing_includes=yes
7715 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 cat >conftest.$ac_ext <<_ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7731 #define $ac_func innocuous_$ac_func
7733 /* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char $ac_func (); below.
7735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7736 <limits.h> exists even on freestanding compilers. */
7739 # include <limits.h>
7741 # include <assert.h>
7746 /* Override any GCC internal prototype to avoid an error.
7747 Use char because int might match the return type of a GCC
7748 builtin and then its argument prototype would still apply. */
7753 /* The GNU C library defines this for functions which it implements
7754 to always fail with ENOSYS. Some functions are actually named
7755 something starting with __ and the normal name is an alias. */
7756 #if defined __stub_$ac_func || defined __stub___$ac_func
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_link") 2>conftest.er1
7777 grep -v '^
*+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && {
7782 test -z "$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 } && test -s conftest$ac_exeext &&
7785 $as_test_x conftest$ac_exeext; then
7786 eval "$as_ac_var=yes"
7788 echo "$as_me: failed program was:" >&5
7789 sed 's
/^
/|
/' conftest.$ac_ext >&5
7791 eval "$as_ac_var=no"
7794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7795 conftest$ac_exeext conftest.$ac_ext
7797 ac_res=`eval echo '${'$as_ac_var'}'`
7798 { echo "$as_me:$LINENO: result: $ac_res" >&5
7799 echo "${ECHO_T}$ac_res" >&6; }
7800 if test `eval echo '${'$as_ac_var'}'` = yes; then
7801 cat >>confdefs.h <<_ACEOF
7802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7806 case " $LIBOBJS " in
7807 *" $ac_func.$ac_objext "* ) ;;
7808 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7819 for ac_func in fork vfork strftime
7821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7835 #define $ac_func innocuous_$ac_func
7837 /* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char $ac_func (); below.
7839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 <limits.h> exists even on freestanding compilers. */
7843 # include <limits.h>
7845 # include <assert.h>
7850 /* Override any GCC internal prototype to avoid an error.
7851 Use char because int might match the return type of a GCC
7852 builtin and then its argument prototype would still apply. */
7857 /* The GNU C library defines this for functions which it implements
7858 to always fail with ENOSYS. Some functions are actually named
7859 something starting with __ and the normal name is an alias. */
7860 #if defined __stub_$ac_func || defined __stub___$ac_func
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (ac_try="$ac_link"
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_link") 2>conftest.er1
7881 grep -v '^
*+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest$ac_exeext &&
7889 $as_test_x conftest$ac_exeext; then
7890 eval "$as_ac_var=yes"
7892 echo "$as_me: failed program was:" >&5
7893 sed 's
/^
/|
/' conftest.$ac_ext >&5
7895 eval "$as_ac_var=no"
7898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7899 conftest$ac_exeext conftest.$ac_ext
7901 ac_res=`eval echo '${'$as_ac_var'}'`
7902 { echo "$as_me:$LINENO: result: $ac_res" >&5
7903 echo "${ECHO_T}$ac_res" >&6; }
7904 if test `eval echo '${'$as_ac_var'}'` = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7914 for ac_func in setlinebuf alarm
7916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7930 #define $ac_func innocuous_$ac_func
7932 /* System header to define __stub macros and hopefully few prototypes,
7933 which can conflict with char $ac_func (); below.
7934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7935 <limits.h> exists even on freestanding compilers. */
7938 # include <limits.h>
7940 # include <assert.h>
7945 /* Override any GCC internal prototype to avoid an error.
7946 Use char because int might match the return type of a GCC
7947 builtin and then its argument prototype would still apply. */
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined __stub_$ac_func || defined __stub___$ac_func
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_link") 2>conftest.er1
7976 grep -v '^
*+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && {
7981 test -z "$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7983 } && test -s conftest$ac_exeext &&
7984 $as_test_x conftest$ac_exeext; then
7985 eval "$as_ac_var=yes"
7987 echo "$as_me: failed program was:" >&5
7988 sed 's
/^
/|
/' conftest.$ac_ext >&5
7990 eval "$as_ac_var=no"
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7996 ac_res=`eval echo '${'$as_ac_var'}'`
7997 { echo "$as_me:$LINENO: result: $ac_res" >&5
7998 echo "${ECHO_T}$ac_res" >&6; }
7999 if test `eval echo '${'$as_ac_var'}'` = yes; then
8000 cat >>confdefs.h <<_ACEOF
8001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8011 for ac_func in vsnprintf snprintf
8013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8027 #define $ac_func innocuous_$ac_func
8029 /* System header to define __stub macros and hopefully few prototypes,
8030 which can conflict with char $ac_func (); below.
8031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8032 <limits.h> exists even on freestanding compilers. */
8035 # include <limits.h>
8037 # include <assert.h>
8042 /* Override any GCC internal prototype to avoid an error.
8043 Use char because int might match the return type of a GCC
8044 builtin and then its argument prototype would still apply. */
8049 /* The GNU C library defines this for functions which it implements
8050 to always fail with ENOSYS. Some functions are actually named
8051 something starting with __ and the normal name is an alias. */
8052 #if defined __stub_$ac_func || defined __stub___$ac_func
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8073 grep -v '^
*+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
8082 eval "$as_ac_var=yes"
8084 echo "$as_me: failed program was:" >&5
8085 sed 's
/^
/|
/' conftest.$ac_ext >&5
8087 eval "$as_ac_var=no"
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091 conftest$ac_exeext conftest.$ac_ext
8093 ac_res=`eval echo '${'$as_ac_var'}'`
8094 { echo "$as_me:$LINENO: result: $ac_res" >&5
8095 echo "${ECHO_T}$ac_res" >&6; }
8096 if test `eval echo '${'$as_ac_var'}'` = yes; then
8097 cat >>confdefs.h <<_ACEOF
8098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8106 if test $needsnprintf = yes; then
8107 case " $LIBOBJS " in
8108 *" snprintf.$ac_objext "* ) ;;
8109 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8116 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8117 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8118 if test "${ac_cv_type_signal+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 #include <sys/types.h>
8133 return *(signal (0, 0)) (0) == 1;
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8147 grep -v '^
*+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.$ac_objext; then
8155 ac_cv_type_signal=int
8157 echo "$as_me: failed program was:" >&5
8158 sed 's
/^
/|
/' conftest.$ac_ext >&5
8160 ac_cv_type_signal=void
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8166 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8168 cat >>confdefs.h <<_ACEOF
8169 #define RETSIGTYPE $ac_cv_type_signal
8173 if test "$ac_cv_type_signal" = void ; then
8175 cat >>confdefs.h <<\_ACEOF
8181 cat >>confdefs.h <<\_ACEOF
8182 #define RETSIGVAL (0)
8190 cat >>confdefs.h <<\_ACEOF
8191 #define _BSD_SIGNALS 1
8198 for ac_func in sigaction
8200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8214 #define $ac_func innocuous_$ac_func
8216 /* System header to define __stub macros and hopefully few prototypes,
8217 which can conflict with char $ac_func (); below.
8218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8219 <limits.h> exists even on freestanding compilers. */
8222 # include <limits.h>
8224 # include <assert.h>
8229 /* Override any GCC internal prototype to avoid an error.
8230 Use char because int might match the return type of a GCC
8231 builtin and then its argument prototype would still apply. */
8236 /* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239 #if defined __stub_$ac_func || defined __stub___$ac_func
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (ac_try="$ac_link"
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>conftest.er1
8260 grep -v '^
*+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest$ac_exeext &&
8268 $as_test_x conftest$ac_exeext; then
8269 eval "$as_ac_var=yes"
8271 echo "$as_me: failed program was:" >&5
8272 sed 's
/^
/|
/' conftest.$ac_ext >&5
8274 eval "$as_ac_var=no"
8277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8278 conftest$ac_exeext conftest.$ac_ext
8280 ac_res=`eval echo '${'$as_ac_var'}'`
8281 { echo "$as_me:$LINENO: result: $ac_res" >&5
8282 echo "${ECHO_T}$ac_res" >&6; }
8283 if test `eval echo '${'$as_ac_var'}'` = yes; then
8284 cat >>confdefs.h <<_ACEOF
8285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8291 if test $ac_cv_func_sigaction = no ; then
8293 for ac_func in sigset
8295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8309 #define $ac_func innocuous_$ac_func
8311 /* System header to define __stub macros and hopefully few prototypes,
8312 which can conflict with char $ac_func (); below.
8313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8314 <limits.h> exists even on freestanding compilers. */
8317 # include <limits.h>
8319 # include <assert.h>
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8331 /* The GNU C library defines this for functions which it implements
8332 to always fail with ENOSYS. Some functions are actually named
8333 something starting with __ and the normal name is an alias. */
8334 #if defined __stub_$ac_func || defined __stub___$ac_func
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_link") 2>conftest.er1
8355 grep -v '^
*+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest$ac_exeext &&
8363 $as_test_x conftest$ac_exeext; then
8364 eval "$as_ac_var=yes"
8366 echo "$as_me: failed program was:" >&5
8367 sed 's
/^
/|
/' conftest.$ac_ext >&5
8369 eval "$as_ac_var=no"
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373 conftest$ac_exeext conftest.$ac_ext
8375 ac_res=`eval echo '${'$as_ac_var'}'`
8376 { echo "$as_me:$LINENO: result: $ac_res" >&5
8377 echo "${ECHO_T}$ac_res" >&6; }
8378 if test `eval echo '${'$as_ac_var'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8390 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8391 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8392 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 ac_func_search_save_LIBS=$LIBS
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8403 /* Override any GCC internal prototype to avoid an error.
8404 Use char because int might match the return type of a GCC
8405 builtin and then its argument prototype would still apply. */
8413 return dnet_htoa ();
8418 for ac_lib in '' dnet; do
8419 if test -z "$ac_lib"; then
8420 ac_res="none required"
8423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_link") 2>conftest.er1
8434 grep -v '^
*+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest$ac_exeext &&
8442 $as_test_x conftest$ac_exeext; then
8443 ac_cv_search_dnet_htoa=$ac_res
8445 echo "$as_me: failed program was:" >&5
8446 sed 's
/^
/|
/' conftest.$ac_ext >&5
8451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8453 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8457 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8460 ac_cv_search_dnet_htoa=no
8463 LIBS=$ac_func_search_save_LIBS
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8466 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8467 ac_res=$ac_cv_search_dnet_htoa
8468 if test "$ac_res" != no; then
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_DNET_HTOA 1
8478 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8479 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8480 if test "${ac_cv_lib_rpc_main+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 ac_check_lib_save_LIBS=$LIBS
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (ac_try="$ac_link"
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_link") 2>conftest.er1
8510 grep -v '^
*+' conftest.er1 >conftest.err
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } && {
8515 test -z "$ac_c_werror_flag" ||
8516 test ! -s conftest.err
8517 } && test -s conftest$ac_exeext &&
8518 $as_test_x conftest$ac_exeext; then
8519 ac_cv_lib_rpc_main=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's
/^
/|
/' conftest.$ac_ext >&5
8524 ac_cv_lib_rpc_main=no
8527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8528 conftest$ac_exeext conftest.$ac_ext
8529 LIBS=$ac_check_lib_save_LIBS
8531 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8532 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8533 if test $ac_cv_lib_rpc_main = yes; then
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_LIBRPC 1
8542 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8543 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8544 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_func_search_save_LIBS=$LIBS
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8555 /* Override any GCC internal prototype to avoid an error.
8556 Use char because int might match the return type of a GCC
8557 builtin and then its argument prototype would still apply. */
8561 char getrpcbynumber ();
8565 return getrpcbynumber ();
8570 for ac_lib in '' nsl; do
8571 if test -z "$ac_lib"; then
8572 ac_res="none required"
8575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (ac_try="$ac_link"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_link") 2>conftest.er1
8586 grep -v '^
*+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest$ac_exeext &&
8594 $as_test_x conftest$ac_exeext; then
8595 ac_cv_search_getrpcbynumber=$ac_res
8597 echo "$as_me: failed program was:" >&5
8598 sed 's
/^
/|
/' conftest.$ac_ext >&5
8603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8605 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8609 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8612 ac_cv_search_getrpcbynumber=no
8615 LIBS=$ac_func_search_save_LIBS
8617 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8618 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8619 ac_res=$ac_cv_search_getrpcbynumber
8620 if test "$ac_res" != no; then
8621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8622 cat >>confdefs.h <<\_ACEOF
8623 #define HAVE_GETRPCBYNUMBER 1
8631 # Most operating systems have gethostbyname() in the default searched
8632 # libraries (i.e. libc):
8633 # Some OSes (eg. Solaris) place it in libnsl
8634 # Some strange OSes (SINIX) have it in libsocket:
8635 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8636 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8637 if test "${ac_cv_search_gethostbyname+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 ac_func_search_save_LIBS=$LIBS
8641 cat >conftest.$ac_ext <<_ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 /* Override any GCC internal prototype to avoid an error.
8649 Use char because int might match the return type of a GCC
8650 builtin and then its argument prototype would still apply. */
8654 char gethostbyname ();
8658 return gethostbyname ();
8663 for ac_lib in '' nsl socket resolv; do
8664 if test -z "$ac_lib"; then
8665 ac_res="none required"
8668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (ac_try="$ac_link"
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_link") 2>conftest.er1
8679 grep -v '^
*+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest$ac_exeext &&
8687 $as_test_x conftest$ac_exeext; then
8688 ac_cv_search_gethostbyname=$ac_res
8690 echo "$as_me: failed program was:" >&5
8691 sed 's
/^
/|
/' conftest.$ac_ext >&5
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8698 if test "${ac_cv_search_gethostbyname+set}" = set; then
8702 if test "${ac_cv_search_gethostbyname+set}" = set; then
8705 ac_cv_search_gethostbyname=no
8708 LIBS=$ac_func_search_save_LIBS
8710 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8711 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8712 ac_res=$ac_cv_search_gethostbyname
8713 if test "$ac_res" != no; then
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8718 # Unfortunately libsocket sometimes depends on libnsl and
8719 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8720 if test "$ac_cv_search_gethostbyname" = "no"
8722 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8723 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8724 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 ac_check_lib_save_LIBS
=$LIBS
8728 LIBS
="-lsocket -lnsl $LIBS"
8729 cat >conftest.
$ac_ext <<_ACEOF
8732 cat confdefs.h
>>conftest.
$ac_ext
8733 cat >>conftest.
$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
8742 char gethostbyname ();
8746 return gethostbyname ();
8751 rm -f conftest.
$ac_objext conftest
$ac_exeext
8752 if { (ac_try
="$ac_link"
8754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest$ac_exeext &&
8768 $as_test_x conftest$ac_exeext; then
8769 ac_cv_lib_socket_gethostbyname=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_lib_socket_gethostbyname=no
8777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8781 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8782 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8783 if test $ac_cv_lib_socket_gethostbyname = yes; then
8784 LIBS="-lsocket -lnsl $LIBS"
8788 { echo "$as_me:$LINENO: checking for library containing socket" >&5
8789 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8790 if test "${ac_cv_search_socket+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_func_search_save_LIBS=$LIBS
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8801 /* Override any GCC internal prototype to avoid an error.
8802 Use char because int might match the return type of a GCC
8803 builtin and then its argument prototype would still apply. */
8816 for ac_lib in '' socket; do
8817 if test -z "$ac_lib"; then
8818 ac_res="none required"
8821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (ac_try="$ac_link"
8826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8827 *) ac_try_echo
=$ac_try;;
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_link") 2>conftest.er1
8832 grep -v '^ *+' conftest.er1
>conftest.err
8834 cat conftest.err
>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest
$ac_exeext &&
8840 $as_test_x conftest
$ac_exeext; then
8841 ac_cv_search_socket
=$ac_res
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.
$ac_ext >&5
8849 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8851 if test "${ac_cv_search_socket+set}" = set; then
8855 if test "${ac_cv_search_socket+set}" = set; then
8858 ac_cv_search_socket
=no
8861 LIBS
=$ac_func_search_save_LIBS
8863 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8864 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
8865 ac_res
=$ac_cv_search_socket
8866 if test "$ac_res" != no
; then
8867 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8870 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8871 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
8872 if test "${ac_cv_lib_socket_socket+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 ac_check_lib_save_LIBS
=$LIBS
8876 LIBS
="-lsocket -lnsl $LIBS"
8877 cat >conftest.
$ac_ext <<_ACEOF
8880 cat confdefs.h
>>conftest.
$ac_ext
8881 cat >>conftest.
$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 /* Override any GCC internal prototype to avoid an error.
8885 Use char because int might match the return type of a GCC
8886 builtin and then its argument prototype would still apply. */
8899 rm -f conftest.
$ac_objext conftest
$ac_exeext
8900 if { (ac_try
="$ac_link"
8902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_link") 2>conftest.er1
8908 grep -v '^ *+' conftest.er1 >conftest.err
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest$ac_exeext &&
8916 $as_test_x conftest$ac_exeext; then
8917 ac_cv_lib_socket_socket=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_lib_socket_socket=no
8925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8929 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8930 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
8931 if test $ac_cv_lib_socket_socket = yes; then
8932 LIBS="-lsocket -lnsl $LIBS"
8937 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8938 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8939 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
8940 if test "${ac_cv_search_putmsg+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 ac_func_search_save_LIBS=$LIBS
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8951 /* Override any GCC internal prototype to avoid an error.
8952 Use char because int might match the return type of a GCC
8953 builtin and then its argument prototype would still apply. */
8966 for ac_lib in '' str; do
8967 if test -z "$ac_lib"; then
8968 ac_res="none required"
8971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (ac_try="$ac_link"
8976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8977 *) ac_try_echo
=$ac_try;;
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_link") 2>conftest.er1
8982 grep -v '^ *+' conftest.er1
>conftest.err
8984 cat conftest.err
>&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } && {
8987 test -z "$ac_c_werror_flag" ||
8988 test ! -s conftest.err
8989 } && test -s conftest
$ac_exeext &&
8990 $as_test_x conftest
$ac_exeext; then
8991 ac_cv_search_putmsg
=$ac_res
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.
$ac_ext >&5
8999 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9001 if test "${ac_cv_search_putmsg+set}" = set; then
9005 if test "${ac_cv_search_putmsg+set}" = set; then
9008 ac_cv_search_putmsg
=no
9011 LIBS
=$ac_func_search_save_LIBS
9013 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9014 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9015 ac_res
=$ac_cv_search_putmsg
9016 if test "$ac_res" != no
; then
9017 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9024 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9025 if test -f $pfopen ; then
9027 for ac_func
in pfopen
9029 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9032 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.
$ac_ext <<_ACEOF
9038 cat confdefs.h
>>conftest.
$ac_ext
9039 cat >>conftest.
$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9043 #define $ac_func innocuous_$ac_func
9045 /* System header to define __stub macros and hopefully few prototypes,
9046 which can conflict with char $ac_func (); below.
9047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9048 <limits.h> exists even on freestanding compilers. */
9051 # include <limits.h>
9053 # include <assert.h>
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9065 /* The GNU C library defines this for functions which it implements
9066 to always fail with ENOSYS. Some functions are actually named
9067 something starting with __ and the normal name is an alias. */
9068 #if defined __stub_$ac_func || defined __stub___$ac_func
9080 rm -f conftest.
$ac_objext conftest
$ac_exeext
9081 if { (ac_try
="$ac_link"
9083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9087 (eval "$ac_link") 2>conftest.er1
9089 grep -v '^ *+' conftest.er1 >conftest.err
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && {
9094 test -z "$ac_c_werror_flag" ||
9095 test ! -s conftest.err
9096 } && test -s conftest$ac_exeext &&
9097 $as_test_x conftest$ac_exeext; then
9098 eval "$as_ac_var=yes"
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 eval "$as_ac_var=no"
9106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9107 conftest$ac_exeext conftest.$ac_ext
9109 ac_res=`eval echo '${'$as_ac_var'}'`
9110 { echo "$as_me:$LINENO: result: $ac_res" >&5
9111 echo "${ECHO_T}$ac_res" >&6; }
9112 if test `eval echo '${'$as_ac_var'}'` = yes; then
9113 cat >>confdefs.h <<_ACEOF
9114 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9120 if test $ac_cv_func_pfopen = "no" ; then
9121 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9122 echo "${ECHO_T}Using $pfopen" >&6; }
9123 LIBS="$LIBS $pfopen"
9126 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9127 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9130 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9131 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9132 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9133 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//' | \
9134 sed -e 's/-PRE-GIT$//' `
9135 if test $lastdir = $basedir ; then
9139 if test -r $dir/libpcap.a ; then
9140 libpcap=$dir/libpcap.a
9144 if test $libpcap = FAIL ; then
9145 { echo "$as_me:$LINENO: result: not found" >&5
9146 echo "${ECHO_T}not found" >&6; }
9149 # Look for pcap-config.
9151 if test -n "$ac_tool_prefix"; then
9152 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
9153 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
9154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9156 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 case $PCAP_CONFIG in
9161 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9183 if test -n "$PCAP_CONFIG"; then
9184 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9185 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9187 { echo "$as_me:$LINENO: result: no" >&5
9188 echo "${ECHO_T}no" >&6; }
9193 if test -z "$ac_cv_path_PCAP_CONFIG"; then
9194 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
9195 # Extract the first word of "pcap-config", so it can be a program name with args.
9196 set dummy pcap-config; ac_word=$2
9197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9199 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 case $ac_pt_PCAP_CONFIG in
9204 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
9226 if test -n "$ac_pt_PCAP_CONFIG"; then
9227 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
9228 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
9230 { echo "$as_me:$LINENO: result: no" >&5
9231 echo "${ECHO_T}no" >&6; }
9234 if test "x$ac_pt_PCAP_CONFIG" = x; then
9237 case $cross_compiling:$ac_tool_warned in
9239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9240 whose name does not start with the host triplet. If you think this
9241 configuration is useful to you, please write to autoconf@gnu.org." >&5
9242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9243 whose name does not start with the host triplet. If you think this
9244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9245 ac_tool_warned=yes ;;
9247 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
9250 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
9253 if test -n "$PCAP_CONFIG" ; then
9255 # Found - use it to get the include flags for
9256 # libpcap and the flags to link with libpcap.
9258 # Please read section 11.6 "Shell Substitutions"
9259 # in the autoconf manual before doing anything
9260 # to this that involves quoting. Especially note
9261 # the statement "There is just no portable way to use
9262 # double-quoted strings inside double-quoted back-quoted
9263 # expressions (pfew!)."
9265 cflags=`"$PCAP_CONFIG" --cflags`
9266 V_INCLS="$cflags $V_INCLS"
9267 libpcap=`"$PCAP_CONFIG" --libs`
9270 # Not found; look for pcap.
9272 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9273 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9274 if test "${ac_cv_lib_pcap_main+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 ac_check_lib_save_LIBS=$LIBS
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9295 rm -f conftest.$ac_objext conftest$ac_exeext
9296 if { (ac_try="$ac_link"
9298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9299 *) ac_try_echo
=$ac_try;;
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_link") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1
>conftest.err
9306 cat conftest.err
>&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest
$ac_exeext &&
9312 $as_test_x conftest
$ac_exeext; then
9313 ac_cv_lib_pcap_main
=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.
$ac_ext >&5
9318 ac_cv_lib_pcap_main
=no
9321 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9322 conftest
$ac_exeext conftest.
$ac_ext
9323 LIBS
=$ac_check_lib_save_LIBS
9325 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9326 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9327 if test $ac_cv_lib_pcap_main = yes; then
9331 if test $libpcap = FAIL
; then
9332 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9333 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9334 { (exit 1); exit 1; }; }
9336 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9337 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9338 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9339 \
( ! -r /usr
/include
/pcap.h \
); then
9340 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9341 d
="/usr/local/include/pcap"
9342 elif test -r /usr
/include
/pcap
/pcap.h
; then
9343 d
="/usr/include/pcap"
9346 if test -z "$d" ; then
9347 { echo "$as_me:$LINENO: result: not found" >&5
9348 echo "${ECHO_T}not found" >&6; }
9350 V_INCLS
="-I$d $V_INCLS"
9351 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9352 echo "${ECHO_T}found -- -I$d added" >&6; }
9357 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9358 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9359 if test -r $d/pcap.h
; then
9360 V_INCLS
="-I$d $V_INCLS"
9361 elif test -r $places/pcap.h
; then
9362 V_INCLS
="-I$places $V_INCLS"
9364 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9365 echo "$as_me: error: cannot find pcap.h" >&2;}
9366 { (exit see INSTALL
); exit see INSTALL
; }; }
9368 { echo "$as_me:$LINENO: result: $libpcap" >&5
9369 echo "${ECHO_T}$libpcap" >&6; }
9370 # Extract the first word of "pcap-config", so it can be a program name with args.
9371 set dummy pcap-config
; ac_word
=$2
9372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9374 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 case $PCAP_CONFIG in
9379 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
9382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9386 test -z "$as_dir" && as_dir
=.
9387 for ac_exec_ext
in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
9401 if test -n "$PCAP_CONFIG"; then
9402 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9403 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9405 { echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6; }
9410 if test -n "$PCAP_CONFIG"; then
9412 # The libpcap directory has a pcap-config script.
9413 # Use it to get any additioal libraries needed
9414 # to link with the libpcap archive library in
9417 # Please read section 11.6 "Shell Substitutions"
9418 # in the autoconf manual before doing anything
9419 # to this that involves quoting. Especially note
9420 # the statement "There is just no portable way to use
9421 # double-quoted strings inside double-quoted back-quoted
9422 # expressions (pfew!)."
9424 additional_libs
=`"$PCAP_CONFIG" --additional-libs --static`
9425 libpcap
="$libpcap $additional_libs"
9428 LIBS
="$libpcap $LIBS"
9429 if ! test -n "$PCAP_CONFIG" ; then
9431 # We don't have pcap-config; find out any additional link flags
9432 # we need. (If we have pcap-config, we assume it tells us what
9439 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9440 # present, as we use the STREAMS routines.
9442 # (XXX - true only if we're linking with a static libpcap?)
9444 pseexe
="/lib/pse.exp"
9445 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9446 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9447 if test -f $pseexe ; then
9448 { echo "$as_me:$LINENO: result: yes" >&5
9449 echo "${ECHO_T}yes" >&6; }
9450 LIBS
="$LIBS -I:$pseexe"
9454 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9455 # we use them to load the BPF module.
9457 # (XXX - true only if we're linking with a static libpcap?)
9459 LIBS
="$LIBS -lodm -lcfg"
9464 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
9465 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
9466 if test "${ac_cv_func_pcap_loop+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 cat >conftest.
$ac_ext <<_ACEOF
9472 cat confdefs.h
>>conftest.
$ac_ext
9473 cat >>conftest.
$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
9476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9477 #define pcap_loop innocuous_pcap_loop
9479 /* System header to define __stub macros and hopefully few prototypes,
9480 which can conflict with char pcap_loop (); below.
9481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9482 <limits.h> exists even on freestanding compilers. */
9485 # include <limits.h>
9487 # include <assert.h>
9492 /* Override any GCC internal prototype to avoid an error.
9493 Use char because int might match the return type of a GCC
9494 builtin and then its argument prototype would still apply. */
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined __stub_pcap_loop || defined __stub___pcap_loop
9509 return pcap_loop ();
9514 rm -f conftest.
$ac_objext conftest
$ac_exeext
9515 if { (ac_try
="$ac_link"
9517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest$ac_exeext &&
9531 $as_test_x conftest$ac_exeext; then
9532 ac_cv_func_pcap_loop=yes
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_cv_func_pcap_loop=no
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541 conftest$ac_exeext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
9544 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
9545 if test $ac_cv_func_pcap_loop = yes; then
9549 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
9550 config.log file in your report" >&5
9551 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
9552 config.log file in your report" >&2;}
9553 { (exit 1); exit 1; }; }
9558 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9559 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9560 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 cat >conftest.$ac_ext <<_ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char pcap_list_datalinks (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9579 # include <limits.h>
9581 # include <assert.h>
9584 #undef pcap_list_datalinks
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9592 char pcap_list_datalinks ();
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9603 return pcap_list_datalinks ();
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9612 *) ac_try_echo
=$ac_try;;
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9617 grep -v '^ *+' conftest.er1
>conftest.err
9619 cat conftest.err
>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest
$ac_exeext &&
9625 $as_test_x conftest
$ac_exeext; then
9626 ac_cv_func_pcap_list_datalinks
=yes
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.
$ac_ext >&5
9631 ac_cv_func_pcap_list_datalinks
=no
9634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9635 conftest
$ac_exeext conftest.
$ac_ext
9637 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9638 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9639 if test $ac_cv_func_pcap_list_datalinks = yes; then
9640 cat >>confdefs.h
<<\_ACEOF
9641 #define HAVE_PCAP_LIST_DATALINKS 1
9646 case " $LIBOBJS " in
9647 *" datalinks.$ac_objext "* ) ;;
9648 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
9655 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9656 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9657 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 cat >conftest.
$ac_ext <<_ACEOF
9663 cat confdefs.h
>>conftest.
$ac_ext
9664 cat >>conftest.
$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9668 #define pcap_set_datalink innocuous_pcap_set_datalink
9670 /* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char pcap_set_datalink (); below.
9672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673 <limits.h> exists even on freestanding compilers. */
9676 # include <limits.h>
9678 # include <assert.h>
9681 #undef pcap_set_datalink
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9689 char pcap_set_datalink ();
9690 /* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9700 return pcap_set_datalink ();
9705 rm -f conftest.
$ac_objext conftest
$ac_exeext
9706 if { (ac_try
="$ac_link"
9708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
9723 ac_cv_func_pcap_set_datalink=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_func_pcap_set_datalink=no
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9734 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9735 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9736 if test $ac_cv_func_pcap_set_datalink = yes; then
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_PCAP_SET_DATALINK 1
9743 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9744 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9745 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 cat >conftest.$ac_ext <<_ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9756 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9758 /* System header to define __stub macros and hopefully few prototypes,
9759 which can conflict with char pcap_datalink_name_to_val (); below.
9760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9761 <limits.h> exists even on freestanding compilers. */
9764 # include <limits.h>
9766 # include <assert.h>
9769 #undef pcap_datalink_name_to_val
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9777 char pcap_datalink_name_to_val ();
9778 /* The GNU C library defines this for functions which it implements
9779 to always fail with ENOSYS. Some functions are actually named
9780 something starting with __ and the normal name is an alias. */
9781 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9788 return pcap_datalink_name_to_val ();
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9797 *) ac_try_echo
=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1
>conftest.err
9804 cat conftest.err
>&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest
$ac_exeext &&
9810 $as_test_x conftest
$ac_exeext; then
9811 ac_cv_func_pcap_datalink_name_to_val
=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.
$ac_ext >&5
9816 ac_cv_func_pcap_datalink_name_to_val
=no
9819 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9820 conftest
$ac_exeext conftest.
$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9823 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9824 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9826 cat >>confdefs.h
<<\_ACEOF
9827 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9830 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9831 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9832 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.
$ac_ext <<_ACEOF
9838 cat confdefs.h
>>conftest.
$ac_ext
9839 cat >>conftest.
$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9843 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9845 /* System header to define __stub macros and hopefully few prototypes,
9846 which can conflict with char pcap_datalink_val_to_description (); below.
9847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 <limits.h> exists even on freestanding compilers. */
9851 # include <limits.h>
9853 # include <assert.h>
9856 #undef pcap_datalink_val_to_description
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9864 char pcap_datalink_val_to_description ();
9865 /* The GNU C library defines this for functions which it implements
9866 to always fail with ENOSYS. Some functions are actually named
9867 something starting with __ and the normal name is an alias. */
9868 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9875 return pcap_datalink_val_to_description ();
9880 rm -f conftest.
$ac_objext conftest
$ac_exeext
9881 if { (ac_try
="$ac_link"
9883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_link") 2>conftest.er1
9889 grep -v '^ *+' conftest.er1 >conftest.err
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && {
9894 test -z "$ac_c_werror_flag" ||
9895 test ! -s conftest.err
9896 } && test -s conftest$ac_exeext &&
9897 $as_test_x conftest$ac_exeext; then
9898 ac_cv_func_pcap_datalink_val_to_description=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_func_pcap_datalink_val_to_description=no
9906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9907 conftest$ac_exeext conftest.$ac_ext
9909 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9910 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9911 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9918 case " $LIBOBJS " in
9919 *" dlnames.$ac_objext "* ) ;;
9920 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9930 case " $LIBOBJS " in
9931 *" dlnames.$ac_objext "* ) ;;
9932 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9941 for ac_func in pcap_breakloop
9943 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9957 #define $ac_func innocuous_$ac_func
9959 /* System header to define __stub macros and hopefully few prototypes,
9960 which can conflict with char $ac_func (); below.
9961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9962 <limits.h> exists even on freestanding compilers. */
9965 # include <limits.h>
9967 # include <assert.h>
9972 /* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
9979 /* The GNU C library defines this for functions which it implements
9980 to always fail with ENOSYS. Some functions are actually named
9981 something starting with __ and the normal name is an alias. */
9982 #if defined __stub_$ac_func || defined __stub___$ac_func
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (ac_try="$ac_link"
9997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9998 *) ac_try_echo
=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_link") 2>conftest.er1
10003 grep -v '^ *+' conftest.er1
>conftest.err
10005 cat conftest.err
>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest
$ac_exeext &&
10011 $as_test_x conftest
$ac_exeext; then
10012 eval "$as_ac_var=yes"
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.
$ac_ext >&5
10017 eval "$as_ac_var=no"
10020 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10021 conftest
$ac_exeext conftest.
$ac_ext
10023 ac_res
=`eval echo '${'$as_ac_var'}'`
10024 { echo "$as_me:$LINENO: result: $ac_res" >&5
10025 echo "${ECHO_T}$ac_res" >&6; }
10026 if test `eval echo '${'$as_ac_var'}'` = yes; then
10027 cat >>confdefs.h
<<_ACEOF
10028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10035 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10036 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10037 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.
$ac_ext <<_ACEOF
10043 cat confdefs.h
>>conftest.
$ac_ext
10044 cat >>conftest.
$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char pcap_dump_ftell (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10056 # include <limits.h>
10058 # include <assert.h>
10061 #undef pcap_dump_ftell
10063 /* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10069 char pcap_dump_ftell ();
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10080 return pcap_dump_ftell ();
10085 rm -f conftest.
$ac_objext conftest
$ac_exeext
10086 if { (ac_try
="$ac_link"
10087 case "(($ac_try" in
10088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 } && test -s conftest$ac_exeext &&
10102 $as_test_x conftest$ac_exeext; then
10103 ac_cv_func_pcap_dump_ftell=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_func_pcap_dump_ftell=no
10111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10112 conftest$ac_exeext conftest.$ac_ext
10114 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10115 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10116 if test $ac_cv_func_pcap_dump_ftell = yes; then
10117 cat >>confdefs.h <<\_ACEOF
10118 #define HAVE_PCAP_DUMP_FTELL 1
10123 case " $LIBOBJS " in
10124 *" pcap_dump_ftell.$ac_objext "* ) ;;
10125 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10135 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10136 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10138 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10139 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10140 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10141 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10142 # it does not ship with a libc symbol "inet_ntop()", it ships with
10143 # "_inet_ntop()", and has a #define macro in one of the system headers
10146 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10147 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 #include <sys/types.h>
10155 #include <sys/socket.h>
10156 #include <netinet/in.h>
10157 #include <arpa/inet.h>
10161 char src[4], dst[128];
10162 inet_ntop(AF_INET, src, dst, sizeof(dst));
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (ac_try="$ac_link"
10169 case "(($ac_try" in
10170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10171 *) ac_try_echo
=$ac_try;;
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_link") 2>conftest.er1
10176 grep -v '^ *+' conftest.er1
>conftest.err
10178 cat conftest.err
>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest
$ac_exeext &&
10184 $as_test_x conftest
$ac_exeext; then
10185 { echo "$as_me:$LINENO: result: yes" >&5
10186 echo "${ECHO_T}yes" >&6; }
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.
$ac_ext >&5
10191 { echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6; }
10193 case " $LIBOBJS " in
10194 *" inet_ntop.$ac_objext "* ) ;;
10195 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
10201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10202 conftest
$ac_exeext conftest.
$ac_ext
10203 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10204 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10205 cat >conftest.
$ac_ext <<_ACEOF
10208 cat confdefs.h
>>conftest.
$ac_ext
10209 cat >>conftest.
$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10213 #include <netinet/in.h>
10214 #include <arpa/inet.h>
10218 char src[128], dst[4];
10219 inet_pton(AF_INET, src, dst);
10224 rm -f conftest.
$ac_objext conftest
$ac_exeext
10225 if { (ac_try
="$ac_link"
10226 case "(($ac_try" in
10227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_link") 2>conftest.er1
10233 grep -v '^ *+' conftest.er1 >conftest.err
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && {
10238 test -z "$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest$ac_exeext &&
10241 $as_test_x conftest$ac_exeext; then
10242 { echo "$as_me:$LINENO: result: yes" >&5
10243 echo "${ECHO_T}yes" >&6; }
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10248 { echo "$as_me:$LINENO: result: no" >&5
10249 echo "${ECHO_T}no" >&6; }
10250 case " $LIBOBJS " in
10251 *" inet_pton.$ac_objext "* ) ;;
10252 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10259 conftest$ac_exeext conftest.$ac_ext
10260 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10261 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 #include <sys/types.h>
10269 #include <netinet/in.h>
10270 #include <arpa/inet.h>
10275 struct in_addr dst;
10276 inet_aton(src, &dst);
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10285 *) ac_try_echo
=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10290 grep -v '^ *+' conftest.er1
>conftest.err
10292 cat conftest.err
>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest
$ac_exeext &&
10298 $as_test_x conftest
$ac_exeext; then
10299 { echo "$as_me:$LINENO: result: yes" >&5
10300 echo "${ECHO_T}yes" >&6; }
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.
$ac_ext >&5
10305 { echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6; }
10307 case " $LIBOBJS " in
10308 *" inet_aton.$ac_objext "* ) ;;
10309 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
10315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10316 conftest
$ac_exeext conftest.
$ac_ext
10319 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10321 # You are in a twisty little maze of UN*Xes, all different.
10322 # Some might not have ether_ntohost().
10323 # Some might have it, but not declare it in any header file.
10324 # Some might have it, but declare it in <netinet/if_ether.h>.
10325 # Some might have it, but declare it in <netinet/ether.h>
10326 # (And some might have it but document it as something declared in
10327 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10329 # Before you is a C compiler.
10332 for ac_func
in ether_ntohost
10334 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10337 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 cat >conftest.
$ac_ext <<_ACEOF
10343 cat confdefs.h
>>conftest.
$ac_ext
10344 cat >>conftest.
$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10348 #define $ac_func innocuous_$ac_func
10350 /* System header to define __stub macros and hopefully few prototypes,
10351 which can conflict with char $ac_func (); below.
10352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10353 <limits.h> exists even on freestanding compilers. */
10356 # include <limits.h>
10358 # include <assert.h>
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10370 /* The GNU C library defines this for functions which it implements
10371 to always fail with ENOSYS. Some functions are actually named
10372 something starting with __ and the normal name is an alias. */
10373 #if defined __stub_$ac_func || defined __stub___$ac_func
10380 return $ac_func ();
10385 rm -f conftest.
$ac_objext conftest
$ac_exeext
10386 if { (ac_try
="$ac_link"
10387 case "(($ac_try" in
10388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext &&
10402 $as_test_x conftest$ac_exeext; then
10403 eval "$as_ac_var=yes"
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 eval "$as_ac_var=no"
10411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 conftest$ac_exeext conftest.$ac_ext
10414 ac_res=`eval echo '${'$as_ac_var'}'`
10415 { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10417 if test `eval echo '${'$as_ac_var'}'` = yes; then
10418 cat >>confdefs.h <<_ACEOF
10419 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10422 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10423 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10424 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 if test "$cross_compiling" = yes; then
10429 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10439 #include <sys/types.h>
10440 #include <sys/param.h>
10441 #include <sys/socket.h>
10444 main(int argc, char **argv)
10446 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10447 char name[MAXHOSTNAMELEN];
10449 ether_ntohost(name, (struct ether_addr *)ea);
10454 rm -f conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10458 *) ac_try_echo
=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10465 { (case "(($ac_try" in
10466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_buggy_ether_ntohost=no
10476 echo "$as_me: program exited with status $ac_status" >&5
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10480 ( exit $ac_status )
10481 ac_cv_buggy_ether_ntohost=yes
10483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10488 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10489 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10490 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10491 cat >>confdefs.h <<\_ACEOF
10492 #define USE_ETHER_NTOHOST 1
10500 if test "$ac_cv_func_ether_ntohost" = yes -a \
10501 "$ac_cv_buggy_ether_ntohost" = "no"; then
10503 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10505 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10507 # Yes. Does it declare ether_ntohost()?
10509 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10510 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10511 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10521 #include <sys/types.h>
10522 #include <sys/socket.h>
10523 #include <netinet/in.h>
10524 #include <arpa/inet.h>
10527 #include <net/if.h>
10528 #include <netinet/if_ether.h>
10534 #ifndef ether_ntohost
10535 (void) ether_ntohost;
10542 rm -f conftest.$ac_objext
10543 if { (ac_try="$ac_compile"
10544 case "(($ac_try" in
10545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10546 *) ac_try_echo
=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_compile") 2>conftest.er1
10551 grep -v '^ *+' conftest.er1
>conftest.err
10553 cat conftest.err
>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest.
$ac_objext; then
10559 ac_cv_have_decl_ether_ntohost
=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.
$ac_ext >&5
10564 ac_cv_have_decl_ether_ntohost
=no
10567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10570 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10571 if test $ac_cv_have_decl_ether_ntohost = yes; then
10574 cat >>confdefs.h
<<\_ACEOF
10575 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10583 # Did that succeed?
10585 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10587 # No, how about <netinet/ether.h>, as on Linux?
10590 for ac_header
in netinet
/ether.h
10592 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10593 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 ac_res
=`eval echo '${'$as_ac_Header'}'`
10600 { echo "$as_me:$LINENO: result: $ac_res" >&5
10601 echo "${ECHO_T}$ac_res" >&6; }
10603 # Is the header compilable?
10604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10606 cat >conftest.
$ac_ext <<_ACEOF
10609 cat confdefs.h
>>conftest.
$ac_ext
10610 cat >>conftest.
$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 $ac_includes_default
10613 #include <$ac_header>
10615 rm -f conftest.
$ac_objext
10616 if { (ac_try
="$ac_compile"
10617 case "(($ac_try" in
10618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_compile") 2>conftest.er1
10624 grep -v '^ *+' conftest.er1 >conftest.err
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest.$ac_objext; then
10632 ac_header_compiler=yes
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 ac_header_compiler=no
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10642 echo "${ECHO_T}$ac_header_compiler" >&6; }
10644 # Is the header present?
10645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 #include <$ac_header>
10655 if { (ac_try="$ac_cpp conftest.$ac_ext"
10656 case "(($ac_try" in
10657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10658 *) ac_try_echo
=$ac_try;;
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10663 grep -v '^ *+' conftest.er1
>conftest.err
10665 cat conftest.err
>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev
/null
&& {
10668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10671 ac_header_preproc
=yes
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.
$ac_ext >&5
10676 ac_header_preproc
=no
10679 rm -f conftest.err conftest.
$ac_ext
10680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681 echo "${ECHO_T}$ac_header_preproc" >&6; }
10683 # So? What about this header?
10684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10690 ac_header_preproc
=yes
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10710 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 eval "$as_ac_Header=\$ac_header_preproc"
10715 ac_res
=`eval echo '${'$as_ac_Header'}'`
10716 { echo "$as_me:$LINENO: result: $ac_res" >&5
10717 echo "${ECHO_T}$ac_res" >&6; }
10720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10721 cat >>confdefs.h
<<_ACEOF
10722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10729 if test "$ac_cv_header_netinet_ether_h" = yes; then
10731 # We have it - does it declare ether_ntohost()?
10732 # Unset ac_cv_have_decl_ether_ntohost so we don't
10733 # treat the previous failure as a cached value and
10734 # suppress the next test.
10736 unset ac_cv_have_decl_ether_ntohost
10737 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10738 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10739 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.
$ac_ext <<_ACEOF
10745 cat confdefs.h
>>conftest.
$ac_ext
10746 cat >>conftest.
$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10749 #include <netinet/ether.h>
10755 #ifndef ether_ntohost
10756 (void) ether_ntohost;
10763 rm -f conftest.
$ac_objext
10764 if { (ac_try
="$ac_compile"
10765 case "(($ac_try" in
10766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_compile") 2>conftest.er1
10772 grep -v '^ *+' conftest.er1 >conftest.err
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest.$ac_objext; then
10780 ac_cv_have_decl_ether_ntohost=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ac_cv_have_decl_ether_ntohost=no
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10791 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10792 if test $ac_cv_have_decl_ether_ntohost = yes; then
10795 cat >>confdefs.h <<\_ACEOF
10796 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10805 # Is ether_ntohost() declared?
10807 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10809 # No, we'll have to declare it ourselves.
10810 # Do we have "struct ether_addr"?
10812 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10813 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10814 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10824 #include <sys/types.h>
10825 #include <sys/socket.h>
10826 #include <netinet/in.h>
10827 #include <arpa/inet.h>
10830 #include <net/if.h>
10831 #include <netinet/if_ether.h>
10834 typedef struct ether_addr ac__type_new_;
10838 if ((ac__type_new_ *) 0)
10840 if (sizeof (ac__type_new_))
10846 rm -f conftest.$ac_objext
10847 if { (ac_try="$ac_compile"
10848 case "(($ac_try" in
10849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10850 *) ac_try_echo
=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_compile") 2>conftest.er1
10855 grep -v '^ *+' conftest.er1
>conftest.err
10857 cat conftest.err
>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest.
$ac_objext; then
10863 ac_cv_type_struct_ether_addr
=yes
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.
$ac_ext >&5
10868 ac_cv_type_struct_ether_addr
=no
10871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10874 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10875 if test $ac_cv_type_struct_ether_addr = yes; then
10877 cat >>confdefs.h
<<_ACEOF
10878 #define HAVE_STRUCT_ETHER_ADDR 1
10885 cat >>confdefs.h
<<\_ACEOF
10886 #define HAVE_DECL_ETHER_NTOHOST 0
10891 cat >>confdefs.h
<<\_ACEOF
10892 #define HAVE_DECL_ETHER_NTOHOST 1
10898 # libdlpi is needed for Solaris 11 and later.
10899 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10900 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
10901 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 ac_check_lib_save_LIBS
=$LIBS
10905 LIBS
="-ldlpi -L/lib $LIBS"
10906 cat >conftest.
$ac_ext <<_ACEOF
10909 cat confdefs.h
>>conftest.
$ac_ext
10910 cat >>conftest.
$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10923 return dlpi_walk ();
10928 rm -f conftest.
$ac_objext conftest
$ac_exeext
10929 if { (ac_try
="$ac_link"
10930 case "(($ac_try" in
10931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest$ac_exeext &&
10945 $as_test_x conftest$ac_exeext; then
10946 ac_cv_lib_dlpi_dlpi_walk=yes
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_cv_lib_dlpi_dlpi_walk=no
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10959 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
10960 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10961 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
10966 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10967 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10968 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10978 # include <sys/types.h>
10979 # include <sys/socket.h>
10983 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10988 rm -f conftest.$ac_objext
10989 if { (ac_try="$ac_compile"
10990 case "(($ac_try" in
10991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10992 *) ac_try_echo
=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_compile") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1
>conftest.err
10999 cat conftest.err
>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest.
$ac_objext; then
11005 ac_cv_sockaddr_has_sa_len
=yes
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.
$ac_ext >&5
11010 ac_cv_sockaddr_has_sa_len
=no
11013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11016 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11017 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11018 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11019 cat >>confdefs.h
<<\_ACEOF
11020 #define HAVE_SOCKADDR_SA_LEN 1
11025 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
11026 missing_includes
=yes
11030 # Do we have the new open API? Check for pcap_create, and assume that,
11031 # if we do, we also have pcap_activate() and the other new routines
11032 # introduced in libpcap 1.0.0.
11035 for ac_func
in pcap_create
11037 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11040 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 cat >conftest.
$ac_ext <<_ACEOF
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11051 #define $ac_func innocuous_$ac_func
11053 /* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char $ac_func (); below.
11055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11056 <limits.h> exists even on freestanding compilers. */
11059 # include <limits.h>
11061 # include <assert.h>
11066 /* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11073 /* The GNU C library defines this for functions which it implements
11074 to always fail with ENOSYS. Some functions are actually named
11075 something starting with __ and the normal name is an alias. */
11076 #if defined __stub_$ac_func || defined __stub___$ac_func
11083 return $ac_func ();
11088 rm -f conftest.
$ac_objext conftest
$ac_exeext
11089 if { (ac_try
="$ac_link"
11090 case "(($ac_try" in
11091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_link") 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest$ac_exeext &&
11105 $as_test_x conftest$ac_exeext; then
11106 eval "$as_ac_var=yes"
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 eval "$as_ac_var=no"
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115 conftest$ac_exeext conftest.$ac_ext
11117 ac_res=`eval echo '${'$as_ac_var'}'`
11118 { echo "$as_me:$LINENO: result: $ac_res" >&5
11119 echo "${ECHO_T}$ac_res" >&6; }
11120 if test `eval echo '${'$as_ac_var'}'` = yes; then
11121 cat >>confdefs.h <<_ACEOF
11122 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11128 if test $ac_cv_func_pcap_create = "yes" ; then
11130 # OK, do we have pcap_set_tstamp_type? If so, assume we have
11131 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
11134 for ac_func in pcap_set_tstamp_type
11136 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11150 #define $ac_func innocuous_$ac_func
11152 /* System header to define __stub macros and hopefully few prototypes,
11153 which can conflict with char $ac_func (); below.
11154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11155 <limits.h> exists even on freestanding compilers. */
11158 # include <limits.h>
11160 # include <assert.h>
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11172 /* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175 #if defined __stub_$ac_func || defined __stub___$ac_func
11182 return $ac_func ();
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (ac_try="$ac_link"
11189 case "(($ac_try" in
11190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11191 *) ac_try_echo
=$ac_try;;
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_link") 2>conftest.er1
11196 grep -v '^ *+' conftest.er1
>conftest.err
11198 cat conftest.err
>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } && {
11201 test -z "$ac_c_werror_flag" ||
11202 test ! -s conftest.err
11203 } && test -s conftest
$ac_exeext &&
11204 $as_test_x conftest
$ac_exeext; then
11205 eval "$as_ac_var=yes"
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.
$ac_ext >&5
11210 eval "$as_ac_var=no"
11213 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11214 conftest
$ac_exeext conftest.
$ac_ext
11216 ac_res
=`eval echo '${'$as_ac_var'}'`
11217 { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h
<<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
11234 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11237 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 cat >conftest.
$ac_ext <<_ACEOF
11243 cat confdefs.h
>>conftest.
$ac_ext
11244 cat >>conftest.
$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248 #define $ac_func innocuous_$ac_func
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11256 # include <limits.h>
11258 # include <assert.h>
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined __stub_$ac_func || defined __stub___$ac_func
11280 return $ac_func ();
11285 rm -f conftest.
$ac_objext conftest
$ac_exeext
11286 if { (ac_try
="$ac_link"
11287 case "(($ac_try" in
11288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_link") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest$ac_exeext &&
11302 $as_test_x conftest$ac_exeext; then
11303 eval "$as_ac_var=yes"
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11308 eval "$as_ac_var=no"
11311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11312 conftest$ac_exeext conftest.$ac_ext
11314 ac_res=`eval echo '${'$as_ac_var'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317 if test `eval echo '${'$as_ac_var'}'` = yes; then
11318 cat >>confdefs.h <<_ACEOF
11319 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11325 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11326 savedppflags="$CPPLAGS"
11327 CPPFLAGS="$CPPFLAGS $V_INCLS"
11328 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11329 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11330 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 cat >conftest.$ac_ext <<_ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11341 typedef pcap_if_t ac__type_new_;
11345 if ((ac__type_new_ *) 0)
11347 if (sizeof (ac__type_new_))
11353 rm -f conftest.$ac_objext
11354 if { (ac_try="$ac_compile"
11355 case "(($ac_try" in
11356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11357 *) ac_try_echo
=$ac_try;;
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_compile") 2>conftest.er1
11362 grep -v '^ *+' conftest.er1
>conftest.err
11364 cat conftest.err
>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest.
$ac_objext; then
11370 ac_cv_type_pcap_if_t
=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.
$ac_ext >&5
11375 ac_cv_type_pcap_if_t
=no
11378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11381 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11382 if test $ac_cv_type_pcap_if_t = yes; then
11384 cat >>confdefs.h
<<_ACEOF
11385 #define HAVE_PCAP_IF_T 1
11391 CPPFLAGS
="$savedcppflags"
11394 if test $ac_cv_func_pcap_lib_version = "no" ; then
11395 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11396 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11397 cat >conftest.
$ac_ext <<_ACEOF
11400 cat confdefs.h
>>conftest.
$ac_ext
11401 cat >>conftest.
$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11408 extern char pcap_version[];
11410 return (int)pcap_version;
11416 rm -f conftest.
$ac_objext conftest
$ac_exeext
11417 if { (ac_try
="$ac_link"
11418 case "(($ac_try" in
11419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_link") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest$ac_exeext &&
11433 $as_test_x conftest$ac_exeext; then
11434 ac_lbl_cv_pcap_version_defined=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_lbl_cv_pcap_version_defined=no
11442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11443 conftest$ac_exeext conftest.$ac_ext
11444 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11445 { echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6; }
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_PCAP_VERSION 1
11452 { echo "$as_me:$LINENO: result: no" >&5
11453 echo "${ECHO_T}no" >&6; }
11456 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11457 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11469 extern int pcap_debug;
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11481 *) ac_try_echo
=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1
>conftest.err
11488 cat conftest.err
>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest
$ac_exeext &&
11494 $as_test_x conftest
$ac_exeext; then
11495 ac_lbl_cv_pcap_debug_defined
=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.
$ac_ext >&5
11500 ac_lbl_cv_pcap_debug_defined
=no
11503 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11504 conftest
$ac_exeext conftest.
$ac_ext
11505 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11506 { echo "$as_me:$LINENO: result: yes" >&5
11507 echo "${ECHO_T}yes" >&6; }
11508 cat >>confdefs.h
<<\_ACEOF
11509 #define HAVE_PCAP_DEBUG 1
11513 { echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6; }
11516 # OK, what about "yydebug"?
11518 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11519 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11520 cat >conftest.
$ac_ext <<_ACEOF
11523 cat confdefs.h
>>conftest.
$ac_ext
11524 cat >>conftest.
$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11531 extern int yydebug;
11539 rm -f conftest.
$ac_objext conftest
$ac_exeext
11540 if { (ac_try
="$ac_link"
11541 case "(($ac_try" in
11542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_link") 2>conftest.er1
11548 grep -v '^ *+' conftest.er1 >conftest.err
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest$ac_exeext &&
11556 $as_test_x conftest$ac_exeext; then
11557 ac_lbl_cv_yydebug_defined=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_lbl_cv_yydebug_defined=no
11565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11566 conftest$ac_exeext conftest.$ac_ext
11567 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11568 { echo "$as_me:$LINENO: result: yes" >&5
11569 echo "${ECHO_T}yes" >&6; }
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_YYDEBUG 1
11575 { echo "$as_me:$LINENO: result: no" >&5
11576 echo "${ECHO_T}no" >&6; }
11580 for ac_func in bpf_dump
11582 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11596 #define $ac_func innocuous_$ac_func
11598 /* System header to define __stub macros and hopefully few prototypes,
11599 which can conflict with char $ac_func (); below.
11600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11601 <limits.h> exists even on freestanding compilers. */
11604 # include <limits.h>
11606 # include <assert.h>
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11618 /* The GNU C library defines this for functions which it implements
11619 to always fail with ENOSYS. Some functions are actually named
11620 something starting with __ and the normal name is an alias. */
11621 #if defined __stub_$ac_func || defined __stub___$ac_func
11628 return $ac_func ();
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (ac_try="$ac_link"
11635 case "(($ac_try" in
11636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11637 *) ac_try_echo
=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_link") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1
>conftest.err
11644 cat conftest.err
>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest
$ac_exeext &&
11650 $as_test_x conftest
$ac_exeext; then
11651 eval "$as_ac_var=yes"
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.
$ac_ext >&5
11656 eval "$as_ac_var=no"
11659 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11660 conftest
$ac_exeext conftest.
$ac_ext
11662 ac_res
=`eval echo '${'$as_ac_var'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11665 if test `eval echo '${'$as_ac_var'}'` = yes; then
11666 cat >>confdefs.h
<<_ACEOF
11667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 case " $LIBOBJS " in
11672 *" $ac_func.$ac_objext "* ) ;;
11673 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
11682 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11686 # Assume V7/BSD convention for man pages (file formats in section 5,
11687 # miscellaneous info in section 7).
11695 cat >>confdefs.h
<<\_ACEOF
11703 # Use System V conventions for man pages.
11713 # Use System V conventions for man pages.
11723 # Use System V conventions for man pages.
11733 # Use System V conventions for man pages.
11740 if test -f /dev
/bpf0
; then
11745 # Check for some headers introduced in later versions of libpcap
11746 # and used by some printers.
11748 savedcppflags
="$CPPFLAGS"
11749 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11751 for ac_header
in pcap
/bluetooth.h
11753 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 ac_res
=`eval echo '${'$as_ac_Header'}'`
11761 { echo "$as_me:$LINENO: result: $ac_res" >&5
11762 echo "${ECHO_T}$ac_res" >&6; }
11764 # Is the header compilable?
11765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11767 cat >conftest.
$ac_ext <<_ACEOF
11770 cat confdefs.h
>>conftest.
$ac_ext
11771 cat >>conftest.
$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 $ac_includes_default
11774 #include <$ac_header>
11776 rm -f conftest.
$ac_objext
11777 if { (ac_try
="$ac_compile"
11778 case "(($ac_try" in
11779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_compile") 2>conftest.er1
11785 grep -v '^ *+' conftest.er1 >conftest.err
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest.$ac_objext; then
11793 ac_header_compiler=yes
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 ac_header_compiler=no
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11803 echo "${ECHO_T}$ac_header_compiler" >&6; }
11805 # Is the header present?
11806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <$ac_header>
11816 if { (ac_try="$ac_cpp conftest.$ac_ext"
11817 case "(($ac_try" in
11818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11819 *) ac_try_echo
=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11824 grep -v '^ *+' conftest.er1
>conftest.err
11826 cat conftest.err
>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } >/dev
/null
&& {
11829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11830 test ! -s conftest.err
11832 ac_header_preproc
=yes
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.
$ac_ext >&5
11837 ac_header_preproc
=no
11840 rm -f conftest.err conftest.
$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842 echo "${ECHO_T}$ac_header_preproc" >&6; }
11844 # So? What about this header?
11845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11851 ac_header_preproc
=yes
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11871 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 eval "$as_ac_Header=\$ac_header_preproc"
11876 ac_res
=`eval echo '${'$as_ac_Header'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11882 cat >>confdefs.h
<<_ACEOF
11883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11891 for ac_header
in pcap
/usb.h
11893 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11897 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 ac_res
=`eval echo '${'$as_ac_Header'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11904 # Is the header compilable?
11905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11907 cat >conftest.
$ac_ext <<_ACEOF
11910 cat confdefs.h
>>conftest.
$ac_ext
11911 cat >>conftest.
$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 $ac_includes_default
11914 #include <$ac_header>
11916 rm -f conftest.
$ac_objext
11917 if { (ac_try
="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_compile") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest.$ac_objext; then
11933 ac_header_compiler=yes
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_compiler=no
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11943 echo "${ECHO_T}$ac_header_compiler" >&6; }
11945 # Is the header present?
11946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <$ac_header>
11956 if { (ac_try="$ac_cpp conftest.$ac_ext"
11957 case "(($ac_try" in
11958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11959 *) ac_try_echo
=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1
>conftest.err
11966 cat conftest.err
>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } >/dev
/null
&& {
11969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11972 ac_header_preproc
=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.
$ac_ext >&5
11977 ac_header_preproc
=no
11980 rm -f conftest.err conftest.
$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6; }
11984 # So? What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc
=yes
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12011 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 eval "$as_ac_Header=\$ac_header_preproc"
12016 ac_res
=`eval echo '${'$as_ac_Header'}'`
12017 { echo "$as_me:$LINENO: result: $ac_res" >&5
12018 echo "${ECHO_T}$ac_res" >&6; }
12021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12022 cat >>confdefs.h
<<_ACEOF
12023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030 CPPFLAGS
="$savedcppflags"
12033 for ac_header
in sys
/bitypes.h
12035 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12036 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12039 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 ac_res
=`eval echo '${'$as_ac_Header'}'`
12043 { echo "$as_me:$LINENO: result: $ac_res" >&5
12044 echo "${ECHO_T}$ac_res" >&6; }
12046 # Is the header compilable?
12047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12049 cat >conftest.
$ac_ext <<_ACEOF
12052 cat confdefs.h
>>conftest.
$ac_ext
12053 cat >>conftest.
$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 $ac_includes_default
12056 #include <$ac_header>
12058 rm -f conftest.
$ac_objext
12059 if { (ac_try
="$ac_compile"
12060 case "(($ac_try" in
12061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_compile") 2>conftest.er1
12067 grep -v '^ *+' conftest.er1 >conftest.err
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest.$ac_objext; then
12075 ac_header_compiler=yes
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_header_compiler=no
12083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12085 echo "${ECHO_T}$ac_header_compiler" >&6; }
12087 # Is the header present?
12088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12090 cat >conftest.$ac_ext <<_ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 #include <$ac_header>
12098 if { (ac_try="$ac_cpp conftest.$ac_ext"
12099 case "(($ac_try" in
12100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12101 *) ac_try_echo
=$ac_try;;
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12106 grep -v '^ *+' conftest.er1
>conftest.err
12108 cat conftest.err
>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } >/dev
/null
&& {
12111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12112 test ! -s conftest.err
12114 ac_header_preproc
=yes
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.
$ac_ext >&5
12119 ac_header_preproc
=no
12122 rm -f conftest.err conftest.
$ac_ext
12123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12124 echo "${ECHO_T}$ac_header_preproc" >&6; }
12126 # So? What about this header?
12127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12133 ac_header_preproc
=yes
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 eval "$as_ac_Header=\$ac_header_preproc"
12158 ac_res
=`eval echo '${'$as_ac_Header'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164 cat >>confdefs.h
<<_ACEOF
12165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12173 { echo "$as_me:$LINENO: checking for int8_t" >&5
12174 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12175 if test "${ac_cv_type_int8_t+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.
$ac_ext <<_ACEOF
12181 cat confdefs.h
>>conftest.
$ac_ext
12182 cat >>conftest.
$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 $ac_includes_default
12185 #ifdef HAVE_SYS_BITYPES_H
12186 #include <sys/bitypes.h>
12189 typedef int8_t ac__type_new_;
12193 if ((ac__type_new_ *) 0)
12195 if (sizeof (ac__type_new_))
12201 rm -f conftest.
$ac_objext
12202 if { (ac_try
="$ac_compile"
12203 case "(($ac_try" in
12204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_compile") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && {
12215 test -z "$ac_c_werror_flag" ||
12216 test ! -s conftest.err
12217 } && test -s conftest.$ac_objext; then
12218 ac_cv_type_int8_t=yes
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_cv_type_int8_t=no
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12229 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12230 if test $ac_cv_type_int8_t = yes; then
12234 cat >>confdefs.h <<\_ACEOF
12235 #define int8_t signed char
12240 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12241 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12242 if test "${ac_cv_type_u_int8_t+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 $ac_includes_default
12252 #ifdef HAVE_SYS_BITYPES_H
12253 #include <sys/bitypes.h>
12256 typedef u_int8_t ac__type_new_;
12260 if ((ac__type_new_ *) 0)
12262 if (sizeof (ac__type_new_))
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12272 *) ac_try_echo
=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
12277 grep -v '^ *+' conftest.er1
>conftest.err
12279 cat conftest.err
>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.
$ac_objext; then
12285 ac_cv_type_u_int8_t
=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.
$ac_ext >&5
12290 ac_cv_type_u_int8_t
=no
12293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12295 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12296 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12297 if test $ac_cv_type_u_int8_t = yes; then
12301 cat >>confdefs.h
<<\_ACEOF
12302 #define u_int8_t unsigned char
12307 { echo "$as_me:$LINENO: checking for int16_t" >&5
12308 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12309 if test "${ac_cv_type_int16_t+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 cat >conftest.
$ac_ext <<_ACEOF
12315 cat confdefs.h
>>conftest.
$ac_ext
12316 cat >>conftest.
$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 typedef int16_t ac__type_new_;
12323 if ((ac__type_new_ *) 0)
12325 if (sizeof (ac__type_new_))
12331 rm -f conftest.
$ac_objext
12332 if { (ac_try
="$ac_compile"
12333 case "(($ac_try" in
12334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 ac_cv_type_int16_t=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_type_int16_t=no
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12359 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12360 if test $ac_cv_type_int16_t = yes; then
12364 cat >>confdefs.h <<\_ACEOF
12365 #define int16_t short
12368 $ac_includes_default
12369 #ifdef HAVE_SYS_BITYPES_H
12370 #include <sys/bitypes.h>
12374 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12375 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12376 if test "${ac_cv_type_u_int16_t+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12386 #ifdef HAVE_SYS_BITYPES_H
12387 #include <sys/bitypes.h>
12390 typedef u_int16_t ac__type_new_;
12394 if ((ac__type_new_ *) 0)
12396 if (sizeof (ac__type_new_))
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12406 *) ac_try_echo
=$ac_try;;
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_compile") 2>conftest.er1
12411 grep -v '^ *+' conftest.er1
>conftest.err
12413 cat conftest.err
>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.
$ac_objext; then
12419 ac_cv_type_u_int16_t
=yes
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.
$ac_ext >&5
12424 ac_cv_type_u_int16_t
=no
12427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12429 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12430 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12431 if test $ac_cv_type_u_int16_t = yes; then
12435 cat >>confdefs.h
<<\_ACEOF
12436 #define u_int16_t unsigned short
12441 { echo "$as_me:$LINENO: checking for int32_t" >&5
12442 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12443 if test "${ac_cv_type_int32_t+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 cat >conftest.
$ac_ext <<_ACEOF
12449 cat confdefs.h
>>conftest.
$ac_ext
12450 cat >>conftest.
$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 $ac_includes_default
12453 #ifdef HAVE_SYS_BITYPES_H
12454 #include <sys/bitypes.h>
12457 typedef int32_t ac__type_new_;
12461 if ((ac__type_new_ *) 0)
12463 if (sizeof (ac__type_new_))
12469 rm -f conftest.
$ac_objext
12470 if { (ac_try
="$ac_compile"
12471 case "(($ac_try" in
12472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_compile") 2>conftest.er1
12478 grep -v '^ *+' conftest.er1 >conftest.err
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest.$ac_objext; then
12486 ac_cv_type_int32_t=yes
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12491 ac_cv_type_int32_t=no
12494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12497 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12498 if test $ac_cv_type_int32_t = yes; then
12502 cat >>confdefs.h <<\_ACEOF
12503 #define int32_t int
12508 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12509 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12510 if test "${ac_cv_type_u_int32_t+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #ifdef HAVE_SYS_BITYPES_H
12521 #include <sys/bitypes.h>
12524 typedef u_int32_t ac__type_new_;
12528 if ((ac__type_new_ *) 0)
12530 if (sizeof (ac__type_new_))
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12540 *) ac_try_echo
=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12545 grep -v '^ *+' conftest.er1
>conftest.err
12547 cat conftest.err
>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.
$ac_objext; then
12553 ac_cv_type_u_int32_t
=yes
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.
$ac_ext >&5
12558 ac_cv_type_u_int32_t
=no
12561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12563 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12564 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12565 if test $ac_cv_type_u_int32_t = yes; then
12569 cat >>confdefs.h
<<\_ACEOF
12570 #define u_int32_t unsigned int
12575 { echo "$as_me:$LINENO: checking for int64_t" >&5
12576 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12577 if test "${ac_cv_type_int64_t+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 cat >conftest.
$ac_ext <<_ACEOF
12583 cat confdefs.h
>>conftest.
$ac_ext
12584 cat >>conftest.
$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 #ifdef HAVE_SYS_BITYPES_H
12588 #include <sys/bitypes.h>
12591 typedef int64_t ac__type_new_;
12595 if ((ac__type_new_ *) 0)
12597 if (sizeof (ac__type_new_))
12603 rm -f conftest.
$ac_objext
12604 if { (ac_try
="$ac_compile"
12605 case "(($ac_try" in
12606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_compile") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest.$ac_objext; then
12620 ac_cv_type_int64_t=yes
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ac_cv_type_int64_t=no
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12631 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12632 if test $ac_cv_type_int64_t = yes; then
12636 cat >>confdefs.h <<\_ACEOF
12637 #define int64_t long long
12642 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12643 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12644 if test "${ac_cv_type_u_int64_t+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 cat >conftest.$ac_ext <<_ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 $ac_includes_default
12654 #ifdef HAVE_SYS_BITYPES_H
12655 #include <sys/bitypes.h>
12658 typedef u_int64_t ac__type_new_;
12662 if ((ac__type_new_ *) 0)
12664 if (sizeof (ac__type_new_))
12670 rm -f conftest.$ac_objext
12671 if { (ac_try="$ac_compile"
12672 case "(($ac_try" in
12673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12674 *) ac_try_echo
=$ac_try;;
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_compile") 2>conftest.er1
12679 grep -v '^ *+' conftest.er1
>conftest.err
12681 cat conftest.err
>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest.
$ac_objext; then
12687 ac_cv_type_u_int64_t
=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.
$ac_ext >&5
12692 ac_cv_type_u_int64_t
=no
12695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12697 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12698 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12699 if test $ac_cv_type_u_int64_t = yes; then
12703 cat >>confdefs.h
<<\_ACEOF
12704 #define u_int64_t unsigned long long
12711 # We can't just check for <inttypes.h> - some systems have one that
12712 # doesn't define all the PRI[doxu]64 macros.
12715 for ac_header
in inttypes.h
12717 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12721 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 ac_res
=`eval echo '${'$as_ac_Header'}'`
12725 { echo "$as_me:$LINENO: result: $ac_res" >&5
12726 echo "${ECHO_T}$ac_res" >&6; }
12728 # Is the header compilable?
12729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12731 cat >conftest.
$ac_ext <<_ACEOF
12734 cat confdefs.h
>>conftest.
$ac_ext
12735 cat >>conftest.
$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 $ac_includes_default
12738 #include <$ac_header>
12740 rm -f conftest.
$ac_objext
12741 if { (ac_try
="$ac_compile"
12742 case "(($ac_try" in
12743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_compile") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest.$ac_objext; then
12757 ac_header_compiler=yes
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_header_compiler=no
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12767 echo "${ECHO_T}$ac_header_compiler" >&6; }
12769 # Is the header present?
12770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12772 cat >conftest.$ac_ext <<_ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 #include <$ac_header>
12780 if { (ac_try="$ac_cpp conftest.$ac_ext"
12781 case "(($ac_try" in
12782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12783 *) ac_try_echo
=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12788 grep -v '^ *+' conftest.er1
>conftest.err
12790 cat conftest.err
>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } >/dev
/null
&& {
12793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12794 test ! -s conftest.err
12796 ac_header_preproc
=yes
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.
$ac_ext >&5
12801 ac_header_preproc
=no
12804 rm -f conftest.err conftest.
$ac_ext
12805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12806 echo "${ECHO_T}$ac_header_preproc" >&6; }
12808 # So? What about this header?
12809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12815 ac_header_preproc
=yes
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12835 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 eval "$as_ac_Header=\$ac_header_preproc"
12840 ac_res
=`eval echo '${'$as_ac_Header'}'`
12841 { echo "$as_me:$LINENO: result: $ac_res" >&5
12842 echo "${ECHO_T}$ac_res" >&6; }
12845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12846 cat >>confdefs.h
<<_ACEOF
12847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12851 # OK, we have inttypes.h, but does it define those macros?
12853 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12854 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12855 cat >conftest.
$ac_ext <<_ACEOF
12859 cat confdefs.h
>>conftest.
$ac_ext
12860 cat >>conftest.
$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12863 #include <inttypes.h>
12865 #include <sys/types.h>
12866 #ifdef HAVE_SYS_BITYPES_H
12867 #include <sys/bitypes.h>
12872 printf("%" PRId64 "\n", (u_int64_t)1);
12873 printf("%" PRIo64 "\n", (u_int64_t)1);
12874 printf("%" PRIx64 "\n", (u_int64_t)1);
12875 printf("%" PRIu64 "\n", (u_int64_t)1);
12880 rm -f conftest.
$ac_objext
12881 if { (ac_try
="$ac_compile"
12882 case "(($ac_try" in
12883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_compile") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } && {
12894 test -z "$ac_c_werror_flag" ||
12895 test ! -s conftest.err
12896 } && test -s conftest.$ac_objext; then
12898 { echo "$as_me:$LINENO: result: yes" >&5
12899 echo "${ECHO_T}yes" >&6; }
12900 ac_lbl_inttypes_h_defines_formats=yes
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12907 { echo "$as_me:$LINENO: result: no" >&5
12908 echo "${ECHO_T}no" >&6; }
12909 ac_lbl_inttypes_h_defines_formats=no
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 # We don't have inttypes.h, so it obviously can't define those
12921 ac_lbl_inttypes_h_defines_formats=no
12927 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12929 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12930 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12931 if test "$cross_compiling" = yes; then
12932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12933 See \`config.log
' for more details." >&5
12934 echo "$as_me: error: cannot run test program while cross compiling
12935 See \`config.log' for more details.
" >&2;}
12936 { (exit 1); exit 1; }; }
12938 cat >conftest.$ac_ext <<_ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12946 # ifdef HAVE_INTTYPES_H
12947 #include <inttypes.h>
12949 # ifdef HAVE_SYS_BITYPES_H
12950 #include <sys/bitypes.h>
12953 #include <sys/types.h>
12959 sprintf(strbuf, "%016lx
", t << 32);
12960 if (strcmp(strbuf, "0000000100000000") == 0)
12968 rm -f conftest$ac_exeext
12969 if { (ac_try="$ac_link"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>&5
12977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12979 { (case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_try") 2>&5
12986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12987 (exit $ac_status); }; }; then
12989 cat >>confdefs.h <<\_ACEOF
12990 #define PRId64 "ld
"
12993 cat >>confdefs.h <<\_ACEOF
12994 #define PRIo64 "lo
"
12997 cat >>confdefs.h <<\_ACEOF
12998 #define PRIx64 "lx
"
13001 cat >>confdefs.h <<\_ACEOF
13002 #define PRIu64 "lu
"
13005 { echo "$as_me:$LINENO: result
: yes" >&5
13006 echo "${ECHO_T}yes" >&6; }
13009 echo "$as_me: program exited with status
$ac_status" >&5
13010 echo "$as_me: failed program was
:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13013 ( exit $ac_status )
13015 { echo "$as_me:$LINENO: result
: no
" >&5
13016 echo "${ECHO_T}no
" >&6; }
13019 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
13020 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
13021 if test "$cross_compiling" = yes; then
13022 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
13023 See \
`config.log' for more details." >&5
13024 echo "$as_me: error: cannot run test program while cross compiling
13025 See \`config.log
' for more details." >&2;}
13026 { (exit 1); exit 1; }; }
13028 cat >conftest.$ac_ext <<_ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13036 # ifdef HAVE_INTTYPES_H
13037 #include <inttypes.h>
13039 # ifdef HAVE_SYS_BITYPES_H
13040 #include <sys/bitypes.h>
13043 #include <sys/types.h>
13049 sprintf(strbuf, "%016llx", t << 32);
13050 if (strcmp(strbuf, "0000000100000000") == 0)
13058 rm -f conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_link") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13079 cat >>confdefs.h <<\_ACEOF
13080 #define PRId64 "lld"
13083 cat >>confdefs.h <<\_ACEOF
13084 #define PRIo64 "llo"
13087 cat >>confdefs.h <<\_ACEOF
13088 #define PRIx64 "llx"
13091 cat >>confdefs.h <<\_ACEOF
13092 #define PRIu64 "llu"
13095 { echo "$as_me:$LINENO: result: yes" >&5
13096 echo "${ECHO_T}yes" >&6; }
13099 echo "$as_me: program exited with status $ac_status" >&5
13100 echo "$as_me: failed program was:" >&5
13101 sed 's
/^
/|
/' conftest.$ac_ext >&5
13103 ( exit $ac_status )
13105 { echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6; }
13109 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13110 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13111 if test "$cross_compiling" = yes; then
13112 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13113 See \`config.log' for more details.
" >&5
13114 echo "$as_me: error
: cannot run
test program
while cross compiling
13115 See \
`config.log' for more details." >&2;}
13116 { (exit 1); exit 1; }; }
13118 cat >conftest.$ac_ext <<_ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13126 # ifdef HAVE_INTTYPES_H
13127 #include <inttypes.h>
13129 # ifdef HAVE_SYS_BITYPES_H
13130 #include <sys/bitypes.h>
13133 #include <sys/types.h>
13139 sprintf(strbuf, "%016Lx", t << 32);
13140 if (strcmp(strbuf, "0000000100000000") == 0)
13148 rm -f conftest$ac_exeext
13149 if { (ac_try="$ac_link"
13150 case "(($ac_try" in
13151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13152 *) ac_try_echo
=$ac_try;;
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_link") 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13159 { (case "(($ac_try" in
13160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13169 cat >>confdefs.h <<\_ACEOF
13170 #define PRId64 "Ld"
13173 cat >>confdefs.h <<\_ACEOF
13174 #define PRIo64 "Lo"
13177 cat >>confdefs.h <<\_ACEOF
13178 #define PRIx64 "Lx"
13181 cat >>confdefs.h <<\_ACEOF
13182 #define PRIu64 "Lu"
13185 { echo "$as_me:$LINENO: result: yes" >&5
13186 echo "${ECHO_T}yes" >&6; }
13189 echo "$as_me: program exited with status $ac_status" >&5
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ( exit $ac_status )
13195 { echo "$as_me:$LINENO: result: no" >&5
13196 echo "${ECHO_T}no" >&6; }
13199 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13200 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13201 if test "$cross_compiling" = yes; then
13202 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13203 See \`config.log
' for more details." >&5
13204 echo "$as_me: error: cannot run test program while cross compiling
13205 See \`config.log' for more details.
" >&2;}
13206 { (exit 1); exit 1; }; }
13208 cat >conftest.$ac_ext <<_ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13216 # ifdef HAVE_INTTYPES_H
13217 #include <inttypes.h>
13219 # ifdef HAVE_SYS_BITYPES_H
13220 #include <sys/bitypes.h>
13223 #include <sys/types.h>
13229 sprintf(strbuf, "%016qx
", t << 32);
13230 if (strcmp(strbuf, "0000000100000000") == 0)
13238 rm -f conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_link") 2>&5
13247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13257 (exit $ac_status); }; }; then
13259 cat >>confdefs.h <<\_ACEOF
13260 #define PRId64 "qd
"
13263 cat >>confdefs.h <<\_ACEOF
13264 #define PRIo64 "qo
"
13267 cat >>confdefs.h <<\_ACEOF
13268 #define PRIx64 "qx
"
13271 cat >>confdefs.h <<\_ACEOF
13272 #define PRIu64 "qu
"
13275 { echo "$as_me:$LINENO: result
: yes" >&5
13276 echo "${ECHO_T}yes" >&6; }
13279 echo "$as_me: program exited with status
$ac_status" >&5
13280 echo "$as_me: failed program was
:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 ( exit $ac_status )
13285 { echo "$as_me:$LINENO: result
: no
" >&5
13286 echo "${ECHO_T}no
" >&6; }
13288 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
13289 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
13290 { (exit 1); exit 1; }; }
13294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13325 if test -n "$ac_tool_prefix"; then
13326 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13328 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13329 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13330 if test "${ac_cv_prog_RANLIB+set}" = set; then
13331 echo $ECHO_N "(cached
) $ECHO_C" >&6
13333 if test -n "$RANLIB"; then
13334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13344 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13353 RANLIB=$ac_cv_prog_RANLIB
13354 if test -n "$RANLIB"; then
13355 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
13356 echo "${ECHO_T}$RANLIB" >&6; }
13358 { echo "$as_me:$LINENO: result
: no
" >&5
13359 echo "${ECHO_T}no
" >&6; }
13364 if test -z "$ac_cv_prog_RANLIB"; then
13365 ac_ct_RANLIB=$RANLIB
13366 # Extract the first word of "ranlib
", so it can be a program name with args.
13367 set dummy ranlib; ac_word=$2
13368 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13369 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13370 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13371 echo $ECHO_N "(cached
) $ECHO_C" >&6
13373 if test -n "$ac_ct_RANLIB"; then
13374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377 for as_dir in $PATH
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
13382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13383 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13384 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13394 if test -n "$ac_ct_RANLIB"; then
13395 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
13396 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13398 { echo "$as_me:$LINENO: result
: no
" >&5
13399 echo "${ECHO_T}no
" >&6; }
13402 if test "x
$ac_ct_RANLIB" = x; then
13405 case $cross_compiling:$ac_tool_warned in
13407 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13408 whose name does not start with the
host triplet. If you think this
13409 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13410 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13411 whose name does not start with the
host triplet. If you think this
13412 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13413 ac_tool_warned=yes ;;
13415 RANLIB=$ac_ct_RANLIB
13418 RANLIB="$ac_cv_prog_RANLIB"
13423 if test "${LBL_CFLAGS+set}" = set; then
13424 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13426 if test -f .devel ; then
13427 if test "$GCC" = yes ; then
13428 if test "${LBL_CFLAGS+set}" != set; then
13429 if test "$ac_cv_prog_cc_g" = yes ; then
13430 V_CCOPT="-g $V_CCOPT"
13432 V_CCOPT="$V_CCOPT -Wall"
13433 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13434 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13441 V_CCOPT="$V_CCOPT -n32"
13448 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13449 name="lbl
/os-
$os.h
"
13450 if test -f $name ; then
13451 ln -s $name os-proto.h
13453 cat >>confdefs.h <<\_ACEOF
13454 #define HAVE_OS_PROTO_H 1
13458 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
13459 echo "$as_me: WARNING: can't
find $name" >&2;}
13463 { echo "$as_me:$LINENO: checking
if sockaddr struct has the sa_len member
" >&5
13464 echo $ECHO_N "checking
if sockaddr struct has the sa_len member...
$ECHO_C" >&6; }
13465 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13466 echo $ECHO_N "(cached
) $ECHO_C" >&6
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13475 # include <sys/types.h>
13476 # include <sys/socket.h>
13480 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_compile") 2>conftest.er1
13494 grep -v '^ *+' conftest.er1 >conftest.err
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_c_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest.$ac_objext; then
13502 ac_cv_lbl_sockaddr_has_sa_len=yes
13504 echo "$as_me: failed program was
:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 ac_cv_lbl_sockaddr_has_sa_len=no
13510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13514 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13515 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_SOCKADDR_SA_LEN 1
13523 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
13524 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
13525 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13526 echo $ECHO_N "(cached
) $ECHO_C" >&6
13528 case "$host_cpu" in
13531 # These are CPU types where:
13533 # the CPU faults on an unaligned access, but at least some
13534 # OSes that support that CPU catch the fault and simulate
13535 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13536 # the simulation is slow, so we don't want to use it;
13538 # the CPU, I infer (from the old
13540 # XXX: should also check that they don't do weird things (like on arm)
13542 # comment) doesn't fault on unaligned accesses, but doesn't
13543 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13545 # for whatever reason, the test program doesn't work
13546 # (this has been claimed to be the case for several of those
13547 # CPUs - I don't know what the problem is; the problem
13548 # was reported as "the
test program dumps core
" for SuperH,
13549 # but that's what the test program is *supposed* to do -
13550 # it dumps core before it writes anything, so the test
13551 # for an empty output file should find an empty output
13552 # file and conclude that unaligned accesses don't work).
13554 # This run-time test won't work if you're cross-compiling, so
13555 # in order to support cross-compiling for a particular CPU,
13556 # we have to wire in the list of CPU types anyway, as far as
13557 # I know, so perhaps we should just have a set of CPUs on
13558 # which we know it doesn't work, a set of CPUs on which we
13559 # know it does work, and have the script just fail on other
13560 # cpu types and update it when such a failure occurs.
13562 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13563 ac_cv_lbl_unaligned_fail=yes
13567 cat >conftest.c <<EOF
13568 # include <sys/types.h>
13569 # include <sys/wait.h>
13570 # include <stdio.h>
13571 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13576 /* avoid "core dumped
" message */
13582 pid = waitpid(pid, &status, 0);
13585 exit(!WIFEXITED(status));
13588 i = *(unsigned int *)&a[1];
13593 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13594 conftest.c $LIBS >/dev/null 2>&1
13595 if test ! -x conftest ; then
13596 ac_cv_lbl_unaligned_fail=yes
13598 ./conftest >conftest.out
13599 if test ! -s conftest.out ; then
13600 ac_cv_lbl_unaligned_fail=yes
13602 ac_cv_lbl_unaligned_fail=no
13605 rm -f -r conftest* core core.conftest
13610 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
13611 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13612 if test $ac_cv_lbl_unaligned_fail = yes ; then
13614 cat >>confdefs.h <<\_ACEOF
13615 #define LBL_ALIGN 1
13621 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
13622 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
13623 if test "${ac_cv_var_h_errno+set}" = set; then
13624 echo $ECHO_N "(cached
) $ECHO_C" >&6
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 # include <sys/types.h>
13634 # include <netdb.h>
13643 rm -f conftest.$ac_objext
13644 if { (ac_try="$ac_compile"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compile") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13656 (exit $ac_status); } && {
13657 test -z "$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 } && test -s conftest.$ac_objext; then
13660 ac_cv_var_h_errno=yes
13662 echo "$as_me: failed program was
:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 ac_cv_var_h_errno=no
13668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
13672 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13673 if test "$ac_cv_var_h_errno" = "yes"; then
13674 cat >>confdefs.h <<\_ACEOF
13675 #define HAVE_H_ERRNO 1
13682 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto
" >&5
13683 echo $ECHO_N "checking whether to use SSLeay libcrypto...
$ECHO_C" >&6; }
13684 # Specify location for both includes and libraries.
13685 want_libcrypto=youmama
13687 # Check whether --with-crypto was given.
13688 if test "${with_crypto+set}" = set; then
13689 withval=$with_crypto;
13690 if test $withval = no
13693 { echo "$as_me:$LINENO: result
: no
" >&5
13694 echo "${ECHO_T}no
" >&6; }
13695 elif test $withval = yes
13698 { echo "$as_me:$LINENO: result
: yes" >&5
13699 echo "${ECHO_T}yes" >&6; }
13702 { echo "$as_me:$LINENO: result
: yes" >&5
13703 echo "${ECHO_T}yes" >&6; }
13704 crypto_dir=$withval
13710 # Use libcrypto if it's present, otherwise don't.
13712 want_libcrypto=ifavailable
13713 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
13714 echo "${ECHO_T}yes, if available
" >&6; }
13718 if test "$want_libcrypto" != "no
"; then
13719 ac_cv_ssleay_path=no
13721 if test "x
$crypto_dir" = x; then
13723 # Location not specified; check the default locations.
13725 { echo "$as_me:$LINENO: checking where SSLeay is located
" >&5
13726 echo $ECHO_N "checking where SSLeay is located...
$ECHO_C" >&6; }
13727 dirs="/usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
"
13728 if test "x
${host_alias}" != x; then
13729 dirs="/usr
/${host_alias} $dirs"
13731 for dir in $dirs; do
13734 # Find the last component of $libdir; it's not necessarily
13735 # "lib
" - it might be "lib64
" on, for example, x86-64
13738 # We assume the directory in which we're looking for
13739 # libcrypto has a subdirectory with that as its name.
13741 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13744 # XXX - is there a better way to check if a given library is
13745 # in a given directory than checking each of the possible
13746 # shared library suffixes?
13748 # Are there any other suffixes we need to look for? Do we
13749 # have to worry about ".so.
{version
}"?
13751 # Or should we just look for "libcrypto.
*"?
13753 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a
" -o \
13754 -f "$dir/$tmplib/libcrypto.so
" -o \
13755 -f "$dir/$tmplib/libcrypto.sl
" -o \
13756 -f "$dir/$tmplib/libcrypto.dylib
" \); then
13757 ac_cv_ssleay_path="$dir"
13761 # Make sure we have the headers as well.
13763 if test -d "$dir/include
/openssl
" -a -f "$dir/include
/openssl
/des.h
"; then
13764 incdir="-I$dir/include
"
13768 if test "$ac_cv_ssleay_path" != "no
" -a "$incdir" != "no
"; then
13771 ac_cv_ssleay_path=no
13775 if test "$ac_cv_ssleay_path" != no; then
13776 { echo "$as_me:$LINENO: result
: $ac_cv_ssleay_path" >&5
13777 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13780 { echo "$as_me:$LINENO: checking
for SSLeay
in $crypto_dir" >&5
13781 echo $ECHO_N "checking
for SSLeay
in $crypto_dir...
$ECHO_C" >&6; }
13784 # Find the last component of $libdir; it's not necessarily
13785 # "lib
" - it might be "lib64
" on, for example, x86-64
13788 # We assume the directory in which we're looking for
13789 # libcrypto has a subdirectory with that as its name.
13791 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13794 # XXX - is there a better way to check if a given library is
13795 # in a given directory than checking each of the possible
13796 # shared library suffixes?
13798 # Are there any other suffixes we need to look for? Do we
13799 # have to worry about ".so.
{version
}"?
13801 # Or should we just look for "libcrypto.
*"?
13803 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a
" -o \
13804 -f "$crypto_dir/$tmplib/libcrypto.so
" -o \
13805 -f "$crypto_dir/$tmplib/libcrypto.sl
" -o \
13806 -f "$crypto_dir/$tmplib/libcrypto.dylib
" \); then
13807 ac_cv_ssleay_path="$crypto_dir"
13811 # Make sure we have the headers as well.
13813 if test -d "$crypto_dir/include
/openssl
" -a -f "$crypto_dir/include
/openssl
/des.h
"; then
13814 incdir="-I$crypto_dir/include
"
13817 if test "$ac_cv_ssleay_path" != no; then
13818 { echo "$as_me:$LINENO: result
: found
" >&5
13819 echo "${ECHO_T}found
" >&6; }
13822 if test "$ac_cv_ssleay_path" != no; then
13823 V_INCLS="$V_INCLS $incdir"
13824 if test "$dir" != "/usr
"; then
13825 LDFLAGS="-L$dir/lib
$LDFLAGS"
13827 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13828 LIBS="$LIBS -lRSAglue"
13830 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13831 LIBS="$LIBS -lrsaref"
13834 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
13835 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
13836 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13837 echo $ECHO_N "(cached
) $ECHO_C" >&6
13839 ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-lcrypto $LIBS"
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13854 char DES_cbc_encrypt ();
13858 return DES_cbc_encrypt ();
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (ac_try="$ac_link"
13865 case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_link") 2>conftest.er1
13872 grep -v '^ *+' conftest.er1 >conftest.err
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13876 (exit $ac_status); } && {
13877 test -z "$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 } && test -s conftest$ac_exeext &&
13880 $as_test_x conftest$ac_exeext; then
13881 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13883 echo "$as_me: failed program was
:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 ac_cv_lib_crypto_DES_cbc_encrypt=no
13889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13890 conftest$ac_exeext conftest.$ac_ext
13891 LIBS=$ac_check_lib_save_LIBS
13893 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13894 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13895 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13896 cat >>confdefs.h <<_ACEOF
13897 #define HAVE_LIBCRYPTO 1
13900 LIBS="-lcrypto $LIBS"
13905 CPPFLAGS="$CPPFLAGS $V_INCLS"
13907 for ac_header in openssl/evp.h
13909 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13910 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13911 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13912 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13913 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13914 echo $ECHO_N "(cached
) $ECHO_C" >&6
13916 ac_res=`eval echo '${'$as_ac_Header'}'`
13917 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13918 echo "${ECHO_T}$ac_res" >&6; }
13920 # Is the header compilable?
13921 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13922 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <$ac_header>
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_header_compiler=yes
13951 echo "$as_me: failed program was
:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_header_compiler=no
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
13961 # Is the header present?
13962 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13963 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <$ac_header>
13972 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13984 (exit $ac_status); } >/dev/null && {
13985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13988 ac_header_preproc=yes
13990 echo "$as_me: failed program was
:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_preproc=no
13996 rm -f conftest.err conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
14000 # So? What about this header?
14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14004 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14005 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14007 ac_header_preproc=yes
14010 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14011 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14012 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14013 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14014 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14015 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14016 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14017 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14018 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14020 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14021 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14025 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14026 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14027 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14028 echo $ECHO_N "(cached
) $ECHO_C" >&6
14030 eval "$as_ac_Header=\
$ac_header_preproc"
14032 ac_res=`eval echo '${'$as_ac_Header'}'`
14033 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14034 echo "${ECHO_T}$ac_res" >&6; }
14037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14038 cat >>confdefs.h <<_ACEOF
14039 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14048 # Not found. Did the user explicitly ask for it?
14050 { echo "$as_me:$LINENO: result
: not found
" >&5
14051 echo "${ECHO_T}not found
" >&6; }
14052 if test "$want_libcrypto" = yes; then
14053 { { echo "$as_me:$LINENO: error
: SSLeay not found
" >&5
14054 echo "$as_me: error
: SSLeay not found
" >&2;}
14055 { (exit 1); exit 1; }; }
14060 if test "$missing_includes" = "yes"; then
14061 CPPFLAGS="$CPPFLAGS -I\$
(srcdir
)/missing
"
14062 V_INCLS="$V_INCLS -I\$
(srcdir
)/missing
"
14074 # Find a good install program. We prefer a C program (faster),
14075 # so one script is as good as another. But avoid the broken or
14076 # incompatible versions:
14077 # SysV /etc/install, /usr/sbin/install
14078 # SunOS /usr/etc/install
14079 # IRIX /sbin/install
14081 # AmigaOS /C/install, which installs bootblocks on floppy discs
14082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
14085 # OS/2's system install, which has a completely different semantic
14086 # ./install, which can be erroneously created by make from ./install.sh.
14087 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
14088 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
14089 if test -z "$INSTALL"; then
14090 if test "${ac_cv_path_install+set}" = set; then
14091 echo $ECHO_N "(cached
) $ECHO_C" >&6
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14097 test -z "$as_dir" && as_dir=.
14098 # Account for people who put trailing slashes in PATH elements.
14100 ./ | .// | /cC/* | \
14101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14102 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14105 # OSF1 and SCO ODT 3.0 have their own names for install.
14106 # Don't use installbsd from OSF since it installs stuff as root
14108 for ac_prog in ginstall scoinst install; do
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14111 if test $ac_prog = install &&
14112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14113 # AIX install. It has an incompatible calling convention.
14115 elif test $ac_prog = install &&
14116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14117 # program-specific install script used by HP pwplus--don't use.
14120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14133 if test "${ac_cv_path_install+set}" = set; then
14134 INSTALL=$ac_cv_path_install
14136 # As a last resort, use the slow shell script. Don't cache a
14137 # value for INSTALL within a source directory, because that will
14138 # break other packages using the cache if that directory is
14139 # removed, or if the value is a relative name.
14140 INSTALL=$ac_install_sh
14143 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
14144 echo "${ECHO_T}$INSTALL" >&6; }
14146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14147 # It thinks the first close brace ends the variable substitution.
14148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14155 ac_config_headers="$ac_config_headers config.h
"
14158 ac_config_commands="$ac_config_commands default-1
"
14160 ac_config_files="$ac_config_files Makefile tcpdump
.1"
14162 cat >confcache <<\_ACEOF
14163 # This file is a shell script that caches the results of configure
14164 # tests run on this system so they can be shared between configure
14165 # scripts and configure runs, see configure's option --config-cache.
14166 # It is not useful on other systems. If it contains results you don't
14167 # want to keep, you may remove or edit it.
14169 # config.status only pays attention to the cache file if you give it
14170 # the --recheck option to rerun configure.
14172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14174 # following values.
14178 # The following way of writing the cache mishandles newlines in values,
14179 # but we know of no workaround that is simple, portable, and efficient.
14180 # So, we kill variables containing newlines.
14181 # Ultrix sh set writes to stderr and can't be redirected directly,
14182 # and sets the high bit in the cache file unless we assign to the vars.
14184 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14185 eval ac_val=\$$ac_var
14189 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
14190 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
14193 _ | IFS | as_nl) ;; #(
14194 *) $as_unset $ac_var ;;
14200 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14201 *${as_nl}ac_space=\ *)
14202 # `set' does not quote correctly, so add quotes (double-quote
14203 # substitution turns \\\\ into \\, and sed turns \\ into \).
14206 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
14209 # `set' quotes correctly as required by POSIX, so do not add quotes.
14210 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
14219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14223 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14224 if test -w "$cache_file"; then
14225 test "x
$cache_file" != "x
/dev
/null
" &&
14226 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
14227 echo "$as_me: updating cache
$cache_file" >&6;}
14228 cat confcache >$cache_file
14230 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
14231 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
14236 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
14237 # Let make expand exec_prefix.
14238 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
14240 DEFS=-DHAVE_CONFIG_H
14244 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
14245 # 1. Remove the extension, and $U if already installed.
14246 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14247 ac_i=`echo "$ac_i" | sed "$ac_script"`
14248 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14249 # will be set to the directory where LIBOBJS objects are built.
14250 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
14251 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
14253 LIBOBJS=$ac_libobjs
14255 LTLIBOBJS=$ac_ltlibobjs
14259 : ${CONFIG_STATUS=./config.status}
14260 ac_clean_files_save=$ac_clean_files
14261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14262 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
14263 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
14264 cat >$CONFIG_STATUS <<_ACEOF
14266 # Generated by $as_me.
14267 # Run this file to recreate the current configuration.
14268 # Compiler output produced by configure, useful for debugging
14269 # configure, is in config.log if it exists.
14272 ac_cs_recheck=false
14274 SHELL=\${CONFIG_SHELL-$SHELL}
14277 cat >>$CONFIG_STATUS <<\_ACEOF
14278 ## --------------------- ##
14279 ## M4sh Initialization. ##
14280 ## --------------------- ##
14282 # Be more Bourne compatible
14283 DUALCASE=1; export DUALCASE # for MKS sh
14284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14287 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14288 # is contrary to our usage. Disable this feature.
14289 alias -g '${1+"$@"}'='"$@
"'
14290 setopt NO_GLOB_SUBST
14292 case `(set -o) 2>/dev/null` in
14293 *posix*) set -o posix ;;
14302 # Avoid depending upon Character Ranges.
14303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14306 as_cr_digits='0123456789'
14307 as_cr_alnum=$as_cr_Letters$as_cr_digits
14309 # The user is always right.
14310 if test "${PATH_SEPARATOR+set}" != set; then
14311 echo "#! /bin/sh" >conf$$.sh
14312 echo "exit 0" >>conf$$.sh
14314 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14322 # Support unset when possible.
14323 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
14331 # We need space, tab and new line, in precisely that order. Quoting is
14332 # there to prevent editors from complaining about space-tab.
14333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14334 # splitting by setting IFS to empty value.)
14339 # Find who we are. Look in the path if we contain no directory separator.
14341 *[\\/]* ) as_myself
=$0 ;;
14342 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14343 for as_dir
in $PATH
14346 test -z "$as_dir" && as_dir
=.
14347 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14353 # We did not find ourselves, most probably we were run as `sh COMMAND'
14354 # in which case we are not to be found in the path.
14355 if test "x$as_myself" = x
; then
14358 if test ! -f "$as_myself"; then
14359 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14360 { (exit 1); exit 1; }
14363 # Work around bugs in pre-3.0 UWIN ksh.
14364 for as_var
in ENV MAIL MAILPATH
14365 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14373 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14374 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14375 LC_TELEPHONE LC_TIME
14377 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14378 eval $as_var=C
; export $as_var
14380 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14384 # Required to use basename.
14385 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14386 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14392 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14393 as_basename
=basename
14399 # Name of the executable.
14400 as_me
=`$as_basename -- "$0" ||
14401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14402 X"$0" : 'X\(//\)$' \| \
14403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14405 sed '/^.*\/\([^/][^/]*\)\/*$/{
14424 as_lineno_1
=$LINENO
14425 as_lineno_2
=$LINENO
14426 test "x$as_lineno_1" != "x$as_lineno_2" &&
14427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
14429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14430 # uniformly replaced by the line number. The first 'sed' inserts a
14431 # line-number line after each line using $LINENO; the second 'sed'
14432 # does the real work. The second script uses 'N' to pair each
14433 # line-number line with the line containing $LINENO, and appends
14434 # trailing '-' during substitution so that $LINENO is not a special
14435 # case at line end.
14436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14437 # scripts with optimization help from Paolo Bonzini. Blame Lee
14438 # E. McMahon (1931-1989) for sed's syntax. :-)
14450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14453 ' >$as_me.lineno
&&
14454 chmod +x
"$as_me.lineno" ||
14455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14456 { (exit 1); exit 1; }; }
14458 # Don't try to exec as it changes $[0], causing all sort of problems
14459 # (the dirname of $[0] is not the place where we might find the
14460 # original and so on. Autoconf is especially sensitive to this).
14461 .
"./$as_me.lineno"
14462 # Exit status is that of the last command.
14467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14473 ECHO_C
= ECHO_N
= ECHO_T
=
14474 case `echo -n x` in
14476 case `echo 'x\c'` in
14477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14491 rm -f conf$$ conf$$.exe conf$$.
file
14492 if test -d conf$$.dir
; then
14493 rm -f conf$$.dir
/conf$$.
file
14499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14501 # ... but there are two gotchas:
14502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14504 # In both cases, we have to default to `cp -p'.
14505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14513 rmdir conf$$.dir
2>/dev
/null
14515 if mkdir
-p .
2>/dev
/null
; then
14518 test -d .
/-p && rmdir .
/-p
14522 if test -x / >/dev
/null
2>&1; then
14523 as_test_x
='test -x'
14525 if ls -dL / >/dev
/null
2>&1; then
14532 if test -d "$1"; then
14538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14539 ???[sx]*):;;*)false;;esac;fi
14543 as_executable_p
=$as_test_x
14545 # Sed expression to map a string onto a valid CPP name.
14546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14548 # Sed expression to map a string onto a valid variable name.
14549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14554 # Save the log message, to keep $[0] and so on meaningful, and to
14555 # report actual input values of CONFIG_FILES etc. instead of their
14556 # values after options handling.
14558 This file was extended by $as_me, which was
14559 generated by GNU Autoconf 2.61. Invocation command line was
14561 CONFIG_FILES = $CONFIG_FILES
14562 CONFIG_HEADERS = $CONFIG_HEADERS
14563 CONFIG_LINKS = $CONFIG_LINKS
14564 CONFIG_COMMANDS = $CONFIG_COMMANDS
14567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14572 cat >>$CONFIG_STATUS <<_ACEOF
14573 # Files that config.status was made for.
14574 config_files="$ac_config_files"
14575 config_headers="$ac_config_headers"
14576 config_commands="$ac_config_commands"
14580 cat >>$CONFIG_STATUS <<\_ACEOF
14582 \`$as_me' instantiates files from templates according to the
14583 current configuration.
14585 Usage: $0 [OPTIONS] [FILE]...
14587 -h, --help print this help, then exit
14588 -V, --version print version number and configuration settings, then exit
14589 -q, --quiet do not print progress messages
14590 -d, --debug don't remove temporary files
14591 --recheck update $as_me by reconfiguring in the same conditions
14592 --file=FILE[:TEMPLATE]
14593 instantiate the configuration file FILE
14594 --header=FILE[:TEMPLATE]
14595 instantiate the configuration header FILE
14597 Configuration files:
14600 Configuration headers:
14603 Configuration commands:
14606 Report bugs to <bug-autoconf@gnu.org>."
14609 cat >>$CONFIG_STATUS <<_ACEOF
14612 configured by $0, generated by GNU Autoconf 2.61,
14613 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14615 Copyright (C) 2006 Free Software Foundation, Inc.
14616 This config.status script is free software; the Free Software Foundation
14617 gives unlimited permission to copy, distribute and modify it."
14624 cat >>$CONFIG_STATUS <<\_ACEOF
14625 # If no file are specified by the user, then we need to provide default
14626 # value. By we need to know if files were specified by the user.
14632 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14633 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14644 # Handling of the options.
14645 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14647 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14648 echo "$ac_cs_version"; exit ;;
14649 --debug |
--debu |
--deb |
--de |
--d |
-d )
14651 --file |
--fil |
--fi |
--f )
14653 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14654 ac_need_defaults
=false
;;
14655 --header |
--heade |
--head |
--hea )
14657 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14658 ac_need_defaults
=false
;;
14660 # Conflict between --help and --header
14661 { echo "$as_me: error: ambiguous option: $1
14662 Try \`$0 --help' for more information." >&2
14663 { (exit 1); exit 1; }; };;
14664 --help |
--hel |
-h )
14665 echo "$ac_cs_usage"; exit ;;
14666 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14667 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14670 # This is an error.
14671 -*) { echo "$as_me: error: unrecognized option: $1
14672 Try \`$0 --help' for more information." >&2
14673 { (exit 1); exit 1; }; } ;;
14675 *) ac_config_targets
="$ac_config_targets $1"
14676 ac_need_defaults
=false
;;
14682 ac_configure_extra_args
=
14684 if $ac_cs_silent; then
14686 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14690 cat >>$CONFIG_STATUS <<_ACEOF
14691 if \$ac_cs_recheck; then
14692 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14693 CONFIG_SHELL=$SHELL
14694 export CONFIG_SHELL
14695 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14699 cat >>$CONFIG_STATUS <<\_ACEOF
14703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14704 ## Running $as_me. ##
14710 cat >>$CONFIG_STATUS <<_ACEOF
14718 cat >>$CONFIG_STATUS <<\_ACEOF
14720 # Handling of arguments.
14721 for ac_config_target
in $ac_config_targets
14723 case $ac_config_target in
14724 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14725 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14726 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14727 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
14729 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14730 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14731 { (exit 1); exit 1; }; };;
14736 # If the user did not use the arguments to specify the items to instantiate,
14737 # then the envvar interface is used. Set only those that are not.
14738 # We use the long form for the default assignment because of an extremely
14739 # bizarre bug on SunOS 4.1.3.
14740 if $ac_need_defaults; then
14741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14746 # Have a temporary directory for convenience. Make it in the build tree
14747 # simply because there is no reason against having it here, and in addition,
14748 # creating and moving files from /tmp can sometimes cause problems.
14749 # Hook for its removal unless debugging.
14750 # Note that there is a small window in which the directory will not be cleaned:
14751 # after its creation but before its name has been assigned to `$tmp'.
14755 trap 'exit_status=$?
14756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14758 trap '{ (exit 1); exit 1; }' 1 2 13 15
14760 # Create a (secure) tmp directory for tmp files.
14763 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14764 test -n "$tmp" && test -d "$tmp"
14767 tmp
=.
/conf$$
-$RANDOM
14768 (umask 077 && mkdir
"$tmp")
14771 echo "$me: cannot create a temporary directory in ." >&2
14772 { (exit 1); exit 1; }
14776 # Set up the sed scripts for CONFIG_FILES section.
14779 # No need to generate the scripts if there are no CONFIG_FILES.
14780 # This happens for instance when ./config.status config.h
14781 if test -n "$CONFIG_FILES"; then
14788 for ac_last_try
in false false false false false
:; do
14789 cat >conf$
$subs.
sed <<_ACEOF
14790 SHELL!$SHELL$ac_delim
14791 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14792 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14793 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14794 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14795 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14796 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14797 exec_prefix!$exec_prefix$ac_delim
14798 prefix!$prefix$ac_delim
14799 program_transform_name!$program_transform_name$ac_delim
14800 bindir!$bindir$ac_delim
14801 sbindir!$sbindir$ac_delim
14802 libexecdir!$libexecdir$ac_delim
14803 datarootdir!$datarootdir$ac_delim
14804 datadir!$datadir$ac_delim
14805 sysconfdir!$sysconfdir$ac_delim
14806 sharedstatedir!$sharedstatedir$ac_delim
14807 localstatedir!$localstatedir$ac_delim
14808 includedir!$includedir$ac_delim
14809 oldincludedir!$oldincludedir$ac_delim
14810 docdir!$docdir$ac_delim
14811 infodir!$infodir$ac_delim
14812 htmldir!$htmldir$ac_delim
14813 dvidir!$dvidir$ac_delim
14814 pdfdir!$pdfdir$ac_delim
14815 psdir!$psdir$ac_delim
14816 libdir!$libdir$ac_delim
14817 localedir!$localedir$ac_delim
14818 mandir!$mandir$ac_delim
14819 DEFS!$DEFS$ac_delim
14820 ECHO_C!$ECHO_C$ac_delim
14821 ECHO_N!$ECHO_N$ac_delim
14822 ECHO_T!$ECHO_T$ac_delim
14823 LIBS!$LIBS$ac_delim
14824 build_alias!$build_alias$ac_delim
14825 host_alias!$host_alias$ac_delim
14826 target_alias!$target_alias$ac_delim
14827 build!$build$ac_delim
14828 build_cpu!$build_cpu$ac_delim
14829 build_vendor!$build_vendor$ac_delim
14830 build_os!$build_os$ac_delim
14831 host!$host$ac_delim
14832 host_cpu!$host_cpu$ac_delim
14833 host_vendor!$host_vendor$ac_delim
14834 host_os!$host_os$ac_delim
14835 SHLICC2!$SHLICC2$ac_delim
14837 CFLAGS!$CFLAGS$ac_delim
14838 LDFLAGS!$LDFLAGS$ac_delim
14839 CPPFLAGS!$CPPFLAGS$ac_delim
14840 ac_ct_CC!$ac_ct_CC$ac_delim
14841 EXEEXT!$EXEEXT$ac_delim
14842 OBJEXT!$OBJEXT$ac_delim
14844 GREP!$GREP$ac_delim
14845 EGREP!$EGREP$ac_delim
14846 LIBOBJS!$LIBOBJS$ac_delim
14847 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14848 RANLIB!$RANLIB$ac_delim
14849 V_CCOPT!$V_CCOPT$ac_delim
14850 V_DEFS!$V_DEFS$ac_delim
14851 V_GROUP!$V_GROUP$ac_delim
14852 V_INCLS!$V_INCLS$ac_delim
14853 V_PCAPDEP!$V_PCAPDEP$ac_delim
14854 LOCALSRC!$LOCALSRC$ac_delim
14855 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14856 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14857 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14858 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14859 INSTALL_DATA!$INSTALL_DATA$ac_delim
14860 LTLIBOBJS!$LTLIBOBJS$ac_delim
14863 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
14865 elif $ac_last_try; then
14866 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14867 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14868 { (exit 1); exit 1; }; }
14870 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14874 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14875 if test -n "$ac_eof"; then
14876 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14877 ac_eof
=`expr $ac_eof + 1`
14880 cat >>$CONFIG_STATUS <<_ACEOF
14881 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14885 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14886 s/^/s,@/; s/!/@,|#_!!_#|/
14889 s/'"$ac_delim"'$/,g/; t
14891 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14892 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14893 rm -f conf$
$subs.
sed
14894 cat >>$CONFIG_STATUS <<_ACEOF
14901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14903 # trailing colons and then remove the whole line if VPATH becomes empty
14904 # (actually we leave an empty line to preserve line numbers).
14905 if test "x$srcdir" = x.
; then
14906 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14907 s/:*\$(srcdir):*/:/
14908 s/:*\${srcdir}:*/:/
14910 s/^\([^=]*=[ ]*\):*/\1/
14916 cat >>$CONFIG_STATUS <<\_ACEOF
14917 fi # test -n "$CONFIG_FILES"
14920 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
14923 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14925 case $ac_mode$ac_tag in
14927 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14928 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14929 { (exit 1); exit 1; }; };;
14930 :[FH
]-) ac_tag
=-:-;;
14931 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14948 -) ac_f
="$tmp/stdin";;
14949 *) # Look for the file first in the build tree, then in the source tree
14950 # (if the path is not absolute). The absolute path cannot be DOS-style,
14951 # because $ac_f cannot contain `:'.
14955 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14957 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14958 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14959 { (exit 1); exit 1; }; };;
14961 ac_file_inputs
="$ac_file_inputs $ac_f"
14964 # Let's still pretend it is `configure' which instantiates (i.e., don't
14965 # use $as_me), people would be surprised to read:
14966 # /* config.h. Generated by config.status. */
14967 configure_input
="Generated from "`IFS=:
14968 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14969 if test x
"$ac_file" != x-
; then
14970 configure_input
="$ac_file. $configure_input"
14971 { echo "$as_me:$LINENO: creating $ac_file" >&5
14972 echo "$as_me: creating $ac_file" >&6;}
14976 *:-:* |
*:-) cat >"$tmp/stdin";;
14981 ac_dir
=`$as_dirname -- "$ac_file" ||
14982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14983 X"$ac_file" : 'X\(//\)[^/]' \| \
14984 X"$ac_file" : 'X\(//\)$' \| \
14985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14991 /^X\(\/\/\)[^/].*/{
15006 -*) as_dir
=.
/$as_dir;;
15008 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
15012 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15013 *) as_qdir
=$as_dir;;
15015 as_dirs
="'$as_qdir' $as_dirs"
15016 as_dir
=`$as_dirname -- "$as_dir" ||
15017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15018 X"$as_dir" : 'X\(//\)[^/]' \| \
15019 X"$as_dir" : 'X\(//\)$' \| \
15020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15026 /^X\(\/\/\)[^/].*/{
15039 test -d "$as_dir" && break
15041 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15042 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15043 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15044 { (exit 1); exit 1; }; }; }
15048 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15050 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15051 # A ".." for each directory in $ac_dir_suffix.
15052 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15053 case $ac_top_builddir_sub in
15054 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15055 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15058 ac_abs_top_builddir
=$ac_pwd
15059 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15060 # for backward compatibility:
15061 ac_top_builddir
=$ac_top_build_prefix
15064 .
) # We are building in place.
15066 ac_top_srcdir
=$ac_top_builddir_sub
15067 ac_abs_top_srcdir
=$ac_pwd ;;
15068 [\\/]* | ?
:[\\/]* ) # Absolute name.
15069 ac_srcdir
=$srcdir$ac_dir_suffix;
15070 ac_top_srcdir
=$srcdir
15071 ac_abs_top_srcdir
=$srcdir ;;
15072 *) # Relative name.
15073 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15074 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15075 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15077 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15087 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15088 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15092 cat >>$CONFIG_STATUS <<\_ACEOF
15093 # If the template does not know about datarootdir, expand it.
15094 # FIXME: This hack should be removed a few years after 2.60.
15095 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15097 case `sed -n '/datarootdir/ {
15106 ' $ac_file_inputs` in
15107 *datarootdir
*) ac_datarootdir_seen
=yes;;
15108 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15109 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15110 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15112 cat >>$CONFIG_STATUS <<_ACEOF
15113 ac_datarootdir_hack='
15114 s&@datadir@&$datadir&g
15115 s&@docdir@&$docdir&g
15116 s&@infodir@&$infodir&g
15117 s&@localedir@&$localedir&g
15118 s&@mandir@&$mandir&g
15119 s&\\\${datarootdir}&$datarootdir&g' ;;
15123 # Neutralize VPATH when `$srcdir' = `.'.
15124 # Shell code in configure.ac might set extrasub.
15125 # FIXME: do we really want to maintain this feature?
15126 cat >>$CONFIG_STATUS <<_ACEOF
15130 cat >>$CONFIG_STATUS <<\_ACEOF
15132 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15133 s
&@configure_input@
&$configure_input&;t t
15134 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15135 s
&@srcdir@
&$ac_srcdir&;t t
15136 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15137 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15138 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15139 s
&@builddir@
&$ac_builddir&;t t
15140 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15141 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15142 s
&@INSTALL@
&$ac_INSTALL&;t t
15143 $ac_datarootdir_hack
15144 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
15146 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15147 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15149 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15150 which seems to be undefined. Please make sure it is defined." >&5
15151 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15152 which seems to be undefined. Please make sure it is defined." >&2;}
15156 -) cat "$tmp/out"; rm -f "$tmp/out";;
15157 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15166 # Transform confdefs.h into a sed script `conftest.defines', that
15167 # substitutes the proper values into config.h.in to produce config.h.
15168 rm -f conftest.defines conftest.
tail
15169 # First, append a space to every undef/define line, to ease matching.
15170 echo 's/$/ /' >conftest.defines
15171 # Then, protect against being on the right side of a sed subst, or in
15172 # an unquoted here document, in config.status. If some macros were
15173 # called several times there might be several #defines for the same
15174 # symbol, which is useless. But do not sort them, since the last
15175 # AC_DEFINE must be honored.
15176 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
15177 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15178 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15179 # PARAMS is the parameter list in the macro definition--in most cases, it's
15180 # just an empty string.
15181 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15182 ac_dB
='\\)[ (].*,\\1define\\2'
15190 s/^[ ]*#[ ]*define[ ][ ]*//
15195 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15196 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15197 ' >>conftest.defines
15199 # Remove the space that was appended to ease matching.
15200 # Then replace #undef with comments. This is necessary, for
15201 # example, in the case of _POSIX_SOURCE, which is predefined and required
15202 # on some systems where configure will not decide to define it.
15203 # (The regexp can be short, since the line contains either #define or #undef.)
15205 s,^[ #]*u.*,/* & */,' >>conftest.defines
15207 # Break up conftest.defines:
15208 ac_max_sed_lines
=50
15210 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15211 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15212 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15214 ac_in
='$ac_file_inputs'
15215 ac_out
='"$tmp/out1"'
15216 ac_nxt
='"$tmp/out2"'
15220 # Write a here document:
15221 cat >>$CONFIG_STATUS <<_ACEOF
15222 # First, check the format of the line:
15223 cat >"\$tmp/defines.sed" <<\\CEOF
15224 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15225 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15229 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
15231 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15232 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
15233 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
15234 grep . conftest.
tail >/dev
/null ||
break
15235 rm -f conftest.defines
15236 mv conftest.
tail conftest.defines
15238 rm -f conftest.defines conftest.
tail
15240 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15241 cat >>$CONFIG_STATUS <<\_ACEOF
15242 if test x
"$ac_file" != x-
; then
15243 echo "/* $configure_input */" >"$tmp/config.h"
15244 cat "$ac_result" >>"$tmp/config.h"
15245 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15246 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15247 echo "$as_me: $ac_file is unchanged" >&6;}
15250 mv "$tmp/config.h" $ac_file
15253 echo "/* $configure_input */"
15259 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15260 echo "$as_me: executing $ac_file commands" >&6;}
15265 case $ac_file$ac_mode in
15266 "default-1":C
) if test -f .devel
; then
15267 echo timestamp
> stamp-h
15268 cat Makefile-devel-adds
>> Makefile
15276 { (exit 0); exit 0; }
15278 chmod +x
$CONFIG_STATUS
15279 ac_clean_files
=$ac_clean_files_save
15282 # configure is writing to config.log, and then calls config.status.
15283 # config.status does its own redirection, appending to config.log.
15284 # Unfortunately, on DOS this fails, as config.log is still kept open
15285 # by configure, so config.status won't be able to write to it; its
15286 # output is simply discarded. So we exec the FD to /dev/null,
15287 # effectively closing config.log, so it can be properly (re)opened and
15288 # appended to by config.status. When coming back to configure, we
15289 # need to make the FD available again.
15290 if test "$no_create" != yes; then
15292 ac_config_status_args
=
15293 test "$silent" = yes &&
15294 ac_config_status_args
="$ac_config_status_args --quiet"
15296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15299 # would make configure fail if this is the last instruction.
15300 $ac_cs_success ||
{ (exit 1); exit 1; }