2 # From configure.in Revision: 1.188.2.8 .
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
685 ac_precious_vars
='build_alias
696 # Initialize some variables set by options.
698 ac_init_version
=false
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
708 program_transform_name
=s
,x
,x
,
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir
='${exec_prefix}/bin'
723 sbindir
='${exec_prefix}/sbin'
724 libexecdir
='${exec_prefix}/libexec'
725 datarootdir
='${prefix}/share'
726 datadir
='${datarootdir}'
727 sysconfdir
='${prefix}/etc'
728 sharedstatedir
='${prefix}/com'
729 localstatedir
='${prefix}/var'
730 includedir
='${prefix}/include'
731 oldincludedir
='/usr/include'
732 docdir
='${datarootdir}/doc/${PACKAGE}'
733 infodir
='${datarootdir}/info'
738 libdir
='${exec_prefix}/lib'
739 localedir
='${datarootdir}/locale'
740 mandir
='${datarootdir}/man'
746 # If the previous option needs an argument, assign it.
747 if test -n "$ac_prev"; then
748 eval $ac_prev=\
$ac_option
754 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
758 # Accept the important Cygnus configure options, so we can diagnose typos.
760 case $ac_dashdash$ac_option in
764 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
766 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
769 -build |
--build |
--buil |
--bui |
--bu)
770 ac_prev
=build_alias
;;
771 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
772 build_alias
=$ac_optarg ;;
774 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
775 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
776 ac_prev
=cache_file
;;
777 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
778 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
779 cache_file
=$ac_optarg ;;
782 cache_file
=config.cache
;;
784 -datadir |
--datadir |
--datadi |
--datad)
786 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
787 datadir
=$ac_optarg ;;
789 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
790 |
--dataroo |
--dataro |
--datar)
791 ac_prev
=datarootdir
;;
792 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
793 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
794 datarootdir
=$ac_optarg ;;
796 -disable-* |
--disable-*)
797 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
800 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801 { (exit 1); exit 1; }; }
802 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
803 eval enable_
$ac_feature=no
;;
805 -docdir |
--docdir |
--docdi |
--doc |
--do)
807 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
810 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
812 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
815 -enable-* |
--enable-*)
816 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820 { (exit 1); exit 1; }; }
821 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
822 eval enable_
$ac_feature=\
$ac_optarg ;;
824 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
825 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
826 |
--exec |
--exe |
--ex)
827 ac_prev
=exec_prefix
;;
828 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
829 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
830 |
--exec=* |
--exe=* |
--ex=*)
831 exec_prefix
=$ac_optarg ;;
833 -gas |
--gas |
--ga |
--g)
834 # Obsolete; use --with-gas.
837 -help |
--help |
--hel |
--he |
-h)
839 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
840 ac_init_help
=recursive
;;
841 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
842 ac_init_help
=short
;;
844 -host |
--host |
--hos |
--ho)
845 ac_prev
=host_alias
;;
846 -host=* |
--host=* |
--hos=* |
--ho=*)
847 host_alias
=$ac_optarg ;;
849 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
851 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
853 htmldir
=$ac_optarg ;;
855 -includedir |
--includedir |
--includedi |
--included |
--include \
856 |
--includ |
--inclu |
--incl |
--inc)
857 ac_prev
=includedir
;;
858 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
859 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
860 includedir
=$ac_optarg ;;
862 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
864 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
865 infodir
=$ac_optarg ;;
867 -libdir |
--libdir |
--libdi |
--libd)
869 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
872 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
873 |
--libexe |
--libex |
--libe)
874 ac_prev
=libexecdir
;;
875 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
876 |
--libexe=* |
--libex=* |
--libe=*)
877 libexecdir
=$ac_optarg ;;
879 -localedir |
--localedir |
--localedi |
--localed |
--locale)
881 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
882 localedir
=$ac_optarg ;;
884 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
885 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
886 ac_prev
=localstatedir
;;
887 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
888 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
889 localstatedir
=$ac_optarg ;;
891 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
893 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
897 # Obsolete; use --without-fp.
900 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
901 |
--no-cr |
--no-c |
-n)
904 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
905 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
908 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
909 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
910 |
--oldin |
--oldi |
--old |
--ol |
--o)
911 ac_prev
=oldincludedir
;;
912 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
913 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
914 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
915 oldincludedir
=$ac_optarg ;;
917 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
919 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
922 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
923 |
--program-pre |
--program-pr |
--program-p)
924 ac_prev
=program_prefix
;;
925 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
926 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
927 program_prefix
=$ac_optarg ;;
929 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
930 |
--program-suf |
--program-su |
--program-s)
931 ac_prev
=program_suffix
;;
932 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
933 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
934 program_suffix
=$ac_optarg ;;
936 -program-transform-name |
--program-transform-name \
937 |
--program-transform-nam |
--program-transform-na \
938 |
--program-transform-n |
--program-transform- \
939 |
--program-transform |
--program-transfor \
940 |
--program-transfo |
--program-transf \
941 |
--program-trans |
--program-tran \
942 |
--progr-tra |
--program-tr |
--program-t)
943 ac_prev
=program_transform_name
;;
944 -program-transform-name=* |
--program-transform-name=* \
945 |
--program-transform-nam=* |
--program-transform-na=* \
946 |
--program-transform-n=* |
--program-transform-=* \
947 |
--program-transform=* |
--program-transfor=* \
948 |
--program-transfo=* |
--program-transf=* \
949 |
--program-trans=* |
--program-tran=* \
950 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
951 program_transform_name
=$ac_optarg ;;
953 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
955 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
958 -psdir |
--psdir |
--psdi |
--psd |
--ps)
960 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
963 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
964 |
-silent |
--silent |
--silen |
--sile |
--sil)
967 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
969 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
971 sbindir
=$ac_optarg ;;
973 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
974 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
975 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
977 ac_prev
=sharedstatedir
;;
978 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
979 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
980 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
982 sharedstatedir
=$ac_optarg ;;
984 -site |
--site |
--sit)
986 -site=* |
--site=* |
--sit=*)
989 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
991 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
994 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
995 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
996 ac_prev
=sysconfdir
;;
997 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
998 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
999 sysconfdir
=$ac_optarg ;;
1001 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1002 ac_prev
=target_alias
;;
1003 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1004 target_alias
=$ac_optarg ;;
1006 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1009 -version |
--version |
--versio |
--versi |
--vers |
-V)
1010 ac_init_version
=: ;;
1013 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1016 { echo "$as_me: error: invalid package name: $ac_package" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1019 eval with_
$ac_package=\
$ac_optarg ;;
1021 -without-* |
--without-*)
1022 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1025 { echo "$as_me: error: invalid package name: $ac_package" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1028 eval with_
$ac_package=no
;;
1031 # Obsolete; use --with-x.
1034 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1035 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1036 ac_prev
=x_includes
;;
1037 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1038 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1039 x_includes
=$ac_optarg ;;
1041 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1042 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1043 ac_prev
=x_libraries
;;
1044 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1045 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1046 x_libraries
=$ac_optarg ;;
1048 -*) { echo "$as_me: error: unrecognized option: $ac_option
1049 Try \`$0 --help' for more information." >&2
1050 { (exit 1); exit 1; }; }
1054 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058 { (exit 1); exit 1; }; }
1059 eval $ac_envvar=\
$ac_optarg
1060 export $ac_envvar ;;
1063 # FIXME: should be removed in autoconf 3.0.
1064 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1066 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 if test -n "$ac_prev"; then
1074 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1075 { echo "$as_me: error: missing argument to $ac_option" >&2
1076 { (exit 1); exit 1; }; }
1079 # Be sure to have absolute directory names.
1080 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081 datadir sysconfdir sharedstatedir localstatedir includedir \
1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083 libdir localedir mandir
1085 eval ac_val
=\$
$ac_var
1087 [\\/$
]* | ?
:[\\/]* ) continue;;
1088 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1090 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091 { (exit 1); exit 1; }; }
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1099 target
=$target_alias
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x
; then
1103 if test "x$build_alias" = x
; then
1104 cross_compiling
=maybe
1105 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106 If a cross compiler is detected then cross compile mode will be used." >&2
1107 elif test "x$build_alias" != "x$host_alias"; then
1113 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1115 test "$silent" = yes && exec 6>/dev
/null
1118 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di
=`ls -di .` &&
1120 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1121 { echo "$as_me: error: Working directory cannot be determined" >&2
1122 { (exit 1); exit 1; }; }
1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124 { echo "$as_me: error: pwd does not report name of working directory" >&2
1125 { (exit 1); exit 1; }; }
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130 ac_srcdir_defaulted
=yes
1131 # Try the directory containing this script, then the parent directory.
1132 ac_confdir
=`$as_dirname -- "$0" ||
1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134 X"$0" : 'X\(//\)[^/]' \| \
1135 X"$0" : 'X\(//\)$' \| \
1136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 if test ! -r "$srcdir/$ac_unique_file"; then
1160 ac_srcdir_defaulted
=no
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1164 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165 { (exit 1); exit 1; }; }
1167 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170 { (exit 1); exit 1; }; }
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1180 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 for ac_var
in $ac_precious_vars; do
1183 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1184 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1185 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1186 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1190 # Report the --help message.
1192 if test "$ac_init_help" = "long"; then
1193 # Omit some internal or obsolete options to make the list less imposing.
1194 # This message is too long to be a string in the A/UX 3.1 sh.
1196 \`configure' configures this package to adapt to many kinds of systems.
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE. See below for descriptions of some of the useful variables.
1203 Defaults for the options are specified in brackets.
1206 -h, --help display this help and exit
1207 --help=short display options specific to this package
1208 --help=recursive display the short help of all the included packages
1209 -V, --version display version information and exit
1210 -q, --quiet, --silent do not print \`checking...' messages
1211 --cache-file=FILE cache test results in FILE [disabled]
1212 -C, --config-cache alias for \`--cache-file=config.cache'
1213 -n, --no-create do not create output files
1214 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1216 Installation directories:
1217 --prefix=PREFIX install architecture-independent files in PREFIX
1218 [$ac_default_prefix]
1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1227 For better control, use the options below.
1229 Fine tuning of the installation directories:
1230 --bindir=DIR user executables [EPREFIX/bin]
1231 --sbindir=DIR system admin executables [EPREFIX/sbin]
1232 --libexecdir=DIR program executables [EPREFIX/libexec]
1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1236 --libdir=DIR object code libraries [EPREFIX/lib]
1237 --includedir=DIR C header files [PREFIX/include]
1238 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1241 --infodir=DIR info documentation [DATAROOTDIR/info]
1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1243 --mandir=DIR man documentation [DATAROOTDIR/man]
1244 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1245 --htmldir=DIR html documentation [DOCDIR]
1246 --dvidir=DIR dvi documentation [DOCDIR]
1247 --pdfdir=DIR pdf documentation [DOCDIR]
1248 --psdir=DIR ps documentation [DOCDIR]
1254 --build=BUILD configure
for building on BUILD
[guessed
]
1255 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1259 if test -n "$ac_init_help"; then
1264 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1265 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1266 --enable-smb enable possibly-buggy SMB printer default
=yes
1267 --disable-smb disable possibly-buggy SMB printer
1268 --enable-ipv6 enable ipv6
(with ipv4
) support
1269 --disable-ipv6 disable ipv6 support
1272 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1273 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1274 --without-gcc don
't use gcc
1275 --with-user=USERNAME drop privileges by default to USERNAME
1276 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1277 --without-crypto disable crypto support
1279 Some influential environment variables:
1280 CC C compiler command
1281 CFLAGS C compiler flags
1282 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1283 nonstandard directory <lib dir>
1284 LIBS libraries to pass to the linker, e.g. -l<library>
1285 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1286 you have headers in a nonstandard directory <include dir>
1289 Use these variables to override the choices made by `configure' or to
help
1290 it to
find libraries and programs with nonstandard names
/locations.
1296 if test "$ac_init_help" = "recursive"; then
1297 # If there are subdirs, report their specific --help.
1298 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1299 test -d "$ac_dir" ||
continue
1303 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1305 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1306 # A ".." for each directory in $ac_dir_suffix.
1307 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1308 case $ac_top_builddir_sub in
1309 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1310 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1313 ac_abs_top_builddir
=$ac_pwd
1314 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1315 # for backward compatibility:
1316 ac_top_builddir
=$ac_top_build_prefix
1319 .
) # We are building in place.
1321 ac_top_srcdir
=$ac_top_builddir_sub
1322 ac_abs_top_srcdir
=$ac_pwd ;;
1323 [\\/]* | ?
:[\\/]* ) # Absolute name.
1324 ac_srcdir
=$srcdir$ac_dir_suffix;
1325 ac_top_srcdir
=$srcdir
1326 ac_abs_top_srcdir
=$srcdir ;;
1328 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1329 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1330 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1332 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1334 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1335 # Check for guested configure.
1336 if test -f "$ac_srcdir/configure.gnu"; then
1338 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1339 elif test -f "$ac_srcdir/configure"; then
1341 $SHELL "$ac_srcdir/configure" --help=recursive
1343 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1345 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1349 test -n "$ac_init_help" && exit $ac_status
1350 if $ac_init_version; then
1353 generated by GNU Autoconf
2.61
1355 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1356 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1357 This configure
script is free software
; the Free Software Foundation
1358 gives unlimited permission to copy
, distribute and modify it.
1362 cat >config.log
<<_ACEOF
1363 This file contains any messages produced by compilers while
1364 running configure, to aid debugging if configure makes a mistake.
1366 It was created by $as_me, which was
1367 generated by GNU Autoconf 2.61. Invocation command line was
1379 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1380 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1381 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1382 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1383 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1385 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1386 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1388 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1389 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1390 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1391 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1392 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1393 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1394 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1402 test -z "$as_dir" && as_dir
=.
1403 echo "PATH: $as_dir"
1419 # Keep a trace of the command line.
1420 # Strip out --no-create and --no-recursion so they do not pile up.
1421 # Strip out --silent because we don't want to record it for future runs.
1422 # Also quote any args containing shell meta-characters.
1423 # Make two passes to allow for proper duplicate-argument suppression.
1427 ac_must_keep_next
=false
1433 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1434 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1435 |
-silent |
--silent |
--silen |
--sile |
--sil)
1438 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1441 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1443 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1444 if test $ac_must_keep_next = true
; then
1445 ac_must_keep_next
=false
# Got value, back to normal.
1448 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1449 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1450 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1451 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1452 case "$ac_configure_args0 " in
1453 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1456 -* ) ac_must_keep_next
=true
;;
1459 ac_configure_args
="$ac_configure_args '$ac_arg'"
1464 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1465 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1467 # When interrupted or exit'd, cleanup temporary files, and complete
1468 # config.log. We remove comments because anyway the quotes in there
1469 # would cause problems or look ugly.
1470 # WARNING: Use '\'' to represent an apostrophe within the trap.
1471 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1472 trap 'exit_status=$?
1473 # Save into config.log some information that might help in debugging.
1478 ## ---------------- ##
1479 ## Cache variables. ##
1480 ## ---------------- ##
1483 # The following way of writing the cache mishandles newlines in values,
1485 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1486 eval ac_val=\$$ac_var
1490 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1491 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1494 _ | IFS | as_nl) ;; #(
1495 *) $as_unset $ac_var ;;
1500 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1501 *${as_nl}ac_space=\ *)
1503 "s/'\''/'\''\\\\'\'''\''/g;
1504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1515 ## ----------------- ##
1516 ## Output variables. ##
1517 ## ----------------- ##
1520 for ac_var in $ac_subst_vars
1522 eval ac_val=\$$ac_var
1524 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1526 echo "$ac_var='\''$ac_val'\''"
1530 if test -n "$ac_subst_files"; then
1532 ## ------------------- ##
1533 ## File substitutions. ##
1534 ## ------------------- ##
1537 for ac_var
in $ac_subst_files
1539 eval ac_val
=\$
$ac_var
1541 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1543 echo "$ac_var='\''$ac_val'\''"
1548 if test -s confdefs.h; then
1558 test "$ac_signal" != 0 &&
1559 echo "$as_me: caught signal $ac_signal"
1560 echo "$as_me: exit $exit_status"
1562 rm -f core *.core core.conftest.* &&
1563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1566 for ac_signal
in 1 2 13 15; do
1567 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1571 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1572 rm -f -r conftest
* confdefs.h
1574 # Predefined preprocessor variables.
1576 cat >>confdefs.h
<<_ACEOF
1577 #define PACKAGE_NAME "$PACKAGE_NAME"
1581 cat >>confdefs.h
<<_ACEOF
1582 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1586 cat >>confdefs.h
<<_ACEOF
1587 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1591 cat >>confdefs.h
<<_ACEOF
1592 #define PACKAGE_STRING "$PACKAGE_STRING"
1596 cat >>confdefs.h
<<_ACEOF
1597 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1601 # Let the site file select an alternate cache file if it wants to.
1602 # Prefer explicitly selected file to automatically selected ones.
1603 if test -n "$CONFIG_SITE"; then
1604 set x
"$CONFIG_SITE"
1605 elif test "x$prefix" != xNONE
; then
1606 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1608 set x
"$ac_default_prefix/share/config.site" \
1609 "$ac_default_prefix/etc/config.site"
1614 if test -r "$ac_site_file"; then
1615 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1616 echo "$as_me: loading site script $ac_site_file" >&6;}
1617 sed 's/^/| /' "$ac_site_file" >&5
1622 if test -r "$cache_file"; then
1623 # Some versions of bash will fail to source /dev/null (special
1624 # files actually), so we avoid doing that.
1625 if test -f "$cache_file"; then
1626 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1627 echo "$as_me: loading cache $cache_file" >&6;}
1629 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1630 *) .
"./$cache_file";;
1634 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1635 echo "$as_me: creating cache $cache_file" >&6;}
1639 # Check that the precious variables saved in the cache have kept the same
1641 ac_cache_corrupted
=false
1642 for ac_var
in $ac_precious_vars; do
1643 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1644 eval ac_new_set
=\
$ac_env_${ac_var}_set
1645 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1646 eval ac_new_val
=\
$ac_env_${ac_var}_value
1647 case $ac_old_set,$ac_new_set in
1649 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1650 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1651 ac_cache_corrupted
=: ;;
1653 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1654 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1655 ac_cache_corrupted
=: ;;
1658 if test "x$ac_old_val" != "x$ac_new_val"; then
1659 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1660 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1661 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1662 echo "$as_me: former value: $ac_old_val" >&2;}
1663 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1664 echo "$as_me: current value: $ac_new_val" >&2;}
1665 ac_cache_corrupted
=:
1668 # Pass precious variables to config.status.
1669 if test "$ac_new_set" = set; then
1671 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 *) ac_arg
=$ac_var=$ac_new_val ;;
1674 case " $ac_configure_args " in
1675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1676 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1680 if $ac_cache_corrupted; then
1681 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1682 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1683 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1684 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1685 { (exit 1); exit 1; }; }
1705 ac_cpp
='$CPP $CPPFLAGS'
1706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1713 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1714 if test -f "$ac_dir/install-sh"; then
1716 ac_install_sh
="$ac_aux_dir/install-sh -c"
1718 elif test -f "$ac_dir/install.sh"; then
1720 ac_install_sh
="$ac_aux_dir/install.sh -c"
1722 elif test -f "$ac_dir/shtool"; then
1724 ac_install_sh
="$ac_aux_dir/shtool install -c"
1728 if test -z "$ac_aux_dir"; then
1729 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1730 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1731 { (exit 1); exit 1; }; }
1734 # These three variables are undocumented and unsupported,
1735 # and are intended to be withdrawn in a future Autoconf release.
1736 # They can cause serious problems if a builder's source tree is in a directory
1737 # whose full name contains unusual characters.
1738 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1739 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1740 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1743 # Make sure we can run config.sub.
1744 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1745 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1746 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1747 { (exit 1); exit 1; }; }
1749 { echo "$as_me:$LINENO: checking build system type" >&5
1750 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1751 if test "${ac_cv_build+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 ac_build_alias
=$build_alias
1755 test "x$ac_build_alias" = x
&&
1756 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1757 test "x$ac_build_alias" = x
&&
1758 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1759 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1760 { (exit 1); exit 1; }; }
1761 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1762 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1763 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1764 { (exit 1); exit 1; }; }
1767 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1768 echo "${ECHO_T}$ac_cv_build" >&6; }
1769 case $ac_cv_build in
1771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1772 echo "$as_me: error: invalid value of canonical build" >&2;}
1773 { (exit 1); exit 1; }; };;
1776 ac_save_IFS
=$IFS; IFS
='-'
1782 # Remember, the first character of IFS is used to create $*,
1783 # except with old shells:
1786 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1789 { echo "$as_me:$LINENO: checking host system type" >&5
1790 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1791 if test "${ac_cv_host+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test "x$host_alias" = x
; then
1795 ac_cv_host
=$ac_cv_build
1797 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1798 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1799 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1800 { (exit 1); exit 1; }; }
1804 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1805 echo "${ECHO_T}$ac_cv_host" >&6; }
1808 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1809 echo "$as_me: error: invalid value of canonical host" >&2;}
1810 { (exit 1); exit 1; }; };;
1813 ac_save_IFS
=$IFS; IFS
='-'
1819 # Remember, the first character of IFS is used to create $*,
1820 # except with old shells:
1823 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1832 # Check whether --with-gcc was given.
1833 if test "${with_gcc+set}" = set; then
1839 if test "${srcdir}" != "." ; then
1840 V_INCLS
="-I\$(srcdir)"
1842 if test "${CFLAGS+set}" = set; then
1843 LBL_CFLAGS
="$CFLAGS"
1845 if test -z "$CC" ; then
1849 # Extract the first word of "shlicc2", so it can be a program name with args.
1850 set dummy shlicc2
; ac_word
=$2
1851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1853 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$SHLICC2"; then
1857 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir
=.
1864 for ac_exec_ext
in '' $ac_executable_extensions; do
1865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1866 ac_cv_prog_SHLICC2
="yes"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1877 SHLICC2
=$ac_cv_prog_SHLICC2
1878 if test -n "$SHLICC2"; then
1879 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1880 echo "${ECHO_T}$SHLICC2" >&6; }
1882 { echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6; }
1887 if test $SHLICC2 = yes ; then
1894 if test -z "$CC" -a "$with_gcc" = no
; then
1899 ac_cpp
='$CPP $CPPFLAGS'
1900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1903 if test -n "$ac_tool_prefix"; then
1904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1905 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC
="$CC" # Let the user override the test.
1914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir
=.
1919 for ac_exec_ext
in '' $ac_executable_extensions; do
1920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1921 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test -n "$CC"; then
1933 { echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6; }
1936 { echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6; }
1942 if test -z "$ac_cv_prog_CC"; then
1944 # Extract the first word of "gcc", so it can be a program name with args.
1945 set dummy gcc
; ac_word
=$2
1946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir
=.
1959 for ac_exec_ext
in '' $ac_executable_extensions; do
1960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1961 ac_cv_prog_ac_ct_CC
="gcc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6; }
1976 { echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6; }
1980 if test "x$ac_ct_CC" = x
; then
1983 case $cross_compiling:$ac_tool_warned in
1985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1986 whose name does not start with the host triplet. If you think this
1987 configuration is useful to you, please write to autoconf@gnu.org." >&5
1988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1989 whose name does not start with the host triplet. If you think this
1990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1991 ac_tool_warned
=yes ;;
1999 if test -z "$CC"; then
2000 if test -n "$ac_tool_prefix"; then
2001 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2002 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC
="$CC" # Let the user override the test.
2011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir
=.
2016 for ac_exec_ext
in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2033 { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2040 if test -z "$CC"; then
2041 # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc
; ac_word
=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC
="$CC" # Let the user override the test.
2052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir
=.
2057 for ac_exec_ext
in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060 ac_prog_rejected
=yes
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 if test $ac_prog_rejected = yes; then
2072 # We found a bogon in the path, so make sure we never use it.
2073 set dummy
$ac_cv_prog_CC
2075 if test $# != 0; then
2076 # We chose a different compiler from the bogus one.
2077 # However, it has the same basename, so the bogon will be chosen
2078 # first if we set CC to just the basename; use the full file name.
2080 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2086 if test -n "$CC"; then
2087 { echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6; }
2090 { echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6; }
2096 if test -z "$CC"; then
2097 if test -n "$ac_tool_prefix"; then
2098 for ac_prog
in cl.exe
2100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2101 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104 if test "${ac_cv_prog_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test -n "$CC"; then
2108 ac_cv_prog_CC
="$CC" # Let the user override the test.
2110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir
=.
2115 for ac_exec_ext
in '' $ac_executable_extensions; do
2116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2117 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 if test -n "$CC"; then
2129 { echo "$as_me:$LINENO: result: $CC" >&5
2130 echo "${ECHO_T}$CC" >&6; }
2132 { echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6; }
2137 test -n "$CC" && break
2140 if test -z "$CC"; then
2142 for ac_prog
in cl.exe
2144 # Extract the first word of "$ac_prog", so it can be a program name with args.
2145 set dummy
$ac_prog; ac_word
=$2
2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir
=.
2159 for ac_exec_ext
in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 ac_cv_prog_ac_ct_CC
="$ac_prog"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2172 if test -n "$ac_ct_CC"; then
2173 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2174 echo "${ECHO_T}$ac_ct_CC" >&6; }
2176 { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2181 test -n "$ac_ct_CC" && break
2184 if test "x$ac_ct_CC" = x
; then
2187 case $cross_compiling:$ac_tool_warned in
2189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet. If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&5
2192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet. If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2195 ac_tool_warned
=yes ;;
2204 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: no acceptable C compiler found in \$PATH
2207 See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2210 # Provide some information about the compiler.
2211 echo "$as_me:$LINENO: checking for C compiler version" >&5
2212 ac_compiler
=`set X $ac_compile; echo $2`
2213 { (ac_try
="$ac_compiler --version >&5"
2215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2219 (eval "$ac_compiler --version >&5") 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2223 { (ac_try="$ac_compiler -v >&5"
2225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2226 *) ac_try_echo
=$ac_try;;
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler -v >&5") 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try
="$ac_compiler -V >&5"
2235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -V >&5") 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2244 cat >conftest.$ac_ext <<_ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2259 ac_clean_files_save=$ac_clean_files
2260 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2261 # Try to create an executable without -o first, disregard a.out.
2262 # It will help us diagnose broken compilers, and finding out an intuition
2264 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2265 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2266 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2268 # List of possible output files, starting from the most likely.
2269 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2270 # only as a last resort. b.out is created by i960 compilers.
2271 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2273 # The IRIX 6 linker writes into existing files which may not be
2274 # executable, retaining their permissions. Remove them first so a
2275 # subsequent execution test works.
2277 for ac_file in $ac_files
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2281 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2286 if { (ac_try="$ac_link_default"
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_link_default") 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; then
2296 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2297 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2298 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2299 # so that the user can short-circuit this test for compilers unknown to
2301 for ac_file
in $ac_files ''
2303 test -f "$ac_file" ||
continue
2305 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2308 # We found the default executable, but exeext='' is most
2312 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2314 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316 # We set ac_cv_exeext here because the later test for it is not
2317 # safe: cross compilers may not add the suffix if given an `-o'
2318 # argument, so we may need to know it at that point already.
2319 # Even if this section looks crufty: it has the advantage of
2326 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2332 { echo "$as_me:$LINENO: result: $ac_file" >&5
2333 echo "${ECHO_T}$ac_file" >&6; }
2334 if test -z "$ac_file"; then
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.
$ac_ext >&5
2338 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&2;}
2342 { (exit 77); exit 77; }; }
2345 ac_exeext
=$ac_cv_exeext
2347 # Check that the compiler produces executables we can run. If not, either
2348 # the compiler is broken, or we cross compile.
2349 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2350 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2351 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2352 # If not cross compiling, check that we can run a simple program.
2353 if test "$cross_compiling" != yes; then
2354 if { ac_try
='./$ac_file'
2355 { (case "(($ac_try" in
2356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_try") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 if test "$cross_compiling" = maybe; then
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details.
" >&5
2372 echo "$as_me: error
: cannot run C compiled programs.
2373 If you meant to cross compile
, use \
`--host'.
2374 See \`config.log
' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2379 { echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6; }
2382 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2383 ac_clean_files=$ac_clean_files_save
2384 # Check that the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2388 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6; }
2391 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2393 if { (ac_try="$ac_link"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_link") 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2404 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2405 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2407 for ac_file
in conftest.exe conftest conftest.
*; do
2408 test -f "$ac_file" ||
continue
2410 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2411 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2417 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2420 See \`config.log' for more details." >&2;}
2421 { (exit 1); exit 1; }; }
2424 rm -f conftest
$ac_cv_exeext
2425 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2426 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2428 rm -f conftest.
$ac_ext
2429 EXEEXT
=$ac_cv_exeext
2431 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2432 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2433 if test "${ac_cv_objext+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 cat >conftest.
$ac_ext <<_ACEOF
2439 cat confdefs.h
>>conftest.
$ac_ext
2440 cat >>conftest.
$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2451 rm -f conftest.o conftest.obj
2452 if { (ac_try
="$ac_compile"
2454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; then
2462 for ac_file in conftest.o conftest.obj conftest.*; do
2463 test -f "$ac_file" || continue;
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2474 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2475 See \`config.log
' for more details." >&5
2476 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2477 See \`config.log' for more details.
" >&2;}
2478 { (exit 1); exit 1; }; }
2481 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2483 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2484 echo "${ECHO_T}$ac_cv_objext" >&6; }
2485 OBJEXT=$ac_cv_objext
2487 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2488 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2489 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2490 echo $ECHO_N "(cached
) $ECHO_C" >&6
2492 cat >conftest.$ac_ext <<_ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2510 rm -f conftest.$ac_objext
2511 if { (ac_try="$ac_compile"
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_compile") 2>conftest.er1
2519 grep -v '^ *+' conftest.er1 >conftest.err
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2523 (exit $ac_status); } && {
2524 test -z "$ac_c_werror_flag" ||
2525 test ! -s conftest.err
2526 } && test -s conftest.$ac_objext; then
2529 echo "$as_me: failed program was
:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2539 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2541 GCC=`test $ac_compiler_gnu = yes && echo yes`
2542 ac_test_CFLAGS=${CFLAGS+set}
2543 ac_save_CFLAGS=$CFLAGS
2544 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2545 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2546 if test "${ac_cv_prog_cc_g+set}" = set; then
2547 echo $ECHO_N "(cached
) $ECHO_C" >&6
2549 ac_save_c_werror_flag=$ac_c_werror_flag
2550 ac_c_werror_flag=yes
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2581 (exit $ac_status); } && {
2582 test -z "$ac_c_werror_flag" ||
2583 test ! -s conftest.err
2584 } && test -s conftest.$ac_objext; then
2587 echo "$as_me: failed program was
:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2591 cat >conftest.$ac_ext <<_ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2606 rm -f conftest.$ac_objext
2607 if { (ac_try="$ac_compile"
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_compile") 2>conftest.er1
2615 grep -v '^ *+' conftest.er1 >conftest.err
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2619 (exit $ac_status); } && {
2620 test -z "$ac_c_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest.$ac_objext; then
2625 echo "$as_me: failed program was
:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2628 ac_c_werror_flag=$ac_save_c_werror_flag
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2645 rm -f conftest.$ac_objext
2646 if { (ac_try="$ac_compile"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compile") 2>conftest.er1
2654 grep -v '^ *+' conftest.er1 >conftest.err
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2658 (exit $ac_status); } && {
2659 test -z "$ac_c_werror_flag" ||
2660 test ! -s conftest.err
2661 } && test -s conftest.$ac_objext; then
2664 echo "$as_me: failed program was
:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 ac_c_werror_flag=$ac_save_c_werror_flag
2679 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2681 if test "$ac_test_CFLAGS" = set; then
2682 CFLAGS=$ac_save_CFLAGS
2683 elif test $ac_cv_prog_cc_g = yes; then
2684 if test "$GCC" = yes; then
2690 if test "$GCC" = yes; then
2696 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2697 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2698 if test "${ac_cv_prog_cc_c89+set}" = set; then
2699 echo $ECHO_N "(cached
) $ECHO_C" >&6
2701 ac_cv_prog_cc_c89=no
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2711 #include <sys/types.h>
2712 #include <sys/stat.h>
2713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2714 struct buf { int x; };
2715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2716 static char *e (p, i)
2722 static char *f (char * (*g) (char **, int), char **p, ...)
2727 s = g (p, va_arg (v,int));
2732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2733 function prototypes and stuff, but not '\xHH' hex character constants.
2734 These don't provoke an error unfortunately, instead are silently treated
2735 as 'x'. The following induces an error, until -std is added to get
2736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2737 array size at least. It's necessary to write '\x00'==0 to get something
2738 that's true only with -std. */
2739 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2741 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2742 inside strings and character constants. */
2744 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2746 int test (int i, double x);
2747 struct s1 {int (*f) (int a);};
2748 struct s2 {int (*f) (double a);};
2749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2755 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2760 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2763 CC="$ac_save_CC $ac_arg"
2764 rm -f conftest.$ac_objext
2765 if { (ac_try="$ac_compile"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compile") 2>conftest.er1
2773 grep -v '^ *+' conftest.er1 >conftest.err
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2777 (exit $ac_status); } && {
2778 test -z "$ac_c_werror_flag" ||
2779 test ! -s conftest.err
2780 } && test -s conftest.$ac_objext; then
2781 ac_cv_prog_cc_c89=$ac_arg
2783 echo "$as_me: failed program was
:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f core conftest.err conftest.$ac_objext
2790 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2792 rm -f conftest.$ac_ext
2797 case "x
$ac_cv_prog_cc_c89" in
2799 { echo "$as_me:$LINENO: result
: none needed
" >&5
2800 echo "${ECHO_T}none needed
" >&6; } ;;
2802 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2803 echo "${ECHO_T}unsupported
" >&6; } ;;
2805 CC="$CC $ac_cv_prog_cc_c89"
2806 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test "$GCC" = yes ; then
2818 if test "$SHLICC2" = yes ; then
2819 ac_cv_lbl_gcc_vers=2
2822 { echo "$as_me:$LINENO: checking gcc version
" >&5
2823 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2824 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2825 echo $ECHO_N "(cached
) $ECHO_C" >&6
2827 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2828 sed -e '/^gcc version /!d' \
2829 -e 's/^gcc version //' \
2830 -e 's/ .*//' -e 's/^[^0-9]*//' \
2834 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2835 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2836 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2841 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2842 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2843 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2844 echo $ECHO_N "(cached
) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2853 #include <sys/types.h>
2857 int frob(int, char *)
2862 rm -f conftest.$ac_objext
2863 if { (ac_try="$ac_compile"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compile") 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2875 (exit $ac_status); } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest.$ac_objext; then
2879 ac_cv_lbl_cc_ansi_prototypes=yes
2881 echo "$as_me: failed program was
:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 ac_cv_lbl_cc_ansi_prototypes=no
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
2891 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2892 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2896 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
2897 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
2898 savedcflags="$CFLAGS"
2899 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2900 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2901 echo $ECHO_N "(cached
) $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #include <sys/types.h>
2913 int frob(int, char *)
2918 rm -f conftest.$ac_objext
2919 if { (ac_try="$ac_compile"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compile") 2>conftest.er1
2927 grep -v '^ *+' conftest.er1 >conftest.err
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2931 (exit $ac_status); } && {
2932 test -z "$ac_c_werror_flag" ||
2933 test ! -s conftest.err
2934 } && test -s conftest.$ac_objext; then
2935 ac_cv_lbl_cc_hpux_cc_aa=yes
2937 echo "$as_me: failed program was
:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 ac_cv_lbl_cc_hpux_cc_aa=no
2943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2947 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2948 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2949 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
2950 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
2951 { (exit 1); exit 1; }; }
2953 CFLAGS="$savedcflags"
2954 V_CCOPT="-Aa $V_CCOPT"
2955 cat >>confdefs.h <<\_ACEOF
2956 #define _HPUX_SOURCE 1
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; }; }
2968 V_INCLS="$V_INCLS -I/usr
/local
/include
"
2969 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
2974 V_CCOPT="$V_CCOPT -xansi -signed -O"
2978 V_CCOPT="$V_CCOPT -std1 -O"
2982 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
2983 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
2984 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2985 echo $ECHO_N "(cached
) $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 #include <sys/types.h>
2997 struct a { int b; };
2998 void c(const struct a *)
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
3020 ac_cv_lbl_cc_const_proto=yes
3022 echo "$as_me: failed program was
:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 ac_cv_lbl_cc_const_proto=no
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3032 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3033 if test $ac_cv_lbl_cc_const_proto = no ; then
3034 cat >>confdefs.h <<\_ACEOF
3043 { echo "$as_me:$LINENO: checking
for inline
" >&5
3044 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3045 if test "${ac_cv_lbl_inline+set}" = set; then
3046 echo $ECHO_N "(cached
) $ECHO_C" >&6
3051 for ac_lbl_inline in inline __inline__ __inline
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #define inline $ac_lbl_inline
3060 static inline struct iltest *foo(void);
3066 static inline struct iltest *
3069 static struct iltest xxx;
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_lbl_cc_inline=yes
3100 echo "$as_me: failed program was
:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 if test "$ac_lbl_cc_inline" = yes ; then
3111 if test "$ac_lbl_cc_inline" = yes ; then
3112 ac_cv_lbl_inline=$ac_lbl_inline
3116 if test ! -z "$ac_cv_lbl_inline" ; then
3117 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3118 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3120 { echo "$as_me:$LINENO: result
: no
" >&5
3121 echo "${ECHO_T}no
" >&6; }
3124 cat >>confdefs.h <<_ACEOF
3125 #define inline $ac_cv_lbl_inline
3129 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3130 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3131 if test "${ac_cv___attribute__+set}" = set; then
3132 echo $ECHO_N "(cached
) $ECHO_C" >&6
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3144 static void foo(void) __attribute__ ((noreturn));
3153 main(int argc, char **argv)
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3176 ac_cv___attribute__=yes
3178 echo "$as_me: failed program was
:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_cv___attribute__=no
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 if test "$ac_cv___attribute__" = "yes"; then
3189 cat >>confdefs.h <<\_ACEOF
3190 #define HAVE___ATTRIBUTE__ 1
3193 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3195 V_DEFS="$V_DEFS -D_U_=\"\""
3197 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3198 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3206 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3207 # On Suns, sometimes $CPP names a directory.
3208 if test -n "$CPP" && test -d "$CPP"; then
3211 if test -z "$CPP"; then
3212 if test "${ac_cv_prog_CPP+set}" = set; then
3213 echo $ECHO_N "(cached
) $ECHO_C" >&6
3215 # Double quotes because CPP needs to be expanded
3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3219 for ac_c_preproc_warn_flag in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error
" is here to catch this case.
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 # include <limits.h>
3236 # include <assert.h>
3240 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3252 (exit $ac_status); } >/dev/null && {
3253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3254 test ! -s conftest.err
3258 echo "$as_me: failed program was
:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 # Broken: fails on valid input.
3265 rm -f conftest.err conftest.$ac_ext
3267 # OK, works on sane cases. Now check whether nonexistent headers
3268 # can be detected and how.
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <ac_nonexistent.h>
3277 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3289 (exit $ac_status); } >/dev/null && {
3290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3293 # Broken: success on invalid input.
3296 echo "$as_me: failed program was
:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Passes both tests.
3304 rm -f conftest.err conftest.$ac_ext
3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308 rm -f conftest.err conftest.$ac_ext
3309 if $ac_preproc_ok; then
3321 { echo "$as_me:$LINENO: result
: $CPP" >&5
3322 echo "${ECHO_T}$CPP" >&6; }
3324 for ac_c_preproc_warn_flag in '' yes
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error
" is here to catch this case.
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3339 # include <limits.h>
3341 # include <assert.h>
3345 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3357 (exit $ac_status); } >/dev/null && {
3358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3363 echo "$as_me: failed program was
:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 # Broken: fails on valid input.
3370 rm -f conftest.err conftest.$ac_ext
3372 # OK, works on sane cases. Now check whether nonexistent headers
3373 # can be detected and how.
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <ac_nonexistent.h>
3382 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3394 (exit $ac_status); } >/dev/null && {
3395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3398 # Broken: success on invalid input.
3401 echo "$as_me: failed program was
:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3404 # Passes both tests.
3409 rm -f conftest.err conftest.$ac_ext
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.err conftest.$ac_ext
3414 if $ac_preproc_ok; then
3417 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3418 See \
`config.log' for more details." >&5
3419 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3420 See \`config.log
' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3427 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3432 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3433 if test "${ac_cv_path_GREP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 # Extract the first word of "grep ggrep" to use in msg output
3437 if test -z "$GREP"; then
3438 set dummy grep ggrep; ac_prog_name=$2
3439 if test "${ac_cv_path_GREP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 ac_path_GREP_found=false
3443 # Loop through the user's path and
test for each of PROGNAME-LIST
3444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3445 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3448 test -z "$as_dir" && as_dir
=.
3449 for ac_prog
in grep ggrep
; do
3450 for ac_exec_ext
in '' $ac_executable_extensions; do
3451 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3452 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3453 # Check for GNU ac_path_GREP and select it if it is found.
3454 # Check for GNU $ac_path_GREP
3455 case `"$ac_path_GREP" --version 2>&1` in
3457 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3460 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3463 cat "conftest.in" "conftest.in" >"conftest.tmp"
3464 mv "conftest.tmp" "conftest.in"
3465 cp "conftest.in" "conftest.nl"
3466 echo 'GREP' >> "conftest.nl"
3467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3468 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3469 ac_count
=`expr $ac_count + 1`
3470 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3471 # Best one so far, save it but keep looking for a better one
3472 ac_cv_path_GREP
="$ac_path_GREP"
3473 ac_path_GREP_max
=$ac_count
3475 # 10*(2^10) chars as input seems more than enough
3476 test $ac_count -gt 10 && break
3478 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3482 $ac_path_GREP_found && break 3
3492 GREP
="$ac_cv_path_GREP"
3493 if test -z "$GREP"; then
3494 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3495 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3496 { (exit 1); exit 1; }; }
3500 ac_cv_path_GREP
=$GREP
3505 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3506 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3507 GREP
="$ac_cv_path_GREP"
3510 { echo "$as_me:$LINENO: checking for egrep" >&5
3511 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3512 if test "${ac_cv_path_EGREP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3516 then ac_cv_path_EGREP
="$GREP -E"
3518 # Extract the first word of "egrep" to use in msg output
3519 if test -z "$EGREP"; then
3520 set dummy
egrep; ac_prog_name
=$2
3521 if test "${ac_cv_path_EGREP+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_path_EGREP_found
=false
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3530 test -z "$as_dir" && as_dir
=.
3531 for ac_prog
in egrep; do
3532 for ac_exec_ext
in '' $ac_executable_extensions; do
3533 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3534 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3535 # Check for GNU ac_path_EGREP and select it if it is found.
3536 # Check for GNU $ac_path_EGREP
3537 case `"$ac_path_EGREP" --version 2>&1` in
3539 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
3548 echo 'EGREP' >> "conftest.nl"
3549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3550 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3551 ac_count
=`expr $ac_count + 1`
3552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_EGREP
="$ac_path_EGREP"
3555 ac_path_EGREP_max
=$ac_count
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3560 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3564 $ac_path_EGREP_found && break 3
3574 EGREP
="$ac_cv_path_EGREP"
3575 if test -z "$EGREP"; then
3576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3578 { (exit 1); exit 1; }; }
3582 ac_cv_path_EGREP
=$EGREP
3588 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3589 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3590 EGREP
="$ac_cv_path_EGREP"
3593 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3595 if test "${ac_cv_header_stdc+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 cat >conftest.
$ac_ext <<_ACEOF
3601 cat confdefs.h
>>conftest.
$ac_ext
3602 cat >>conftest.
$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3617 rm -f conftest.
$ac_objext
3618 if { (ac_try
="$ac_compile"
3620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_compile") 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && {
3631 test -z "$ac_c_werror_flag" ||
3632 test ! -s conftest.err
3633 } && test -s conftest.$ac_objext; then
3634 ac_cv_header_stdc=yes
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 ac_cv_header_stdc=no
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 if test $ac_cv_header_stdc = yes; then
3645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 $EGREP "memchr" >/dev/null 2>&1; then
3659 ac_cv_header_stdc=no
3665 if test $ac_cv_header_stdc = yes; then
3666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 $EGREP "free" >/dev/null 2>&1; then
3680 ac_cv_header_stdc=no
3686 if test $ac_cv_header_stdc = yes; then
3687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3688 if test "$cross_compiling" = yes; then
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3699 #if ((' ' & 0x0FF) == 0x020)
3700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3703 # define ISLOWER(c) \
3704 (('a' <= (c) && (c) <= 'i') \
3705 || ('j' <= (c) && (c) <= 'r') \
3706 || ('s' <= (c) && (c) <= 'z'))
3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3715 for (i = 0; i < 256; i++)
3716 if (XOR (islower (i), ISLOWER (i))
3717 || toupper (i) != TOUPPER (i))
3722 rm -f conftest$ac_exeext
3723 if { (ac_try="$ac_link"
3725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3726 *) ac_try_echo
=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_link") 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3733 { (case "(($ac_try" in
3734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_try") 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3744 echo "$as_me: program exited with status $ac_status" >&5
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3749 ac_cv_header_stdc=no
3751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3757 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3758 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3759 if test $ac_cv_header_stdc = yes; then
3761 cat >>confdefs.h <<\_ACEOF
3762 #define STDC_HEADERS 1
3767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778 inttypes.h stdint.h unistd.h
3780 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3792 $ac_includes_default
3794 #include <$ac_header>
3796 rm -f conftest.$ac_objext
3797 if { (ac_try="$ac_compile"
3799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3800 *) ac_try_echo
=$ac_try;;
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_compile") 2>conftest.er1
3805 grep -v '^ *+' conftest.er1
>conftest.err
3807 cat conftest.err
>&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } && {
3810 test -z "$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 } && test -s conftest.
$ac_objext; then
3813 eval "$as_ac_Header=yes"
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.
$ac_ext >&5
3818 eval "$as_ac_Header=no"
3821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3823 ac_res
=`eval echo '${'$as_ac_Header'}'`
3824 { echo "$as_me:$LINENO: result: $ac_res" >&5
3825 echo "${ECHO_T}$ac_res" >&6; }
3826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3827 cat >>confdefs.h
<<_ACEOF
3828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3839 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3841 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3842 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3845 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 ac_res
=`eval echo '${'$as_ac_Header'}'`
3849 { echo "$as_me:$LINENO: result: $ac_res" >&5
3850 echo "${ECHO_T}$ac_res" >&6; }
3852 # Is the header compilable?
3853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3855 cat >conftest.
$ac_ext <<_ACEOF
3858 cat confdefs.h
>>conftest.
$ac_ext
3859 cat >>conftest.
$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 $ac_includes_default
3862 #include <$ac_header>
3864 rm -f conftest.
$ac_objext
3865 if { (ac_try
="$ac_compile"
3867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3881 ac_header_compiler=yes
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_header_compiler=no
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3891 echo "${ECHO_T}$ac_header_compiler" >&6; }
3893 # Is the header present?
3894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3902 #include <$ac_header>
3904 if { (ac_try="$ac_cpp conftest.$ac_ext"
3906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3907 *) ac_try_echo
=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3912 grep -v '^ *+' conftest.er1
>conftest.err
3914 cat conftest.err
>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } >/dev
/null
&& {
3917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3920 ac_header_preproc
=yes
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.
$ac_ext >&5
3925 ac_header_preproc
=no
3928 rm -f conftest.err conftest.
$ac_ext
3929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3930 echo "${ECHO_T}$ac_header_preproc" >&6; }
3932 # So? What about this header?
3933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3939 ac_header_preproc
=yes
3942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3959 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 eval "$as_ac_Header=\$ac_header_preproc"
3964 ac_res
=`eval echo '${'$as_ac_Header'}'`
3965 { echo "$as_me:$LINENO: result: $ac_res" >&5
3966 echo "${ECHO_T}$ac_res" >&6; }
3969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3970 cat >>confdefs.h
<<_ACEOF
3971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979 for ac_header
in net
/pfvar.h
3981 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3984 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <sys/types.h>
3994 #include <sys/socket.h>
3997 #include <$ac_header>
3999 rm -f conftest.
$ac_objext
4000 if { (ac_try
="$ac_compile"
4002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4008 grep -v '^ *+' conftest.er1 >conftest.err
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && {
4013 test -z "$ac_c_werror_flag" ||
4014 test ! -s conftest.err
4015 } && test -s conftest.$ac_objext; then
4016 eval "$as_ac_Header=yes"
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 eval "$as_ac_Header=no"
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_res=`eval echo '${'$as_ac_Header'}'`
4027 { echo "$as_me:$LINENO: result: $ac_res" >&5
4028 echo "${ECHO_T}$ac_res" >&6; }
4029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4030 cat >>confdefs.h <<_ACEOF
4031 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4038 if test "$ac_cv_header_net_pfvar_h" == yes; then
4039 LOCALSRC="print-pflog.c $LOCALSRC"
4042 for ac_header in netinet/if_ether.h
4044 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <sys/types.h>
4057 #include <sys/socket.h>
4059 #include <$ac_header>
4061 rm -f conftest.$ac_objext
4062 if { (ac_try="$ac_compile"
4064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4065 *) ac_try_echo
=$ac_try;;
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4070 grep -v '^ *+' conftest.er1
>conftest.err
4072 cat conftest.err
>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && {
4075 test -z "$ac_c_werror_flag" ||
4076 test ! -s conftest.err
4077 } && test -s conftest.
$ac_objext; then
4078 eval "$as_ac_Header=yes"
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.
$ac_ext >&5
4083 eval "$as_ac_Header=no"
4086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4088 ac_res
=`eval echo '${'$as_ac_Header'}'`
4089 { echo "$as_me:$LINENO: result: $ac_res" >&5
4090 echo "${ECHO_T}$ac_res" >&6; }
4091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4092 cat >>confdefs.h
<<_ACEOF
4093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4100 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4102 # The simple test didn't work.
4103 # Do we need to include <net/if.h> first?
4104 # Unset ac_cv_header_netinet_if_ether_h so we don't
4105 # treat the previous failure as a cached value and
4106 # suppress the next test.
4108 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4109 echo "$as_me: Rechecking with some additional includes" >&6;}
4110 unset ac_cv_header_netinet_if_ether_h
4112 for ac_header
in netinet
/if_ether.h
4114 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4117 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 cat >conftest.
$ac_ext <<_ACEOF
4123 cat confdefs.h
>>conftest.
$ac_ext
4124 cat >>conftest.
$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <sys/types.h>
4127 #include <sys/socket.h>
4128 #include <netinet/in.h>
4133 #include <$ac_header>
4135 rm -f conftest.
$ac_objext
4136 if { (ac_try
="$ac_compile"
4138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } && {
4149 test -z "$ac_c_werror_flag" ||
4150 test ! -s conftest.err
4151 } && test -s conftest.$ac_objext; then
4152 eval "$as_ac_Header=yes"
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 eval "$as_ac_Header=no"
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 ac_res=`eval echo '${'$as_ac_Header'}'`
4163 { echo "$as_me:$LINENO: result: $ac_res" >&5
4164 echo "${ECHO_T}$ac_res" >&6; }
4165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4166 cat >>confdefs.h <<_ACEOF
4167 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4176 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4177 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4178 if test "${ac_cv_header_time+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #include <sys/types.h>
4188 #include <sys/time.h>
4194 if ((struct tm *) 0)
4200 rm -f conftest.$ac_objext
4201 if { (ac_try="$ac_compile"
4203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4204 *) ac_try_echo
=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1
>conftest.err
4211 cat conftest.err
>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest.
$ac_objext; then
4217 ac_cv_header_time
=yes
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.
$ac_ext >&5
4222 ac_cv_header_time
=no
4225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4227 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4228 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4229 if test $ac_cv_header_time = yes; then
4231 cat >>confdefs.h
<<\_ACEOF
4232 #define TIME_WITH_SYS_TIME 1
4241 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4242 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4243 if test "$cross_compiling" = yes; then
4244 if test "${ac_cv_linux_vers+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_cv_linux_vers
=unknown
4251 if test "${ac_cv_linux_vers+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_cv_linux_vers
=`uname -r 2>&1 | \
4255 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4259 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4260 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4261 if test $ac_cv_linux_vers = unknown
; then
4262 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4263 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4264 { (exit 1); exit 1; }; }
4266 if test $ac_cv_linux_vers -lt 2 ; then
4267 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4268 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4269 { (exit 1); exit 1; }; }
4279 for ac_header
in smi.h
4281 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4285 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 ac_res
=`eval echo '${'$as_ac_Header'}'`
4289 { echo "$as_me:$LINENO: result: $ac_res" >&5
4290 echo "${ECHO_T}$ac_res" >&6; }
4292 # Is the header compilable?
4293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4295 cat >conftest.
$ac_ext <<_ACEOF
4298 cat confdefs.h
>>conftest.
$ac_ext
4299 cat >>conftest.
$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302 #include <$ac_header>
4304 rm -f conftest.
$ac_objext
4305 if { (ac_try
="$ac_compile"
4307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && {
4318 test -z "$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 } && test -s conftest.$ac_objext; then
4321 ac_header_compiler=yes
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 ac_header_compiler=no
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4331 echo "${ECHO_T}$ac_header_compiler" >&6; }
4333 # Is the header present?
4334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 #include <$ac_header>
4344 if { (ac_try="$ac_cpp conftest.$ac_ext"
4346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4347 *) ac_try_echo
=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1
>conftest.err
4354 cat conftest.err
>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } >/dev
/null
&& {
4357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4360 ac_header_preproc
=yes
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.
$ac_ext >&5
4365 ac_header_preproc
=no
4368 rm -f conftest.err conftest.
$ac_ext
4369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4370 echo "${ECHO_T}$ac_header_preproc" >&6; }
4372 # So? What about this header?
4373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4379 ac_header_preproc
=yes
4382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4399 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 eval "$as_ac_Header=\$ac_header_preproc"
4404 ac_res
=`eval echo '${'$as_ac_Header'}'`
4405 { echo "$as_me:$LINENO: result: $ac_res" >&5
4406 echo "${ECHO_T}$ac_res" >&6; }
4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410 cat >>confdefs.h
<<_ACEOF
4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4419 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4420 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4421 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 ac_check_lib_save_LIBS
=$LIBS
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4433 /* Override any GCC internal prototype to avoid an error.
4434 Use char because int might match the return type of a GCC
4435 builtin and then its argument prototype would still apply. */
4448 rm -f conftest.
$ac_objext conftest
$ac_exeext
4449 if { (ac_try
="$ac_link"
4451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_link") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } && {
4462 test -z "$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4464 } && test -s conftest$ac_exeext &&
4465 $as_test_x conftest$ac_exeext; then
4466 ac_cv_lib_smi_smiInit=yes
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 ac_cv_lib_smi_smiInit=no
4474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4475 conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4478 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4479 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4480 if test $ac_cv_lib_smi_smiInit = yes; then
4481 cat >>confdefs.h <<_ACEOF
4482 #define HAVE_LIBSMI 1
4489 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4491 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4492 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4493 if test "$cross_compiling" = yes; then
4494 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4495 echo "${ECHO_T}not when cross-compiling" >&6; }
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 /* libsmi available check */
4509 int current, revision, age, n;
4510 const int required = 2;
4513 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4515 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4518 if (required < current - age || required > current)
4524 rm -f conftest$ac_exeext
4525 if { (ac_try="$ac_link"
4527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4528 *) ac_try_echo
=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_link") 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4535 { (case "(($ac_try" in
4536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_try") 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 { echo "$as_me:$LINENO: result: yes" >&5
4545 echo "${ECHO_T}yes" >&6; }
4546 cat >>confdefs.h <<\_ACEOF
4552 echo "$as_me: program exited with status $ac_status" >&5
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4558 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4559 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4560 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4561 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4562 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4563 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4564 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4565 echo "${ECHO_T}no - too old" >&6; } ;;
4566 *) { echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6; } ;;
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4577 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4578 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4579 # Check whether --enable-smb was given.
4580 if test "${enable_smb+set}" = set; then
4581 enableval=$enable_smb;
4586 case "$enableval" in
4587 yes) { echo "$as_me:$LINENO: result: yes" >&5
4588 echo "${ECHO_T}yes" >&6; }
4589 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4590 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4591 cat >>confdefs.h <<\_ACEOF
4592 #define TCPDUMP_DO_SMB 1
4595 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4597 *) { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4603 # Check whether --with-user was given.
4604 if test "${with_user+set}" = set; then
4608 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4609 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4610 if test ! -z "$with_user" ; then
4611 cat >>confdefs.h <<_ACEOF
4612 #define WITH_USER "$withval"
4615 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4616 echo "${ECHO_T}to \"$withval\"" >&6; }
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4623 # Check whether --with-chroot was given.
4624 if test "${with_chroot+set}" = set; then
4625 withval=$with_chroot;
4628 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4629 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4630 if test ! -z "$with_chroot" ; then
4631 cat >>confdefs.h <<_ACEOF
4632 #define WITH_CHROOT "$withval"
4635 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4636 echo "${ECHO_T}to \"$withval\"" >&6; }
4638 { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4642 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4643 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4644 # Check whether --enable-ipv6 was given.
4645 if test "${enable_ipv6+set}" = set; then
4646 enableval=$enable_ipv6; case "$enableval" in
4647 yes) { echo "$as_me:$LINENO: result: yes" >&5
4648 echo "${ECHO_T}yes" >&6; }
4649 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"
4650 cat >>confdefs.h <<\_ACEOF
4657 { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4663 if test "$cross_compiling" = yes; then
4664 { echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6; }
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 /* AF_INET6 available check */
4676 #include <sys/types.h>
4677 #include <sys/socket.h>
4680 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4687 rm -f conftest$ac_exeext
4688 if { (ac_try="$ac_link"
4690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4691 *) ac_try_echo
=$ac_try;;
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_link") 2>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4698 { (case "(($ac_try" in
4699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703 (eval "$ac_try") 2>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 { echo "$as_me:$LINENO: result: yes" >&5
4708 echo "${ECHO_T}yes" >&6; }
4709 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"
4710 cat >>confdefs.h <<\_ACEOF
4716 echo "$as_me: program exited with status $ac_status" >&5
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4736 if test "$ipv6" = "yes"; then
4737 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4738 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4739 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #include <netinet/in.h>
4749 #ifdef IPV6_INRIA_VERSION
4753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4754 $EGREP "yes" >/dev/null 2>&1; then
4756 CFLAGS="-DINET6 $CFLAGS"
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <netinet/in.h>
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "yes" >/dev/null 2>&1; then
4777 ipv6libdir=/usr/local/v6/lib;
4779 CFLAGS="-DINET6 $CFLAGS"
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #include <features.h>
4792 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4797 $EGREP "yes" >/dev/null 2>&1; then
4799 CFLAGS="-DINET6 $CFLAGS"
4805 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4808 ipv6libdir=/usr/inet6/lib
4810 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <sys/param.h>
4821 #ifdef _TOSHIBA_INET6
4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826 $EGREP "yes" >/dev/null 2>&1; then
4829 ipv6libdir=/usr/local/v6/lib;
4830 CFLAGS="-DINET6 $CFLAGS"
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include </usr/local/v6/include/sys/v6config.h>
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "yes" >/dev/null 2>&1; then
4851 ipv6libdir=/usr/local/v6/lib;
4852 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 #include <sys/param.h>
4865 #ifdef _ZETA_MINAMI_INET6
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "yes" >/dev/null 2>&1; then
4873 ipv6libdir=/usr/local/v6/lib;
4874 CFLAGS="-DINET6 $CFLAGS"
4880 if test "$ipv6type" != "unknown"; then
4884 { echo "$as_me:$LINENO: result: $ipv6type" >&5
4885 echo "${ECHO_T}$ipv6type" >&6; }
4888 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4889 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4890 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4891 echo "You have $ipv6lib library, using it"
4893 if test "$ipv6trylibc" = "yes"; then
4894 echo "You do not have $ipv6lib library, using libc"
4896 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4897 echo "You need to fetch lib$ipv6lib.a from appropriate"
4898 echo 'ipv6 kit and compile beforehand.'
4905 if test "$ipv6" = "yes"; then
4907 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4908 # function in libc; there are "ngetaddrinfo()" and
4909 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4910 # "getaddrinfo" to be either "ngetaddrinfo" or
4911 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4912 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4914 # So this test doesn't work on Tru64 5.1, and possibly
4915 # on other 5.x releases. This causes the configure
4916 # script to become confused, and results in libpcap
4917 # being unbuildable.
4919 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4920 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
4921 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 ac_func_search_save_LIBS=$LIBS
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4932 /* Override any GCC internal prototype to avoid an error.
4933 Use char because int might match the return type of a GCC
4934 builtin and then its argument prototype would still apply. */
4938 char getaddrinfo ();
4942 return getaddrinfo ();
4947 for ac_lib in '' socket; do
4948 if test -z "$ac_lib"; then
4949 ac_res="none required"
4952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (ac_try="$ac_link"
4957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4958 *) ac_try_echo
=$ac_try;;
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_link") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest
$ac_exeext &&
4971 $as_test_x conftest
$ac_exeext; then
4972 ac_cv_search_getaddrinfo
=$ac_res
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4982 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4986 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4989 ac_cv_search_getaddrinfo
=no
4992 LIBS
=$ac_func_search_save_LIBS
4994 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4995 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
4996 ac_res
=$ac_cv_search_getaddrinfo
4997 if test "$ac_res" != no
; then
4998 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4999 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5000 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5001 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test "$cross_compiling" = yes; then
5005 td_cv_buggygetaddrinfo
=yes
5007 cat >conftest.
$ac_ext <<_ACEOF
5010 cat confdefs.h
>>conftest.
$ac_ext
5011 cat >>conftest.
$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 #include <sys/types.h>
5017 #include <sys/socket.h>
5018 #include <netinet/in.h>
5022 int passive, gaierr, inet4 = 0, inet6 = 0;
5023 struct addrinfo hints, *ai, *aitop;
5024 char straddr[INET6_ADDRSTRLEN], strport[16];
5026 for (passive = 0; passive <= 1; passive++) {
5027 memset(&hints, 0, sizeof(hints));
5028 hints.ai_family = AF_UNSPEC;
5029 hints.ai_flags = passive ? AI_PASSIVE : 0;
5030 hints.ai_socktype = SOCK_STREAM;
5031 hints.ai_protocol = IPPROTO_TCP;
5032 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5033 (void)gai_strerror(gaierr);
5036 for (ai = aitop; ai; ai = ai->ai_next) {
5037 if (ai->ai_addr == NULL ||
5038 ai->ai_addrlen == 0 ||
5039 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5040 straddr, sizeof(straddr), strport, sizeof(strport),
5041 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5044 switch (ai->ai_family) {
5046 if (strcmp(strport, "54321") != 0) {
5050 if (strcmp(straddr, "0.0.0.0") != 0) {
5054 if (strcmp(straddr, "127.0.0.1") != 0) {
5061 if (strcmp(strport, "54321") != 0) {
5065 if (strcmp(straddr, "::") != 0) {
5069 if (strcmp(straddr, "::1") != 0) {
5086 /* another family support? */
5092 /* supported family should be 2, unsupported family should be 0 */
5093 if (!(inet4 == 0 || inet4 == 2))
5095 if (!(inet6 == 0 || inet6 == 2))
5099 freeaddrinfo(aitop);
5104 freeaddrinfo(aitop);
5109 rm -f conftest
$ac_exeext
5110 if { (ac_try
="$ac_link"
5112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120 { (case "(($ac_try" in
5121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5122 *) ac_try_echo
=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_try") 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 td_cv_buggygetaddrinfo
=no
5131 echo "$as_me: program exited with status $ac_status" >&5
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.
$ac_ext >&5
5136 td_cv_buggygetaddrinfo
=yes
5138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5144 if test "$td_cv_buggygetaddrinfo" = no
; then
5145 { echo "$as_me:$LINENO: result: good" >&5
5146 echo "${ECHO_T}good" >&6; }
5148 { echo "$as_me:$LINENO: result: buggy" >&5
5149 echo "${ECHO_T}buggy" >&6; }
5152 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5154 # XXX - it doesn't appear that "ipv6type" can ever be
5155 # set to "linux". Should this be testing for
5156 # "linux-glibc", or for that *or* "linux-libinet6"?
5157 # If the latter, note that "linux-libinet6" is also
5158 # the type given to some non-Linux OSes.
5160 if test "$ipv6type" != "linux"; then
5161 echo 'Fatal: You must get working getaddrinfo() function.'
5162 echo ' or you can specify "--disable-ipv6"'.
5165 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5166 echo ' Better upgrade your system library to newest version'
5167 echo ' of GNU C library (aka glibc).'
5175 for ac_func
in getaddrinfo getnameinfo
5177 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5180 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat >conftest.
$ac_ext <<_ACEOF
5186 cat confdefs.h
>>conftest.
$ac_ext
5187 cat >>conftest.
$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5191 #define $ac_func innocuous_$ac_func
5193 /* System header to define __stub macros and hopefully few prototypes,
5194 which can conflict with char $ac_func (); below.
5195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196 <limits.h> exists even on freestanding compilers. */
5199 # include <limits.h>
5201 # include <assert.h>
5206 /* Override any GCC internal prototype to avoid an error.
5207 Use char because int might match the return type of a GCC
5208 builtin and then its argument prototype would still apply. */
5213 /* The GNU C library defines this for functions which it implements
5214 to always fail with ENOSYS. Some functions are actually named
5215 something starting with __ and the normal name is an alias. */
5216 #if defined __stub_$ac_func || defined __stub___$ac_func
5228 rm -f conftest.
$ac_objext conftest
$ac_exeext
5229 if { (ac_try
="$ac_link"
5231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_link") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest$ac_exeext &&
5245 $as_test_x conftest$ac_exeext; then
5246 eval "$as_ac_var=yes"
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 eval "$as_ac_var=no"
5254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5255 conftest$ac_exeext conftest.$ac_ext
5257 ac_res=`eval echo '${'$as_ac_var'}'`
5258 { echo "$as_me:$LINENO: result: $ac_res" >&5
5259 echo "${ECHO_T}$ac_res" >&6; }
5260 if test `eval echo '${'$as_ac_var'}'` = yes; then
5261 cat >>confdefs.h <<_ACEOF
5262 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5266 case " $LIBOBJS " in
5267 *" $ac_func.$ac_objext "* ) ;;
5268 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5278 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5279 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5280 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 #include <netdnet/dnetdb.h>
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5294 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5296 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5301 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5302 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5303 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5310 { echo "$as_me:$LINENO: checking for char" >&5
5311 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5312 if test "${ac_cv_type_char+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5322 typedef char ac__type_new_;
5326 if ((ac__type_new_ *) 0)
5328 if (sizeof (ac__type_new_))
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5338 *) ac_try_echo
=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1
>conftest.err
5345 cat conftest.err
>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.
$ac_objext; then
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.
$ac_ext >&5
5359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5361 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5362 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5364 # The cast to long int works around a bug in the HP C Compiler
5365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5367 # This bug is HP SR number 8606223364.
5368 { echo "$as_me:$LINENO: checking size of char" >&5
5369 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5370 if test "${ac_cv_sizeof_char+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 if test "$cross_compiling" = yes; then
5374 # Depending upon the size, compute the lo and hi bounds.
5375 cat >conftest.
$ac_ext <<_ACEOF
5378 cat confdefs.h
>>conftest.
$ac_ext
5379 cat >>conftest.
$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5381 $ac_includes_default
5382 typedef char ac__type_sizeof_;
5386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5393 rm -f conftest.
$ac_objext
5394 if { (ac_try
="$ac_compile"
5396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_compile") 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_c_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 $ac_includes_default
5419 typedef char ac__type_sizeof_;
5423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5430 rm -f conftest.$ac_objext
5431 if { (ac_try="$ac_compile"
5433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5434 *) ac_try_echo
=$ac_try;;
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_compile") 2>conftest.er1
5439 grep -v '^ *+' conftest.er1
>conftest.err
5441 cat conftest.err
>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } && {
5444 test -z "$ac_c_werror_flag" ||
5445 test ! -s conftest.err
5446 } && test -s conftest.
$ac_objext; then
5447 ac_hi
=$ac_mid; break
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.
$ac_ext >&5
5452 ac_lo
=`expr $ac_mid + 1`
5453 if test $ac_lo -le $ac_mid; then
5457 ac_mid
=`expr 2 '*' $ac_mid + 1`
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.
$ac_ext >&5
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5473 typedef char ac__type_sizeof_;
5477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5484 rm -f conftest.
$ac_objext
5485 if { (ac_try
="$ac_compile"
5487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 $ac_includes_default
5510 typedef char ac__type_sizeof_;
5514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5525 *) ac_try_echo
=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1
>conftest.err
5532 cat conftest.err
>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.
$ac_objext; then
5538 ac_lo
=$ac_mid; break
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.
$ac_ext >&5
5543 ac_hi
=`expr '(' $ac_mid ')' - 1`
5544 if test $ac_mid -le $ac_hi; then
5548 ac_mid
=`expr 2 '*' $ac_mid`
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.
$ac_ext >&5
5560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5564 # Binary search between lo and hi bounds.
5565 while test "x$ac_lo" != "x$ac_hi"; do
5566 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5567 cat >conftest.
$ac_ext <<_ACEOF
5570 cat confdefs.h
>>conftest.
$ac_ext
5571 cat >>conftest.
$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573 $ac_includes_default
5574 typedef char ac__type_sizeof_;
5578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5585 rm -f conftest.
$ac_objext
5586 if { (ac_try
="$ac_compile"
5588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5594 grep -v '^ *+' conftest.er1 >conftest.err
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 ac_lo=`expr '(' $ac_mid ')' + 1`
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 ?*) ac_cv_sizeof_char=$ac_lo;;
5614 '') if test "$ac_cv_type_char" = yes; then
5615 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5616 See \`config.log
' for more details." >&5
5617 echo "$as_me: error: cannot compute sizeof (char)
5618 See \`config.log' for more details.
" >&2;}
5619 { (exit 77); exit 77; }; }
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 $ac_includes_default
5632 typedef char ac__type_sizeof_;
5633 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5634 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5641 FILE *f = fopen ("conftest.val
", "w
");
5644 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5646 long int i = longval ();
5647 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5649 fprintf (f, "%ld
\n", i);
5653 unsigned long int i = ulongval ();
5654 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5656 fprintf (f, "%lu
\n", i);
5658 return ferror (f) || fclose (f) != 0;
5664 rm -f conftest$ac_exeext
5665 if { (ac_try="$ac_link"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_link") 2>&5
5673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5675 { (case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_try") 2>&5
5682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_sizeof_char=`cat conftest.val`
5686 echo "$as_me: program exited with status
$ac_status" >&5
5687 echo "$as_me: failed program was
:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5691 if test "$ac_cv_type_char" = yes; then
5692 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
5693 See \
`config.log' for more details." >&5
5694 echo "$as_me: error: cannot compute sizeof (char)
5695 See \`config.log
' for more details." >&2;}
5696 { (exit 77); exit 77; }; }
5701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5705 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5706 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5710 cat >>confdefs.h <<_ACEOF
5711 #define SIZEOF_CHAR $ac_cv_sizeof_char
5715 { echo "$as_me:$LINENO: checking for short" >&5
5716 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5717 if test "${ac_cv_type_short+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 $ac_includes_default
5727 typedef short ac__type_new_;
5731 if ((ac__type_new_ *) 0)
5733 if (sizeof (ac__type_new_))
5739 rm -f conftest.$ac_objext
5740 if { (ac_try="$ac_compile"
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5748 grep -v '^
*+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_cv_type_short=yes
5758 echo "$as_me: failed program was:" >&5
5759 sed 's
/^
/|
/' conftest.$ac_ext >&5
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5767 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5769 # The cast to long int works around a bug in the HP C Compiler
5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5772 # This bug is HP SR number 8606223364.
5773 { echo "$as_me:$LINENO: checking size of short" >&5
5774 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5775 if test "${ac_cv_sizeof_short+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780 cat >conftest.
$ac_ext <<_ACEOF
5783 cat confdefs.h
>>conftest.
$ac_ext
5784 cat >>conftest.
$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 $ac_includes_default
5787 typedef short ac__type_sizeof_;
5791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5798 rm -f conftest.
$ac_objext
5799 if { (ac_try
="$ac_compile"
5801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 $ac_includes_default
5824 typedef short ac__type_sizeof_;
5828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5835 rm -f conftest.$ac_objext
5836 if { (ac_try="$ac_compile"
5838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5839 *) ac_try_echo
=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1
>conftest.err
5846 cat conftest.err
>&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.
$ac_objext; then
5852 ac_hi
=$ac_mid; break
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.
$ac_ext >&5
5857 ac_lo
=`expr $ac_mid + 1`
5858 if test $ac_lo -le $ac_mid; then
5862 ac_mid
=`expr 2 '*' $ac_mid + 1`
5865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.
$ac_ext >&5
5871 cat >conftest.
$ac_ext <<_ACEOF
5874 cat confdefs.h
>>conftest.
$ac_ext
5875 cat >>conftest.
$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5878 typedef short ac__type_sizeof_;
5882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5889 rm -f conftest.
$ac_objext
5890 if { (ac_try
="$ac_compile"
5892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5898 grep -v '^ *+' conftest.er1 >conftest.err
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.$ac_objext; then
5908 cat >conftest.$ac_ext <<_ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 $ac_includes_default
5915 typedef short ac__type_sizeof_;
5919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5926 rm -f conftest.$ac_objext
5927 if { (ac_try="$ac_compile"
5929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5930 *) ac_try_echo
=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1
>conftest.err
5937 cat conftest.err
>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.
$ac_objext; then
5943 ac_lo
=$ac_mid; break
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5948 ac_hi
=`expr '(' $ac_mid ')' - 1`
5949 if test $ac_mid -le $ac_hi; then
5953 ac_mid
=`expr 2 '*' $ac_mid`
5956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.
$ac_ext >&5
5965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5969 # Binary search between lo and hi bounds.
5970 while test "x$ac_lo" != "x$ac_hi"; do
5971 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5972 cat >conftest.
$ac_ext <<_ACEOF
5975 cat confdefs.h
>>conftest.
$ac_ext
5976 cat >>conftest.
$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5979 typedef short ac__type_sizeof_;
5983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5990 rm -f conftest.
$ac_objext
5991 if { (ac_try
="$ac_compile"
5993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.$ac_objext; then
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_lo=`expr '(' $ac_mid ')' + 1`
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ?*) ac_cv_sizeof_short=$ac_lo;;
6019 '') if test "$ac_cv_type_short" = yes; then
6020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6021 See \`config.log
' for more details." >&5
6022 echo "$as_me: error: cannot compute sizeof (short)
6023 See \`config.log' for more details.
" >&2;}
6024 { (exit 77); exit 77; }; }
6026 ac_cv_sizeof_short=0
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 $ac_includes_default
6037 typedef short ac__type_sizeof_;
6038 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6039 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6046 FILE *f = fopen ("conftest.val
", "w
");
6049 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6051 long int i = longval ();
6052 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6054 fprintf (f, "%ld
\n", i);
6058 unsigned long int i = ulongval ();
6059 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6061 fprintf (f, "%lu
\n", i);
6063 return ferror (f) || fclose (f) != 0;
6069 rm -f conftest$ac_exeext
6070 if { (ac_try="$ac_link"
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_link") 2>&5
6078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6080 { (case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_try") 2>&5
6087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_sizeof_short=`cat conftest.val`
6091 echo "$as_me: program exited with status
$ac_status" >&5
6092 echo "$as_me: failed program was
:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6096 if test "$ac_cv_type_short" = yes; then
6097 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
6098 See \
`config.log' for more details." >&5
6099 echo "$as_me: error: cannot compute sizeof (short)
6100 See \`config.log
' for more details." >&2;}
6101 { (exit 77); exit 77; }; }
6103 ac_cv_sizeof_short=0
6106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6110 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6111 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6115 cat >>confdefs.h <<_ACEOF
6116 #define SIZEOF_SHORT $ac_cv_sizeof_short
6120 { echo "$as_me:$LINENO: checking for int" >&5
6121 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6122 if test "${ac_cv_type_int+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6131 $ac_includes_default
6132 typedef int ac__type_new_;
6136 if ((ac__type_new_ *) 0)
6138 if (sizeof (ac__type_new_))
6144 rm -f conftest.$ac_objext
6145 if { (ac_try="$ac_compile"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compile") 2>conftest.er1
6153 grep -v '^
*+' conftest.er1 >conftest.err
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && {
6158 test -z "$ac_c_werror_flag" ||
6159 test ! -s conftest.err
6160 } && test -s conftest.$ac_objext; then
6163 echo "$as_me: failed program was:" >&5
6164 sed 's
/^
/|
/' conftest.$ac_ext >&5
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6172 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6174 # The cast to long int works around a bug in the HP C Compiler
6175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6177 # This bug is HP SR number 8606223364.
6178 { echo "$as_me:$LINENO: checking size of int" >&5
6179 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6180 if test "${ac_cv_sizeof_int+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 if test "$cross_compiling" = yes; then
6184 # Depending upon the size, compute the lo and hi bounds.
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 typedef int ac__type_sizeof_;
6196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6203 rm -f conftest.
$ac_objext
6204 if { (ac_try
="$ac_compile"
6206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1 >conftest.err
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 $ac_includes_default
6229 typedef int ac__type_sizeof_;
6233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6240 rm -f conftest.$ac_objext
6241 if { (ac_try="$ac_compile"
6243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6244 *) ac_try_echo
=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1
>conftest.err
6251 cat conftest.err
>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && {
6254 test -z "$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6256 } && test -s conftest.
$ac_objext; then
6257 ac_hi
=$ac_mid; break
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.
$ac_ext >&5
6262 ac_lo
=`expr $ac_mid + 1`
6263 if test $ac_lo -le $ac_mid; then
6267 ac_mid
=`expr 2 '*' $ac_mid + 1`
6270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6276 cat >conftest.
$ac_ext <<_ACEOF
6279 cat confdefs.h
>>conftest.
$ac_ext
6280 cat >>conftest.
$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 typedef int ac__type_sizeof_;
6287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6294 rm -f conftest.
$ac_objext
6295 if { (ac_try
="$ac_compile"
6297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_c_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest.$ac_objext; then
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 typedef int ac__type_sizeof_;
6324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6331 rm -f conftest.$ac_objext
6332 if { (ac_try="$ac_compile"
6334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6335 *) ac_try_echo
=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compile") 2>conftest.er1
6340 grep -v '^ *+' conftest.er1
>conftest.err
6342 cat conftest.err
>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.
$ac_objext; then
6348 ac_lo
=$ac_mid; break
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.
$ac_ext >&5
6353 ac_hi
=`expr '(' $ac_mid ')' - 1`
6354 if test $ac_mid -le $ac_hi; then
6358 ac_mid
=`expr 2 '*' $ac_mid`
6361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.
$ac_ext >&5
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6374 # Binary search between lo and hi bounds.
6375 while test "x$ac_lo" != "x$ac_hi"; do
6376 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6377 cat >conftest.
$ac_ext <<_ACEOF
6380 cat confdefs.h
>>conftest.
$ac_ext
6381 cat >>conftest.
$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6384 typedef int ac__type_sizeof_;
6388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6395 rm -f conftest.
$ac_objext
6396 if { (ac_try
="$ac_compile"
6398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 ac_lo=`expr '(' $ac_mid ')' + 1`
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ?*) ac_cv_sizeof_int=$ac_lo;;
6424 '') if test "$ac_cv_type_int" = yes; then
6425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6426 See \`config.log
' for more details." >&5
6427 echo "$as_me: error: cannot compute sizeof (int)
6428 See \`config.log' for more details.
" >&2;}
6429 { (exit 77); exit 77; }; }
6435 cat >conftest.$ac_ext <<_ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 $ac_includes_default
6442 typedef int ac__type_sizeof_;
6443 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6444 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6451 FILE *f = fopen ("conftest.val
", "w
");
6454 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6456 long int i = longval ();
6457 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6459 fprintf (f, "%ld
\n", i);
6463 unsigned long int i = ulongval ();
6464 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6466 fprintf (f, "%lu
\n", i);
6468 return ferror (f) || fclose (f) != 0;
6474 rm -f conftest$ac_exeext
6475 if { (ac_try="$ac_link"
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_link") 2>&5
6483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6485 { (case "(($ac_try" in
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6490 (eval "$ac_try") 2>&5
6492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_cv_sizeof_int=`cat conftest.val`
6496 echo "$as_me: program exited with status
$ac_status" >&5
6497 echo "$as_me: failed program was
:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6501 if test "$ac_cv_type_int" = yes; then
6502 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6503 See \
`config.log' for more details." >&5
6504 echo "$as_me: error: cannot compute sizeof (int)
6505 See \`config.log
' for more details." >&2;}
6506 { (exit 77); exit 77; }; }
6511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6515 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6516 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6520 cat >>confdefs.h <<_ACEOF
6521 #define SIZEOF_INT $ac_cv_sizeof_int
6525 { echo "$as_me:$LINENO: checking for long" >&5
6526 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6527 if test "${ac_cv_type_long+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 $ac_includes_default
6537 typedef long ac__type_new_;
6541 if ((ac__type_new_ *) 0)
6543 if (sizeof (ac__type_new_))
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6558 grep -v '^
*+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6568 echo "$as_me: failed program was:" >&5
6569 sed 's
/^
/|
/' conftest.$ac_ext >&5
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6577 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6579 # The cast to long int works around a bug in the HP C Compiler
6580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6582 # This bug is HP SR number 8606223364.
6583 { echo "$as_me:$LINENO: checking size of long" >&5
6584 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6585 if test "${ac_cv_sizeof_long+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 if test "$cross_compiling" = yes; then
6589 # Depending upon the size, compute the lo and hi bounds.
6590 cat >conftest.
$ac_ext <<_ACEOF
6593 cat confdefs.h
>>conftest.
$ac_ext
6594 cat >>conftest.
$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 $ac_includes_default
6597 typedef long ac__type_sizeof_;
6601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6608 rm -f conftest.
$ac_objext
6609 if { (ac_try
="$ac_compile"
6611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_compile") 2>conftest.er1
6617 grep -v '^ *+' conftest.er1 >conftest.err
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && {
6622 test -z "$ac_c_werror_flag" ||
6623 test ! -s conftest.err
6624 } && test -s conftest.$ac_objext; then
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 typedef long ac__type_sizeof_;
6638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6645 rm -f conftest.$ac_objext
6646 if { (ac_try="$ac_compile"
6648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6649 *) ac_try_echo
=$ac_try;;
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_compile") 2>conftest.er1
6654 grep -v '^ *+' conftest.er1
>conftest.err
6656 cat conftest.err
>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } && {
6659 test -z "$ac_c_werror_flag" ||
6660 test ! -s conftest.err
6661 } && test -s conftest.
$ac_objext; then
6662 ac_hi
=$ac_mid; break
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.
$ac_ext >&5
6667 ac_lo
=`expr $ac_mid + 1`
6668 if test $ac_lo -le $ac_mid; then
6672 ac_mid
=`expr 2 '*' $ac_mid + 1`
6675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.
$ac_ext >&5
6681 cat >conftest.
$ac_ext <<_ACEOF
6684 cat confdefs.h
>>conftest.
$ac_ext
6685 cat >>conftest.
$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6688 typedef long ac__type_sizeof_;
6692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6699 rm -f conftest.
$ac_objext
6700 if { (ac_try
="$ac_compile"
6702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 $ac_includes_default
6725 typedef long ac__type_sizeof_;
6729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6740 *) ac_try_echo
=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6745 grep -v '^ *+' conftest.er1
>conftest.err
6747 cat conftest.err
>&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.
$ac_objext; then
6753 ac_lo
=$ac_mid; break
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.
$ac_ext >&5
6758 ac_hi
=`expr '(' $ac_mid ')' - 1`
6759 if test $ac_mid -le $ac_hi; then
6763 ac_mid
=`expr 2 '*' $ac_mid`
6766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.
$ac_ext >&5
6775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6779 # Binary search between lo and hi bounds.
6780 while test "x$ac_lo" != "x$ac_hi"; do
6781 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6782 cat >conftest.
$ac_ext <<_ACEOF
6785 cat confdefs.h
>>conftest.
$ac_ext
6786 cat >>conftest.
$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 $ac_includes_default
6789 typedef long ac__type_sizeof_;
6793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6800 rm -f conftest.
$ac_objext
6801 if { (ac_try
="$ac_compile"
6803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_compile") 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest.$ac_objext; then
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_lo=`expr '(' $ac_mid ')' + 1`
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 ?*) ac_cv_sizeof_long=$ac_lo;;
6829 '') if test "$ac_cv_type_long" = yes; then
6830 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6831 See \`config.log
' for more details." >&5
6832 echo "$as_me: error: cannot compute sizeof (long)
6833 See \`config.log' for more details.
" >&2;}
6834 { (exit 77); exit 77; }; }
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 $ac_includes_default
6847 typedef long ac__type_sizeof_;
6848 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6849 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6856 FILE *f = fopen ("conftest.val
", "w
");
6859 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6861 long int i = longval ();
6862 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6864 fprintf (f, "%ld
\n", i);
6868 unsigned long int i = ulongval ();
6869 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6871 fprintf (f, "%lu
\n", i);
6873 return ferror (f) || fclose (f) != 0;
6879 rm -f conftest$ac_exeext
6880 if { (ac_try="$ac_link"
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_link") 2>&5
6888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890 { (case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_try") 2>&5
6897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_sizeof_long=`cat conftest.val`
6901 echo "$as_me: program exited with status
$ac_status" >&5
6902 echo "$as_me: failed program was
:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6906 if test "$ac_cv_type_long" = yes; then
6907 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
6908 See \
`config.log' for more details." >&5
6909 echo "$as_me: error: cannot compute sizeof (long)
6910 See \`config.log
' for more details." >&2;}
6911 { (exit 77); exit 77; }; }
6916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6920 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6921 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6925 cat >>confdefs.h <<_ACEOF
6926 #define SIZEOF_LONG $ac_cv_sizeof_long
6930 { echo "$as_me:$LINENO: checking for long long" >&5
6931 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6932 if test "${ac_cv_type_long_long+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 $ac_includes_default
6942 typedef long long ac__type_new_;
6946 if ((ac__type_new_ *) 0)
6948 if (sizeof (ac__type_new_))
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961 (eval "$ac_compile") 2>conftest.er1
6963 grep -v '^
*+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest.$ac_objext; then
6971 ac_cv_type_long_long=yes
6973 echo "$as_me: failed program was:" >&5
6974 sed 's
/^
/|
/' conftest.$ac_ext >&5
6976 ac_cv_type_long_long=no
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6982 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6984 # The cast to long int works around a bug in the HP C Compiler
6985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6987 # This bug is HP SR number 8606223364.
6988 { echo "$as_me:$LINENO: checking size of long long" >&5
6989 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6990 if test "${ac_cv_sizeof_long_long+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 if test "$cross_compiling" = yes; then
6994 # Depending upon the size, compute the lo and hi bounds.
6995 cat >conftest.
$ac_ext <<_ACEOF
6998 cat confdefs.h
>>conftest.
$ac_ext
6999 cat >>conftest.
$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 typedef long long ac__type_sizeof_;
7006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7013 rm -f conftest.
$ac_objext
7014 if { (ac_try
="$ac_compile"
7016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_compile") 2>conftest.er1
7022 grep -v '^ *+' conftest.er1 >conftest.err
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7039 typedef long long ac__type_sizeof_;
7043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7054 *) ac_try_echo
=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
7059 grep -v '^ *+' conftest.er1
>conftest.err
7061 cat conftest.err
>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.
$ac_objext; then
7067 ac_hi
=$ac_mid; break
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.
$ac_ext >&5
7072 ac_lo
=`expr $ac_mid + 1`
7073 if test $ac_lo -le $ac_mid; then
7077 ac_mid
=`expr 2 '*' $ac_mid + 1`
7080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.
$ac_ext >&5
7086 cat >conftest.
$ac_ext <<_ACEOF
7089 cat confdefs.h
>>conftest.
$ac_ext
7090 cat >>conftest.
$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7093 typedef long long ac__type_sizeof_;
7097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7104 rm -f conftest.
$ac_objext
7105 if { (ac_try
="$ac_compile"
7107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7123 cat >conftest.$ac_ext <<_ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7130 typedef long long ac__type_sizeof_;
7134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7141 rm -f conftest.$ac_objext
7142 if { (ac_try="$ac_compile"
7144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7145 *) ac_try_echo
=$ac_try;;
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_compile") 2>conftest.er1
7150 grep -v '^ *+' conftest.er1
>conftest.err
7152 cat conftest.err
>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest.
$ac_objext; then
7158 ac_lo
=$ac_mid; break
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.
$ac_ext >&5
7163 ac_hi
=`expr '(' $ac_mid ')' - 1`
7164 if test $ac_mid -le $ac_hi; then
7168 ac_mid
=`expr 2 '*' $ac_mid`
7171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.
$ac_ext >&5
7180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7184 # Binary search between lo and hi bounds.
7185 while test "x$ac_lo" != "x$ac_hi"; do
7186 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7187 cat >conftest.
$ac_ext <<_ACEOF
7190 cat confdefs.h
>>conftest.
$ac_ext
7191 cat >>conftest.
$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 typedef long long ac__type_sizeof_;
7198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7205 rm -f conftest.
$ac_objext
7206 if { (ac_try
="$ac_compile"
7208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_compile") 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && {
7219 test -z "$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7221 } && test -s conftest.$ac_objext; then
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_lo=`expr '(' $ac_mid ')' + 1`
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7234 '') if test "$ac_cv_type_long_long" = yes; then
7235 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7236 See \`config.log
' for more details." >&5
7237 echo "$as_me: error: cannot compute sizeof (long long)
7238 See \`config.log' for more details.
" >&2;}
7239 { (exit 77); exit 77; }; }
7241 ac_cv_sizeof_long_long=0
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7252 typedef long long ac__type_sizeof_;
7253 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7254 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7261 FILE *f = fopen ("conftest.val
", "w
");
7264 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7266 long int i = longval ();
7267 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7269 fprintf (f, "%ld
\n", i);
7273 unsigned long int i = ulongval ();
7274 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7276 fprintf (f, "%lu
\n", i);
7278 return ferror (f) || fclose (f) != 0;
7284 rm -f conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_link") 2>&5
7293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7295 { (case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_try") 2>&5
7302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 ac_cv_sizeof_long_long=`cat conftest.val`
7306 echo "$as_me: program exited with status
$ac_status" >&5
7307 echo "$as_me: failed program was
:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7311 if test "$ac_cv_type_long_long" = yes; then
7312 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
7313 See \
`config.log' for more details." >&5
7314 echo "$as_me: error: cannot compute sizeof (long long)
7315 See \`config.log
' for more details." >&2;}
7316 { (exit 77); exit 77; }; }
7318 ac_cv_sizeof_long_long=0
7321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7325 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7326 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7330 cat >>confdefs.h <<_ACEOF
7331 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7338 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7339 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7340 if test "${ac_cv_addrinfo+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 cat >conftest.$ac_ext <<_ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7359 rm -f conftest.$ac_objext
7360 if { (ac_try="$ac_compile"
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_compile") 2>conftest.er1
7368 grep -v '^
*+' conftest.er1 >conftest.err
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } && {
7373 test -z "$ac_c_werror_flag" ||
7374 test ! -s conftest.err
7375 } && test -s conftest.$ac_objext; then
7378 echo "$as_me: failed program was:" >&5
7379 sed 's
/^
/|
/' conftest.$ac_ext >&5
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7388 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7389 if test $ac_cv_addrinfo = yes; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define HAVE_ADDRINFO 1
7395 cat >>confdefs.h <<\_ACEOF
7396 #define NEED_ADDRINFO_H 1
7401 if test "$ac_cv_addrinfo" = no; then
7402 missing_includes=yes
7406 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7407 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7408 if test "${ac_cv_maxserv+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423 $EGREP "yes" >/dev/null 2>&1; then
7432 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7433 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7434 if test $ac_cv_maxserv != yes; then
7435 cat >>confdefs.h <<\_ACEOF
7436 #define NEED_ADDRINFO_H 1
7441 if test "$ac_cv_maxserv" = no; then
7442 missing_includes=yes
7446 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7447 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7448 if test "${ac_cv_namereqd+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7463 $EGREP "yes" >/dev/null 2>&1; then
7472 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7473 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7474 if test $ac_cv_namereqd != yes; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define NEED_ADDRINFO_H 1
7481 if test "$ac_cv_namereqd" = no; then
7482 missing_includes=yes
7486 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7487 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7488 if test "${ac_cv_sa_storage+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7498 # include <sys/types.h>
7499 # include <sys/socket.h>
7503 struct sockaddr_storage s
7508 rm -f conftest.$ac_objext
7509 if { (ac_try="$ac_compile"
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_compile") 2>conftest.er1
7517 grep -v '^
*+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest.$ac_objext; then
7525 ac_cv_sa_storage=yes
7527 echo "$as_me: failed program was:" >&5
7528 sed 's
/^
/|
/' conftest.$ac_ext >&5
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7537 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7538 if test $ac_cv_sa_storage = yes; then
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_SOCKADDR_STORAGE 1
7545 if test "$ac_cv_sa_storage" = no; then
7546 missing_includes=yes
7551 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7552 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7553 if test "${ac_cv_inaddrsz+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7563 # include <arpa/nameser.h>
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7581 grep -v '^
*+' conftest.er1 >conftest.err
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.$ac_objext; then
7591 echo "$as_me: failed program was:" >&5
7592 sed 's
/^
/|
/' conftest.$ac_ext >&5
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7601 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7602 if test $ac_cv_inaddrsz = yes; then
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_INADDRSZ 1
7610 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7611 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7612 if test "${ac_cv_in6addrsz+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7622 # include <arpa/nameser.h>
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7640 grep -v '^
*+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7650 echo "$as_me: failed program was:" >&5
7651 sed 's
/^
/|
/' conftest.$ac_ext >&5
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7660 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7661 if test $ac_cv_in6addrsz = yes; then
7662 cat >>confdefs.h <<\_ACEOF
7663 #define HAVE_IN6ADDRSZ 1
7670 if test "$ac_cv_addrsz" = no; then
7671 missing_includes=yes
7675 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7676 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7677 if test "${ac_cv_res_inet6+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7687 # include <sys/types.h>
7688 # include <netinet/in.h>
7689 # include <resolv.h>
7693 int a = RES_USE_INET6
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7707 grep -v '^
*+' conftest.er1 >conftest.err
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7717 echo "$as_me: failed program was:" >&5
7718 sed 's
/^
/|
/' conftest.$ac_ext >&5
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7727 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7728 if test $ac_cv_res_inet6 = yes; then
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_RES_USE_INET6 1
7735 if test "$ac_cv_res_inet6" = no; then
7736 missing_includes=yes
7740 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7741 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7742 if test "${ac_cv_res_state_ext+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 cat >conftest.$ac_ext <<_ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7752 # include <sys/types.h>
7753 # include <netinet/in.h>
7754 # include <netinet6/in6.h>
7755 # include <resolv.h>
7759 struct __res_state_ext e
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7773 grep -v '^
*+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.$ac_objext; then
7781 ac_cv_res_state_ext=yes
7783 echo "$as_me: failed program was:" >&5
7784 sed 's
/^
/|
/' conftest.$ac_ext >&5
7786 ac_cv_res_state_ext=no
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7793 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7794 if test $ac_cv_res_state_ext = yes; then
7795 cat >>confdefs.h <<\_ACEOF
7796 #define HAVE_RES_STATE_EXT 1
7801 if test "$ac_cv_res_state_ext" = no; then
7802 missing_includes=yes
7806 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7807 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7808 if test "${ac_cv_res_state+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7818 # include <sys/types.h>
7819 # include <netinet/in.h>
7820 # include <netinet6/in6.h>
7821 # include <resolv.h>
7825 struct __res_state e; e.nsort = 0
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^
*+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7849 echo "$as_me: failed program was:" >&5
7850 sed 's
/^
/|
/' conftest.$ac_ext >&5
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7859 echo "${ECHO_T}$ac_cv_res_state" >&6; }
7860 if test $ac_cv_res_state = yes; then
7861 cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_NEW_RES_STATE 1
7875 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7891 #define $ac_func innocuous_$ac_func
7893 /* System header to define __stub macros and hopefully few prototypes,
7894 which can conflict with char $ac_func (); below.
7895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7896 <limits.h> exists even on freestanding compilers. */
7899 # include <limits.h>
7901 # include <assert.h>
7906 /* Override any GCC internal prototype to avoid an error.
7907 Use char because int might match the return type of a GCC
7908 builtin and then its argument prototype would still apply. */
7913 /* The GNU C library defines this for functions which it implements
7914 to always fail with ENOSYS. Some functions are actually named
7915 something starting with __ and the normal name is an alias. */
7916 #if defined __stub_$ac_func || defined __stub___$ac_func
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7937 grep -v '^
*+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest$ac_exeext &&
7945 $as_test_x conftest$ac_exeext; then
7946 eval "$as_ac_var=yes"
7948 echo "$as_me: failed program was:" >&5
7949 sed 's
/^
/|
/' conftest.$ac_ext >&5
7951 eval "$as_ac_var=no"
7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955 conftest$ac_exeext conftest.$ac_ext
7957 ac_res=`eval echo '${'$as_ac_var'}'`
7958 { echo "$as_me:$LINENO: result: $ac_res" >&5
7959 echo "${ECHO_T}$ac_res" >&6; }
7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7966 case " $LIBOBJS " in
7967 *" $ac_func.$ac_objext "* ) ;;
7968 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7977 for ac_func in strftime
7979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7993 #define $ac_func innocuous_$ac_func
7995 /* System header to define __stub macros and hopefully few prototypes,
7996 which can conflict with char $ac_func (); below.
7997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7998 <limits.h> exists even on freestanding compilers. */
8001 # include <limits.h>
8003 # include <assert.h>
8008 /* Override any GCC internal prototype to avoid an error.
8009 Use char because int might match the return type of a GCC
8010 builtin and then its argument prototype would still apply. */
8015 /* The GNU C library defines this for functions which it implements
8016 to always fail with ENOSYS. Some functions are actually named
8017 something starting with __ and the normal name is an alias. */
8018 #if defined __stub_$ac_func || defined __stub___$ac_func
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (ac_try="$ac_link"
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_link") 2>conftest.er1
8039 grep -v '^
*+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest$ac_exeext &&
8047 $as_test_x conftest$ac_exeext; then
8048 eval "$as_ac_var=yes"
8050 echo "$as_me: failed program was:" >&5
8051 sed 's
/^
/|
/' conftest.$ac_ext >&5
8053 eval "$as_ac_var=no"
8056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8057 conftest$ac_exeext conftest.$ac_ext
8059 ac_res=`eval echo '${'$as_ac_var'}'`
8060 { echo "$as_me:$LINENO: result: $ac_res" >&5
8061 echo "${ECHO_T}$ac_res" >&6; }
8062 if test `eval echo '${'$as_ac_var'}'` = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8072 for ac_func in setlinebuf alarm
8074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8088 #define $ac_func innocuous_$ac_func
8090 /* System header to define __stub macros and hopefully few prototypes,
8091 which can conflict with char $ac_func (); below.
8092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8093 <limits.h> exists even on freestanding compilers. */
8096 # include <limits.h>
8098 # include <assert.h>
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8110 /* The GNU C library defines this for functions which it implements
8111 to always fail with ENOSYS. Some functions are actually named
8112 something starting with __ and the normal name is an alias. */
8113 #if defined __stub_$ac_func || defined __stub___$ac_func
8125 rm -f conftest.$ac_objext conftest$ac_exeext
8126 if { (ac_try="$ac_link"
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_link") 2>conftest.er1
8134 grep -v '^
*+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest$ac_exeext &&
8142 $as_test_x conftest$ac_exeext; then
8143 eval "$as_ac_var=yes"
8145 echo "$as_me: failed program was:" >&5
8146 sed 's
/^
/|
/' conftest.$ac_ext >&5
8148 eval "$as_ac_var=no"
8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8152 conftest$ac_exeext conftest.$ac_ext
8154 ac_res=`eval echo '${'$as_ac_var'}'`
8155 { echo "$as_me:$LINENO: result: $ac_res" >&5
8156 echo "${ECHO_T}$ac_res" >&6; }
8157 if test `eval echo '${'$as_ac_var'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8169 for ac_func in vsnprintf snprintf
8171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8185 #define $ac_func innocuous_$ac_func
8187 /* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char $ac_func (); below.
8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 <limits.h> exists even on freestanding compilers. */
8193 # include <limits.h>
8195 # include <assert.h>
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8207 /* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210 #if defined __stub_$ac_func || defined __stub___$ac_func
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>conftest.er1
8231 grep -v '^
*+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest$ac_exeext &&
8239 $as_test_x conftest$ac_exeext; then
8240 eval "$as_ac_var=yes"
8242 echo "$as_me: failed program was:" >&5
8243 sed 's
/^
/|
/' conftest.$ac_ext >&5
8245 eval "$as_ac_var=no"
8248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8249 conftest$ac_exeext conftest.$ac_ext
8251 ac_res=`eval echo '${'$as_ac_var'}'`
8252 { echo "$as_me:$LINENO: result: $ac_res" >&5
8253 echo "${ECHO_T}$ac_res" >&6; }
8254 if test `eval echo '${'$as_ac_var'}'` = yes; then
8255 cat >>confdefs.h <<_ACEOF
8256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8264 if test $needsnprintf = yes; then
8265 case " $LIBOBJS " in
8266 *" snprintf.$ac_objext "* ) ;;
8267 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8274 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8275 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8276 if test "${ac_cv_type_signal+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 #include <sys/types.h>
8291 return *(signal (0, 0)) (0) == 1;
8296 rm -f conftest.$ac_objext
8297 if { (ac_try="$ac_compile"
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8305 grep -v '^
*+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8313 ac_cv_type_signal=int
8315 echo "$as_me: failed program was:" >&5
8316 sed 's
/^
/|
/' conftest.$ac_ext >&5
8318 ac_cv_type_signal=void
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8324 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8326 cat >>confdefs.h <<_ACEOF
8327 #define RETSIGTYPE $ac_cv_type_signal
8331 if test "$ac_cv_type_signal" = void ; then
8332 cat >>confdefs.h <<\_ACEOF
8337 cat >>confdefs.h <<\_ACEOF
8338 #define RETSIGVAL (0)
8345 cat >>confdefs.h <<\_ACEOF
8346 #define _BSD_SIGNALS 1
8353 for ac_func in sigaction
8355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8369 #define $ac_func innocuous_$ac_func
8371 /* System header to define __stub macros and hopefully few prototypes,
8372 which can conflict with char $ac_func (); below.
8373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8374 <limits.h> exists even on freestanding compilers. */
8377 # include <limits.h>
8379 # include <assert.h>
8384 /* Override any GCC internal prototype to avoid an error.
8385 Use char because int might match the return type of a GCC
8386 builtin and then its argument prototype would still apply. */
8391 /* The GNU C library defines this for functions which it implements
8392 to always fail with ENOSYS. Some functions are actually named
8393 something starting with __ and the normal name is an alias. */
8394 #if defined __stub_$ac_func || defined __stub___$ac_func
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (ac_try="$ac_link"
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_link") 2>conftest.er1
8415 grep -v '^
*+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest$ac_exeext &&
8423 $as_test_x conftest$ac_exeext; then
8424 eval "$as_ac_var=yes"
8426 echo "$as_me: failed program was:" >&5
8427 sed 's
/^
/|
/' conftest.$ac_ext >&5
8429 eval "$as_ac_var=no"
8432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433 conftest$ac_exeext conftest.$ac_ext
8435 ac_res=`eval echo '${'$as_ac_var'}'`
8436 { echo "$as_me:$LINENO: result: $ac_res" >&5
8437 echo "${ECHO_T}$ac_res" >&6; }
8438 if test `eval echo '${'$as_ac_var'}'` = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446 if test $ac_cv_func_sigaction = no ; then
8448 for ac_func in sigset
8450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8464 #define $ac_func innocuous_$ac_func
8466 /* System header to define __stub macros and hopefully few prototypes,
8467 which can conflict with char $ac_func (); below.
8468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8469 <limits.h> exists even on freestanding compilers. */
8472 # include <limits.h>
8474 # include <assert.h>
8479 /* Override any GCC internal prototype to avoid an error.
8480 Use char because int might match the return type of a GCC
8481 builtin and then its argument prototype would still apply. */
8486 /* The GNU C library defines this for functions which it implements
8487 to always fail with ENOSYS. Some functions are actually named
8488 something starting with __ and the normal name is an alias. */
8489 #if defined __stub_$ac_func || defined __stub___$ac_func
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 eval "$as_ac_var=yes"
8521 echo "$as_me: failed program was:" >&5
8522 sed 's
/^
/|
/' conftest.$ac_ext >&5
8524 eval "$as_ac_var=no"
8527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8528 conftest$ac_exeext conftest.$ac_ext
8530 ac_res=`eval echo '${'$as_ac_var'}'`
8531 { echo "$as_me:$LINENO: result: $ac_res" >&5
8532 echo "${ECHO_T}$ac_res" >&6; }
8533 if test `eval echo '${'$as_ac_var'}'` = yes; then
8534 cat >>confdefs.h <<_ACEOF
8535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8545 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8546 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8547 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_func_search_save_LIBS=$LIBS
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8568 return dnet_htoa ();
8573 for ac_lib in '' dnet; do
8574 if test -z "$ac_lib"; then
8575 ac_res="none required"
8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
8589 grep -v '^
*+' conftest.er1 >conftest.err
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext &&
8597 $as_test_x conftest$ac_exeext; then
8598 ac_cv_search_dnet_htoa=$ac_res
8600 echo "$as_me: failed program was:" >&5
8601 sed 's
/^
/|
/' conftest.$ac_ext >&5
8606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8608 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8612 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8615 ac_cv_search_dnet_htoa=no
8618 LIBS=$ac_func_search_save_LIBS
8620 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8621 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8622 ac_res=$ac_cv_search_dnet_htoa
8623 if test "$ac_res" != no; then
8624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8625 cat >>confdefs.h <<\_ACEOF
8626 #define HAVE_DNET_HTOA 1
8633 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8634 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8635 if test "${ac_cv_lib_rpc_main+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_check_lib_save_LIBS=$LIBS
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (ac_try="$ac_link"
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_link") 2>conftest.er1
8665 grep -v '^
*+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest$ac_exeext &&
8673 $as_test_x conftest$ac_exeext; then
8674 ac_cv_lib_rpc_main=yes
8676 echo "$as_me: failed program was:" >&5
8677 sed 's
/^
/|
/' conftest.$ac_ext >&5
8679 ac_cv_lib_rpc_main=no
8682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8683 conftest$ac_exeext conftest.$ac_ext
8684 LIBS=$ac_check_lib_save_LIBS
8686 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8687 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8688 if test $ac_cv_lib_rpc_main = yes; then
8689 cat >>confdefs.h <<_ACEOF
8690 #define HAVE_LIBRPC 1
8697 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8698 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8699 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 ac_func_search_save_LIBS=$LIBS
8703 cat >conftest.$ac_ext <<_ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8710 /* Override any GCC internal prototype to avoid an error.
8711 Use char because int might match the return type of a GCC
8712 builtin and then its argument prototype would still apply. */
8716 char getrpcbynumber ();
8720 return getrpcbynumber ();
8725 for ac_lib in '' nsl; do
8726 if test -z "$ac_lib"; then
8727 ac_res="none required"
8730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (ac_try="$ac_link"
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_link") 2>conftest.er1
8741 grep -v '^
*+' conftest.er1 >conftest.err
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest$ac_exeext &&
8749 $as_test_x conftest$ac_exeext; then
8750 ac_cv_search_getrpcbynumber=$ac_res
8752 echo "$as_me: failed program was:" >&5
8753 sed 's
/^
/|
/' conftest.$ac_ext >&5
8758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8760 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8764 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8767 ac_cv_search_getrpcbynumber=no
8770 LIBS=$ac_func_search_save_LIBS
8772 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8773 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8774 ac_res=$ac_cv_search_getrpcbynumber
8775 if test "$ac_res" != no; then
8776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8777 cat >>confdefs.h <<\_ACEOF
8778 #define HAVE_GETRPCBYNUMBER 1
8786 # Most operating systems have gethostbyname() in the default searched
8787 # libraries (i.e. libc):
8788 # Some OSes (eg. Solaris) place it in libnsl
8789 # Some strange OSes (SINIX) have it in libsocket:
8790 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8791 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8792 if test "${ac_cv_search_gethostbyname+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 ac_func_search_save_LIBS=$LIBS
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8803 /* Override any GCC internal prototype to avoid an error.
8804 Use char because int might match the return type of a GCC
8805 builtin and then its argument prototype would still apply. */
8809 char gethostbyname ();
8813 return gethostbyname ();
8818 for ac_lib in '' nsl socket resolv; do
8819 if test -z "$ac_lib"; then
8820 ac_res="none required"
8823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (ac_try="$ac_link"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_link") 2>conftest.er1
8834 grep -v '^
*+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest$ac_exeext &&
8842 $as_test_x conftest$ac_exeext; then
8843 ac_cv_search_gethostbyname=$ac_res
8845 echo "$as_me: failed program was:" >&5
8846 sed 's
/^
/|
/' conftest.$ac_ext >&5
8851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8853 if test "${ac_cv_search_gethostbyname+set}" = set; then
8857 if test "${ac_cv_search_gethostbyname+set}" = set; then
8860 ac_cv_search_gethostbyname=no
8863 LIBS=$ac_func_search_save_LIBS
8865 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8866 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8867 ac_res=$ac_cv_search_gethostbyname
8868 if test "$ac_res" != no; then
8869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8873 # Unfortunately libsocket sometimes depends on libnsl and
8874 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8875 if test "$ac_cv_search_gethostbyname" = "no"
8877 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8878 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8879 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 ac_check_lib_save_LIBS
=$LIBS
8883 LIBS
="-lsocket -lnsl $LIBS"
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 /* Override any GCC internal prototype to avoid an error.
8892 Use char because int might match the return type of a GCC
8893 builtin and then its argument prototype would still apply. */
8897 char gethostbyname ();
8901 return gethostbyname ();
8906 rm -f conftest.
$ac_objext conftest
$ac_exeext
8907 if { (ac_try
="$ac_link"
8909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_link") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest$ac_exeext &&
8923 $as_test_x conftest$ac_exeext; then
8924 ac_cv_lib_socket_gethostbyname=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_cv_lib_socket_gethostbyname=no
8932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8933 conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8936 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8937 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8938 if test $ac_cv_lib_socket_gethostbyname = yes; then
8939 LIBS="-lsocket -lnsl $LIBS"
8943 { echo "$as_me:$LINENO: checking for library containing socket" >&5
8944 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8945 if test "${ac_cv_search_socket+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 ac_func_search_save_LIBS=$LIBS
8949 cat >conftest.$ac_ext <<_ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8956 /* Override any GCC internal prototype to avoid an error.
8957 Use char because int might match the return type of a GCC
8958 builtin and then its argument prototype would still apply. */
8971 for ac_lib in '' socket; do
8972 if test -z "$ac_lib"; then
8973 ac_res="none required"
8976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (ac_try="$ac_link"
8981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8982 *) ac_try_echo
=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_link") 2>conftest.er1
8987 grep -v '^ *+' conftest.er1
>conftest.err
8989 cat conftest.err
>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest
$ac_exeext &&
8995 $as_test_x conftest
$ac_exeext; then
8996 ac_cv_search_socket
=$ac_res
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.
$ac_ext >&5
9004 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9006 if test "${ac_cv_search_socket+set}" = set; then
9010 if test "${ac_cv_search_socket+set}" = set; then
9013 ac_cv_search_socket
=no
9016 LIBS
=$ac_func_search_save_LIBS
9018 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9019 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9020 ac_res
=$ac_cv_search_socket
9021 if test "$ac_res" != no
; then
9022 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9025 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9026 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9027 if test "${ac_cv_lib_socket_socket+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 ac_check_lib_save_LIBS
=$LIBS
9031 LIBS
="-lsocket -lnsl $LIBS"
9032 cat >conftest.
$ac_ext <<_ACEOF
9035 cat confdefs.h
>>conftest.
$ac_ext
9036 cat >>conftest.
$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 /* Override any GCC internal prototype to avoid an error.
9040 Use char because int might match the return type of a GCC
9041 builtin and then its argument prototype would still apply. */
9054 rm -f conftest.
$ac_objext conftest
$ac_exeext
9055 if { (ac_try
="$ac_link"
9057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_link") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest$ac_exeext &&
9071 $as_test_x conftest$ac_exeext; then
9072 ac_cv_lib_socket_socket=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_cv_lib_socket_socket=no
9080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081 conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9084 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9085 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9086 if test $ac_cv_lib_socket_socket = yes; then
9087 LIBS="-lsocket -lnsl $LIBS"
9092 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9093 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9094 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9095 if test "${ac_cv_search_putmsg+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 ac_func_search_save_LIBS=$LIBS
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 /* Override any GCC internal prototype to avoid an error.
9107 Use char because int might match the return type of a GCC
9108 builtin and then its argument prototype would still apply. */
9121 for ac_lib in '' str; do
9122 if test -z "$ac_lib"; then
9123 ac_res="none required"
9126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9132 *) ac_try_echo
=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_link") 2>conftest.er1
9137 grep -v '^ *+' conftest.er1
>conftest.err
9139 cat conftest.err
>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest
$ac_exeext &&
9145 $as_test_x conftest
$ac_exeext; then
9146 ac_cv_search_putmsg
=$ac_res
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.
$ac_ext >&5
9154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9156 if test "${ac_cv_search_putmsg+set}" = set; then
9160 if test "${ac_cv_search_putmsg+set}" = set; then
9163 ac_cv_search_putmsg
=no
9166 LIBS
=$ac_func_search_save_LIBS
9168 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9169 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9170 ac_res
=$ac_cv_search_putmsg
9171 if test "$ac_res" != no
; then
9172 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9179 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9180 if test -f $pfopen ; then
9182 for ac_func
in pfopen
9184 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9187 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 cat >conftest.
$ac_ext <<_ACEOF
9193 cat confdefs.h
>>conftest.
$ac_ext
9194 cat >>conftest.
$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9198 #define $ac_func innocuous_$ac_func
9200 /* System header to define __stub macros and hopefully few prototypes,
9201 which can conflict with char $ac_func (); below.
9202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203 <limits.h> exists even on freestanding compilers. */
9206 # include <limits.h>
9208 # include <assert.h>
9213 /* Override any GCC internal prototype to avoid an error.
9214 Use char because int might match the return type of a GCC
9215 builtin and then its argument prototype would still apply. */
9220 /* The GNU C library defines this for functions which it implements
9221 to always fail with ENOSYS. Some functions are actually named
9222 something starting with __ and the normal name is an alias. */
9223 #if defined __stub_$ac_func || defined __stub___$ac_func
9235 rm -f conftest.
$ac_objext conftest
$ac_exeext
9236 if { (ac_try
="$ac_link"
9238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9239 *) ac_try_echo=$ac_try;;
9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242 (eval "$ac_link") 2>conftest.er1
9244 grep -v '^ *+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest$ac_exeext &&
9252 $as_test_x conftest$ac_exeext; then
9253 eval "$as_ac_var=yes"
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 eval "$as_ac_var=no"
9261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9262 conftest$ac_exeext conftest.$ac_ext
9264 ac_res=`eval echo '${'$as_ac_var'}'`
9265 { echo "$as_me:$LINENO: result: $ac_res" >&5
9266 echo "${ECHO_T}$ac_res" >&6; }
9267 if test `eval echo '${'$as_ac_var'}'` = yes; then
9268 cat >>confdefs.h <<_ACEOF
9269 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9275 if test $ac_cv_func_pfopen = "no" ; then
9276 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9277 echo "${ECHO_T}Using $pfopen" >&6; }
9278 LIBS="$LIBS $pfopen"
9281 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9282 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9285 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9286 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9287 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9288 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//'`
9289 if test $lastdir = $basedir ; then
9293 if test -r $dir/libpcap.a ; then
9294 libpcap=$dir/libpcap.a
9298 if test $libpcap = FAIL ; then
9299 { echo "$as_me:$LINENO: result: not found" >&5
9300 echo "${ECHO_T}not found" >&6; }
9301 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9302 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9303 if test "${ac_cv_lib_pcap_main+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 ac_check_lib_save_LIBS=$LIBS
9308 cat >conftest.$ac_ext <<_ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (ac_try="$ac_link"
9327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9328 *) ac_try_echo
=$ac_try;;
9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_link") 2>conftest.er1
9333 grep -v '^ *+' conftest.er1
>conftest.err
9335 cat conftest.err
>&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } && {
9338 test -z "$ac_c_werror_flag" ||
9339 test ! -s conftest.err
9340 } && test -s conftest
$ac_exeext &&
9341 $as_test_x conftest
$ac_exeext; then
9342 ac_cv_lib_pcap_main
=yes
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.
$ac_ext >&5
9347 ac_cv_lib_pcap_main
=no
9350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9351 conftest
$ac_exeext conftest.
$ac_ext
9352 LIBS
=$ac_check_lib_save_LIBS
9354 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9355 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9356 if test $ac_cv_lib_pcap_main = yes; then
9360 if test $libpcap = FAIL
; then
9361 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9362 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9363 { (exit 1); exit 1; }; }
9365 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9366 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9367 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9368 \
( ! -r /usr
/include
/pcap.h \
); then
9369 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9370 d
="/usr/local/include/pcap"
9371 elif test -r /usr
/include
/pcap
/pcap.h
; then
9372 d
="/usr/include/pcap"
9375 if test -z "$d" ; then
9376 { echo "$as_me:$LINENO: result: not found" >&5
9377 echo "${ECHO_T}not found" >&6; }
9379 V_INCLS
="-I$d $V_INCLS"
9380 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9381 echo "${ECHO_T}found -- -I$d added" >&6; }
9385 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9386 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9387 if test -r $d/pcap.h
; then
9388 V_INCLS
="-I$d $V_INCLS"
9389 elif test -r $places/pcap.h
; then
9390 V_INCLS
="-I$places $V_INCLS"
9392 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9393 echo "$as_me: error: cannot find pcap.h" >&2;}
9394 { (exit see INSTALL
); exit see INSTALL
; }; }
9396 { echo "$as_me:$LINENO: result: $libpcap" >&5
9397 echo "${ECHO_T}$libpcap" >&6; }
9399 LIBS
="$libpcap $LIBS"
9403 pseexe
="/lib/pse.exp"
9404 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9405 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9406 if test -f $pseexe ; then
9407 { echo "$as_me:$LINENO: result: yes" >&5
9408 echo "${ECHO_T}yes" >&6; }
9409 LIBS
="$LIBS -I:$pseexe"
9412 # We need "-lodm" and "-lcfg", as libpcap requires them on
9413 # AIX, and we just build a static libpcap.a and thus can't
9414 # arrange that when you link with libpcap you automatically
9415 # link with those libraries.
9417 LIBS
="$LIBS -lodm -lcfg"
9421 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9422 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9423 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9434 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9436 /* System header to define __stub macros and hopefully few prototypes,
9437 which can conflict with char pcap_list_datalinks (); below.
9438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9439 <limits.h> exists even on freestanding compilers. */
9442 # include <limits.h>
9444 # include <assert.h>
9447 #undef pcap_list_datalinks
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9455 char pcap_list_datalinks ();
9456 /* The GNU C library defines this for functions which it implements
9457 to always fail with ENOSYS. Some functions are actually named
9458 something starting with __ and the normal name is an alias. */
9459 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9466 return pcap_list_datalinks ();
9471 rm -f conftest.
$ac_objext conftest
$ac_exeext
9472 if { (ac_try
="$ac_link"
9474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest$ac_exeext &&
9488 $as_test_x conftest$ac_exeext; then
9489 ac_cv_func_pcap_list_datalinks=yes
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_cv_func_pcap_list_datalinks=no
9497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9498 conftest$ac_exeext conftest.$ac_ext
9500 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9501 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9502 if test $ac_cv_func_pcap_list_datalinks = yes; then
9503 cat >>confdefs.h <<\_ACEOF
9504 #define HAVE_PCAP_LIST_DATALINKS 1
9509 case " $LIBOBJS " in
9510 *" datalinks.$ac_objext "* ) ;;
9511 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9518 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9519 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9520 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9531 #define pcap_set_datalink innocuous_pcap_set_datalink
9533 /* System header to define __stub macros and hopefully few prototypes,
9534 which can conflict with char pcap_set_datalink (); below.
9535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9536 <limits.h> exists even on freestanding compilers. */
9539 # include <limits.h>
9541 # include <assert.h>
9544 #undef pcap_set_datalink
9546 /* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
9552 char pcap_set_datalink ();
9553 /* The GNU C library defines this for functions which it implements
9554 to always fail with ENOSYS. Some functions are actually named
9555 something starting with __ and the normal name is an alias. */
9556 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9563 return pcap_set_datalink ();
9568 rm -f conftest.$ac_objext conftest$ac_exeext
9569 if { (ac_try="$ac_link"
9571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9572 *) ac_try_echo
=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_link") 2>conftest.er1
9577 grep -v '^ *+' conftest.er1
>conftest.err
9579 cat conftest.err
>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && {
9582 test -z "$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 } && test -s conftest
$ac_exeext &&
9585 $as_test_x conftest
$ac_exeext; then
9586 ac_cv_func_pcap_set_datalink
=yes
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.
$ac_ext >&5
9591 ac_cv_func_pcap_set_datalink
=no
9594 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9595 conftest
$ac_exeext conftest.
$ac_ext
9597 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9598 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9599 if test $ac_cv_func_pcap_set_datalink = yes; then
9600 cat >>confdefs.h
<<\_ACEOF
9601 #define HAVE_PCAP_SET_DATALINK 1
9606 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9607 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9608 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.
$ac_ext <<_ACEOF
9614 cat confdefs.h
>>conftest.
$ac_ext
9615 cat >>conftest.
$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9621 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char pcap_datalink_name_to_val (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9627 # include <limits.h>
9629 # include <assert.h>
9632 #undef pcap_datalink_name_to_val
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9640 char pcap_datalink_name_to_val ();
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9651 return pcap_datalink_name_to_val ();
9656 rm -f conftest.
$ac_objext conftest
$ac_exeext
9657 if { (ac_try
="$ac_link"
9659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_link") 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && {
9670 test -z "$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 } && test -s conftest$ac_exeext &&
9673 $as_test_x conftest$ac_exeext; then
9674 ac_cv_func_pcap_datalink_name_to_val=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_cv_func_pcap_datalink_name_to_val=no
9682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9683 conftest$ac_exeext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9686 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9687 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9689 cat >>confdefs.h <<\_ACEOF
9690 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9693 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9694 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9695 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9706 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9708 /* System header to define __stub macros and hopefully few prototypes,
9709 which can conflict with char pcap_datalink_val_to_description (); below.
9710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9711 <limits.h> exists even on freestanding compilers. */
9714 # include <limits.h>
9716 # include <assert.h>
9719 #undef pcap_datalink_val_to_description
9721 /* Override any GCC internal prototype to avoid an error.
9722 Use char because int might match the return type of a GCC
9723 builtin and then its argument prototype would still apply. */
9727 char pcap_datalink_val_to_description ();
9728 /* The GNU C library defines this for functions which it implements
9729 to always fail with ENOSYS. Some functions are actually named
9730 something starting with __ and the normal name is an alias. */
9731 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9738 return pcap_datalink_val_to_description ();
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (ac_try="$ac_link"
9746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9747 *) ac_try_echo
=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_link") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1
>conftest.err
9754 cat conftest.err
>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest
$ac_exeext &&
9760 $as_test_x conftest
$ac_exeext; then
9761 ac_cv_func_pcap_datalink_val_to_description
=yes
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.
$ac_ext >&5
9766 ac_cv_func_pcap_datalink_val_to_description
=no
9769 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9770 conftest
$ac_exeext conftest.
$ac_ext
9772 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9773 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9774 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9775 cat >>confdefs.h
<<\_ACEOF
9776 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9781 case " $LIBOBJS " in
9782 *" dlnames.$ac_objext "* ) ;;
9783 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
9793 case " $LIBOBJS " in
9794 *" dlnames.$ac_objext "* ) ;;
9795 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
9804 for ac_func
in pcap_breakloop
9806 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9809 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 cat >conftest.
$ac_ext <<_ACEOF
9815 cat confdefs.h
>>conftest.
$ac_ext
9816 cat >>conftest.
$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9820 #define $ac_func innocuous_$ac_func
9822 /* System header to define __stub macros and hopefully few prototypes,
9823 which can conflict with char $ac_func (); below.
9824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9825 <limits.h> exists even on freestanding compilers. */
9828 # include <limits.h>
9830 # include <assert.h>
9835 /* Override any GCC internal prototype to avoid an error.
9836 Use char because int might match the return type of a GCC
9837 builtin and then its argument prototype would still apply. */
9842 /* The GNU C library defines this for functions which it implements
9843 to always fail with ENOSYS. Some functions are actually named
9844 something starting with __ and the normal name is an alias. */
9845 #if defined __stub_$ac_func || defined __stub___$ac_func
9857 rm -f conftest.
$ac_objext conftest
$ac_exeext
9858 if { (ac_try
="$ac_link"
9860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext &&
9874 $as_test_x conftest$ac_exeext; then
9875 eval "$as_ac_var=yes"
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 eval "$as_ac_var=no"
9883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9884 conftest$ac_exeext conftest.$ac_ext
9886 ac_res=`eval echo '${'$as_ac_var'}'`
9887 { echo "$as_me:$LINENO: result: $ac_res" >&5
9888 echo "${ECHO_T}$ac_res" >&6; }
9889 if test `eval echo '${'$as_ac_var'}'` = yes; then
9890 cat >>confdefs.h <<_ACEOF
9891 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9898 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9899 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
9900 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9911 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9913 /* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char pcap_dump_ftell (); below.
9915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 <limits.h> exists even on freestanding compilers. */
9919 # include <limits.h>
9921 # include <assert.h>
9924 #undef pcap_dump_ftell
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9932 char pcap_dump_ftell ();
9933 /* The GNU C library defines this for functions which it implements
9934 to always fail with ENOSYS. Some functions are actually named
9935 something starting with __ and the normal name is an alias. */
9936 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
9943 return pcap_dump_ftell ();
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9952 *) ac_try_echo
=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1
>conftest.err
9959 cat conftest.err
>&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest
$ac_exeext &&
9965 $as_test_x conftest
$ac_exeext; then
9966 ac_cv_func_pcap_dump_ftell
=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.
$ac_ext >&5
9971 ac_cv_func_pcap_dump_ftell
=no
9974 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9975 conftest
$ac_exeext conftest.
$ac_ext
9977 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9978 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
9979 if test $ac_cv_func_pcap_dump_ftell = yes; then
9980 cat >>confdefs.h
<<\_ACEOF
9981 #define HAVE_PCAP_DUMP_FTELL 1
9986 case " $LIBOBJS " in
9987 *" pcap_dump_ftell.$ac_objext "* ) ;;
9988 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext"
9998 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9999 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10001 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10002 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10003 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10004 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10005 # it does not ship with a libc symbol "inet_ntop()", it ships with
10006 # "_inet_ntop()", and has a #define macro in one of the system headers
10009 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10010 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10011 cat >conftest.
$ac_ext <<_ACEOF
10014 cat confdefs.h
>>conftest.
$ac_ext
10015 cat >>conftest.
$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 #include <sys/types.h>
10018 #include <sys/socket.h>
10019 #include <netinet/in.h>
10020 #include <arpa/inet.h>
10024 char src[4], dst[128];
10025 inet_ntop(AF_INET, src, dst, sizeof(dst));
10030 rm -f conftest.
$ac_objext conftest
$ac_exeext
10031 if { (ac_try
="$ac_link"
10032 case "(($ac_try" in
10033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_link") 2>conftest.er1
10039 grep -v '^ *+' conftest.er1 >conftest.err
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } && {
10044 test -z "$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10046 } && test -s conftest$ac_exeext &&
10047 $as_test_x conftest$ac_exeext; then
10048 { echo "$as_me:$LINENO: result: yes" >&5
10049 echo "${ECHO_T}yes" >&6; }
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 { echo "$as_me:$LINENO: result: no" >&5
10055 echo "${ECHO_T}no" >&6; }
10056 case " $LIBOBJS " in
10057 *" inet_ntop.$ac_objext "* ) ;;
10058 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10065 conftest$ac_exeext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10067 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <sys/types.h>
10075 #include <sys/socket.h>
10076 #include <netinet/in.h>
10077 #include <arpa/inet.h>
10081 char src[128], dst[4];
10082 inet_pton(AF_INET, src, dst);
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10091 *) ac_try_echo
=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10096 grep -v '^ *+' conftest.er1
>conftest.err
10098 cat conftest.err
>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest
$ac_exeext &&
10104 $as_test_x conftest
$ac_exeext; then
10105 { echo "$as_me:$LINENO: result: yes" >&5
10106 echo "${ECHO_T}yes" >&6; }
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.
$ac_ext >&5
10111 { echo "$as_me:$LINENO: result: no" >&5
10112 echo "${ECHO_T}no" >&6; }
10113 case " $LIBOBJS " in
10114 *" inet_pton.$ac_objext "* ) ;;
10115 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
10121 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10122 conftest
$ac_exeext conftest.
$ac_ext
10123 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10124 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10125 cat >conftest.
$ac_ext <<_ACEOF
10128 cat confdefs.h
>>conftest.
$ac_ext
10129 cat >>conftest.
$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #include <sys/types.h>
10132 #include <netinet/in.h>
10133 #include <arpa/inet.h>
10138 struct in_addr dst;
10139 inet_aton(src, &dst);
10144 rm -f conftest.
$ac_objext conftest
$ac_exeext
10145 if { (ac_try
="$ac_link"
10146 case "(($ac_try" in
10147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_link") 2>conftest.er1
10153 grep -v '^ *+' conftest.er1 >conftest.err
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } && {
10158 test -z "$ac_c_werror_flag" ||
10159 test ! -s conftest.err
10160 } && test -s conftest$ac_exeext &&
10161 $as_test_x conftest$ac_exeext; then
10162 { echo "$as_me:$LINENO: result: yes" >&5
10163 echo "${ECHO_T}yes" >&6; }
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 { echo "$as_me:$LINENO: result: no" >&5
10169 echo "${ECHO_T}no" >&6; }
10170 case " $LIBOBJS " in
10171 *" inet_aton.$ac_objext "* ) ;;
10172 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179 conftest$ac_exeext conftest.$ac_ext
10182 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10184 # You are in a twisty little maze of UN*Xes, all different.
10185 # Some might not have ether_ntohost().
10186 # Some might have it, but not declare it in any header file.
10187 # Some might have it, but declare it in <netinet/if_ether.h>.
10188 # Some might have it, but declare it in <netinet/ether.h>
10189 # (And some might have it but document it as something declared in
10190 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10192 # Before you is a C compiler.
10195 for ac_func in ether_ntohost
10197 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10211 #define $ac_func innocuous_$ac_func
10213 /* System header to define __stub macros and hopefully few prototypes,
10214 which can conflict with char $ac_func (); below.
10215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216 <limits.h> exists even on freestanding compilers. */
10219 # include <limits.h>
10221 # include <assert.h>
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10233 /* The GNU C library defines this for functions which it implements
10234 to always fail with ENOSYS. Some functions are actually named
10235 something starting with __ and the normal name is an alias. */
10236 #if defined __stub_$ac_func || defined __stub___$ac_func
10243 return $ac_func ();
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10252 *) ac_try_echo
=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>conftest.er1
10257 grep -v '^ *+' conftest.er1
>conftest.err
10259 cat conftest.err
>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && {
10262 test -z "$ac_c_werror_flag" ||
10263 test ! -s conftest.err
10264 } && test -s conftest
$ac_exeext &&
10265 $as_test_x conftest
$ac_exeext; then
10266 eval "$as_ac_var=yes"
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.
$ac_ext >&5
10271 eval "$as_ac_var=no"
10274 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10275 conftest
$ac_exeext conftest.
$ac_ext
10277 ac_res
=`eval echo '${'$as_ac_var'}'`
10278 { echo "$as_me:$LINENO: result: $ac_res" >&5
10279 echo "${ECHO_T}$ac_res" >&6; }
10280 if test `eval echo '${'$as_ac_var'}'` = yes; then
10281 cat >>confdefs.h
<<_ACEOF
10282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10285 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10286 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10287 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 if test "$cross_compiling" = yes; then
10292 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10294 cat >conftest.
$ac_ext <<_ACEOF
10297 cat confdefs.h
>>conftest.
$ac_ext
10298 cat >>conftest.
$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10302 #include <sys/types.h>
10303 #include <sys/param.h>
10304 #include <sys/socket.h>
10307 main(int argc, char **argv)
10309 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10310 char name[MAXHOSTNAMELEN];
10312 ether_ntohost(name, (struct ether_addr *)ea);
10317 rm -f conftest
$ac_exeext
10318 if { (ac_try
="$ac_link"
10319 case "(($ac_try" in
10320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_link") 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10328 { (case "(($ac_try" in
10329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10330 *) ac_try_echo
=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_try") 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_cv_buggy_ether_ntohost
=no
10339 echo "$as_me: program exited with status $ac_status" >&5
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.
$ac_ext >&5
10343 ( exit $ac_status )
10344 ac_cv_buggy_ether_ntohost
=yes
10346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10351 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10352 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10353 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10354 cat >>confdefs.h
<<\_ACEOF
10355 #define USE_ETHER_NTOHOST 1
10363 if test "$ac_cv_func_ether_ntohost" = yes -a \
10364 "$ac_cv_buggy_ether_ntohost" = "no"; then
10366 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10368 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10370 # Yes. Does it declare ether_ntohost()?
10372 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10373 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10374 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 cat >conftest.
$ac_ext <<_ACEOF
10380 cat confdefs.h
>>conftest.
$ac_ext
10381 cat >>conftest.
$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10384 #include <sys/types.h>
10385 #include <sys/socket.h>
10386 #include <netinet/in.h>
10387 #include <arpa/inet.h>
10390 #include <net/if.h>
10391 #include <netinet/if_ether.h>
10397 #ifndef ether_ntohost
10398 (void) ether_ntohost;
10405 rm -f conftest.
$ac_objext
10406 if { (ac_try
="$ac_compile"
10407 case "(($ac_try" in
10408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412 (eval "$ac_compile") 2>conftest.er1
10414 grep -v '^ *+' conftest.er1 >conftest.err
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && {
10419 test -z "$ac_c_werror_flag" ||
10420 test ! -s conftest.err
10421 } && test -s conftest.$ac_objext; then
10422 ac_cv_have_decl_ether_ntohost=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_cv_have_decl_ether_ntohost=no
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10433 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10434 if test $ac_cv_have_decl_ether_ntohost = yes; then
10437 cat >>confdefs.h <<\_ACEOF
10438 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10446 # Did that succeed?
10448 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10450 # No, how about <netinet/ether.h>, as on Linux?
10453 for ac_header in netinet/ether.h
10455 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 ac_res=`eval echo '${'$as_ac_Header'}'`
10463 { echo "$as_me:$LINENO: result: $ac_res" >&5
10464 echo "${ECHO_T}$ac_res" >&6; }
10466 # Is the header compilable?
10467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 #include <$ac_header>
10478 rm -f conftest.$ac_objext
10479 if { (ac_try="$ac_compile"
10480 case "(($ac_try" in
10481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10482 *) ac_try_echo
=$ac_try;;
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_compile") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1
>conftest.err
10489 cat conftest.err
>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest.
$ac_objext; then
10495 ac_header_compiler
=yes
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.
$ac_ext >&5
10500 ac_header_compiler
=no
10503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10505 echo "${ECHO_T}$ac_header_compiler" >&6; }
10507 # Is the header present?
10508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10510 cat >conftest.
$ac_ext <<_ACEOF
10513 cat confdefs.h
>>conftest.
$ac_ext
10514 cat >>conftest.
$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 #include <$ac_header>
10518 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10519 case "(($ac_try" in
10520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } >/dev/null && {
10531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10534 ac_header_preproc=yes
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ac_header_preproc=no
10542 rm -f conftest.err conftest.$ac_ext
10543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10544 echo "${ECHO_T}$ac_header_preproc" >&6; }
10546 # So? What about this header?
10547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10553 ac_header_preproc=yes
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 eval "$as_ac_Header=\$ac_header_preproc"
10578 ac_res=`eval echo '${'$as_ac_Header'}'`
10579 { echo "$as_me:$LINENO: result: $ac_res" >&5
10580 echo "${ECHO_T}$ac_res" >&6; }
10583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10584 cat >>confdefs.h <<_ACEOF
10585 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10592 if test "$ac_cv_header_netinet_ether_h" = yes; then
10594 # We have it - does it declare ether_ntohost()?
10595 # Unset ac_cv_have_decl_ether_ntohost so we don't
10596 # treat the previous failure as a cached value and
10597 # suppress the next test.
10599 unset ac_cv_have_decl_ether_ntohost
10600 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10601 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10602 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10612 #include <netinet/ether.h>
10618 #ifndef ether_ntohost
10619 (void) ether_ntohost;
10626 rm -f conftest.$ac_objext
10627 if { (ac_try="$ac_compile"
10628 case "(($ac_try" in
10629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10630 *) ac_try_echo
=$ac_try;;
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_compile") 2>conftest.er1
10635 grep -v '^ *+' conftest.er1
>conftest.err
10637 cat conftest.err
>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && {
10640 test -z "$ac_c_werror_flag" ||
10641 test ! -s conftest.err
10642 } && test -s conftest.
$ac_objext; then
10643 ac_cv_have_decl_ether_ntohost
=yes
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.
$ac_ext >&5
10648 ac_cv_have_decl_ether_ntohost
=no
10651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10654 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10655 if test $ac_cv_have_decl_ether_ntohost = yes; then
10658 cat >>confdefs.h
<<\_ACEOF
10659 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10668 # Is ether_ntohost() declared?
10670 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10672 # No, we'll have to declare it ourselves.
10673 # Do we have "struct ether_addr"?
10675 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10676 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10677 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 cat >conftest.
$ac_ext <<_ACEOF
10683 cat confdefs.h
>>conftest.
$ac_ext
10684 cat >>conftest.
$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10687 #include <sys/types.h>
10688 #include <sys/socket.h>
10689 #include <netinet/in.h>
10690 #include <arpa/inet.h>
10693 #include <net/if.h>
10694 #include <netinet/if_ether.h>
10697 typedef struct ether_addr ac__type_new_;
10701 if ((ac__type_new_ *) 0)
10703 if (sizeof (ac__type_new_))
10709 rm -f conftest.
$ac_objext
10710 if { (ac_try
="$ac_compile"
10711 case "(($ac_try" in
10712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_compile") 2>conftest.er1
10718 grep -v '^ *+' conftest.er1 >conftest.err
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest.$ac_objext; then
10726 ac_cv_type_struct_ether_addr=yes
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 ac_cv_type_struct_ether_addr=no
10734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10737 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10738 if test $ac_cv_type_struct_ether_addr = yes; then
10740 cat >>confdefs.h <<_ACEOF
10741 #define HAVE_STRUCT_ETHER_ADDR 1
10748 cat >>confdefs.h <<\_ACEOF
10749 #define HAVE_DECL_ETHER_NTOHOST 0
10754 cat >>confdefs.h <<\_ACEOF
10755 #define HAVE_DECL_ETHER_NTOHOST 1
10762 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10763 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10764 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 cat >conftest.$ac_ext <<_ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10774 # include <sys/types.h>
10775 # include <sys/socket.h>
10779 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10784 rm -f conftest.$ac_objext
10785 if { (ac_try="$ac_compile"
10786 case "(($ac_try" in
10787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10788 *) ac_try_echo
=$ac_try;;
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791 (eval "$ac_compile") 2>conftest.er1
10793 grep -v '^ *+' conftest.er1
>conftest.err
10795 cat conftest.err
>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && {
10798 test -z "$ac_c_werror_flag" ||
10799 test ! -s conftest.err
10800 } && test -s conftest.
$ac_objext; then
10801 ac_cv_sockaddr_has_sa_len
=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.
$ac_ext >&5
10806 ac_cv_sockaddr_has_sa_len
=no
10809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10812 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10813 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
10814 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10815 cat >>confdefs.h
<<\_ACEOF
10816 #define HAVE_SOCKADDR_SA_LEN 1
10821 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
10822 missing_includes
=yes
10828 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
10830 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10833 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 cat >conftest.
$ac_ext <<_ACEOF
10839 cat confdefs.h
>>conftest.
$ac_ext
10840 cat >>conftest.
$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10844 #define $ac_func innocuous_$ac_func
10846 /* System header to define __stub macros and hopefully few prototypes,
10847 which can conflict with char $ac_func (); below.
10848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10849 <limits.h> exists even on freestanding compilers. */
10852 # include <limits.h>
10854 # include <assert.h>
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10866 /* The GNU C library defines this for functions which it implements
10867 to always fail with ENOSYS. Some functions are actually named
10868 something starting with __ and the normal name is an alias. */
10869 #if defined __stub_$ac_func || defined __stub___$ac_func
10876 return $ac_func ();
10881 rm -f conftest.
$ac_objext conftest
$ac_exeext
10882 if { (ac_try
="$ac_link"
10883 case "(($ac_try" in
10884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_link") 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && {
10895 test -z "$ac_c_werror_flag" ||
10896 test ! -s conftest.err
10897 } && test -s conftest$ac_exeext &&
10898 $as_test_x conftest$ac_exeext; then
10899 eval "$as_ac_var=yes"
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 eval "$as_ac_var=no"
10907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10908 conftest$ac_exeext conftest.$ac_ext
10910 ac_res=`eval echo '${'$as_ac_var'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10913 if test `eval echo '${'$as_ac_var'}'` = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10921 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10922 savedcflags="$CFLAGS"
10923 CFLAGS="$CFLAGS $V_INCLS"
10924 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10925 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
10926 if test "${ac_cv_type_pcap_if_t+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.$ac_ext <<_ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10937 typedef pcap_if_t ac__type_new_;
10941 if ((ac__type_new_ *) 0)
10943 if (sizeof (ac__type_new_))
10949 rm -f conftest.$ac_objext
10950 if { (ac_try="$ac_compile"
10951 case "(($ac_try" in
10952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10953 *) ac_try_echo
=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_compile") 2>conftest.er1
10958 grep -v '^ *+' conftest.er1
>conftest.err
10960 cat conftest.err
>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && {
10963 test -z "$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 } && test -s conftest.
$ac_objext; then
10966 ac_cv_type_pcap_if_t
=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.
$ac_ext >&5
10971 ac_cv_type_pcap_if_t
=no
10974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
10977 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
10978 if test $ac_cv_type_pcap_if_t = yes; then
10980 cat >>confdefs.h
<<_ACEOF
10981 #define HAVE_PCAP_IF_T 1
10987 CFLAGS
="$savedcflags"
10990 if test $ac_cv_func_pcap_lib_version = "no" ; then
10991 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
10992 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
10993 cat >conftest.
$ac_ext <<_ACEOF
10996 cat confdefs.h
>>conftest.
$ac_ext
10997 cat >>conftest.
$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11004 extern char pcap_version[];
11006 return (int)pcap_version;
11012 rm -f conftest.
$ac_objext conftest
$ac_exeext
11013 if { (ac_try
="$ac_link"
11014 case "(($ac_try" in
11015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_link") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && {
11026 test -z "$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest$ac_exeext &&
11029 $as_test_x conftest$ac_exeext; then
11030 ac_lbl_cv_pcap_version_defined=yes
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_lbl_cv_pcap_version_defined=no
11038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11039 conftest$ac_exeext conftest.$ac_ext
11040 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11041 { echo "$as_me:$LINENO: result: yes" >&5
11042 echo "${ECHO_T}yes" >&6; }
11043 cat >>confdefs.h <<\_ACEOF
11044 #define HAVE_PCAP_VERSION 1
11048 { echo "$as_me:$LINENO: result: no" >&5
11049 echo "${ECHO_T}no" >&6; }
11052 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11053 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11054 cat >conftest.$ac_ext <<_ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11065 extern int pcap_debug;
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11077 *) ac_try_echo
=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11082 grep -v '^ *+' conftest.er1
>conftest.err
11084 cat conftest.err
>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest
$ac_exeext &&
11090 $as_test_x conftest
$ac_exeext; then
11091 ac_lbl_cv_pcap_debug_defined
=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.
$ac_ext >&5
11096 ac_lbl_cv_pcap_debug_defined
=no
11099 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11100 conftest
$ac_exeext conftest.
$ac_ext
11101 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11102 { echo "$as_me:$LINENO: result: yes" >&5
11103 echo "${ECHO_T}yes" >&6; }
11104 cat >>confdefs.h
<<\_ACEOF
11105 #define HAVE_PCAP_DEBUG 1
11109 { echo "$as_me:$LINENO: result: no" >&5
11110 echo "${ECHO_T}no" >&6; }
11112 # OK, what about "yydebug"?
11114 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11115 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11116 cat >conftest.
$ac_ext <<_ACEOF
11119 cat confdefs.h
>>conftest.
$ac_ext
11120 cat >>conftest.
$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11127 extern int yydebug;
11135 rm -f conftest.
$ac_objext conftest
$ac_exeext
11136 if { (ac_try
="$ac_link"
11137 case "(($ac_try" in
11138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest$ac_exeext &&
11152 $as_test_x conftest$ac_exeext; then
11153 ac_lbl_cv_yydebug_defined=yes
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_lbl_cv_yydebug_defined=no
11161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11162 conftest$ac_exeext conftest.$ac_ext
11163 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11164 { echo "$as_me:$LINENO: result: yes" >&5
11165 echo "${ECHO_T}yes" >&6; }
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_YYDEBUG 1
11171 { echo "$as_me:$LINENO: result: no" >&5
11172 echo "${ECHO_T}no" >&6; }
11176 for ac_func in bpf_dump
11178 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 cat >conftest.$ac_ext <<_ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11192 #define $ac_func innocuous_$ac_func
11194 /* System header to define __stub macros and hopefully few prototypes,
11195 which can conflict with char $ac_func (); below.
11196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11197 <limits.h> exists even on freestanding compilers. */
11200 # include <limits.h>
11202 # include <assert.h>
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11214 /* The GNU C library defines this for functions which it implements
11215 to always fail with ENOSYS. Some functions are actually named
11216 something starting with __ and the normal name is an alias. */
11217 #if defined __stub_$ac_func || defined __stub___$ac_func
11224 return $ac_func ();
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (ac_try="$ac_link"
11231 case "(($ac_try" in
11232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11233 *) ac_try_echo
=$ac_try;;
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_link") 2>conftest.er1
11238 grep -v '^ *+' conftest.er1
>conftest.err
11240 cat conftest.err
>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_c_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest
$ac_exeext &&
11246 $as_test_x conftest
$ac_exeext; then
11247 eval "$as_ac_var=yes"
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.
$ac_ext >&5
11252 eval "$as_ac_var=no"
11255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11256 conftest
$ac_exeext conftest.
$ac_ext
11258 ac_res
=`eval echo '${'$as_ac_var'}'`
11259 { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11261 if test `eval echo '${'$as_ac_var'}'` = yes; then
11262 cat >>confdefs.h
<<_ACEOF
11263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 case " $LIBOBJS " in
11268 *" $ac_func.$ac_objext "* ) ;;
11269 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
11278 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11284 cat >>confdefs.h
<<\_ACEOF
11303 if test -f /dev
/bpf0
; then
11308 for ac_header
in sys
/bitypes.h
11310 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11314 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 ac_res
=`eval echo '${'$as_ac_Header'}'`
11318 { echo "$as_me:$LINENO: result: $ac_res" >&5
11319 echo "${ECHO_T}$ac_res" >&6; }
11321 # Is the header compilable?
11322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11324 cat >conftest.
$ac_ext <<_ACEOF
11327 cat confdefs.h
>>conftest.
$ac_ext
11328 cat >>conftest.
$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 $ac_includes_default
11331 #include <$ac_header>
11333 rm -f conftest.
$ac_objext
11334 if { (ac_try
="$ac_compile"
11335 case "(($ac_try" in
11336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_compile") 2>conftest.er1
11342 grep -v '^ *+' conftest.er1 >conftest.err
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && {
11347 test -z "$ac_c_werror_flag" ||
11348 test ! -s conftest.err
11349 } && test -s conftest.$ac_objext; then
11350 ac_header_compiler=yes
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 ac_header_compiler=no
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11360 echo "${ECHO_T}$ac_header_compiler" >&6; }
11362 # Is the header present?
11363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11365 cat >conftest.$ac_ext <<_ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 #include <$ac_header>
11373 if { (ac_try="$ac_cpp conftest.$ac_ext"
11374 case "(($ac_try" in
11375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11376 *) ac_try_echo
=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381 grep -v '^ *+' conftest.er1
>conftest.err
11383 cat conftest.err
>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } >/dev
/null
&& {
11386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11387 test ! -s conftest.err
11389 ac_header_preproc
=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.
$ac_ext >&5
11394 ac_header_preproc
=no
11397 rm -f conftest.err conftest.
$ac_ext
11398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11399 echo "${ECHO_T}$ac_header_preproc" >&6; }
11401 # So? What about this header?
11402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11408 ac_header_preproc
=yes
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 eval "$as_ac_Header=\$ac_header_preproc"
11433 ac_res
=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439 cat >>confdefs.h
<<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11448 { echo "$as_me:$LINENO: checking for int8_t" >&5
11449 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
11450 if test "${ac_cv_type_int8_t+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 cat >conftest.
$ac_ext <<_ACEOF
11456 cat confdefs.h
>>conftest.
$ac_ext
11457 cat >>conftest.
$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 $ac_includes_default
11460 typedef int8_t ac__type_new_;
11464 if ((ac__type_new_ *) 0)
11466 if (sizeof (ac__type_new_))
11472 rm -f conftest.
$ac_objext
11473 if { (ac_try
="$ac_compile"
11474 case "(($ac_try" in
11475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
11489 ac_cv_type_int8_t=yes
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_cv_type_int8_t=no
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11500 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
11501 if test $ac_cv_type_int8_t = yes; then
11505 cat >>confdefs.h <<\_ACEOF
11506 #define int8_t signed char
11511 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
11512 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
11513 if test "${ac_cv_type_u_int8_t+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 cat >conftest.$ac_ext <<_ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 $ac_includes_default
11523 #ifdef HAVE_SYS_BITYPES_H
11524 #include <sys/bitypes.h>
11527 typedef u_int8_t ac__type_new_;
11531 if ((ac__type_new_ *) 0)
11533 if (sizeof (ac__type_new_))
11539 rm -f conftest.$ac_objext
11540 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
11556 ac_cv_type_u_int8_t
=yes
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.
$ac_ext >&5
11561 ac_cv_type_u_int8_t
=no
11564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11567 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
11568 if test $ac_cv_type_u_int8_t = yes; then
11572 cat >>confdefs.h
<<\_ACEOF
11573 #define u_int8_t unsigned char
11578 { echo "$as_me:$LINENO: checking for int16_t" >&5
11579 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
11580 if test "${ac_cv_type_int16_t+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 cat >conftest.
$ac_ext <<_ACEOF
11586 cat confdefs.h
>>conftest.
$ac_ext
11587 cat >>conftest.
$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589 $ac_includes_default
11590 typedef int16_t ac__type_new_;
11594 if ((ac__type_new_ *) 0)
11596 if (sizeof (ac__type_new_))
11602 rm -f conftest.
$ac_objext
11603 if { (ac_try
="$ac_compile"
11604 case "(($ac_try" in
11605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_compile") 2>conftest.er1
11611 grep -v '^ *+' conftest.er1 >conftest.err
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } && {
11616 test -z "$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 } && test -s conftest.$ac_objext; then
11619 ac_cv_type_int16_t=yes
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 ac_cv_type_int16_t=no
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11630 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
11631 if test $ac_cv_type_int16_t = yes; then
11635 cat >>confdefs.h <<\_ACEOF
11636 #define int16_t short
11641 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
11642 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11643 if test "${ac_cv_type_u_int16_t+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 $ac_includes_default
11653 #ifdef HAVE_SYS_BITYPES_H
11654 #include <sys/bitypes.h>
11657 typedef u_int16_t ac__type_new_;
11661 if ((ac__type_new_ *) 0)
11663 if (sizeof (ac__type_new_))
11669 rm -f conftest.$ac_objext
11670 if { (ac_try="$ac_compile"
11671 case "(($ac_try" in
11672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11673 *) ac_try_echo
=$ac_try;;
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_compile") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1
>conftest.err
11680 cat conftest.err
>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && {
11683 test -z "$ac_c_werror_flag" ||
11684 test ! -s conftest.err
11685 } && test -s conftest.
$ac_objext; then
11686 ac_cv_type_u_int16_t
=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.
$ac_ext >&5
11691 ac_cv_type_u_int16_t
=no
11694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11697 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11698 if test $ac_cv_type_u_int16_t = yes; then
11702 cat >>confdefs.h
<<\_ACEOF
11703 #define u_int16_t unsigned short
11708 { echo "$as_me:$LINENO: checking for int32_t" >&5
11709 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11710 if test "${ac_cv_type_int32_t+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.
$ac_ext <<_ACEOF
11716 cat confdefs.h
>>conftest.
$ac_ext
11717 cat >>conftest.
$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 $ac_includes_default
11720 typedef int32_t ac__type_new_;
11724 if ((ac__type_new_ *) 0)
11726 if (sizeof (ac__type_new_))
11732 rm -f conftest.
$ac_objext
11733 if { (ac_try
="$ac_compile"
11734 case "(($ac_try" in
11735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_compile") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1 >conftest.err
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest.$ac_objext; then
11749 ac_cv_type_int32_t=yes
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 ac_cv_type_int32_t=no
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11760 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
11761 if test $ac_cv_type_int32_t = yes; then
11765 cat >>confdefs.h <<\_ACEOF
11766 #define int32_t int
11771 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
11772 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11773 if test "${ac_cv_type_u_int32_t+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 cat >conftest.$ac_ext <<_ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #ifdef HAVE_SYS_BITYPES_H
11784 #include <sys/bitypes.h>
11787 typedef u_int32_t ac__type_new_;
11791 if ((ac__type_new_ *) 0)
11793 if (sizeof (ac__type_new_))
11799 rm -f conftest.$ac_objext
11800 if { (ac_try="$ac_compile"
11801 case "(($ac_try" in
11802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11803 *) ac_try_echo
=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_compile") 2>conftest.er1
11808 grep -v '^ *+' conftest.er1
>conftest.err
11810 cat conftest.err
>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest.
$ac_objext; then
11816 ac_cv_type_u_int32_t
=yes
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.
$ac_ext >&5
11821 ac_cv_type_u_int32_t
=no
11824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11826 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11827 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11828 if test $ac_cv_type_u_int32_t = yes; then
11832 cat >>confdefs.h
<<\_ACEOF
11833 #define u_int32_t unsigned int
11838 { echo "$as_me:$LINENO: checking for int64_t" >&5
11839 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11840 if test "${ac_cv_type_int64_t+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 cat >conftest.
$ac_ext <<_ACEOF
11846 cat confdefs.h
>>conftest.
$ac_ext
11847 cat >>conftest.
$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 typedef int64_t ac__type_new_;
11854 if ((ac__type_new_ *) 0)
11856 if (sizeof (ac__type_new_))
11862 rm -f conftest.
$ac_objext
11863 if { (ac_try
="$ac_compile"
11864 case "(($ac_try" in
11865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_compile") 2>conftest.er1
11871 grep -v '^ *+' conftest.er1 >conftest.err
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && {
11876 test -z "$ac_c_werror_flag" ||
11877 test ! -s conftest.err
11878 } && test -s conftest.$ac_objext; then
11879 ac_cv_type_int64_t=yes
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ac_cv_type_int64_t=no
11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11890 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11891 if test $ac_cv_type_int64_t = yes; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define int64_t long long
11901 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
11902 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11903 if test "${ac_cv_type_u_int64_t+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 $ac_includes_default
11913 #ifdef HAVE_SYS_BITYPES_H
11914 #include <sys/bitypes.h>
11917 typedef u_int64_t ac__type_new_;
11921 if ((ac__type_new_ *) 0)
11923 if (sizeof (ac__type_new_))
11929 rm -f conftest.$ac_objext
11930 if { (ac_try="$ac_compile"
11931 case "(($ac_try" in
11932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11933 *) ac_try_echo
=$ac_try;;
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_compile") 2>conftest.er1
11938 grep -v '^ *+' conftest.er1
>conftest.err
11940 cat conftest.err
>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } && {
11943 test -z "$ac_c_werror_flag" ||
11944 test ! -s conftest.err
11945 } && test -s conftest.
$ac_objext; then
11946 ac_cv_type_u_int64_t
=yes
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.
$ac_ext >&5
11951 ac_cv_type_u_int64_t
=no
11954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11956 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11957 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11958 if test $ac_cv_type_u_int64_t = yes; then
11962 cat >>confdefs.h
<<\_ACEOF
11963 #define u_int64_t unsigned long long
11970 # We can't just check for <inttypes.h> - some systems have one that
11971 # doesn't define all the PRI[doxu]64 macros.
11974 for ac_header
in inttypes.h
11976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11977 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11980 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 ac_res
=`eval echo '${'$as_ac_Header'}'`
11984 { echo "$as_me:$LINENO: result: $ac_res" >&5
11985 echo "${ECHO_T}$ac_res" >&6; }
11987 # Is the header compilable?
11988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11990 cat >conftest.
$ac_ext <<_ACEOF
11993 cat confdefs.h
>>conftest.
$ac_ext
11994 cat >>conftest.
$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 $ac_includes_default
11997 #include <$ac_header>
11999 rm -f conftest.
$ac_objext
12000 if { (ac_try
="$ac_compile"
12001 case "(($ac_try" in
12002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_compile") 2>conftest.er1
12008 grep -v '^ *+' conftest.er1 >conftest.err
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && {
12013 test -z "$ac_c_werror_flag" ||
12014 test ! -s conftest.err
12015 } && test -s conftest.$ac_objext; then
12016 ac_header_compiler=yes
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ac_header_compiler=no
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12026 echo "${ECHO_T}$ac_header_compiler" >&6; }
12028 # Is the header present?
12029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 #include <$ac_header>
12039 if { (ac_try="$ac_cpp conftest.$ac_ext"
12040 case "(($ac_try" in
12041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12042 *) ac_try_echo
=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1
>conftest.err
12049 cat conftest.err
>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev
/null
&& {
12052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12055 ac_header_preproc
=yes
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.
$ac_ext >&5
12060 ac_header_preproc
=no
12063 rm -f conftest.err conftest.
$ac_ext
12064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12065 echo "${ECHO_T}$ac_header_preproc" >&6; }
12067 # So? What about this header?
12068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12074 ac_header_preproc
=yes
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12094 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 eval "$as_ac_Header=\$ac_header_preproc"
12099 ac_res
=`eval echo '${'$as_ac_Header'}'`
12100 { echo "$as_me:$LINENO: result: $ac_res" >&5
12101 echo "${ECHO_T}$ac_res" >&6; }
12104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12105 cat >>confdefs.h
<<_ACEOF
12106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12110 # OK, we have inttypes.h, but does it define those macros?
12112 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12113 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12114 cat >conftest.
$ac_ext <<_ACEOF
12118 cat confdefs.h
>>conftest.
$ac_ext
12119 cat >>conftest.
$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12122 #include <inttypes.h>
12124 #include <sys/types.h>
12125 #ifdef HAVE_SYS_BITYPES_H
12126 #include <sys/bitypes.h>
12131 printf("%" PRId64 "\n", (u_int64_t)1);
12132 printf("%" PRIo64 "\n", (u_int64_t)1);
12133 printf("%" PRIx64 "\n", (u_int64_t)1);
12134 printf("%" PRIu64 "\n", (u_int64_t)1);
12139 rm -f conftest.
$ac_objext
12140 if { (ac_try
="$ac_compile"
12141 case "(($ac_try" in
12142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_compile") 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && {
12153 test -z "$ac_c_werror_flag" ||
12154 test ! -s conftest.err
12155 } && test -s conftest.$ac_objext; then
12157 { echo "$as_me:$LINENO: result: yes" >&5
12158 echo "${ECHO_T}yes" >&6; }
12159 ac_lbl_inttypes_h_defines_formats=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12166 { echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6; }
12168 ac_lbl_inttypes_h_defines_formats=no
12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 # We don't have inttypes.h, so it obviously can't define those
12180 ac_lbl_inttypes_h_defines_formats=no
12186 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12188 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12189 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12190 if test "$cross_compiling" = yes; then
12191 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12192 See \`config.log
' for more details." >&5
12193 echo "$as_me: error: cannot run test program while cross compiling
12194 See \`config.log' for more details.
" >&2;}
12195 { (exit 1); exit 1; }; }
12197 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12205 # ifdef HAVE_INTTYPES_H
12206 #include <inttypes.h>
12208 # ifdef HAVE_SYS_BITYPES_H
12209 #include <sys/bitypes.h>
12212 #include <sys/types.h>
12218 sprintf(strbuf, "%016lx
", t << 32);
12219 if (strcmp(strbuf, "0000000100000000") == 0)
12227 rm -f conftest$ac_exeext
12228 if { (ac_try="$ac_link"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_link") 2>&5
12236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12238 { (case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_try") 2>&5
12245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12246 (exit $ac_status); }; }; then
12248 cat >>confdefs.h <<\_ACEOF
12249 #define PRId64 "ld
"
12252 cat >>confdefs.h <<\_ACEOF
12253 #define PRIo64 "lo
"
12256 cat >>confdefs.h <<\_ACEOF
12257 #define PRIx64 "lx
"
12260 cat >>confdefs.h <<\_ACEOF
12261 #define PRIu64 "lu
"
12264 { echo "$as_me:$LINENO: result
: yes" >&5
12265 echo "${ECHO_T}yes" >&6; }
12268 echo "$as_me: program exited with status
$ac_status" >&5
12269 echo "$as_me: failed program was
:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ( exit $ac_status )
12274 { echo "$as_me:$LINENO: result
: no
" >&5
12275 echo "${ECHO_T}no
" >&6; }
12278 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
12279 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
12280 if test "$cross_compiling" = yes; then
12281 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
12282 See \
`config.log' for more details." >&5
12283 echo "$as_me: error: cannot run test program while cross compiling
12284 See \`config.log
' for more details." >&2;}
12285 { (exit 1); exit 1; }; }
12287 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12295 # ifdef HAVE_INTTYPES_H
12296 #include <inttypes.h>
12298 # ifdef HAVE_SYS_BITYPES_H
12299 #include <sys/bitypes.h>
12302 #include <sys/types.h>
12308 sprintf(strbuf, "%016llx", t << 32);
12309 if (strcmp(strbuf, "0000000100000000") == 0)
12317 rm -f conftest$ac_exeext
12318 if { (ac_try="$ac_link"
12319 case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_link") 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12338 cat >>confdefs.h <<\_ACEOF
12339 #define PRId64 "lld"
12342 cat >>confdefs.h <<\_ACEOF
12343 #define PRIo64 "llo"
12346 cat >>confdefs.h <<\_ACEOF
12347 #define PRIx64 "llx"
12350 cat >>confdefs.h <<\_ACEOF
12351 #define PRIu64 "llu"
12354 { echo "$as_me:$LINENO: result: yes" >&5
12355 echo "${ECHO_T}yes" >&6; }
12358 echo "$as_me: program exited with status $ac_status" >&5
12359 echo "$as_me: failed program was:" >&5
12360 sed 's
/^
/|
/' conftest.$ac_ext >&5
12362 ( exit $ac_status )
12364 { echo "$as_me:$LINENO: result: no" >&5
12365 echo "${ECHO_T}no" >&6; }
12368 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12369 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12370 if test "$cross_compiling" = yes; then
12371 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12372 See \`config.log' for more details.
" >&5
12373 echo "$as_me: error
: cannot run
test program
while cross compiling
12374 See \
`config.log' for more details." >&2;}
12375 { (exit 1); exit 1; }; }
12377 cat >conftest.$ac_ext <<_ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12385 # ifdef HAVE_INTTYPES_H
12386 #include <inttypes.h>
12388 # ifdef HAVE_SYS_BITYPES_H
12389 #include <sys/bitypes.h>
12392 #include <sys/types.h>
12398 sprintf(strbuf, "%016Lx", t << 32);
12399 if (strcmp(strbuf, "0000000100000000") == 0)
12407 rm -f conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12411 *) ac_try_echo
=$ac_try;;
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_link") 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12418 { (case "(($ac_try" in
12419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12428 cat >>confdefs.h <<\_ACEOF
12429 #define PRId64 "Ld"
12432 cat >>confdefs.h <<\_ACEOF
12433 #define PRIo64 "Lo"
12436 cat >>confdefs.h <<\_ACEOF
12437 #define PRIx64 "Lx"
12440 cat >>confdefs.h <<\_ACEOF
12441 #define PRIu64 "Lu"
12444 { echo "$as_me:$LINENO: result: yes" >&5
12445 echo "${ECHO_T}yes" >&6; }
12448 echo "$as_me: program exited with status $ac_status" >&5
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12452 ( exit $ac_status )
12454 { echo "$as_me:$LINENO: result: no" >&5
12455 echo "${ECHO_T}no" >&6; }
12458 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12459 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
12460 if test "$cross_compiling" = yes; then
12461 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12462 See \`config.log
' for more details." >&5
12463 echo "$as_me: error: cannot run test program while cross compiling
12464 See \`config.log' for more details.
" >&2;}
12465 { (exit 1); exit 1; }; }
12467 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 # ifdef HAVE_INTTYPES_H
12476 #include <inttypes.h>
12478 # ifdef HAVE_SYS_BITYPES_H
12479 #include <sys/bitypes.h>
12482 #include <sys/types.h>
12488 sprintf(strbuf, "%016qx
", t << 32);
12489 if (strcmp(strbuf, "0000000100000000") == 0)
12497 rm -f conftest$ac_exeext
12498 if { (ac_try="$ac_link"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_link") 2>&5
12506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12516 (exit $ac_status); }; }; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define PRId64 "qd
"
12522 cat >>confdefs.h <<\_ACEOF
12523 #define PRIo64 "qo
"
12526 cat >>confdefs.h <<\_ACEOF
12527 #define PRIx64 "qx
"
12530 cat >>confdefs.h <<\_ACEOF
12531 #define PRIu64 "qu
"
12534 { echo "$as_me:$LINENO: result
: yes" >&5
12535 echo "${ECHO_T}yes" >&6; }
12538 echo "$as_me: program exited with status
$ac_status" >&5
12539 echo "$as_me: failed program was
:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ( exit $ac_status )
12544 { echo "$as_me:$LINENO: result
: no
" >&5
12545 echo "${ECHO_T}no
" >&6; }
12547 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
12548 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
12549 { (exit 1); exit 1; }; }
12553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12585 if test "${LBL_CFLAGS+set}" = set; then
12586 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12588 if test -f .devel ; then
12589 if test "$GCC" = yes ; then
12590 if test "${LBL_CFLAGS+set}" != set; then
12591 if test "$ac_cv_prog_cc_g" = yes ; then
12592 V_CCOPT="-g $V_CCOPT"
12594 V_CCOPT="$V_CCOPT -Wall"
12595 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12596 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12603 V_CCOPT="$V_CCOPT -n32"
12610 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12611 name="lbl
/os-
$os.h
"
12612 if test -f $name ; then
12613 ln -s $name os-proto.h
12614 cat >>confdefs.h <<\_ACEOF
12615 #define HAVE_OS_PROTO_H 1
12619 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
12620 echo "$as_me: WARNING: can't
find $name" >&2;}
12624 { echo "$as_me:$LINENO: checking
if sockaddr struct has sa_len member
" >&5
12625 echo $ECHO_N "checking
if sockaddr struct has sa_len member...
$ECHO_C" >&6; }
12626 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12627 echo $ECHO_N "(cached
) $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 # include <sys/types.h>
12637 # include <sys/socket.h>
12641 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12646 rm -f conftest.$ac_objext
12647 if { (ac_try="$ac_compile"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_compile") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
12663 ac_cv_lbl_sockaddr_has_sa_len=yes
12665 echo "$as_me: failed program was
:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_cv_lbl_sockaddr_has_sa_len=no
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12675 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
12676 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_SOCKADDR_SA_LEN 1
12683 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
12684 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
12685 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12686 echo $ECHO_N "(cached
) $ECHO_C" >&6
12688 case "$host_cpu" in
12691 # These are CPU types where:
12693 # the CPU faults on an unaligned access, but at least some
12694 # OSes that support that CPU catch the fault and simulate
12695 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12696 # the simulation is slow, so we don't want to use it;
12698 # the CPU, I infer (from the old
12700 # XXX: should also check that they don't do weird things (like on arm)
12702 # comment) doesn't fault on unaligned accesses, but doesn't
12703 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12705 # for whatever reason, the test program doesn't work
12706 # (this has been claimed to be the case for several of those
12707 # CPUs - I don't know what the problem is; the problem
12708 # was reported as "the
test program dumps core
" for SuperH,
12709 # but that's what the test program is *supposed* to do -
12710 # it dumps core before it writes anything, so the test
12711 # for an empty output file should find an empty output
12712 # file and conclude that unaligned accesses don't work).
12714 # This run-time test won't work if you're cross-compiling, so
12715 # in order to support cross-compiling for a particular CPU,
12716 # we have to wire in the list of CPU types anyway, as far as
12717 # I know, so perhaps we should just have a set of CPUs on
12718 # which we know it doesn't work, a set of CPUs on which we
12719 # know it does work, and have the script just fail on other
12720 # cpu types and update it when such a failure occurs.
12722 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
12723 ac_cv_lbl_unaligned_fail=yes
12727 cat >conftest.c <<EOF
12728 # include <sys/types.h>
12729 # include <sys/wait.h>
12730 # include <stdio.h>
12731 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12736 /* avoid "core dumped
" message */
12742 pid = waitpid(pid, &status, 0);
12745 exit(!WIFEXITED(status));
12748 i = *(unsigned int *)&a[1];
12753 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12754 conftest.c $LIBS >/dev/null 2>&1
12755 if test ! -x conftest ; then
12756 ac_cv_lbl_unaligned_fail=yes
12758 ./conftest >conftest.out
12759 if test ! -s conftest.out ; then
12760 ac_cv_lbl_unaligned_fail=yes
12762 ac_cv_lbl_unaligned_fail=no
12765 rm -f conftest* core core.conftest
12770 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
12771 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
12772 if test $ac_cv_lbl_unaligned_fail = yes ; then
12773 cat >>confdefs.h <<\_ACEOF
12774 #define LBL_ALIGN 1
12780 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
12781 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
12782 if test "${ac_cv_var_h_errno+set}" = set; then
12783 echo $ECHO_N "(cached
) $ECHO_C" >&6
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12792 # include <sys/types.h>
12793 # include <netdb.h>
12802 rm -f conftest.$ac_objext
12803 if { (ac_try="$ac_compile"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_compile") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12815 (exit $ac_status); } && {
12816 test -z "$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 } && test -s conftest.$ac_objext; then
12819 ac_cv_var_h_errno=yes
12821 echo "$as_me: failed program was
:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_cv_var_h_errno=no
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
12831 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
12832 if test "$ac_cv_var_h_errno" = "yes"; then
12833 cat >>confdefs.h <<\_ACEOF
12834 #define HAVE_H_ERRNO 1
12841 # Check whether --with-crypto was given.
12842 if test "${with_crypto+set}" = set; then
12843 withval=$with_crypto;
12846 { echo "$as_me:$LINENO: checking
for SSLeay
" >&5
12847 echo $ECHO_N "checking
for SSLeay...
$ECHO_C" >&6; }
12848 ac_cv_ssleay_path=no
12852 # If Xprefix is set in the environment, use that value.
12853 # XXX - this should arguably be done by having --with-crypto take an
12854 # optional argument, and have that argument be used to set Xprefix
12857 if test -z "$Xprefix"; then
12858 Xprefix=`eval echo $prefix`
12861 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
12863 # XXX - is there a better way to check if a given library is
12864 # in a given directory than checking each of the possible
12865 # shared library suffixes?
12867 # Are there any other suffixes we need to look for? Do we have to
12868 # worry about ".so.
{version
}"?
12870 # Or should we just look for "libcrypto.
*"?
12872 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
12873 -f $dir/lib/libcrypto.so -o \
12874 -f $dir/lib/libcrypto.sl -o \
12875 -f $dir/lib/libcrypto.dylib \); then
12876 ac_cv_ssleay_path=$dir
12878 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
12879 incdir="-I$dir/include
"
12881 if test "$ac_cv_ssleay_path" != "no
" -a "$incdir" != "no
"; then
12884 ac_cv_ssleay_path=no
12888 { echo "$as_me:$LINENO: result
: $ac_cv_ssleay_path" >&5
12889 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
12890 if test "$ac_cv_ssleay_path" != no; then
12891 V_INCLS="$V_INCLS $incdir"
12892 LDFLAGS="-L$dir/lib
$LDFLAGS"
12893 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
12894 LIBS="$LIBS -lRSAglue"
12896 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
12897 LIBS="$LIBS -lrsaref"
12900 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
12901 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
12902 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12903 echo $ECHO_N "(cached
) $ECHO_C" >&6
12905 ac_check_lib_save_LIBS=$LIBS
12906 LIBS="-lcrypto $LIBS"
12907 cat >conftest.$ac_ext <<_ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12914 /* Override any GCC internal prototype to avoid an error.
12915 Use char because int might match the return type of a GCC
12916 builtin and then its argument prototype would still apply. */
12920 char DES_cbc_encrypt ();
12924 return DES_cbc_encrypt ();
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (ac_try="$ac_link"
12931 case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_link") 2>conftest.er1
12938 grep -v '^ *+' conftest.er1 >conftest.err
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12942 (exit $ac_status); } && {
12943 test -z "$ac_c_werror_flag" ||
12944 test ! -s conftest.err
12945 } && test -s conftest$ac_exeext &&
12946 $as_test_x conftest$ac_exeext; then
12947 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12949 echo "$as_me: failed program was
:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_cv_lib_crypto_DES_cbc_encrypt=no
12955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12956 conftest$ac_exeext conftest.$ac_ext
12957 LIBS=$ac_check_lib_save_LIBS
12959 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12960 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12961 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12962 cat >>confdefs.h <<_ACEOF
12963 #define HAVE_LIBCRYPTO 1
12966 LIBS="-lcrypto $LIBS"
12971 CPPFLAGS="$CPPFLAGS $V_INCLS"
12973 for ac_header in openssl/evp.h
12975 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12976 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12977 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12978 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12979 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12980 echo $ECHO_N "(cached
) $ECHO_C" >&6
12982 ac_res=`eval echo '${'$as_ac_Header'}'`
12983 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12984 echo "${ECHO_T}$ac_res" >&6; }
12986 # Is the header compilable?
12987 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12988 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 $ac_includes_default
12996 #include <$ac_header>
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_compile") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest.$ac_objext; then
13015 ac_header_compiler=yes
13017 echo "$as_me: failed program was
:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 ac_header_compiler=no
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13025 echo "${ECHO_T}$ac_header_compiler" >&6; }
13027 # Is the header present?
13028 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13029 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 #include <$ac_header>
13038 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13039 case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13046 grep -v '^ *+' conftest.er1 >conftest.err
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13050 (exit $ac_status); } >/dev/null && {
13051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13052 test ! -s conftest.err
13054 ac_header_preproc=yes
13056 echo "$as_me: failed program was
:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_header_preproc=no
13062 rm -f conftest.err conftest.$ac_ext
13063 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13064 echo "${ECHO_T}$ac_header_preproc" >&6; }
13066 # So? What about this header?
13067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13069 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
13070 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13071 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
13072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13073 ac_header_preproc=yes
13076 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13077 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13078 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13079 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13080 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13081 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13082 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
13083 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
13084 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
13085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
13086 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
13087 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
13091 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13092 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13094 echo $ECHO_N "(cached
) $ECHO_C" >&6
13096 eval "$as_ac_Header=\
$ac_header_preproc"
13098 ac_res=`eval echo '${'$as_ac_Header'}'`
13099 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13100 echo "${ECHO_T}$ac_res" >&6; }
13103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13104 cat >>confdefs.h <<_ACEOF
13105 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
13117 if test "$missing_includes" = "yes"; then
13118 CPPFLAGS="$CPPFLAGS -I\$
(srcdir
)/missing
"
13119 V_INCLS="$V_INCLS -I\$
(srcdir
)/missing
"
13129 # Find a good install program. We prefer a C program (faster),
13130 # so one script is as good as another. But avoid the broken or
13131 # incompatible versions:
13132 # SysV /etc/install, /usr/sbin/install
13133 # SunOS /usr/etc/install
13134 # IRIX /sbin/install
13136 # AmigaOS /C/install, which installs bootblocks on floppy discs
13137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
13140 # OS/2's system install, which has a completely different semantic
13141 # ./install, which can be erroneously created by make from ./install.sh.
13142 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
13143 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
13144 if test -z "$INSTALL"; then
13145 if test "${ac_cv_path_install+set}" = set; then
13146 echo $ECHO_N "(cached
) $ECHO_C" >&6
13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149 for as_dir in $PATH
13152 test -z "$as_dir" && as_dir=.
13153 # Account for people who put trailing slashes in PATH elements.
13155 ./ | .// | /cC/* | \
13156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13157 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13160 # OSF1 and SCO ODT 3.0 have their own names for install.
13161 # Don't use installbsd from OSF since it installs stuff as root
13163 for ac_prog in ginstall scoinst install; do
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13166 if test $ac_prog = install &&
13167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13168 # AIX install. It has an incompatible calling convention.
13170 elif test $ac_prog = install &&
13171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13172 # program-specific install script used by HP pwplus--don't use.
13175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13188 if test "${ac_cv_path_install+set}" = set; then
13189 INSTALL=$ac_cv_path_install
13191 # As a last resort, use the slow shell script. Don't cache a
13192 # value for INSTALL within a source directory, because that will
13193 # break other packages using the cache if that directory is
13194 # removed, or if the value is a relative name.
13195 INSTALL=$ac_install_sh
13198 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
13199 echo "${ECHO_T}$INSTALL" >&6; }
13201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13202 # It thinks the first close brace ends the variable substitution.
13203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13210 ac_config_headers="$ac_config_headers config.h
"
13213 ac_config_commands="$ac_config_commands default-1
"
13215 ac_config_files="$ac_config_files Makefile
"
13217 cat >confcache <<\_ACEOF
13218 # This file is a shell script that caches the results of configure
13219 # tests run on this system so they can be shared between configure
13220 # scripts and configure runs, see configure's option --config-cache.
13221 # It is not useful on other systems. If it contains results you don't
13222 # want to keep, you may remove or edit it.
13224 # config.status only pays attention to the cache file if you give it
13225 # the --recheck option to rerun configure.
13227 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13228 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13229 # following values.
13233 # The following way of writing the cache mishandles newlines in values,
13234 # but we know of no workaround that is simple, portable, and efficient.
13235 # So, we kill variables containing newlines.
13236 # Ultrix sh set writes to stderr and can't be redirected directly,
13237 # and sets the high bit in the cache file unless we assign to the vars.
13239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13240 eval ac_val=\$$ac_var
13244 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
13245 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
13248 _ | IFS | as_nl) ;; #(
13249 *) $as_unset $ac_var ;;
13255 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13256 *${as_nl}ac_space=\ *)
13257 # `set' does not quote correctly, so add quotes (double-quote
13258 # substitution turns \\\\ into \\, and sed turns \\ into \).
13261 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
13264 # `set' quotes correctly as required by POSIX, so do not add quotes.
13265 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
13274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13276 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13278 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13279 if test -w "$cache_file"; then
13280 test "x
$cache_file" != "x
/dev
/null
" &&
13281 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
13282 echo "$as_me: updating cache
$cache_file" >&6;}
13283 cat confcache >$cache_file
13285 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
13286 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
13291 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
13292 # Let make expand exec_prefix.
13293 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
13295 DEFS=-DHAVE_CONFIG_H
13299 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
13300 # 1. Remove the extension, and $U if already installed.
13301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13302 ac_i=`echo "$ac_i" | sed "$ac_script"`
13303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13304 # will be set to the directory where LIBOBJS objects are built.
13305 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
13306 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
13308 LIBOBJS=$ac_libobjs
13310 LTLIBOBJS=$ac_ltlibobjs
13314 : ${CONFIG_STATUS=./config.status}
13315 ac_clean_files_save=$ac_clean_files
13316 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13317 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
13318 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
13319 cat >$CONFIG_STATUS <<_ACEOF
13321 # Generated by $as_me.
13322 # Run this file to recreate the current configuration.
13323 # Compiler output produced by configure, useful for debugging
13324 # configure, is in config.log if it exists.
13327 ac_cs_recheck=false
13329 SHELL=\${CONFIG_SHELL-$SHELL}
13332 cat >>$CONFIG_STATUS <<\_ACEOF
13333 ## --------------------- ##
13334 ## M4sh Initialization. ##
13335 ## --------------------- ##
13337 # Be more Bourne compatible
13338 DUALCASE=1; export DUALCASE # for MKS sh
13339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13342 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13343 # is contrary to our usage. Disable this feature.
13344 alias -g '${1+"$@"}'='"$@
"'
13345 setopt NO_GLOB_SUBST
13347 case `(set -o) 2>/dev/null` in
13348 *posix*) set -o posix ;;
13357 # Avoid depending upon Character Ranges.
13358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13361 as_cr_digits='0123456789'
13362 as_cr_alnum=$as_cr_Letters$as_cr_digits
13364 # The user is always right.
13365 if test "${PATH_SEPARATOR+set}" != set; then
13366 echo "#! /bin/sh" >conf$$.sh
13367 echo "exit 0" >>conf$$.sh
13369 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13377 # Support unset when possible.
13378 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13386 # We need space, tab and new line, in precisely that order. Quoting is
13387 # there to prevent editors from complaining about space-tab.
13388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13389 # splitting by setting IFS to empty value.)
13394 # Find who we are. Look in the path if we contain no directory separator.
13396 *[\\/]* ) as_myself
=$0 ;;
13397 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13398 for as_dir
in $PATH
13401 test -z "$as_dir" && as_dir
=.
13402 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13408 # We did not find ourselves, most probably we were run as `sh COMMAND'
13409 # in which case we are not to be found in the path.
13410 if test "x$as_myself" = x
; then
13413 if test ! -f "$as_myself"; then
13414 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13415 { (exit 1); exit 1; }
13418 # Work around bugs in pre-3.0 UWIN ksh.
13419 for as_var
in ENV MAIL MAILPATH
13420 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
13428 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13429 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13430 LC_TELEPHONE LC_TIME
13432 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13433 eval $as_var=C
; export $as_var
13435 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
13439 # Required to use basename.
13440 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13441 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13447 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13448 as_basename
=basename
13454 # Name of the executable.
13455 as_me
=`$as_basename -- "$0" ||
13456 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13457 X"$0" : 'X\(//\)$' \| \
13458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13460 sed '/^.*\/\([^/][^/]*\)\/*$/{
13479 as_lineno_1
=$LINENO
13480 as_lineno_2
=$LINENO
13481 test "x$as_lineno_1" != "x$as_lineno_2" &&
13482 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
13484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13485 # uniformly replaced by the line number. The first 'sed' inserts a
13486 # line-number line after each line using $LINENO; the second 'sed'
13487 # does the real work. The second script uses 'N' to pair each
13488 # line-number line with the line containing $LINENO, and appends
13489 # trailing '-' during substitution so that $LINENO is not a special
13490 # case at line end.
13491 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13492 # scripts with optimization help from Paolo Bonzini. Blame Lee
13493 # E. McMahon (1931-1989) for sed's syntax. :-)
13505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13508 ' >$as_me.lineno
&&
13509 chmod +x
"$as_me.lineno" ||
13510 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13511 { (exit 1); exit 1; }; }
13513 # Don't try to exec as it changes $[0], causing all sort of problems
13514 # (the dirname of $[0] is not the place where we might find the
13515 # original and so on. Autoconf is especially sensitive to this).
13516 .
"./$as_me.lineno"
13517 # Exit status is that of the last command.
13522 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13528 ECHO_C
= ECHO_N
= ECHO_T
=
13529 case `echo -n x` in
13531 case `echo 'x\c'` in
13532 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13539 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13540 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13546 rm -f conf$$ conf$$.exe conf$$.
file
13547 if test -d conf$$.dir
; then
13548 rm -f conf$$.dir
/conf$$.
file
13554 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13556 # ... but there are two gotchas:
13557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13559 # In both cases, we have to default to `cp -p'.
13560 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13562 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13567 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13568 rmdir conf$$.dir
2>/dev
/null
13570 if mkdir
-p .
2>/dev
/null
; then
13573 test -d .
/-p && rmdir .
/-p
13577 if test -x / >/dev
/null
2>&1; then
13578 as_test_x
='test -x'
13580 if ls -dL / >/dev
/null
2>&1; then
13587 if test -d "$1"; then
13593 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13594 ???[sx]*):;;*)false;;esac;fi
13598 as_executable_p
=$as_test_x
13600 # Sed expression to map a string onto a valid CPP name.
13601 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13603 # Sed expression to map a string onto a valid variable name.
13604 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13609 # Save the log message, to keep $[0] and so on meaningful, and to
13610 # report actual input values of CONFIG_FILES etc. instead of their
13611 # values after options handling.
13613 This file was extended by $as_me, which was
13614 generated by GNU Autoconf 2.61. Invocation command line was
13616 CONFIG_FILES = $CONFIG_FILES
13617 CONFIG_HEADERS = $CONFIG_HEADERS
13618 CONFIG_LINKS = $CONFIG_LINKS
13619 CONFIG_COMMANDS = $CONFIG_COMMANDS
13622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13627 cat >>$CONFIG_STATUS <<_ACEOF
13628 # Files that config.status was made for.
13629 config_files="$ac_config_files"
13630 config_headers="$ac_config_headers"
13631 config_commands="$ac_config_commands"
13635 cat >>$CONFIG_STATUS <<\_ACEOF
13637 \`$as_me' instantiates files from templates according to the
13638 current configuration.
13640 Usage: $0 [OPTIONS] [FILE]...
13642 -h, --help print this help, then exit
13643 -V, --version print version number and configuration settings, then exit
13644 -q, --quiet do not print progress messages
13645 -d, --debug don't remove temporary files
13646 --recheck update $as_me by reconfiguring in the same conditions
13647 --file=FILE[:TEMPLATE]
13648 instantiate the configuration file FILE
13649 --header=FILE[:TEMPLATE]
13650 instantiate the configuration header FILE
13652 Configuration files:
13655 Configuration headers:
13658 Configuration commands:
13661 Report bugs to <bug-autoconf@gnu.org>."
13664 cat >>$CONFIG_STATUS <<_ACEOF
13667 configured by $0, generated by GNU Autoconf 2.61,
13668 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13670 Copyright (C) 2006 Free Software Foundation, Inc.
13671 This config.status script is free software; the Free Software Foundation
13672 gives unlimited permission to copy, distribute and modify it."
13679 cat >>$CONFIG_STATUS <<\_ACEOF
13680 # If no file are specified by the user, then we need to provide default
13681 # value. By we need to know if files were specified by the user.
13687 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13688 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13699 # Handling of the options.
13700 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13702 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13703 echo "$ac_cs_version"; exit ;;
13704 --debug |
--debu |
--deb |
--de |
--d |
-d )
13706 --file |
--fil |
--fi |
--f )
13708 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13709 ac_need_defaults
=false
;;
13710 --header |
--heade |
--head |
--hea )
13712 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13713 ac_need_defaults
=false
;;
13715 # Conflict between --help and --header
13716 { echo "$as_me: error: ambiguous option: $1
13717 Try \`$0 --help' for more information." >&2
13718 { (exit 1); exit 1; }; };;
13719 --help |
--hel |
-h )
13720 echo "$ac_cs_usage"; exit ;;
13721 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13722 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13725 # This is an error.
13726 -*) { echo "$as_me: error: unrecognized option: $1
13727 Try \`$0 --help' for more information." >&2
13728 { (exit 1); exit 1; }; } ;;
13730 *) ac_config_targets
="$ac_config_targets $1"
13731 ac_need_defaults
=false
;;
13737 ac_configure_extra_args
=
13739 if $ac_cs_silent; then
13741 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13745 cat >>$CONFIG_STATUS <<_ACEOF
13746 if \$ac_cs_recheck; then
13747 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13748 CONFIG_SHELL=$SHELL
13749 export CONFIG_SHELL
13750 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13754 cat >>$CONFIG_STATUS <<\_ACEOF
13758 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13759 ## Running $as_me. ##
13765 cat >>$CONFIG_STATUS <<_ACEOF
13773 cat >>$CONFIG_STATUS <<\_ACEOF
13775 # Handling of arguments.
13776 for ac_config_target
in $ac_config_targets
13778 case $ac_config_target in
13779 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13780 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
13781 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13783 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13784 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13785 { (exit 1); exit 1; }; };;
13790 # If the user did not use the arguments to specify the items to instantiate,
13791 # then the envvar interface is used. Set only those that are not.
13792 # We use the long form for the default assignment because of an extremely
13793 # bizarre bug on SunOS 4.1.3.
13794 if $ac_need_defaults; then
13795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13800 # Have a temporary directory for convenience. Make it in the build tree
13801 # simply because there is no reason against having it here, and in addition,
13802 # creating and moving files from /tmp can sometimes cause problems.
13803 # Hook for its removal unless debugging.
13804 # Note that there is a small window in which the directory will not be cleaned:
13805 # after its creation but before its name has been assigned to `$tmp'.
13809 trap 'exit_status=$?
13810 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13812 trap '{ (exit 1); exit 1; }' 1 2 13 15
13814 # Create a (secure) tmp directory for tmp files.
13817 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13818 test -n "$tmp" && test -d "$tmp"
13821 tmp
=.
/conf$$
-$RANDOM
13822 (umask 077 && mkdir
"$tmp")
13825 echo "$me: cannot create a temporary directory in ." >&2
13826 { (exit 1); exit 1; }
13830 # Set up the sed scripts for CONFIG_FILES section.
13833 # No need to generate the scripts if there are no CONFIG_FILES.
13834 # This happens for instance when ./config.status config.h
13835 if test -n "$CONFIG_FILES"; then
13842 for ac_last_try
in false false false false false
:; do
13843 cat >conf$
$subs.
sed <<_ACEOF
13844 SHELL!$SHELL$ac_delim
13845 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13846 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13847 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13848 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13849 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13850 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13851 exec_prefix!$exec_prefix$ac_delim
13852 prefix!$prefix$ac_delim
13853 program_transform_name!$program_transform_name$ac_delim
13854 bindir!$bindir$ac_delim
13855 sbindir!$sbindir$ac_delim
13856 libexecdir!$libexecdir$ac_delim
13857 datarootdir!$datarootdir$ac_delim
13858 datadir!$datadir$ac_delim
13859 sysconfdir!$sysconfdir$ac_delim
13860 sharedstatedir!$sharedstatedir$ac_delim
13861 localstatedir!$localstatedir$ac_delim
13862 includedir!$includedir$ac_delim
13863 oldincludedir!$oldincludedir$ac_delim
13864 docdir!$docdir$ac_delim
13865 infodir!$infodir$ac_delim
13866 htmldir!$htmldir$ac_delim
13867 dvidir!$dvidir$ac_delim
13868 pdfdir!$pdfdir$ac_delim
13869 psdir!$psdir$ac_delim
13870 libdir!$libdir$ac_delim
13871 localedir!$localedir$ac_delim
13872 mandir!$mandir$ac_delim
13873 DEFS!$DEFS$ac_delim
13874 ECHO_C!$ECHO_C$ac_delim
13875 ECHO_N!$ECHO_N$ac_delim
13876 ECHO_T!$ECHO_T$ac_delim
13877 LIBS!$LIBS$ac_delim
13878 build_alias!$build_alias$ac_delim
13879 host_alias!$host_alias$ac_delim
13880 target_alias!$target_alias$ac_delim
13881 build!$build$ac_delim
13882 build_cpu!$build_cpu$ac_delim
13883 build_vendor!$build_vendor$ac_delim
13884 build_os!$build_os$ac_delim
13885 host!$host$ac_delim
13886 host_cpu!$host_cpu$ac_delim
13887 host_vendor!$host_vendor$ac_delim
13888 host_os!$host_os$ac_delim
13889 SHLICC2!$SHLICC2$ac_delim
13891 CFLAGS!$CFLAGS$ac_delim
13892 LDFLAGS!$LDFLAGS$ac_delim
13893 CPPFLAGS!$CPPFLAGS$ac_delim
13894 ac_ct_CC!$ac_ct_CC$ac_delim
13895 EXEEXT!$EXEEXT$ac_delim
13896 OBJEXT!$OBJEXT$ac_delim
13898 GREP!$GREP$ac_delim
13899 EGREP!$EGREP$ac_delim
13900 LIBOBJS!$LIBOBJS$ac_delim
13901 V_CCOPT!$V_CCOPT$ac_delim
13902 V_DEFS!$V_DEFS$ac_delim
13903 V_GROUP!$V_GROUP$ac_delim
13904 V_INCLS!$V_INCLS$ac_delim
13905 V_PCAPDEP!$V_PCAPDEP$ac_delim
13906 LOCALSRC!$LOCALSRC$ac_delim
13907 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13908 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13909 INSTALL_DATA!$INSTALL_DATA$ac_delim
13910 LTLIBOBJS!$LTLIBOBJS$ac_delim
13913 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
13915 elif $ac_last_try; then
13916 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13917 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13918 { (exit 1); exit 1; }; }
13920 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13924 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13925 if test -n "$ac_eof"; then
13926 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13927 ac_eof
=`expr $ac_eof + 1`
13930 cat >>$CONFIG_STATUS <<_ACEOF
13931 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13935 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13936 s/^/s,@/; s/!/@,|#_!!_#|/
13939 s/'"$ac_delim"'$/,g/; t
13941 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13942 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13943 rm -f conf$
$subs.
sed
13944 cat >>$CONFIG_STATUS <<_ACEOF
13951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13953 # trailing colons and then remove the whole line if VPATH becomes empty
13954 # (actually we leave an empty line to preserve line numbers).
13955 if test "x$srcdir" = x.
; then
13956 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13957 s/:*\$(srcdir):*/:/
13958 s/:*\${srcdir}:*/:/
13960 s/^\([^=]*=[ ]*\):*/\1/
13966 cat >>$CONFIG_STATUS <<\_ACEOF
13967 fi # test -n "$CONFIG_FILES"
13970 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
13973 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13975 case $ac_mode$ac_tag in
13977 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13978 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13979 { (exit 1); exit 1; }; };;
13980 :[FH
]-) ac_tag
=-:-;;
13981 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13998 -) ac_f
="$tmp/stdin";;
13999 *) # Look for the file first in the build tree, then in the source tree
14000 # (if the path is not absolute). The absolute path cannot be DOS-style,
14001 # because $ac_f cannot contain `:'.
14005 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14007 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14008 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14009 { (exit 1); exit 1; }; };;
14011 ac_file_inputs
="$ac_file_inputs $ac_f"
14014 # Let's still pretend it is `configure' which instantiates (i.e., don't
14015 # use $as_me), people would be surprised to read:
14016 # /* config.h. Generated by config.status. */
14017 configure_input
="Generated from "`IFS=:
14018 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14019 if test x
"$ac_file" != x-
; then
14020 configure_input
="$ac_file. $configure_input"
14021 { echo "$as_me:$LINENO: creating $ac_file" >&5
14022 echo "$as_me: creating $ac_file" >&6;}
14026 *:-:* |
*:-) cat >"$tmp/stdin";;
14031 ac_dir
=`$as_dirname -- "$ac_file" ||
14032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$ac_file" : 'X\(//\)[^/]' \| \
14034 X"$ac_file" : 'X\(//\)$' \| \
14035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14041 /^X\(\/\/\)[^/].*/{
14056 -*) as_dir
=.
/$as_dir;;
14058 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
14062 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14063 *) as_qdir
=$as_dir;;
14065 as_dirs
="'$as_qdir' $as_dirs"
14066 as_dir
=`$as_dirname -- "$as_dir" ||
14067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14068 X"$as_dir" : 'X\(//\)[^/]' \| \
14069 X"$as_dir" : 'X\(//\)$' \| \
14070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076 /^X\(\/\/\)[^/].*/{
14089 test -d "$as_dir" && break
14091 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14092 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14093 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14094 { (exit 1); exit 1; }; }; }
14098 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14100 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14101 # A ".." for each directory in $ac_dir_suffix.
14102 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14103 case $ac_top_builddir_sub in
14104 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14105 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14108 ac_abs_top_builddir
=$ac_pwd
14109 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14110 # for backward compatibility:
14111 ac_top_builddir
=$ac_top_build_prefix
14114 .
) # We are building in place.
14116 ac_top_srcdir
=$ac_top_builddir_sub
14117 ac_abs_top_srcdir
=$ac_pwd ;;
14118 [\\/]* | ?
:[\\/]* ) # Absolute name.
14119 ac_srcdir
=$srcdir$ac_dir_suffix;
14120 ac_top_srcdir
=$srcdir
14121 ac_abs_top_srcdir
=$srcdir ;;
14122 *) # Relative name.
14123 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14124 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14125 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14127 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14137 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14138 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14142 cat >>$CONFIG_STATUS <<\_ACEOF
14143 # If the template does not know about datarootdir, expand it.
14144 # FIXME: This hack should be removed a few years after 2.60.
14145 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14147 case `sed -n '/datarootdir/ {
14156 ' $ac_file_inputs` in
14157 *datarootdir
*) ac_datarootdir_seen
=yes;;
14158 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14159 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14160 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14162 cat >>$CONFIG_STATUS <<_ACEOF
14163 ac_datarootdir_hack='
14164 s&@datadir@&$datadir&g
14165 s&@docdir@&$docdir&g
14166 s&@infodir@&$infodir&g
14167 s&@localedir@&$localedir&g
14168 s&@mandir@&$mandir&g
14169 s&\\\${datarootdir}&$datarootdir&g' ;;
14173 # Neutralize VPATH when `$srcdir' = `.'.
14174 # Shell code in configure.ac might set extrasub.
14175 # FIXME: do we really want to maintain this feature?
14176 cat >>$CONFIG_STATUS <<_ACEOF
14180 cat >>$CONFIG_STATUS <<\_ACEOF
14182 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14183 s
&@configure_input@
&$configure_input&;t t
14184 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14185 s
&@srcdir@
&$ac_srcdir&;t t
14186 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14187 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14188 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14189 s
&@builddir@
&$ac_builddir&;t t
14190 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14191 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14192 s
&@INSTALL@
&$ac_INSTALL&;t t
14193 $ac_datarootdir_hack
14194 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
14196 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14197 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14198 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14199 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14200 which seems to be undefined. Please make sure it is defined." >&5
14201 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14202 which seems to be undefined. Please make sure it is defined." >&2;}
14206 -) cat "$tmp/out"; rm -f "$tmp/out";;
14207 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14216 # Transform confdefs.h into a sed script `conftest.defines', that
14217 # substitutes the proper values into config.h.in to produce config.h.
14218 rm -f conftest.defines conftest.
tail
14219 # First, append a space to every undef/define line, to ease matching.
14220 echo 's/$/ /' >conftest.defines
14221 # Then, protect against being on the right side of a sed subst, or in
14222 # an unquoted here document, in config.status. If some macros were
14223 # called several times there might be several #defines for the same
14224 # symbol, which is useless. But do not sort them, since the last
14225 # AC_DEFINE must be honored.
14226 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
14227 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14228 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14229 # PARAMS is the parameter list in the macro definition--in most cases, it's
14230 # just an empty string.
14231 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14232 ac_dB
='\\)[ (].*,\\1define\\2'
14240 s/^[ ]*#[ ]*define[ ][ ]*//
14245 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14246 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14247 ' >>conftest.defines
14249 # Remove the space that was appended to ease matching.
14250 # Then replace #undef with comments. This is necessary, for
14251 # example, in the case of _POSIX_SOURCE, which is predefined and required
14252 # on some systems where configure will not decide to define it.
14253 # (The regexp can be short, since the line contains either #define or #undef.)
14255 s,^[ #]*u.*,/* & */,' >>conftest.defines
14257 # Break up conftest.defines:
14258 ac_max_sed_lines
=50
14260 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14261 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14262 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14264 ac_in
='$ac_file_inputs'
14265 ac_out
='"$tmp/out1"'
14266 ac_nxt
='"$tmp/out2"'
14270 # Write a here document:
14271 cat >>$CONFIG_STATUS <<_ACEOF
14272 # First, check the format of the line:
14273 cat >"\$tmp/defines.sed" <<\\CEOF
14274 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14275 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14279 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
14281 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14282 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
14283 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
14284 grep . conftest.
tail >/dev
/null ||
break
14285 rm -f conftest.defines
14286 mv conftest.
tail conftest.defines
14288 rm -f conftest.defines conftest.
tail
14290 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14291 cat >>$CONFIG_STATUS <<\_ACEOF
14292 if test x
"$ac_file" != x-
; then
14293 echo "/* $configure_input */" >"$tmp/config.h"
14294 cat "$ac_result" >>"$tmp/config.h"
14295 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
14296 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14297 echo "$as_me: $ac_file is unchanged" >&6;}
14300 mv "$tmp/config.h" $ac_file
14303 echo "/* $configure_input */"
14309 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14310 echo "$as_me: executing $ac_file commands" >&6;}
14315 case $ac_file$ac_mode in
14316 "default-1":C
) if test -f .devel
; then
14317 echo timestamp
> stamp-h
14318 cat Makefile-devel-adds
>> Makefile
14326 { (exit 0); exit 0; }
14328 chmod +x
$CONFIG_STATUS
14329 ac_clean_files
=$ac_clean_files_save
14332 # configure is writing to config.log, and then calls config.status.
14333 # config.status does its own redirection, appending to config.log.
14334 # Unfortunately, on DOS this fails, as config.log is still kept open
14335 # by configure, so config.status won't be able to write to it; its
14336 # output is simply discarded. So we exec the FD to /dev/null,
14337 # effectively closing config.log, so it can be properly (re)opened and
14338 # appended to by config.status. When coming back to configure, we
14339 # need to make the FD available again.
14340 if test "$no_create" != yes; then
14342 ac_config_status_args
=
14343 test "$silent" = yes &&
14344 ac_config_status_args
="$ac_config_status_args --quiet"
14346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14349 # would make configure fail if this is the last instruction.
14350 $ac_cs_success ||
{ (exit 1); exit 1; }