2 # From configure.in Revision: 1.201 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23 DUALCASE
=1; export DUALCASE
# for MKS sh
25 # Support unset when possible.
26 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C
; export $as_var
52 # Required to use basename.
53 if expr a
: '\(a\)' >/dev
/null
2>&1; then
59 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me
=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits
='0123456789'
85 as_cr_alnum
=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
103 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself
=$0 ;;
110 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir
=.
115 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x
; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
132 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir
=.
136 for as_base
in sh bash ksh sh5
; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
145 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
146 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
147 CONFIG_SHELL
=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x
$as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c
*,-n*) ECHO_N
= ECHO_C
='
191 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
192 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
195 if expr a
: '\(a\)' >/dev
/null
2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.
file
203 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe
; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.
file conf$$
2>/dev
/null
; then
217 rm -f conf$$ conf$$.exe conf$$.
file
219 if mkdir
-p .
2>/dev
/null
; then
222 test -d .
/-p && rmdir .
/-p
226 as_executable_p
="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix
=/usr
/local
256 ac_config_libobj_dir
=.
261 SHELL
=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
275 ac_unique_file
="tcpdump.c"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure
for building on BUILD
[guessed
]
837 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-smb enable possibly-buggy SMB printer default
=yes
849 --disable-smb disable possibly-buggy SMB printer
850 --enable-ipv6 enable ipv6
(with ipv4
) support
851 --disable-ipv6 disable ipv6 support
854 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
855 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
856 --without-gcc don
't use gcc
857 --with-user=USERNAME drop privileges by default to USERNAME
858 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
860 use SSLeay libcrypto (located in directory PATH, if
861 supplied). [default=yes, if available]
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
872 Use these variables to override the choices made by `configure' or to
help
873 it to
find libraries and programs with nonstandard names
/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
882 test -d $ac_dir ||
continue
885 if test "$ac_dir" != .
; then
886 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix
= ac_top_builddir
=
894 .
) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
901 [\\/]* | ?
:[\\/]* ) # Absolute path.
902 ac_srcdir
=$srcdir$ac_dir_suffix;
903 ac_top_srcdir
=$srcdir ;;
905 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
912 .
) ac_abs_builddir
="$ac_dir";;
915 .
) ac_abs_builddir
=`pwd`;;
916 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
917 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
920 case $ac_abs_builddir in
921 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
923 case ${ac_top_builddir}.
in
924 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
925 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
926 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
929 case $ac_abs_builddir in
930 .
) ac_abs_srcdir
=$ac_srcdir;;
933 .
) ac_abs_srcdir
=$ac_abs_builddir;;
934 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
935 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
938 case $ac_abs_builddir in
939 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
943 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu
; then
952 $SHELL $ac_srcdir/configure.gnu
--help=recursive
953 elif test -f $ac_srcdir/configure
; then
955 $SHELL $ac_srcdir/configure
--help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.
in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright
(C
) 2003 Free Software Foundation
, Inc.
972 This configure
script is free software
; the Free Software Foundation
973 gives unlimited permission to copy
, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir
=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next
=false
1048 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1049 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1050 |
-silent |
--silent |
--silen |
--sile |
--sil)
1052 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true
; then
1060 ac_must_keep_next
=false
# Got value, back to normal.
1063 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1064 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1065 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1066 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next
=true
;;
1074 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1082 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h; then
1152 sed "/^$/d" confdefs.h | sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 for ac_signal
in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest
* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h
<<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h
<<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h
<<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h
<<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h
<<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE
; then
1204 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file
in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1226 *) . .
/$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted
=false
1238 for ac_var
in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1241 eval ac_new_set
=\
$ac_env_${ac_var}_set
1242 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val
="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted
=: ;;
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted
=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted
=:
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1268 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg
=$ac_var=$ac_new_val ;;
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1287 ac_cpp
='$CPP $CPPFLAGS'
1288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1312 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1313 if test -f $ac_dir/install-sh
; then
1315 ac_install_sh
="$ac_aux_dir/install-sh -c"
1317 elif test -f $ac_dir/install.sh
; then
1319 ac_install_sh
="$ac_aux_dir/install.sh -c"
1321 elif test -f $ac_dir/shtool
; then
1323 ac_install_sh
="$ac_aux_dir/shtool install -c"
1327 if test -z "$ac_aux_dir"; then
1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1329 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1330 { (exit 1); exit 1; }; }
1332 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1333 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1334 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1336 # Make sure we can run config.sub.
1337 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1338 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1339 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1340 { (exit 1); exit 1; }; }
1342 echo "$as_me:$LINENO: checking build system type" >&5
1343 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1344 if test "${ac_cv_build+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 ac_cv_build_alias
=$build_alias
1348 test -z "$ac_cv_build_alias" &&
1349 ac_cv_build_alias
=`$ac_config_guess`
1350 test -z "$ac_cv_build_alias" &&
1351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1352 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1353 { (exit 1); exit 1; }; }
1354 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1356 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1361 echo "${ECHO_T}$ac_cv_build" >&6
1363 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368 echo "$as_me:$LINENO: checking host system type" >&5
1369 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1370 if test "${ac_cv_host+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 ac_cv_host_alias
=$host_alias
1374 test -z "$ac_cv_host_alias" &&
1375 ac_cv_host_alias
=$ac_cv_build_alias
1376 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1383 echo "${ECHO_T}$ac_cv_host" >&6
1385 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396 # Check whether --with-gcc or --without-gcc was given.
1397 if test "${with_gcc+set}" = set; then
1403 if test "${srcdir}" != "." ; then
1404 V_INCLS
="-I\$(srcdir)"
1406 if test "${CFLAGS+set}" = set; then
1407 LBL_CFLAGS
="$CFLAGS"
1409 if test -z "$CC" ; then
1413 # Extract the first word of "shlicc2", so it can be a program name with args.
1414 set dummy shlicc2
; ac_word
=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 if test -n "$SHLICC2"; then
1421 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1427 test -z "$as_dir" && as_dir
=.
1428 for ac_exec_ext
in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_SHLICC2
="yes"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1440 SHLICC2
=$ac_cv_prog_SHLICC2
1441 if test -n "$SHLICC2"; then
1442 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1443 echo "${ECHO_T}$SHLICC2" >&6
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1449 if test $SHLICC2 = yes ; then
1456 if test -z "$CC" -a "$with_gcc" = no
; then
1461 ac_cpp
='$CPP $CPPFLAGS'
1462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1467 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC
="$CC" # Let the user override the test.
1476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1480 test -z "$as_dir" && as_dir
=.
1481 for ac_exec_ext
in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1502 if test -z "$ac_cv_prog_CC"; then
1504 # Extract the first word of "gcc", so it can be a program name with args.
1505 set dummy gcc
; ac_word
=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir
=.
1519 for ac_exec_ext
in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC
="gcc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1544 if test -z "$CC"; then
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1547 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC
="$CC" # Let the user override the test.
1556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir
=.
1561 for ac_exec_ext
in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1582 if test -z "$ac_cv_prog_CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc
; ac_word
=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir
=.
1599 for ac_exec_ext
in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC
="cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1625 if test -z "$CC"; then
1626 # Extract the first word of "cc", so it can be a program name with args.
1627 set dummy cc
; ac_word
=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC
="$CC" # Let the user override the test.
1637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir
=.
1642 for ac_exec_ext
in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1645 ac_prog_rejected
=yes
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 if test $ac_prog_rejected = yes; then
1656 # We found a bogon in the path, so make sure we never use it.
1657 set dummy
$ac_cv_prog_CC
1659 if test $# != 0; then
1660 # We chose a different compiler from the bogus one.
1661 # However, it has the same basename, so the bogon will be chosen
1662 # first if we set CC to just the basename; use the full file name.
1664 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1670 if test -n "$CC"; then
1671 echo "$as_me:$LINENO: result: $CC" >&5
1672 echo "${ECHO_T}$CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1679 if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1684 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC
="$CC" # Let the user override the test.
1693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir
=.
1698 for ac_exec_ext
in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1718 test -n "$CC" && break
1721 if test -z "$CC"; then
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726 set dummy
$ac_prog; ac_word
=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1739 test -z "$as_dir" && as_dir
=.
1740 for ac_exec_ext
in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC
="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1752 if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754 echo "${ECHO_T}$ac_ct_CC" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1760 test -n "$ac_ct_CC" && break
1769 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&5
1771 echo "$as_me: error: no acceptable C compiler found in \$PATH
1772 See \`config.log' for more details." >&2;}
1773 { (exit 1); exit 1; }; }
1775 # Provide some information about the compiler.
1776 echo "$as_me:$LINENO:" \
1777 "checking for C compiler version" >&5
1778 ac_compiler
=`set X $ac_compile; echo $2`
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1780 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1785 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1790 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1795 cat >conftest.
$ac_ext <<_ACEOF
1798 cat confdefs.h
>>conftest.
$ac_ext
1799 cat >>conftest.
$ac_ext <<_ACEOF
1800 /* end confdefs.h. */
1810 ac_clean_files_save
=$ac_clean_files
1811 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1812 # Try to create an executable without -o first, disregard a.out.
1813 # It will help us diagnose broken compilers, and finding out an intuition
1815 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1816 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1817 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1819 (eval $ac_link_default) 2>&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # Find the output, starting from the most likely. This scheme is
1824 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1827 # Be careful to initialize this variable, since it used to be cached.
1828 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1830 # b.out is created by i960 compilers.
1831 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1833 test -f "$ac_file" ||
continue
1835 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1838 # This is the source file.
1841 # We found the default executable, but exeext='' is most
1845 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 # FIXME: I believe we export ac_cv_exeext for Libtool,
1847 # but it would be cool to find out if it's true. Does anybody
1848 # maintain Libtool? --akim.
1856 echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.
$ac_ext >&5
1859 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: C compiler cannot create executables
1862 See \`config.log' for more details." >&2;}
1863 { (exit 77); exit 77; }; }
1866 ac_exeext
=$ac_cv_exeext
1867 echo "$as_me:$LINENO: result: $ac_file" >&5
1868 echo "${ECHO_T}$ac_file" >&6
1870 # Check the compiler produces executables we can run. If not, either
1871 # the compiler is broken, or we cross compile.
1872 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1873 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1874 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1875 # If not cross compiling, check that we can run a simple program.
1876 if test "$cross_compiling" != yes; then
1877 if { ac_try
='./$ac_file'
1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1885 if test "$cross_compiling" = maybe
; then
1888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1889 If you meant to cross compile, use \`--host'.
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot run C compiled programs.
1892 If you meant to cross compile, use \`--host'.
1893 See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1898 echo "$as_me:$LINENO: result: yes" >&5
1899 echo "${ECHO_T}yes" >&6
1901 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1902 ac_clean_files
=$ac_clean_files_save
1903 # Check the compiler produces executables we can run. If not, either
1904 # the compiler is broken, or we cross compile.
1905 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1908 echo "${ECHO_T}$cross_compiling" >&6
1910 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1913 (eval $ac_link) 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1919 # work properly (i.e., refer to `conftest.exe'), while it won't with
1921 for ac_file
in conftest.exe conftest conftest.
*; do
1922 test -f "$ac_file" ||
continue
1924 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1925 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1939 rm -f conftest
$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1941 echo "${ECHO_T}$ac_cv_exeext" >&6
1943 rm -f conftest.
$ac_ext
1944 EXEEXT
=$ac_cv_exeext
1946 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1947 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1948 if test "${ac_cv_objext+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 cat >conftest.
$ac_ext <<_ACEOF
1954 cat confdefs.h
>>conftest.
$ac_ext
1955 cat >>conftest.
$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1966 rm -f conftest.o conftest.obj
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1974 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1975 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1980 echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.
$ac_ext >&5
1983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986 See \`config.log' for more details." >&2;}
1987 { (exit 1); exit 1; }; }
1990 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1992 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993 echo "${ECHO_T}$ac_cv_objext" >&6
1994 OBJEXT
=$ac_cv_objext
1996 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 cat >conftest.
$ac_ext <<_ACEOF
2004 cat confdefs.h
>>conftest.
$ac_ext
2005 cat >>conftest.
$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2019 rm -f conftest.
$ac_objext
2020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>conftest.er1
2023 grep -v '^ *+' conftest.er1
>conftest.err
2025 cat conftest.err
>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try
='test -z "$ac_c_werror_flag"
2029 || test ! -s conftest.err'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; } &&
2035 { ac_try
='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.
$ac_ext >&5
2048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2049 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2052 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2055 ac_test_CFLAGS
=${CFLAGS+set}
2056 ac_save_CFLAGS
=$CFLAGS
2058 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_g+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 cat >conftest.
$ac_ext <<_ACEOF
2066 cat confdefs.h
>>conftest.
$ac_ext
2067 cat >>conftest.
$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2078 rm -f conftest.
$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1
>conftest.err
2084 cat conftest.err
>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try
='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try
='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.
$ac_ext >&5
2107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2110 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2111 if test "$ac_test_CFLAGS" = set; then
2112 CFLAGS
=$ac_save_CFLAGS
2113 elif test $ac_cv_prog_cc_g = yes; then
2114 if test "$GCC" = yes; then
2120 if test "$GCC" = yes; then
2126 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2127 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2128 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 ac_cv_prog_cc_stdc
=no
2133 cat >conftest.
$ac_ext <<_ACEOF
2136 cat confdefs.h
>>conftest.
$ac_ext
2137 cat >>conftest.
$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2141 #include <sys/types.h>
2142 #include <sys/stat.h>
2143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2144 struct buf { int x; };
2145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146 static char *e (p, i)
2152 static char *f (char * (*g) (char **, int), char **p, ...)
2157 s = g (p, va_arg (v,int));
2162 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2163 function prototypes and stuff, but not '\xHH' hex character constants.
2164 These don't provoke an error unfortunately, instead are silently treated
2165 as 'x'. The following induces an error, until -std1 is added to get
2166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2167 array size at least. It's necessary to write '\x00'==0 to get something
2168 that's true only with -std1. */
2169 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2171 int test (int i, double x);
2172 struct s1 {int (*f) (int a);};
2173 struct s2 {int (*f) (double a);};
2174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2185 # Don't try gcc -ansi; that turns off useful extensions and
2186 # breaks some systems' header files.
2187 # AIX -qlanglvl=ansi
2188 # Ultrix and OSF/1 -std1
2189 # HP-UX 10.20 and later -Ae
2190 # HP-UX older versions -Aa -D_HPUX_SOURCE
2191 # SVR4 -Xc -D__EXTENSIONS__
2192 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2194 CC
="$ac_save_CC $ac_arg"
2195 rm -f conftest.
$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2199 grep -v '^ *+' conftest.er1
>conftest.err
2201 cat conftest.err
>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try
='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try
='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_cv_prog_cc_stdc
=$ac_arg
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.
$ac_ext >&5
2224 rm -f conftest.err conftest.
$ac_objext
2226 rm -f conftest.
$ac_ext conftest.
$ac_objext
2231 case "x$ac_cv_prog_cc_stdc" in
2233 echo "$as_me:$LINENO: result: none needed" >&5
2234 echo "${ECHO_T}none needed" >&6 ;;
2236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2237 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2238 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2241 # Some people use a C++ compiler to compile C. Since we use `exit',
2242 # in C++ we need to declare it. In case someone uses the same compiler
2243 # for both compiling C and C++ we need to have the C++ compiler decide
2244 # the declaration of exit, since it's the most demanding environment.
2245 cat >conftest.
$ac_ext <<_ACEOF
2250 rm -f conftest.
$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2254 grep -v '^ *+' conftest.er1
>conftest.err
2256 cat conftest.err
>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try
='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try
='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 for ac_declaration
in \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2280 cat >conftest.
$ac_ext <<_ACEOF
2283 cat confdefs.h
>>conftest.
$ac_ext
2284 cat >>conftest.
$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2296 rm -f conftest.
$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2300 grep -v '^ *+' conftest.er1
>conftest.err
2302 cat conftest.err
>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try
='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try
='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.
$ac_ext >&5
2325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2326 cat >conftest.
$ac_ext <<_ACEOF
2329 cat confdefs.h
>>conftest.
$ac_ext
2330 cat >>conftest.
$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.
$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1
>conftest.err
2347 cat conftest.err
>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try
='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try
='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.
$ac_ext >&5
2369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cpp
='$CPP $CPPFLAGS'
2386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2390 if test "$GCC" = yes ; then
2391 if test "$SHLICC2" = yes ; then
2392 ac_cv_lbl_gcc_vers
=2
2395 echo "$as_me:$LINENO: checking gcc version" >&5
2396 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2397 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2401 sed -e '/^gcc version /!d' \
2402 -e 's/^gcc version //' \
2403 -e 's/ .*//' -e 's/^[^0-9]*//' \
2407 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2408 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2409 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2414 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2415 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2416 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cat >conftest.
$ac_ext <<_ACEOF
2423 cat confdefs.h
>>conftest.
$ac_ext
2424 cat >>conftest.
$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2426 #include <sys/types.h>
2430 int frob(int, char *)
2435 rm -f conftest.
$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2439 grep -v '^ *+' conftest.er1
>conftest.err
2441 cat conftest.err
>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try
='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try
='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 ac_cv_lbl_cc_ansi_prototypes
=yes
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.
$ac_ext >&5
2462 ac_cv_lbl_cc_ansi_prototypes
=no
2464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2467 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2468 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2469 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2473 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2474 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2475 savedcflags
="$CFLAGS"
2476 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2477 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 cat >conftest.
$ac_ext <<_ACEOF
2483 cat confdefs.h
>>conftest.
$ac_ext
2484 cat >>conftest.
$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <sys/types.h>
2490 int frob(int, char *)
2495 rm -f conftest.
$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1
>conftest.err
2501 cat conftest.err
>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try
='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try
='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_lbl_cc_hpux_cc_aa
=yes
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.
$ac_ext >&5
2522 ac_cv_lbl_cc_hpux_cc_aa
=no
2524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2527 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2528 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2529 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2530 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2531 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2532 { (exit 1); exit 1; }; }
2534 CFLAGS
="$savedcflags"
2535 V_CCOPT
="-Aa $V_CCOPT"
2536 cat >>confdefs.h
<<\_ACEOF
2537 #define _HPUX_SOURCE 1
2543 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2544 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2545 { (exit 1); exit 1; }; }
2549 V_INCLS
="$V_INCLS -I/usr/local/include"
2550 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2555 V_CCOPT
="$V_CCOPT -xansi -signed -O"
2559 V_CCOPT
="$V_CCOPT -std1 -O"
2563 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2564 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2565 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 cat >conftest.
$ac_ext <<_ACEOF
2571 cat confdefs.h
>>conftest.
$ac_ext
2572 cat >>conftest.
$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2574 #include <sys/types.h>
2578 struct a { int b; };
2579 void c(const struct a *)
2584 rm -f conftest.
$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2588 grep -v '^ *+' conftest.er1
>conftest.err
2590 cat conftest.err
>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try
='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try
='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_lbl_cc_const_proto
=yes
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.
$ac_ext >&5
2611 ac_cv_lbl_cc_const_proto
=no
2613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2616 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2617 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2618 if test $ac_cv_lbl_cc_const_proto = no
; then
2619 cat >>confdefs.h
<<\_ACEOF
2628 echo "$as_me:$LINENO: checking for inline" >&5
2629 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2630 if test "${ac_cv_lbl_inline+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 for ac_lbl_inline
in inline __inline__ __inline
2638 cat >conftest.
$ac_ext <<_ACEOF
2641 cat confdefs.h
>>conftest.
$ac_ext
2642 cat >>conftest.
$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644 #define inline $ac_lbl_inline
2645 static inline struct iltest *foo(void);
2651 static inline struct iltest *
2654 static struct iltest xxx;
2666 rm -f conftest.
$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1
>conftest.err
2672 cat conftest.err
>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try
='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try
='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_lbl_cc_inline
=yes
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2695 if test "$ac_lbl_cc_inline" = yes ; then
2699 if test "$ac_lbl_cc_inline" = yes ; then
2700 ac_cv_lbl_inline
=$ac_lbl_inline
2704 if test ! -z "$ac_cv_lbl_inline" ; then
2705 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2706 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 cat >>confdefs.h
<<_ACEOF
2713 #define inline $ac_cv_lbl_inline
2717 echo "$as_me:$LINENO: checking for __attribute__" >&5
2718 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2719 if test "${ac_cv___attribute__+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 cat >conftest.
$ac_ext <<_ACEOF
2726 cat confdefs.h
>>conftest.
$ac_ext
2727 cat >>conftest.
$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2732 static void foo(void) __attribute__ ((noreturn));
2741 main(int argc, char **argv)
2747 rm -f conftest.
$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1
>conftest.err
2753 cat conftest.err
>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try
='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try
='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_cv___attribute__
=yes
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.
$ac_ext >&5
2774 ac_cv___attribute__
=no
2776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2779 if test "$ac_cv___attribute__" = "yes"; then
2781 cat >>confdefs.h
<<\_ACEOF
2782 #define HAVE___ATTRIBUTE__ 1
2785 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2787 V_DEFS
="$V_DEFS -D_U_=\"\""
2789 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2790 echo "${ECHO_T}$ac_cv___attribute__" >&6
2793 ac_cpp
='$CPP $CPPFLAGS'
2794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2797 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2799 # On Suns, sometimes $CPP names a directory.
2800 if test -n "$CPP" && test -d "$CPP"; then
2803 if test -z "$CPP"; then
2804 if test "${ac_cv_prog_CPP+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 # Double quotes because CPP needs to be expanded
2808 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2811 for ac_c_preproc_warn_flag
in '' yes
2813 # Use a header file that comes with gcc, so configuring glibc
2814 # with a fresh cross-compiler works.
2815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2816 # <limits.h> exists even on freestanding compilers.
2817 # On the NeXT, cc -E runs the code through the compiler's parser,
2818 # not just through cpp. "Syntax error" is here to catch this case.
2819 cat >conftest.
$ac_ext <<_ACEOF
2822 cat confdefs.h
>>conftest.
$ac_ext
2823 cat >>conftest.
$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1
>conftest.err
2837 cat conftest.err
>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev
/null
; then
2840 if test -s conftest.err
; then
2841 ac_cpp_err
=$ac_c_preproc_warn_flag
2842 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2849 if test -z "$ac_cpp_err"; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.
$ac_ext >&5
2855 # Broken: fails on valid input.
2858 rm -f conftest.err conftest.
$ac_ext
2860 # OK, works on sane cases. Now check whether non-existent headers
2861 # can be detected and how.
2862 cat >conftest.
$ac_ext <<_ACEOF
2865 cat confdefs.h
>>conftest.
$ac_ext
2866 cat >>conftest.
$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1
>conftest.err
2875 cat conftest.err
>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev
/null
; then
2878 if test -s conftest.err
; then
2879 ac_cpp_err
=$ac_c_preproc_warn_flag
2880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2887 if test -z "$ac_cpp_err"; then
2888 # Broken: success on invalid input.
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.
$ac_ext >&5
2894 # Passes both tests.
2898 rm -f conftest.err conftest.
$ac_ext
2901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2902 rm -f conftest.err conftest.
$ac_ext
2903 if $ac_preproc_ok; then
2915 echo "$as_me:$LINENO: result: $CPP" >&5
2916 echo "${ECHO_T}$CPP" >&6
2918 for ac_c_preproc_warn_flag
in '' yes
2920 # Use a header file that comes with gcc, so configuring glibc
2921 # with a fresh cross-compiler works.
2922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2923 # <limits.h> exists even on freestanding compilers.
2924 # On the NeXT, cc -E runs the code through the compiler's parser,
2925 # not just through cpp. "Syntax error" is here to catch this case.
2926 cat >conftest.
$ac_ext <<_ACEOF
2929 cat confdefs.h
>>conftest.
$ac_ext
2930 cat >>conftest.
$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2933 # include <limits.h>
2935 # include <assert.h>
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1
>conftest.err
2944 cat conftest.err
>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev
/null
; then
2947 if test -s conftest.err
; then
2948 ac_cpp_err
=$ac_c_preproc_warn_flag
2949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2956 if test -z "$ac_cpp_err"; then
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.
$ac_ext >&5
2962 # Broken: fails on valid input.
2965 rm -f conftest.err conftest.
$ac_ext
2967 # OK, works on sane cases. Now check whether non-existent headers
2968 # can be detected and how.
2969 cat >conftest.
$ac_ext <<_ACEOF
2972 cat confdefs.h
>>conftest.
$ac_ext
2973 cat >>conftest.
$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #include <ac_nonexistent.h>
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1
>conftest.err
2982 cat conftest.err
>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev
/null
; then
2985 if test -s conftest.err
; then
2986 ac_cpp_err
=$ac_c_preproc_warn_flag
2987 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2994 if test -z "$ac_cpp_err"; then
2995 # Broken: success on invalid input.
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.
$ac_ext >&5
3001 # Passes both tests.
3005 rm -f conftest.err conftest.
$ac_ext
3008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3009 rm -f conftest.err conftest.
$ac_ext
3010 if $ac_preproc_ok; then
3013 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3021 ac_cpp
='$CPP $CPPFLAGS'
3022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3027 echo "$as_me:$LINENO: checking for egrep" >&5
3028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3029 if test "${ac_cv_prog_egrep+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3033 then ac_cv_prog_egrep
='grep -E'
3034 else ac_cv_prog_egrep
='egrep'
3037 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3038 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3039 EGREP
=$ac_cv_prog_egrep
3042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3044 if test "${ac_cv_header_stdc+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3066 rm -f conftest.
$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1
>conftest.err
3072 cat conftest.err
>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try
='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try
='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_header_stdc
=yes
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 ac_cv_header_stdc
=no
3095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3097 if test $ac_cv_header_stdc = yes; then
3098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3099 cat >conftest.
$ac_ext <<_ACEOF
3102 cat confdefs.h
>>conftest.
$ac_ext
3103 cat >>conftest.
$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 $EGREP "memchr" >/dev
/null
2>&1; then
3112 ac_cv_header_stdc
=no
3118 if test $ac_cv_header_stdc = yes; then
3119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3120 cat >conftest.
$ac_ext <<_ACEOF
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "free" >/dev
/null
2>&1; then
3133 ac_cv_header_stdc
=no
3139 if test $ac_cv_header_stdc = yes; then
3140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3141 if test "$cross_compiling" = yes; then
3144 cat >conftest.
$ac_ext <<_ACEOF
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3151 #if ((' ' & 0x0FF) == 0x020)
3152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3155 # define ISLOWER(c) \
3156 (('a' <= (c) && (c) <= 'i') \
3157 || ('j' <= (c) && (c) <= 'r') \
3158 || ('s' <= (c) && (c) <= 'z'))
3159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3167 for (i = 0; i < 256; i++)
3168 if (XOR (islower (i), ISLOWER (i))
3169 || toupper (i) != TOUPPER (i))
3174 rm -f conftest
$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 echo "$as_me: program exited with status $ac_status" >&5
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.
$ac_ext >&5
3192 ac_cv_header_stdc
=no
3194 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3200 if test $ac_cv_header_stdc = yes; then
3202 cat >>confdefs.h
<<\_ACEOF
3203 #define STDC_HEADERS 1
3208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3218 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3219 inttypes.h stdint.h unistd.h
3221 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3222 echo "$as_me:$LINENO: checking for $ac_header" >&5
3223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 cat >conftest.
$ac_ext <<_ACEOF
3230 cat confdefs.h
>>conftest.
$ac_ext
3231 cat >>conftest.
$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 $ac_includes_default
3235 #include <$ac_header>
3237 rm -f conftest.
$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>conftest.er1
3241 grep -v '^ *+' conftest.er1
>conftest.err
3243 cat conftest.err
>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try
='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try
='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 eval "$as_ac_Header=yes"
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3264 eval "$as_ac_Header=no"
3266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3271 cat >>confdefs.h
<<_ACEOF
3272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3283 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3285 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3287 echo "$as_me:$LINENO: checking for $ac_header" >&5
3288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3295 # Is the header compilable?
3296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3298 cat >conftest.
$ac_ext <<_ACEOF
3301 cat confdefs.h
>>conftest.
$ac_ext
3302 cat >>conftest.
$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 $ac_includes_default
3305 #include <$ac_header>
3307 rm -f conftest.
$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1
>conftest.err
3313 cat conftest.err
>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_header_compiler
=yes
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.
$ac_ext >&5
3334 ac_header_compiler
=no
3336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3338 echo "${ECHO_T}$ac_header_compiler" >&6
3340 # Is the header present?
3341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3343 cat >conftest.
$ac_ext <<_ACEOF
3346 cat confdefs.h
>>conftest.
$ac_ext
3347 cat >>conftest.
$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <$ac_header>
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1
>conftest.err
3356 cat conftest.err
>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev
/null
; then
3359 if test -s conftest.err
; then
3360 ac_cpp_err
=$ac_c_preproc_warn_flag
3361 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3369 ac_header_preproc
=yes
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.
$ac_ext >&5
3374 ac_header_preproc
=no
3376 rm -f conftest.err conftest.
$ac_ext
3377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3378 echo "${ECHO_T}$ac_header_preproc" >&6
3380 # So? What about this header?
3381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3387 ac_header_preproc
=yes
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3404 ## ------------------------------------------ ##
3405 ## Report this to the AC_PACKAGE_NAME lists. ##
3406 ## ------------------------------------------ ##
3409 sed "s/^/$as_me: WARNING: /" >&2
3412 echo "$as_me:$LINENO: checking for $ac_header" >&5
3413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 eval "$as_ac_Header=\$ac_header_preproc"
3419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h
<<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433 for ac_header
in net
/pfvar.h
3435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3436 echo "$as_me:$LINENO: checking for $ac_header" >&5
3437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.
$ac_ext <<_ACEOF
3444 cat confdefs.h
>>conftest.
$ac_ext
3445 cat >>conftest.
$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <sys/types.h>
3448 #include <sys/socket.h>
3451 #include <$ac_header>
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 eval "$as_ac_Header=yes"
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3480 eval "$as_ac_Header=no"
3482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3487 cat >>confdefs.h
<<_ACEOF
3488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3495 if test "$ac_cv_header_net_pfvar_h" = yes; then
3496 LOCALSRC
="print-pflog.c $LOCALSRC"
3499 for ac_header
in netinet
/if_ether.h
3501 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3502 echo "$as_me:$LINENO: checking for $ac_header" >&5
3503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 cat >conftest.
$ac_ext <<_ACEOF
3510 cat confdefs.h
>>conftest.
$ac_ext
3511 cat >>conftest.
$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <sys/types.h>
3514 #include <sys/socket.h>
3516 #include <$ac_header>
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1
>conftest.err
3524 cat conftest.err
>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try
='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try
='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 eval "$as_ac_Header=yes"
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.
$ac_ext >&5
3545 eval "$as_ac_Header=no"
3547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3552 cat >>confdefs.h
<<_ACEOF
3553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3560 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3562 # The simple test didn't work.
3563 # Do we need to include <net/if.h> first?
3564 # Unset ac_cv_header_netinet_if_ether_h so we don't
3565 # treat the previous failure as a cached value and
3566 # suppress the next test.
3568 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3569 echo "$as_me: Rechecking with some additional includes" >&6;}
3570 unset ac_cv_header_netinet_if_ether_h
3572 for ac_header
in netinet
/if_ether.h
3574 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3575 echo "$as_me:$LINENO: checking for $ac_header" >&5
3576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.
$ac_ext <<_ACEOF
3583 cat confdefs.h
>>conftest.
$ac_ext
3584 cat >>conftest.
$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <sys/types.h>
3587 #include <sys/socket.h>
3588 #include <netinet/in.h>
3593 #include <$ac_header>
3595 rm -f conftest.
$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1
>conftest.err
3601 cat conftest.err
>&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try
='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try
='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 eval "$as_ac_Header=yes"
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.
$ac_ext >&5
3622 eval "$as_ac_Header=no"
3624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3629 cat >>confdefs.h
<<_ACEOF
3630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3639 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3640 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3641 if test "${ac_cv_header_time+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 cat >conftest.
$ac_ext <<_ACEOF
3647 cat confdefs.h
>>conftest.
$ac_ext
3648 cat >>conftest.
$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <sys/types.h>
3651 #include <sys/time.h>
3657 if ((struct tm *) 0)
3663 rm -f conftest.
$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1
>conftest.err
3669 cat conftest.err
>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try
='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try
='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_header_time
=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3690 ac_cv_header_time
=no
3692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3694 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3695 echo "${ECHO_T}$ac_cv_header_time" >&6
3696 if test $ac_cv_header_time = yes; then
3698 cat >>confdefs.h
<<\_ACEOF
3699 #define TIME_WITH_SYS_TIME 1
3708 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3709 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3710 if test "$cross_compiling" = yes; then
3711 if test "${ac_cv_linux_vers+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_cv_linux_vers
=unknown
3718 if test "${ac_cv_linux_vers+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 ac_cv_linux_vers
=`uname -r 2>&1 | \
3722 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3726 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3727 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3728 if test $ac_cv_linux_vers = unknown
; then
3729 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3730 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3731 { (exit 1); exit 1; }; }
3733 if test $ac_cv_linux_vers -lt 2 ; then
3734 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3735 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3736 { (exit 1); exit 1; }; }
3746 for ac_header
in smi.h
3748 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750 echo "$as_me:$LINENO: checking for $ac_header" >&5
3751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3758 # Is the header compilable?
3759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3761 cat >conftest.
$ac_ext <<_ACEOF
3764 cat confdefs.h
>>conftest.
$ac_ext
3765 cat >>conftest.
$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3768 #include <$ac_header>
3770 rm -f conftest.
$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1
>conftest.err
3776 cat conftest.err
>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try
='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try
='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_header_compiler
=yes
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.
$ac_ext >&5
3797 ac_header_compiler
=no
3799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801 echo "${ECHO_T}$ac_header_compiler" >&6
3803 # Is the header present?
3804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3806 cat >conftest.
$ac_ext <<_ACEOF
3809 cat confdefs.h
>>conftest.
$ac_ext
3810 cat >>conftest.
$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <$ac_header>
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1
>conftest.err
3819 cat conftest.err
>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev
/null
; then
3822 if test -s conftest.err
; then
3823 ac_cpp_err
=$ac_c_preproc_warn_flag
3824 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3831 if test -z "$ac_cpp_err"; then
3832 ac_header_preproc
=yes
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.
$ac_ext >&5
3837 ac_header_preproc
=no
3839 rm -f conftest.err conftest.
$ac_ext
3840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3841 echo "${ECHO_T}$ac_header_preproc" >&6
3843 # So? What about this header?
3844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3850 ac_header_preproc
=yes
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3867 ## ------------------------------------------ ##
3868 ## Report this to the AC_PACKAGE_NAME lists. ##
3869 ## ------------------------------------------ ##
3872 sed "s/^/$as_me: WARNING: /" >&2
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 eval "$as_ac_Header=\$ac_header_preproc"
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h
<<_ACEOF
3888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3896 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3897 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3898 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 ac_check_lib_save_LIBS
=$LIBS
3903 cat >conftest.
$ac_ext <<_ACEOF
3906 cat confdefs.h
>>conftest.
$ac_ext
3907 cat >>conftest.
$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3910 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3925 rm -f conftest.
$ac_objext conftest
$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1
>conftest.err
3931 cat conftest.err
>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try
='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try
='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_lib_smi_smiInit
=yes
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.
$ac_ext >&5
3952 ac_cv_lib_smi_smiInit
=no
3954 rm -f conftest.err conftest.
$ac_objext \
3955 conftest
$ac_exeext conftest.
$ac_ext
3956 LIBS
=$ac_check_lib_save_LIBS
3958 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3959 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3960 if test $ac_cv_lib_smi_smiInit = yes; then
3961 cat >>confdefs.h
<<_ACEOF
3962 #define HAVE_LIBSMI 1
3969 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3971 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3972 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3973 if test "$cross_compiling" = yes; then
3974 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3975 echo "${ECHO_T}not when cross-compiling" >&6
3979 cat >conftest.
$ac_ext <<_ACEOF
3982 cat confdefs.h
>>conftest.
$ac_ext
3983 cat >>conftest.
$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 /* libsmi available check */
3989 int current, revision, age, n;
3990 const int required = 2;
3993 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3995 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3998 if (required < current - age || required > current)
4004 rm -f conftest
$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 echo "$as_me:$LINENO: result: yes" >&5
4016 echo "${ECHO_T}yes" >&6
4017 cat >>confdefs.h
<<\_ACEOF
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.
$ac_ext >&5
4029 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4030 echo "${ECHO_T}no - smiInit failed" >&6 ;;
4031 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4032 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
4033 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4034 echo "${ECHO_T}no - can't determine library version" >&6 ;;
4035 4) echo "$as_me:$LINENO: result: no - too old" >&5
4036 echo "${ECHO_T}no - too old" >&6 ;;
4037 *) echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6 ;;
4042 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4046 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4047 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
4048 # Check whether --enable-smb or --disable-smb was given.
4049 if test "${enable_smb+set}" = set; then
4050 enableval
="$enable_smb"
4055 case "$enableval" in
4056 yes) echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4059 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4060 cat >>confdefs.h
<<\_ACEOF
4061 #define TCPDUMP_DO_SMB 1
4064 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
4066 *) echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4072 # Check whether --with-user or --without-user was given.
4073 if test "${with_user+set}" = set; then
4074 withval
="$with_user"
4077 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4078 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4079 if test ! -z "$with_user" ; then
4080 cat >>confdefs.h
<<_ACEOF
4081 #define WITH_USER "$withval"
4084 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4085 echo "${ECHO_T}to \"$withval\"" >&6
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4092 # Check whether --with-chroot or --without-chroot was given.
4093 if test "${with_chroot+set}" = set; then
4094 withval
="$with_chroot"
4097 echo "$as_me:$LINENO: checking whether to chroot" >&5
4098 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4099 if test ! -z "$with_chroot" ; then
4100 cat >>confdefs.h
<<_ACEOF
4101 #define WITH_CHROOT "$withval"
4104 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4105 echo "${ECHO_T}to \"$withval\"" >&6
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4111 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4112 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4113 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4114 if test "${enable_ipv6+set}" = set; then
4115 enableval
="$enable_ipv6"
4116 case "$enableval" in
4117 yes) echo "$as_me:$LINENO: result: yes" >&5
4118 echo "${ECHO_T}yes" >&6
4119 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"
4120 cat >>confdefs.h
<<\_ACEOF
4127 echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4133 if test "$cross_compiling" = yes; then
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4139 cat >conftest.
$ac_ext <<_ACEOF
4142 cat confdefs.h
>>conftest.
$ac_ext
4143 cat >>conftest.
$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 /* AF_INET6 available check */
4146 #include <sys/types.h>
4147 #include <sys/socket.h>
4150 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4157 rm -f conftest
$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6
4170 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"
4171 cat >>confdefs.h
<<\_ACEOF
4177 echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.
$ac_ext >&5
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4186 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4194 if test "$ipv6" = "yes"; then
4195 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4196 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4197 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
4200 cat >conftest.
$ac_ext <<_ACEOF
4203 cat confdefs.h
>>conftest.
$ac_ext
4204 cat >>conftest.
$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <netinet/in.h>
4207 #ifdef IPV6_INRIA_VERSION
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "yes" >/dev
/null
2>&1; then
4214 CFLAGS
="-DINET6 $CFLAGS"
4220 cat >conftest.
$ac_ext <<_ACEOF
4223 cat confdefs.h
>>conftest.
$ac_ext
4224 cat >>conftest.
$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #include <netinet/in.h>
4231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4232 $EGREP "yes" >/dev
/null
2>&1; then
4235 ipv6libdir
=/usr
/local
/v
6/lib
;
4237 CFLAGS
="-DINET6 $CFLAGS"
4243 cat >conftest.
$ac_ext <<_ACEOF
4246 cat confdefs.h
>>conftest.
$ac_ext
4247 cat >>conftest.
$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <features.h>
4250 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "yes" >/dev
/null
2>&1; then
4257 CFLAGS
="-DINET6 $CFLAGS"
4263 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
4266 ipv6libdir
=/usr
/inet
6/lib
4268 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
4272 cat >conftest.
$ac_ext <<_ACEOF
4275 cat confdefs.h
>>conftest.
$ac_ext
4276 cat >>conftest.
$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <sys/param.h>
4279 #ifdef _TOSHIBA_INET6
4283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4284 $EGREP "yes" >/dev
/null
2>&1; then
4287 ipv6libdir
=/usr
/local
/v
6/lib
;
4288 CFLAGS
="-DINET6 $CFLAGS"
4294 cat >conftest.
$ac_ext <<_ACEOF
4297 cat confdefs.h
>>conftest.
$ac_ext
4298 cat >>conftest.
$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 #include </usr/local/v6/include/sys/v6config.h>
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "yes" >/dev
/null
2>&1; then
4309 ipv6libdir
=/usr
/local
/v
6/lib
;
4310 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
4316 cat >conftest.
$ac_ext <<_ACEOF
4319 cat confdefs.h
>>conftest.
$ac_ext
4320 cat >>conftest.
$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <sys/param.h>
4323 #ifdef _ZETA_MINAMI_INET6
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "yes" >/dev
/null
2>&1; then
4331 ipv6libdir
=/usr
/local
/v
6/lib
;
4332 CFLAGS
="-DINET6 $CFLAGS"
4338 if test "$ipv6type" != "unknown"; then
4342 echo "$as_me:$LINENO: result: $ipv6type" >&5
4343 echo "${ECHO_T}$ipv6type" >&6
4346 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4347 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4348 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4349 echo "You have $ipv6lib library, using it"
4351 if test "$ipv6trylibc" = "yes"; then
4352 echo "You do not have $ipv6lib library, using libc"
4354 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4355 echo "You need to fetch lib$ipv6lib.a from appropriate"
4356 echo 'ipv6 kit and compile beforehand.'
4363 if test "$ipv6" = "yes"; then
4365 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4366 # function in libc; there are "ngetaddrinfo()" and
4367 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4368 # "getaddrinfo" to be either "ngetaddrinfo" or
4369 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4370 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4372 # So this test doesn't work on Tru64 5.1, and possibly
4373 # on other 5.x releases. This causes the configure
4374 # script to become confused, and results in libpcap
4375 # being unbuildable.
4377 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4378 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4379 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_func_search_save_LIBS
=$LIBS
4383 ac_cv_search_getaddrinfo
=no
4384 cat >conftest.
$ac_ext <<_ACEOF
4387 cat confdefs.h
>>conftest.
$ac_ext
4388 cat >>conftest.
$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4397 char getaddrinfo ();
4406 rm -f conftest.
$ac_objext conftest
$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1
>conftest.err
4412 cat conftest.err
>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try
='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try
='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_search_getaddrinfo
="none required"
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.
$ac_ext >&5
4434 rm -f conftest.err conftest.
$ac_objext \
4435 conftest
$ac_exeext conftest.
$ac_ext
4436 if test "$ac_cv_search_getaddrinfo" = no
; then
4437 for ac_lib
in socket
; do
4438 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4439 cat >conftest.
$ac_ext <<_ACEOF
4442 cat confdefs.h
>>conftest.
$ac_ext
4443 cat >>conftest.
$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char getaddrinfo ();
4461 rm -f conftest.
$ac_objext conftest
$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try
='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try
='test -s conftest$ac_exeext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_search_getaddrinfo
="-l$ac_lib"
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.
$ac_ext >&5
4490 rm -f conftest.err conftest.
$ac_objext \
4491 conftest
$ac_exeext conftest.
$ac_ext
4494 LIBS
=$ac_func_search_save_LIBS
4496 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4497 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4498 if test "$ac_cv_search_getaddrinfo" != no
; then
4499 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4500 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4501 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4502 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 if test "$cross_compiling" = yes; then
4506 td_cv_buggygetaddrinfo
=yes
4508 cat >conftest.
$ac_ext <<_ACEOF
4511 cat confdefs.h
>>conftest.
$ac_ext
4512 cat >>conftest.
$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 #include <sys/types.h>
4518 #include <sys/socket.h>
4519 #include <netinet/in.h>
4523 int passive, gaierr, inet4 = 0, inet6 = 0;
4524 struct addrinfo hints, *ai, *aitop;
4525 char straddr[INET6_ADDRSTRLEN], strport[16];
4527 for (passive = 0; passive <= 1; passive++) {
4528 memset(&hints, 0, sizeof(hints));
4529 hints.ai_family = AF_UNSPEC;
4530 hints.ai_flags = passive ? AI_PASSIVE : 0;
4531 hints.ai_socktype = SOCK_STREAM;
4532 hints.ai_protocol = IPPROTO_TCP;
4533 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4534 (void)gai_strerror(gaierr);
4537 for (ai = aitop; ai; ai = ai->ai_next) {
4538 if (ai->ai_addr == NULL ||
4539 ai->ai_addrlen == 0 ||
4540 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4541 straddr, sizeof(straddr), strport, sizeof(strport),
4542 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4545 switch (ai->ai_family) {
4547 if (strcmp(strport, "54321") != 0) {
4551 if (strcmp(straddr, "0.0.0.0") != 0) {
4555 if (strcmp(straddr, "127.0.0.1") != 0) {
4562 if (strcmp(strport, "54321") != 0) {
4566 if (strcmp(straddr, "::") != 0) {
4570 if (strcmp(straddr, "::1") != 0) {
4587 /* another family support? */
4593 /* supported family should be 2, unsupported family should be 0 */
4594 if (!(inet4 == 0 || inet4 == 2))
4596 if (!(inet6 == 0 || inet6 == 2))
4600 freeaddrinfo(aitop);
4605 freeaddrinfo(aitop);
4610 rm -f conftest
$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 td_cv_buggygetaddrinfo
=no
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.
$ac_ext >&5
4628 td_cv_buggygetaddrinfo
=yes
4630 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4634 if test "$td_cv_buggygetaddrinfo" = no
; then
4635 echo "$as_me:$LINENO: result: good" >&5
4636 echo "${ECHO_T}good" >&6
4638 echo "$as_me:$LINENO: result: buggy" >&5
4639 echo "${ECHO_T}buggy" >&6
4642 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4644 # XXX - it doesn't appear that "ipv6type" can ever be
4645 # set to "linux". Should this be testing for
4646 # "linux-glibc", or for that *or* "linux-libinet6"?
4647 # If the latter, note that "linux-libinet6" is also
4648 # the type given to some non-Linux OSes.
4650 if test "$ipv6type" != "linux"; then
4651 echo 'Fatal: You must get working getaddrinfo() function.'
4652 echo ' or you can specify "--disable-ipv6"'.
4655 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4656 echo ' Better upgrade your system library to newest version'
4657 echo ' of GNU C library (aka glibc).'
4665 for ac_func
in getaddrinfo getnameinfo
4667 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4668 echo "$as_me:$LINENO: checking for $ac_func" >&5
4669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4670 if eval "test \"\${$as_ac_var+set}\" = set"; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 cat >conftest.
$ac_ext <<_ACEOF
4676 cat confdefs.h
>>conftest.
$ac_ext
4677 cat >>conftest.
$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4681 #define $ac_func innocuous_$ac_func
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func (); below.
4685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 <limits.h> exists even on freestanding compilers. */
4689 # include <limits.h>
4691 # include <assert.h>
4696 /* Override any gcc2 internal prototype to avoid an error. */
4701 /* We use char because int might match the return type of a gcc2
4702 builtin and then its argument prototype would still apply. */
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4710 char (*f) () = $ac_func;
4719 return f != $ac_func;
4724 rm -f conftest.
$ac_objext conftest
$ac_exeext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>conftest.er1
4728 grep -v '^ *+' conftest.er1
>conftest.err
4730 cat conftest.err
>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try
='test -z "$ac_c_werror_flag"
4734 || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try
='test -s conftest$ac_exeext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 eval "$as_ac_var=yes"
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.
$ac_ext >&5
4751 eval "$as_ac_var=no"
4753 rm -f conftest.err conftest.
$ac_objext \
4754 conftest
$ac_exeext conftest.
$ac_ext
4756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4758 if test `eval echo '${'$as_ac_var'}'` = yes; then
4759 cat >>confdefs.h
<<_ACEOF
4760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4765 "$ac_func.$ac_objext" | \
4766 *" $ac_func.$ac_objext" | \
4767 "$ac_func.$ac_objext "* | \
4768 *" $ac_func.$ac_objext "* ) ;;
4769 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
4778 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4779 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4780 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 cat >conftest.
$ac_ext <<_ACEOF
4786 cat confdefs.h
>>conftest.
$ac_ext
4787 cat >>conftest.
$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #include <netdnet/dnetdb.h>
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4794 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4796 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4801 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4802 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4803 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4804 cat >>confdefs.h
<<\_ACEOF
4805 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4810 echo "$as_me:$LINENO: checking for char" >&5
4811 echo $ECHO_N "checking for char... $ECHO_C" >&6
4812 if test "${ac_cv_type_char+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 cat >conftest.
$ac_ext <<_ACEOF
4818 cat confdefs.h
>>conftest.
$ac_ext
4819 cat >>conftest.
$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_includes_default
4833 rm -f conftest.
$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4837 grep -v '^ *+' conftest.er1
>conftest.err
4839 cat conftest.err
>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try
='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try
='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.
$ac_ext >&5
4862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4864 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4865 echo "${ECHO_T}$ac_cv_type_char" >&6
4867 echo "$as_me:$LINENO: checking size of char" >&5
4868 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4869 if test "${ac_cv_sizeof_char+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test "$ac_cv_type_char" = yes; then
4873 # The cast to unsigned long works around a bug in the HP C Compiler
4874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4876 # This bug is HP SR number 8606223364.
4877 if test "$cross_compiling" = yes; then
4878 # Depending upon the size, compute the lo and hi bounds.
4879 cat >conftest.
$ac_ext <<_ACEOF
4882 cat confdefs.h
>>conftest.
$ac_ext
4883 cat >>conftest.
$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4889 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4896 rm -f conftest.
$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4900 grep -v '^ *+' conftest.er1
>conftest.err
4902 cat conftest.err
>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try
='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try
='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4920 cat >conftest.
$ac_ext <<_ACEOF
4923 cat confdefs.h
>>conftest.
$ac_ext
4924 cat >>conftest.
$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 $ac_includes_default
4930 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4937 rm -f conftest.
$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>conftest.er1
4941 grep -v '^ *+' conftest.er1
>conftest.err
4943 cat conftest.err
>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try
='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try
='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_hi
=$ac_mid; break
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.
$ac_ext >&5
4964 ac_lo
=`expr $ac_mid + 1`
4965 if test $ac_lo -le $ac_mid; then
4969 ac_mid
=`expr 2 '*' $ac_mid + 1`
4971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4977 cat >conftest.
$ac_ext <<_ACEOF
4980 cat confdefs.h
>>conftest.
$ac_ext
4981 cat >>conftest.
$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4987 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4994 rm -f conftest.
$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4998 grep -v '^ *+' conftest.er1
>conftest.err
5000 cat conftest.err
>&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try
='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try
='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5018 cat >conftest.
$ac_ext <<_ACEOF
5021 cat confdefs.h
>>conftest.
$ac_ext
5022 cat >>conftest.
$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 $ac_includes_default
5028 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5035 rm -f conftest.
$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>conftest.er1
5039 grep -v '^ *+' conftest.er1
>conftest.err
5041 cat conftest.err
>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try
='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try
='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_lo
=$ac_mid; break
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.
$ac_ext >&5
5062 ac_hi
=`expr '(' $ac_mid ')' - 1`
5063 if test $ac_mid -le $ac_hi; then
5067 ac_mid
=`expr 2 '*' $ac_mid`
5069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.
$ac_ext >&5
5077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5079 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 # Binary search between lo and hi bounds.
5081 while test "x$ac_lo" != "x$ac_hi"; do
5082 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5083 cat >conftest.
$ac_ext <<_ACEOF
5086 cat confdefs.h
>>conftest.
$ac_ext
5087 cat >>conftest.
$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5093 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5100 rm -f conftest.
$ac_objext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>conftest.er1
5104 grep -v '^ *+' conftest.er1
>conftest.err
5106 cat conftest.err
>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try
='test -z "$ac_c_werror_flag"
5110 || test ! -s conftest.err'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; } &&
5116 { ac_try
='test -s conftest.$ac_objext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.
$ac_ext >&5
5127 ac_lo
=`expr '(' $ac_mid ')' + 1`
5129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5132 ?
*) ac_cv_sizeof_char
=$ac_lo;;
5133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5134 See \`config.log' for more details." >&5
5135 echo "$as_me: error: cannot compute sizeof (char), 77
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 if test "$cross_compiling" = yes; then
5141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot run test program while cross compiling
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5147 cat >conftest.
$ac_ext <<_ACEOF
5150 cat confdefs.h
>>conftest.
$ac_ext
5151 cat >>conftest.
$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5154 long longval () { return (long) (sizeof (char)); }
5155 unsigned long ulongval () { return (long) (sizeof (char)); }
5162 FILE *f = fopen ("conftest.val", "w");
5165 if (((long) (sizeof (char))) < 0)
5167 long i = longval ();
5168 if (i != ((long) (sizeof (char))))
5170 fprintf (f, "%ld\n", i);
5174 unsigned long i = ulongval ();
5175 if (i != ((long) (sizeof (char))))
5177 fprintf (f, "%lu\n", i);
5179 exit (ferror (f) || fclose (f) != 0);
5185 rm -f conftest
$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_sizeof_char
=`cat conftest.val`
5198 echo "$as_me: program exited with status $ac_status" >&5
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.
$ac_ext >&5
5203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot compute sizeof (char), 77
5206 See \`config.log' for more details." >&2;}
5207 { (exit 1); exit 1; }; }
5209 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5218 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5219 cat >>confdefs.h
<<_ACEOF
5220 #define SIZEOF_CHAR $ac_cv_sizeof_char
5224 echo "$as_me:$LINENO: checking for short" >&5
5225 echo $ECHO_N "checking for short... $ECHO_C" >&6
5226 if test "${ac_cv_type_short+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 cat >conftest.
$ac_ext <<_ACEOF
5232 cat confdefs.h
>>conftest.
$ac_ext
5233 cat >>conftest.
$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5247 rm -f conftest.
$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>conftest.er1
5251 grep -v '^ *+' conftest.er1
>conftest.err
5253 cat conftest.err
>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try
='test -z "$ac_c_werror_flag"
5257 || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try
='test -s conftest.$ac_objext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_cv_type_short
=yes
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.
$ac_ext >&5
5276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5279 echo "${ECHO_T}$ac_cv_type_short" >&6
5281 echo "$as_me:$LINENO: checking size of short" >&5
5282 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5283 if test "${ac_cv_sizeof_short+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 if test "$ac_cv_type_short" = yes; then
5287 # The cast to unsigned long works around a bug in the HP C Compiler
5288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5290 # This bug is HP SR number 8606223364.
5291 if test "$cross_compiling" = yes; then
5292 # Depending upon the size, compute the lo and hi bounds.
5293 cat >conftest.
$ac_ext <<_ACEOF
5296 cat confdefs.h
>>conftest.
$ac_ext
5297 cat >>conftest.
$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5303 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5310 rm -f conftest.
$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5314 grep -v '^ *+' conftest.er1
>conftest.err
5316 cat conftest.err
>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try
='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try
='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5334 cat >conftest.
$ac_ext <<_ACEOF
5337 cat confdefs.h
>>conftest.
$ac_ext
5338 cat >>conftest.
$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 $ac_includes_default
5344 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5351 rm -f conftest.
$ac_objext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5353 (eval $ac_compile) 2>conftest.er1
5355 grep -v '^ *+' conftest.er1
>conftest.err
5357 cat conftest.err
>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try
='test -z "$ac_c_werror_flag"
5361 || test ! -s conftest.err'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; } &&
5367 { ac_try
='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_hi
=$ac_mid; break
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.
$ac_ext >&5
5378 ac_lo
=`expr $ac_mid + 1`
5379 if test $ac_lo -le $ac_mid; then
5383 ac_mid
=`expr 2 '*' $ac_mid + 1`
5385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 cat >conftest.
$ac_ext <<_ACEOF
5394 cat confdefs.h
>>conftest.
$ac_ext
5395 cat >>conftest.
$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5401 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5408 rm -f conftest.
$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>conftest.er1
5412 grep -v '^ *+' conftest.er1
>conftest.err
5414 cat conftest.err
>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try
='test -z "$ac_c_werror_flag"
5418 || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try
='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5432 cat >conftest.
$ac_ext <<_ACEOF
5435 cat confdefs.h
>>conftest.
$ac_ext
5436 cat >>conftest.
$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5442 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5449 rm -f conftest.
$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>conftest.er1
5453 grep -v '^ *+' conftest.er1
>conftest.err
5455 cat conftest.err
>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try
='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try
='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_lo
=$ac_mid; break
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.
$ac_ext >&5
5476 ac_hi
=`expr '(' $ac_mid ')' - 1`
5477 if test $ac_mid -le $ac_hi; then
5481 ac_mid
=`expr 2 '*' $ac_mid`
5483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5494 # Binary search between lo and hi bounds.
5495 while test "x$ac_lo" != "x$ac_hi"; do
5496 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5497 cat >conftest.
$ac_ext <<_ACEOF
5500 cat confdefs.h
>>conftest.
$ac_ext
5501 cat >>conftest.
$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5507 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5514 rm -f conftest.
$ac_objext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516 (eval $ac_compile) 2>conftest.er1
5518 grep -v '^ *+' conftest.er1
>conftest.err
5520 cat conftest.err
>&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try
='test -z "$ac_c_werror_flag"
5524 || test ! -s conftest.err'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try
='test -s conftest.$ac_objext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.
$ac_ext >&5
5541 ac_lo
=`expr '(' $ac_mid ')' + 1`
5543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5546 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5548 See \`config.log' for more details." >&5
5549 echo "$as_me: error: cannot compute sizeof (short), 77
5550 See \`config.log' for more details." >&2;}
5551 { (exit 1); exit 1; }; } ;;
5554 if test "$cross_compiling" = yes; then
5555 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5561 cat >conftest.
$ac_ext <<_ACEOF
5564 cat confdefs.h
>>conftest.
$ac_ext
5565 cat >>conftest.
$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 long longval () { return (long) (sizeof (short)); }
5569 unsigned long ulongval () { return (long) (sizeof (short)); }
5576 FILE *f = fopen ("conftest.val", "w");
5579 if (((long) (sizeof (short))) < 0)
5581 long i = longval ();
5582 if (i != ((long) (sizeof (short))))
5584 fprintf (f, "%ld\n", i);
5588 unsigned long i = ulongval ();
5589 if (i != ((long) (sizeof (short))))
5591 fprintf (f, "%lu\n", i);
5593 exit (ferror (f) || fclose (f) != 0);
5599 rm -f conftest
$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_sizeof_short
=`cat conftest.val`
5612 echo "$as_me: program exited with status $ac_status" >&5
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.
$ac_ext >&5
5617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: cannot compute sizeof (short), 77
5620 See \`config.log' for more details." >&2;}
5621 { (exit 1); exit 1; }; }
5623 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5628 ac_cv_sizeof_short
=0
5631 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5632 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5633 cat >>confdefs.h
<<_ACEOF
5634 #define SIZEOF_SHORT $ac_cv_sizeof_short
5638 echo "$as_me:$LINENO: checking for int" >&5
5639 echo $ECHO_N "checking for int... $ECHO_C" >&6
5640 if test "${ac_cv_type_int+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 cat >conftest.
$ac_ext <<_ACEOF
5646 cat confdefs.h
>>conftest.
$ac_ext
5647 cat >>conftest.
$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5661 rm -f conftest.
$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try
='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try
='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.
$ac_ext >&5
5690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5692 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5693 echo "${ECHO_T}$ac_cv_type_int" >&6
5695 echo "$as_me:$LINENO: checking size of int" >&5
5696 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5697 if test "${ac_cv_sizeof_int+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test "$ac_cv_type_int" = yes; then
5701 # The cast to unsigned long works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 if test "$cross_compiling" = yes; then
5706 # Depending upon the size, compute the lo and hi bounds.
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5717 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5724 rm -f conftest.
$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5728 grep -v '^ *+' conftest.er1
>conftest.err
5730 cat conftest.err
>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try
='test -z "$ac_c_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try
='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5748 cat >conftest.
$ac_ext <<_ACEOF
5751 cat confdefs.h
>>conftest.
$ac_ext
5752 cat >>conftest.
$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 $ac_includes_default
5758 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5765 rm -f conftest.
$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5769 grep -v '^ *+' conftest.er1
>conftest.err
5771 cat conftest.err
>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try
='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try
='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_hi
=$ac_mid; break
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.
$ac_ext >&5
5792 ac_lo
=`expr $ac_mid + 1`
5793 if test $ac_lo -le $ac_mid; then
5797 ac_mid
=`expr 2 '*' $ac_mid + 1`
5799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.
$ac_ext >&5
5805 cat >conftest.
$ac_ext <<_ACEOF
5808 cat confdefs.h
>>conftest.
$ac_ext
5809 cat >>conftest.
$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5815 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5822 rm -f conftest.
$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5826 grep -v '^ *+' conftest.er1
>conftest.err
5828 cat conftest.err
>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try
='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try
='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5846 cat >conftest.
$ac_ext <<_ACEOF
5849 cat confdefs.h
>>conftest.
$ac_ext
5850 cat >>conftest.
$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5856 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5863 rm -f conftest.
$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try
='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try
='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_lo
=$ac_mid; break
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.
$ac_ext >&5
5890 ac_hi
=`expr '(' $ac_mid ')' - 1`
5891 if test $ac_mid -le $ac_hi; then
5895 ac_mid
=`expr 2 '*' $ac_mid`
5897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.
$ac_ext >&5
5905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 # Binary search between lo and hi bounds.
5909 while test "x$ac_lo" != "x$ac_hi"; do
5910 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5921 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5928 rm -f conftest.
$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1
>conftest.err
5934 cat conftest.err
>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try
='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try
='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5955 ac_lo
=`expr '(' $ac_mid ')' + 1`
5957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot compute sizeof (int), 77
5964 See \`config.log' for more details." >&2;}
5965 { (exit 1); exit 1; }; } ;;
5968 if test "$cross_compiling" = yes; then
5969 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot run test program while cross compiling
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5975 cat >conftest.
$ac_ext <<_ACEOF
5978 cat confdefs.h
>>conftest.
$ac_ext
5979 cat >>conftest.
$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5982 long longval () { return (long) (sizeof (int)); }
5983 unsigned long ulongval () { return (long) (sizeof (int)); }
5990 FILE *f = fopen ("conftest.val", "w");
5993 if (((long) (sizeof (int))) < 0)
5995 long i = longval ();
5996 if (i != ((long) (sizeof (int))))
5998 fprintf (f, "%ld\n", i);
6002 unsigned long i = ulongval ();
6003 if (i != ((long) (sizeof (int))))
6005 fprintf (f, "%lu\n", i);
6007 exit (ferror (f) || fclose (f) != 0);
6013 rm -f conftest
$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_sizeof_int
=`cat conftest.val`
6026 echo "$as_me: program exited with status $ac_status" >&5
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6032 See \`config.log' for more details." >&5
6033 echo "$as_me: error: cannot compute sizeof (int), 77
6034 See \`config.log' for more details." >&2;}
6035 { (exit 1); exit 1; }; }
6037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6046 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6047 cat >>confdefs.h
<<_ACEOF
6048 #define SIZEOF_INT $ac_cv_sizeof_int
6052 echo "$as_me:$LINENO: checking for long" >&5
6053 echo $ECHO_N "checking for long... $ECHO_C" >&6
6054 if test "${ac_cv_type_long+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6075 rm -f conftest.
$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1
>conftest.err
6081 cat conftest.err
>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try
='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try
='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.
$ac_ext >&5
6104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6107 echo "${ECHO_T}$ac_cv_type_long" >&6
6109 echo "$as_me:$LINENO: checking size of long" >&5
6110 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6111 if test "${ac_cv_sizeof_long+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 if test "$ac_cv_type_long" = yes; then
6115 # The cast to unsigned long works around a bug in the HP C Compiler
6116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6118 # This bug is HP SR number 8606223364.
6119 if test "$cross_compiling" = yes; then
6120 # Depending upon the size, compute the lo and hi bounds.
6121 cat >conftest.
$ac_ext <<_ACEOF
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6131 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6138 rm -f conftest.
$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6142 grep -v '^ *+' conftest.er1
>conftest.err
6144 cat conftest.err
>&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try
='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try
='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6162 cat >conftest.
$ac_ext <<_ACEOF
6165 cat confdefs.h
>>conftest.
$ac_ext
6166 cat >>conftest.
$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try
='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_hi
=$ac_mid; break
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_lo
=`expr $ac_mid + 1`
6207 if test $ac_lo -le $ac_mid; then
6211 ac_mid
=`expr 2 '*' $ac_mid + 1`
6213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.
$ac_ext >&5
6219 cat >conftest.
$ac_ext <<_ACEOF
6222 cat confdefs.h
>>conftest.
$ac_ext
6223 cat >>conftest.
$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6229 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6236 rm -f conftest.
$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6240 grep -v '^ *+' conftest.er1
>conftest.err
6242 cat conftest.err
>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try
='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try
='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6260 cat >conftest.
$ac_ext <<_ACEOF
6263 cat confdefs.h
>>conftest.
$ac_ext
6264 cat >>conftest.
$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6270 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6277 rm -f conftest.
$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try
='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try
='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_lo
=$ac_mid; break
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6304 ac_hi
=`expr '(' $ac_mid ')' - 1`
6305 if test $ac_mid -le $ac_hi; then
6309 ac_mid
=`expr 2 '*' $ac_mid`
6311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.
$ac_ext >&5
6319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 # Binary search between lo and hi bounds.
6323 while test "x$ac_lo" != "x$ac_hi"; do
6324 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6325 cat >conftest.
$ac_ext <<_ACEOF
6328 cat confdefs.h
>>conftest.
$ac_ext
6329 cat >>conftest.
$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6342 rm -f conftest.
$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try
='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try
='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
6369 ac_lo
=`expr '(' $ac_mid ')' + 1`
6371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6374 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6375 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6376 See \`config.log' for more details." >&5
6377 echo "$as_me: error: cannot compute sizeof (long), 77
6378 See \`config.log' for more details." >&2;}
6379 { (exit 1); exit 1; }; } ;;
6382 if test "$cross_compiling" = yes; then
6383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6384 See \`config.log' for more details." >&5
6385 echo "$as_me: error: cannot run test program while cross compiling
6386 See \`config.log' for more details." >&2;}
6387 { (exit 1); exit 1; }; }
6389 cat >conftest.
$ac_ext <<_ACEOF
6392 cat confdefs.h
>>conftest.
$ac_ext
6393 cat >>conftest.
$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 long longval () { return (long) (sizeof (long)); }
6397 unsigned long ulongval () { return (long) (sizeof (long)); }
6404 FILE *f = fopen ("conftest.val", "w");
6407 if (((long) (sizeof (long))) < 0)
6409 long i = longval ();
6410 if (i != ((long) (sizeof (long))))
6412 fprintf (f, "%ld\n", i);
6416 unsigned long i = ulongval ();
6417 if (i != ((long) (sizeof (long))))
6419 fprintf (f, "%lu\n", i);
6421 exit (ferror (f) || fclose (f) != 0);
6427 rm -f conftest
$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_sizeof_long
=`cat conftest.val`
6440 echo "$as_me: program exited with status $ac_status" >&5
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6446 See \`config.log' for more details." >&5
6447 echo "$as_me: error: cannot compute sizeof (long), 77
6448 See \`config.log' for more details." >&2;}
6449 { (exit 1); exit 1; }; }
6451 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6460 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6461 cat >>confdefs.h
<<_ACEOF
6462 #define SIZEOF_LONG $ac_cv_sizeof_long
6466 echo "$as_me:$LINENO: checking for long long" >&5
6467 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6468 if test "${ac_cv_type_long_long+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 cat >conftest.
$ac_ext <<_ACEOF
6474 cat confdefs.h
>>conftest.
$ac_ext
6475 cat >>conftest.
$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6481 if ((long long *) 0)
6483 if (sizeof (long long))
6489 rm -f conftest.
$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6493 grep -v '^ *+' conftest.er1
>conftest.err
6495 cat conftest.err
>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try
='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try
='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_type_long_long
=yes
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.
$ac_ext >&5
6516 ac_cv_type_long_long
=no
6518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6520 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6521 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6523 echo "$as_me:$LINENO: checking size of long long" >&5
6524 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6525 if test "${ac_cv_sizeof_long_long+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 if test "$ac_cv_type_long_long" = yes; then
6529 # The cast to unsigned long works around a bug in the HP C Compiler
6530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6532 # This bug is HP SR number 8606223364.
6533 if test "$cross_compiling" = yes; then
6534 # Depending upon the size, compute the lo and hi bounds.
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6545 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6552 rm -f conftest.
$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6556 grep -v '^ *+' conftest.er1
>conftest.err
6558 cat conftest.err
>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try
='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try
='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6576 cat >conftest.
$ac_ext <<_ACEOF
6579 cat confdefs.h
>>conftest.
$ac_ext
6580 cat >>conftest.
$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6586 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6593 rm -f conftest.
$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1
>conftest.err
6599 cat conftest.err
>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try
='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try
='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_hi
=$ac_mid; break
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.
$ac_ext >&5
6620 ac_lo
=`expr $ac_mid + 1`
6621 if test $ac_lo -le $ac_mid; then
6625 ac_mid
=`expr 2 '*' $ac_mid + 1`
6627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.
$ac_ext >&5
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6643 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6650 rm -f conftest.
$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 { ac_try
='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try
='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6674 cat >conftest.
$ac_ext <<_ACEOF
6677 cat confdefs.h
>>conftest.
$ac_ext
6678 cat >>conftest.
$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6684 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6691 rm -f conftest.
$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6695 grep -v '^ *+' conftest.er1
>conftest.err
6697 cat conftest.err
>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try
='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try
='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_lo
=$ac_mid; break
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.
$ac_ext >&5
6718 ac_hi
=`expr '(' $ac_mid ')' - 1`
6719 if test $ac_mid -le $ac_hi; then
6723 ac_mid
=`expr 2 '*' $ac_mid`
6725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.
$ac_ext >&5
6733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6736 # Binary search between lo and hi bounds.
6737 while test "x$ac_lo" != "x$ac_hi"; do
6738 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6749 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try
='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6783 ac_lo
=`expr '(' $ac_mid ')' + 1`
6785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6790 See \`config.log' for more details." >&5
6791 echo "$as_me: error: cannot compute sizeof (long long), 77
6792 See \`config.log' for more details." >&2;}
6793 { (exit 1); exit 1; }; } ;;
6796 if test "$cross_compiling" = yes; then
6797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6798 See \`config.log' for more details." >&5
6799 echo "$as_me: error: cannot run test program while cross compiling
6800 See \`config.log' for more details." >&2;}
6801 { (exit 1); exit 1; }; }
6803 cat >conftest.
$ac_ext <<_ACEOF
6806 cat confdefs.h
>>conftest.
$ac_ext
6807 cat >>conftest.
$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 long longval () { return (long) (sizeof (long long)); }
6811 unsigned long ulongval () { return (long) (sizeof (long long)); }
6818 FILE *f = fopen ("conftest.val", "w");
6821 if (((long) (sizeof (long long))) < 0)
6823 long i = longval ();
6824 if (i != ((long) (sizeof (long long))))
6826 fprintf (f, "%ld\n", i);
6830 unsigned long i = ulongval ();
6831 if (i != ((long) (sizeof (long long))))
6833 fprintf (f, "%lu\n", i);
6835 exit (ferror (f) || fclose (f) != 0);
6841 rm -f conftest
$ac_exeext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843 (eval $ac_link) 2>&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_sizeof_long_long
=`cat conftest.val`
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6860 See \`config.log' for more details." >&5
6861 echo "$as_me: error: cannot compute sizeof (long long), 77
6862 See \`config.log' for more details." >&2;}
6863 { (exit 1); exit 1; }; }
6865 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6870 ac_cv_sizeof_long_long
=0
6873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6874 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6875 cat >>confdefs.h
<<_ACEOF
6876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6883 echo "$as_me:$LINENO: checking for addrinfo" >&5
6884 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6885 if test "${ac_cv_addrinfo+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 cat >conftest.
$ac_ext <<_ACEOF
6891 cat confdefs.h
>>conftest.
$ac_ext
6892 cat >>conftest.
$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6904 rm -f conftest.
$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6908 grep -v '^ *+' conftest.er1
>conftest.err
6910 cat conftest.err
>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try
='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try
='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.
$ac_ext >&5
6933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6936 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6937 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6938 if test $ac_cv_addrinfo = yes; then
6939 cat >>confdefs.h
<<\_ACEOF
6940 #define HAVE_ADDRINFO 1
6944 cat >>confdefs.h
<<\_ACEOF
6945 #define NEED_ADDRINFO_H 1
6950 if test "$ac_cv_addrinfo" = no
; then
6951 missing_includes
=yes
6955 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6956 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6957 if test "${ac_cv_maxserv+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.
$ac_ext <<_ACEOF
6963 cat confdefs.h
>>conftest.
$ac_ext
6964 cat >>conftest.
$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972 $EGREP "yes" >/dev
/null
2>&1; then
6981 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6982 echo "${ECHO_T}$ac_cv_maxserv" >&6
6983 if test $ac_cv_maxserv != yes; then
6984 cat >>confdefs.h
<<\_ACEOF
6985 #define NEED_ADDRINFO_H 1
6990 if test "$ac_cv_maxserv" = no
; then
6991 missing_includes
=yes
6995 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6996 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6997 if test "${ac_cv_namereqd+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat >conftest.
$ac_ext <<_ACEOF
7003 cat confdefs.h
>>conftest.
$ac_ext
7004 cat >>conftest.
$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7012 $EGREP "yes" >/dev
/null
2>&1; then
7021 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7022 echo "${ECHO_T}$ac_cv_namereqd" >&6
7023 if test $ac_cv_namereqd != yes; then
7024 cat >>confdefs.h
<<\_ACEOF
7025 #define NEED_ADDRINFO_H 1
7030 if test "$ac_cv_namereqd" = no
; then
7031 missing_includes
=yes
7035 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7036 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
7037 if test "${ac_cv_sa_storage+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 cat >conftest.
$ac_ext <<_ACEOF
7043 cat confdefs.h
>>conftest.
$ac_ext
7044 cat >>conftest.
$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7047 # include <sys/types.h>
7048 # include <sys/socket.h>
7052 struct sockaddr_storage s
7057 rm -f conftest.
$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1
>conftest.err
7063 cat conftest.err
>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try
='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try
='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_sa_storage
=yes
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.
$ac_ext >&5
7086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7089 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7090 echo "${ECHO_T}$ac_cv_sa_storage" >&6
7091 if test $ac_cv_sa_storage = yes; then
7092 cat >>confdefs.h
<<\_ACEOF
7093 #define HAVE_SOCKADDR_STORAGE 1
7098 if test "$ac_cv_sa_storage" = no
; then
7099 missing_includes
=yes
7104 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7105 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7106 if test "${ac_cv_inaddrsz+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 cat >conftest.
$ac_ext <<_ACEOF
7112 cat confdefs.h
>>conftest.
$ac_ext
7113 cat >>conftest.
$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7116 # include <arpa/nameser.h>
7125 rm -f conftest.
$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1
>conftest.err
7131 cat conftest.err
>&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try
='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try
='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.
$ac_ext >&5
7154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7157 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7158 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7159 if test $ac_cv_inaddrsz = yes; then
7160 cat >>confdefs.h
<<\_ACEOF
7161 #define HAVE_INADDRSZ 1
7167 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7168 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7169 if test "${ac_cv_in6addrsz+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7179 # include <arpa/nameser.h>
7188 rm -f conftest.
$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7192 grep -v '^ *+' conftest.er1
>conftest.err
7194 cat conftest.err
>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try
='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try
='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7221 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7222 if test $ac_cv_in6addrsz = yes; then
7223 cat >>confdefs.h
<<\_ACEOF
7224 #define HAVE_IN6ADDRSZ 1
7231 if test "$ac_cv_addrsz" = no
; then
7232 missing_includes
=yes
7236 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7237 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7238 if test "${ac_cv_res_inet6+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 cat >conftest.
$ac_ext <<_ACEOF
7244 cat confdefs.h
>>conftest.
$ac_ext
7245 cat >>conftest.
$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 # include <sys/types.h>
7249 # include <netinet/in.h>
7250 # include <resolv.h>
7254 int a = RES_USE_INET6
7259 rm -f conftest.
$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>conftest.er1
7263 grep -v '^ *+' conftest.er1
>conftest.err
7265 cat conftest.err
>&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try
='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
7275 { ac_try
='test -s conftest.$ac_objext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.
$ac_ext >&5
7288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7291 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7292 echo "${ECHO_T}$ac_cv_res_inet6" >&6
7293 if test $ac_cv_res_inet6 = yes; then
7294 cat >>confdefs.h
<<\_ACEOF
7295 #define HAVE_RES_USE_INET6 1
7300 if test "$ac_cv_res_inet6" = no
; then
7301 missing_includes
=yes
7305 echo "$as_me:$LINENO: checking for res_state_ext" >&5
7306 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7307 if test "${ac_cv_res_state_ext+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 cat >conftest.
$ac_ext <<_ACEOF
7313 cat confdefs.h
>>conftest.
$ac_ext
7314 cat >>conftest.
$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7317 # include <sys/types.h>
7318 # include <netinet/in.h>
7319 # include <netinet6/in6.h>
7320 # include <resolv.h>
7324 struct __res_state_ext e
7329 rm -f conftest.
$ac_objext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331 (eval $ac_compile) 2>conftest.er1
7333 grep -v '^ *+' conftest.er1
>conftest.err
7335 cat conftest.err
>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try
='test -z "$ac_c_werror_flag"
7339 || test ! -s conftest.err'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; } &&
7345 { ac_try
='test -s conftest.$ac_objext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_res_state_ext
=yes
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.
$ac_ext >&5
7356 ac_cv_res_state_ext
=no
7358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7361 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7362 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7363 if test $ac_cv_res_state_ext = yes; then
7364 cat >>confdefs.h
<<\_ACEOF
7365 #define HAVE_RES_STATE_EXT 1
7370 if test "$ac_cv_res_state_ext" = no
; then
7371 missing_includes
=yes
7375 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7376 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7377 if test "${ac_cv_res_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.
$ac_ext <<_ACEOF
7383 cat confdefs.h
>>conftest.
$ac_ext
7384 cat >>conftest.
$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7387 # include <sys/types.h>
7388 # include <netinet/in.h>
7389 # include <netinet6/in6.h>
7390 # include <resolv.h>
7394 struct __res_state e; e.nsort = 0
7399 rm -f conftest.
$ac_objext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7401 (eval $ac_compile) 2>conftest.er1
7403 grep -v '^ *+' conftest.er1
>conftest.err
7405 cat conftest.err
>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try
='test -z "$ac_c_werror_flag"
7409 || test ! -s conftest.err'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; } &&
7415 { ac_try
='test -s conftest.$ac_objext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.
$ac_ext >&5
7428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7432 echo "${ECHO_T}$ac_cv_res_state" >&6
7433 if test $ac_cv_res_state = yes; then
7434 cat >>confdefs.h
<<\_ACEOF
7435 #define HAVE_NEW_RES_STATE 1
7448 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
7450 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7451 echo "$as_me:$LINENO: checking for $ac_func" >&5
7452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7453 if eval "test \"\${$as_ac_var+set}\" = set"; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 cat >conftest.
$ac_ext <<_ACEOF
7459 cat confdefs.h
>>conftest.
$ac_ext
7460 cat >>conftest.
$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7464 #define $ac_func innocuous_$ac_func
7466 /* System header to define __stub macros and hopefully few prototypes,
7467 which can conflict with char $ac_func (); below.
7468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 <limits.h> exists even on freestanding compilers. */
7472 # include <limits.h>
7474 # include <assert.h>
7479 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7487 /* The GNU C library defines this for functions which it implements
7488 to always fail with ENOSYS. Some functions are actually named
7489 something starting with __ and the normal name is an alias. */
7490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7493 char (*f) () = $ac_func;
7502 return f != $ac_func;
7507 rm -f conftest.
$ac_objext conftest
$ac_exeext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1
>conftest.err
7513 cat conftest.err
>&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try
='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try
='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 eval "$as_ac_var=yes"
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.
$ac_ext >&5
7534 eval "$as_ac_var=no"
7536 rm -f conftest.err conftest.
$ac_objext \
7537 conftest
$ac_exeext conftest.
$ac_ext
7539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h
<<_ACEOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7548 "$ac_func.$ac_objext" | \
7549 *" $ac_func.$ac_objext" | \
7550 "$ac_func.$ac_objext "* | \
7551 *" $ac_func.$ac_objext "* ) ;;
7552 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7560 for ac_func
in strftime
7562 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7563 echo "$as_me:$LINENO: checking for $ac_func" >&5
7564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7565 if eval "test \"\${$as_ac_var+set}\" = set"; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 cat >conftest.
$ac_ext <<_ACEOF
7571 cat confdefs.h
>>conftest.
$ac_ext
7572 cat >>conftest.
$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7576 #define $ac_func innocuous_$ac_func
7578 /* System header to define __stub macros and hopefully few prototypes,
7579 which can conflict with char $ac_func (); below.
7580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7581 <limits.h> exists even on freestanding compilers. */
7584 # include <limits.h>
7586 # include <assert.h>
7591 /* Override any gcc2 internal prototype to avoid an error. */
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7605 char (*f) () = $ac_func;
7614 return f != $ac_func;
7619 rm -f conftest.
$ac_objext conftest
$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>conftest.er1
7623 grep -v '^ *+' conftest.er1
>conftest.err
7625 cat conftest.err
>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try
='test -z "$ac_c_werror_flag"
7629 || test ! -s conftest.err'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try
='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 eval "$as_ac_var=yes"
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.
$ac_ext >&5
7646 eval "$as_ac_var=no"
7648 rm -f conftest.err conftest.
$ac_objext \
7649 conftest
$ac_exeext conftest.
$ac_ext
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7653 if test `eval echo '${'$as_ac_var'}'` = yes; then
7654 cat >>confdefs.h
<<_ACEOF
7655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7663 for ac_func
in setlinebuf alarm
7665 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7666 echo "$as_me:$LINENO: checking for $ac_func" >&5
7667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7668 if eval "test \"\${$as_ac_var+set}\" = set"; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 cat >conftest.
$ac_ext <<_ACEOF
7674 cat confdefs.h
>>conftest.
$ac_ext
7675 cat >>conftest.
$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7679 #define $ac_func innocuous_$ac_func
7681 /* System header to define __stub macros and hopefully few prototypes,
7682 which can conflict with char $ac_func (); below.
7683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7684 <limits.h> exists even on freestanding compilers. */
7687 # include <limits.h>
7689 # include <assert.h>
7694 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7708 char (*f) () = $ac_func;
7717 return f != $ac_func;
7722 rm -f conftest.
$ac_objext conftest
$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>conftest.er1
7726 grep -v '^ *+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try
='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try
='test -s conftest$ac_exeext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 eval "$as_ac_var=yes"
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7749 eval "$as_ac_var=no"
7751 rm -f conftest.err conftest.
$ac_objext \
7752 conftest
$ac_exeext conftest.
$ac_ext
7754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7756 if test `eval echo '${'$as_ac_var'}'` = yes; then
7757 cat >>confdefs.h
<<_ACEOF
7758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7768 for ac_func
in vsnprintf snprintf
7770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7771 echo "$as_me:$LINENO: checking for $ac_func" >&5
7772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7773 if eval "test \"\${$as_ac_var+set}\" = set"; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 cat >conftest.
$ac_ext <<_ACEOF
7779 cat confdefs.h
>>conftest.
$ac_ext
7780 cat >>conftest.
$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7784 #define $ac_func innocuous_$ac_func
7786 /* System header to define __stub macros and hopefully few prototypes,
7787 which can conflict with char $ac_func (); below.
7788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7789 <limits.h> exists even on freestanding compilers. */
7792 # include <limits.h>
7794 # include <assert.h>
7799 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7813 char (*f) () = $ac_func;
7822 return f != $ac_func;
7827 rm -f conftest.
$ac_objext conftest
$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1
>conftest.err
7833 cat conftest.err
>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try
='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try
='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 eval "$as_ac_var=yes"
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.
$ac_ext >&5
7854 eval "$as_ac_var=no"
7856 rm -f conftest.err conftest.
$ac_objext \
7857 conftest
$ac_exeext conftest.
$ac_ext
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7861 if test `eval echo '${'$as_ac_var'}'` = yes; then
7862 cat >>confdefs.h
<<_ACEOF
7863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7871 if test $needsnprintf = yes; then
7873 "snprintf.$ac_objext" | \
7874 *" snprintf.$ac_objext" | \
7875 "snprintf.$ac_objext "* | \
7876 *" snprintf.$ac_objext "* ) ;;
7877 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
7883 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7884 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7885 if test "${ac_cv_type_signal+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 cat >conftest.
$ac_ext <<_ACEOF
7891 cat confdefs.h
>>conftest.
$ac_ext
7892 cat >>conftest.
$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 #include <sys/types.h>
7900 extern "C" void (*signal (int, void (*)(int)))(int);
7902 void (*signal ()) ();
7913 rm -f conftest.
$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7917 grep -v '^ *+' conftest.er1
>conftest.err
7919 cat conftest.err
>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try
='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try
='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_type_signal
=void
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.
$ac_ext >&5
7940 ac_cv_type_signal
=int
7942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7945 echo "${ECHO_T}$ac_cv_type_signal" >&6
7947 cat >>confdefs.h
<<_ACEOF
7948 #define RETSIGTYPE $ac_cv_type_signal
7952 if test "$ac_cv_type_signal" = void
; then
7953 cat >>confdefs.h
<<\_ACEOF
7958 cat >>confdefs.h
<<\_ACEOF
7959 #define RETSIGVAL (0)
7966 cat >>confdefs.h
<<\_ACEOF
7967 #define _BSD_SIGNALS 1
7974 for ac_func
in sigaction
7976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7977 echo "$as_me:$LINENO: checking for $ac_func" >&5
7978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7979 if eval "test \"\${$as_ac_var+set}\" = set"; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 cat >conftest.
$ac_ext <<_ACEOF
7985 cat confdefs.h
>>conftest.
$ac_ext
7986 cat >>conftest.
$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7990 #define $ac_func innocuous_$ac_func
7992 /* System header to define __stub macros and hopefully few prototypes,
7993 which can conflict with char $ac_func (); below.
7994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7995 <limits.h> exists even on freestanding compilers. */
7998 # include <limits.h>
8000 # include <assert.h>
8005 /* Override any gcc2 internal prototype to avoid an error. */
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8013 /* The GNU C library defines this for functions which it implements
8014 to always fail with ENOSYS. Some functions are actually named
8015 something starting with __ and the normal name is an alias. */
8016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8019 char (*f) () = $ac_func;
8028 return f != $ac_func;
8033 rm -f conftest.
$ac_objext conftest
$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>conftest.er1
8037 grep -v '^ *+' conftest.er1
>conftest.err
8039 cat conftest.err
>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try
='test -z "$ac_c_werror_flag"
8043 || test ! -s conftest.err'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; } &&
8049 { ac_try
='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 eval "$as_ac_var=yes"
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.
$ac_ext >&5
8060 eval "$as_ac_var=no"
8062 rm -f conftest.err conftest.
$ac_objext \
8063 conftest
$ac_exeext conftest.
$ac_ext
8065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8067 if test `eval echo '${'$as_ac_var'}'` = yes; then
8068 cat >>confdefs.h
<<_ACEOF
8069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8075 if test $ac_cv_func_sigaction = no
; then
8077 for ac_func
in sigset
8079 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8080 echo "$as_me:$LINENO: checking for $ac_func" >&5
8081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8082 if eval "test \"\${$as_ac_var+set}\" = set"; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 cat >conftest.
$ac_ext <<_ACEOF
8088 cat confdefs.h
>>conftest.
$ac_ext
8089 cat >>conftest.
$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8093 #define $ac_func innocuous_$ac_func
8095 /* System header to define __stub macros and hopefully few prototypes,
8096 which can conflict with char $ac_func (); below.
8097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098 <limits.h> exists even on freestanding compilers. */
8101 # include <limits.h>
8103 # include <assert.h>
8108 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8122 char (*f) () = $ac_func;
8131 return f != $ac_func;
8136 rm -f conftest.
$ac_objext conftest
$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138 (eval $ac_link) 2>conftest.er1
8140 grep -v '^ *+' conftest.er1
>conftest.err
8142 cat conftest.err
>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try
='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try
='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 eval "$as_ac_var=yes"
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.
$ac_ext >&5
8163 eval "$as_ac_var=no"
8165 rm -f conftest.err conftest.
$ac_objext \
8166 conftest
$ac_exeext conftest.
$ac_ext
8168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8170 if test `eval echo '${'$as_ac_var'}'` = yes; then
8171 cat >>confdefs.h
<<_ACEOF
8172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8182 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8183 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8184 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_func_search_save_LIBS
=$LIBS
8188 ac_cv_search_dnet_htoa
=no
8189 cat >conftest.
$ac_ext <<_ACEOF
8192 cat confdefs.h
>>conftest.
$ac_ext
8193 cat >>conftest.
$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8196 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8211 rm -f conftest.
$ac_objext conftest
$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>conftest.er1
8215 grep -v '^ *+' conftest.er1
>conftest.err
8217 cat conftest.err
>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try
='test -z "$ac_c_werror_flag"
8221 || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try
='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_search_dnet_htoa
="none required"
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.
$ac_ext >&5
8239 rm -f conftest.err conftest.
$ac_objext \
8240 conftest
$ac_exeext conftest.
$ac_ext
8241 if test "$ac_cv_search_dnet_htoa" = no
; then
8242 for ac_lib
in dnet
; do
8243 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8244 cat >conftest.
$ac_ext <<_ACEOF
8247 cat confdefs.h
>>conftest.
$ac_ext
8248 cat >>conftest.
$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8251 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8266 rm -f conftest.
$ac_objext conftest
$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>conftest.er1
8270 grep -v '^ *+' conftest.er1
>conftest.err
8272 cat conftest.err
>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try
='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try
='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_cv_search_dnet_htoa
="-l$ac_lib"
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.
$ac_ext >&5
8295 rm -f conftest.err conftest.
$ac_objext \
8296 conftest
$ac_exeext conftest.
$ac_ext
8299 LIBS
=$ac_func_search_save_LIBS
8301 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8302 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8303 if test "$ac_cv_search_dnet_htoa" != no
; then
8304 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
8305 cat >>confdefs.h
<<\_ACEOF
8306 #define HAVE_DNET_HTOA 1
8313 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8314 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8315 if test "${ac_cv_lib_rpc_main+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_check_lib_save_LIBS
=$LIBS
8320 cat >conftest.
$ac_ext <<_ACEOF
8323 cat confdefs.h
>>conftest.
$ac_ext
8324 cat >>conftest.
$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8336 rm -f conftest.
$ac_objext conftest
$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8340 grep -v '^ *+' conftest.er1
>conftest.err
8342 cat conftest.err
>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try
='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try
='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_rpc_main
=yes
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.
$ac_ext >&5
8363 ac_cv_lib_rpc_main
=no
8365 rm -f conftest.err conftest.
$ac_objext \
8366 conftest
$ac_exeext conftest.
$ac_ext
8367 LIBS
=$ac_check_lib_save_LIBS
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8370 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8371 if test $ac_cv_lib_rpc_main = yes; then
8372 cat >>confdefs.h
<<_ACEOF
8373 #define HAVE_LIBRPC 1
8380 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8381 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8382 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 ac_func_search_save_LIBS
=$LIBS
8386 ac_cv_search_getrpcbynumber
=no
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8394 /* Override any gcc2 internal prototype to avoid an error. */
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char getrpcbynumber ();
8409 rm -f conftest.
$ac_objext conftest
$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8413 grep -v '^ *+' conftest.er1
>conftest.err
8415 cat conftest.err
>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try
='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try
='test -s conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_cv_search_getrpcbynumber
="none required"
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.
$ac_ext >&5
8437 rm -f conftest.err conftest.
$ac_objext \
8438 conftest
$ac_exeext conftest.
$ac_ext
8439 if test "$ac_cv_search_getrpcbynumber" = no
; then
8440 for ac_lib
in nsl
; do
8441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8442 cat >conftest.
$ac_ext <<_ACEOF
8445 cat confdefs.h
>>conftest.
$ac_ext
8446 cat >>conftest.
$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8449 /* Override any gcc2 internal prototype to avoid an error. */
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char getrpcbynumber ();
8464 rm -f conftest.
$ac_objext conftest
$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try
='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try
='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_search_getrpcbynumber
="-l$ac_lib"
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.
$ac_ext >&5
8493 rm -f conftest.err conftest.
$ac_objext \
8494 conftest
$ac_exeext conftest.
$ac_ext
8497 LIBS
=$ac_func_search_save_LIBS
8499 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8500 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8501 if test "$ac_cv_search_getrpcbynumber" != no
; then
8502 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
8503 cat >>confdefs.h
<<\_ACEOF
8504 #define HAVE_GETRPCBYNUMBER 1
8512 # Most operating systems have gethostbyname() in the default searched
8513 # libraries (i.e. libc):
8514 # Some OSes (eg. Solaris) place it in libnsl
8515 # Some strange OSes (SINIX) have it in libsocket:
8516 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8517 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8518 if test "${ac_cv_search_gethostbyname+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_func_search_save_LIBS
=$LIBS
8522 ac_cv_search_gethostbyname
=no
8523 cat >conftest.
$ac_ext <<_ACEOF
8526 cat confdefs.h
>>conftest.
$ac_ext
8527 cat >>conftest.
$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char gethostbyname ();
8545 rm -f conftest.
$ac_objext conftest
$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1
>conftest.err
8551 cat conftest.err
>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try
='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try
='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_search_gethostbyname
="none required"
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.
$ac_ext >&5
8573 rm -f conftest.err conftest.
$ac_objext \
8574 conftest
$ac_exeext conftest.
$ac_ext
8575 if test "$ac_cv_search_gethostbyname" = no
; then
8576 for ac_lib
in nsl socket resolv
; do
8577 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8578 cat >conftest.
$ac_ext <<_ACEOF
8581 cat confdefs.h
>>conftest.
$ac_ext
8582 cat >>conftest.
$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8585 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8591 char gethostbyname ();
8600 rm -f conftest.
$ac_objext conftest
$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1
>conftest.err
8606 cat conftest.err
>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try
='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try
='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_search_gethostbyname
="-l$ac_lib"
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.
$ac_ext >&5
8629 rm -f conftest.err conftest.
$ac_objext \
8630 conftest
$ac_exeext conftest.
$ac_ext
8633 LIBS
=$ac_func_search_save_LIBS
8635 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8636 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8637 if test "$ac_cv_search_gethostbyname" != no
; then
8638 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
8642 # Unfortunately libsocket sometimes depends on libnsl and
8643 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8644 if test "$ac_cv_search_gethostbyname" = "no"
8646 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8647 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8648 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 ac_check_lib_save_LIBS
=$LIBS
8652 LIBS
="-lsocket -lnsl $LIBS"
8653 cat >conftest.
$ac_ext <<_ACEOF
8656 cat confdefs.h
>>conftest.
$ac_ext
8657 cat >>conftest.
$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8660 /* Override any gcc2 internal prototype to avoid an error. */
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666 char gethostbyname ();
8675 rm -f conftest.
$ac_objext conftest
$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1
>conftest.err
8681 cat conftest.err
>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try
='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try
='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_lib_socket_gethostbyname
=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.
$ac_ext >&5
8702 ac_cv_lib_socket_gethostbyname
=no
8704 rm -f conftest.err conftest.
$ac_objext \
8705 conftest
$ac_exeext conftest.
$ac_ext
8706 LIBS
=$ac_check_lib_save_LIBS
8708 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8709 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8710 if test $ac_cv_lib_socket_gethostbyname = yes; then
8711 LIBS
="-lsocket -lnsl $LIBS"
8715 echo "$as_me:$LINENO: checking for library containing socket" >&5
8716 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8717 if test "${ac_cv_search_socket+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_func_search_save_LIBS
=$LIBS
8721 ac_cv_search_socket
=no
8722 cat >conftest.
$ac_ext <<_ACEOF
8725 cat confdefs.h
>>conftest.
$ac_ext
8726 cat >>conftest.
$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8729 /* Override any gcc2 internal prototype to avoid an error. */
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8744 rm -f conftest.
$ac_objext conftest
$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>conftest.er1
8748 grep -v '^ *+' conftest.er1
>conftest.err
8750 cat conftest.err
>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try
='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try
='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_search_socket
="none required"
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.
$ac_ext >&5
8772 rm -f conftest.err conftest.
$ac_objext \
8773 conftest
$ac_exeext conftest.
$ac_ext
8774 if test "$ac_cv_search_socket" = no
; then
8775 for ac_lib
in socket
; do
8776 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8777 cat >conftest.
$ac_ext <<_ACEOF
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 /* Override any gcc2 internal prototype to avoid an error. */
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8799 rm -f conftest.
$ac_objext conftest
$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1
>conftest.err
8805 cat conftest.err
>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try
='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try
='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_search_socket
="-l$ac_lib"
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.
$ac_ext >&5
8828 rm -f conftest.err conftest.
$ac_objext \
8829 conftest
$ac_exeext conftest.
$ac_ext
8832 LIBS
=$ac_func_search_save_LIBS
8834 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8835 echo "${ECHO_T}$ac_cv_search_socket" >&6
8836 if test "$ac_cv_search_socket" != no
; then
8837 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
8840 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8841 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8842 if test "${ac_cv_lib_socket_socket+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 ac_check_lib_save_LIBS
=$LIBS
8846 LIBS
="-lsocket -lnsl $LIBS"
8847 cat >conftest.
$ac_ext <<_ACEOF
8850 cat confdefs.h
>>conftest.
$ac_ext
8851 cat >>conftest.
$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8854 /* Override any gcc2 internal prototype to avoid an error. */
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8869 rm -f conftest.
$ac_objext conftest
$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8873 grep -v '^ *+' conftest.er1
>conftest.err
8875 cat conftest.err
>&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try
='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try
='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_socket_socket
=yes
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.
$ac_ext >&5
8896 ac_cv_lib_socket_socket
=no
8898 rm -f conftest.err conftest.
$ac_objext \
8899 conftest
$ac_exeext conftest.
$ac_ext
8900 LIBS
=$ac_check_lib_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8903 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8904 if test $ac_cv_lib_socket_socket = yes; then
8905 LIBS
="-lsocket -lnsl $LIBS"
8910 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8911 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8912 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8913 if test "${ac_cv_search_putmsg+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 ac_func_search_save_LIBS
=$LIBS
8917 ac_cv_search_putmsg
=no
8918 cat >conftest.
$ac_ext <<_ACEOF
8921 cat confdefs.h
>>conftest.
$ac_ext
8922 cat >>conftest.
$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8925 /* Override any gcc2 internal prototype to avoid an error. */
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8940 rm -f conftest.
$ac_objext conftest
$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8944 grep -v '^ *+' conftest.er1
>conftest.err
8946 cat conftest.err
>&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try
='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try
='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_search_putmsg
="none required"
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.
$ac_ext >&5
8968 rm -f conftest.err conftest.
$ac_objext \
8969 conftest
$ac_exeext conftest.
$ac_ext
8970 if test "$ac_cv_search_putmsg" = no
; then
8971 for ac_lib
in str
; do
8972 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8973 cat >conftest.
$ac_ext <<_ACEOF
8976 cat confdefs.h
>>conftest.
$ac_ext
8977 cat >>conftest.
$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8980 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8995 rm -f conftest.
$ac_objext conftest
$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1
>conftest.err
9001 cat conftest.err
>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try
='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try
='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_search_putmsg
="-l$ac_lib"
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -f conftest.err conftest.
$ac_objext \
9025 conftest
$ac_exeext conftest.
$ac_ext
9028 LIBS
=$ac_func_search_save_LIBS
9030 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9031 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
9032 if test "$ac_cv_search_putmsg" != no
; then
9033 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
9040 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9041 if test -f $pfopen ; then
9043 for ac_func
in pfopen
9045 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046 echo "$as_me:$LINENO: checking for $ac_func" >&5
9047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_var+set}\" = set"; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 cat >conftest.
$ac_ext <<_ACEOF
9054 cat confdefs.h
>>conftest.
$ac_ext
9055 cat >>conftest.
$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9059 #define $ac_func innocuous_$ac_func
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func (); below.
9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064 <limits.h> exists even on freestanding compilers. */
9067 # include <limits.h>
9069 # include <assert.h>
9074 /* Override any gcc2 internal prototype to avoid an error. */
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9082 /* The GNU C library defines this for functions which it implements
9083 to always fail with ENOSYS. Some functions are actually named
9084 something starting with __ and the normal name is an alias. */
9085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 char (*f) () = $ac_func;
9097 return f != $ac_func;
9102 rm -f conftest.
$ac_objext conftest
$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9106 grep -v '^ *+' conftest.er1
>conftest.err
9108 cat conftest.err
>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try
='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try
='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 eval "$as_ac_var=yes"
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.
$ac_ext >&5
9129 eval "$as_ac_var=no"
9131 rm -f conftest.err conftest.
$ac_objext \
9132 conftest
$ac_exeext conftest.
$ac_ext
9134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9136 if test `eval echo '${'$as_ac_var'}'` = yes; then
9137 cat >>confdefs.h
<<_ACEOF
9138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9144 if test $ac_cv_func_pfopen = "no" ; then
9145 echo "$as_me:$LINENO: result: Using $pfopen" >&5
9146 echo "${ECHO_T}Using $pfopen" >&6
9147 LIBS
="$LIBS $pfopen"
9150 echo "$as_me:$LINENO: checking for local pcap library" >&5
9151 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9154 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9155 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9156 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
9157 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9158 if test $lastdir = $basedir ; then
9162 if test -r $dir/libpcap.a
; then
9163 libpcap
=$dir/libpcap.a
9167 if test $libpcap = FAIL
; then
9168 echo "$as_me:$LINENO: result: not found" >&5
9169 echo "${ECHO_T}not found" >&6
9170 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9171 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9172 if test "${ac_cv_lib_pcap_main+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 ac_check_lib_save_LIBS
=$LIBS
9177 cat >conftest.
$ac_ext <<_ACEOF
9180 cat confdefs.h
>>conftest.
$ac_ext
9181 cat >>conftest.
$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9193 rm -f conftest.
$ac_objext conftest
$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9197 grep -v '^ *+' conftest.er1
>conftest.err
9199 cat conftest.err
>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try
='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try
='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_lib_pcap_main
=yes
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.
$ac_ext >&5
9220 ac_cv_lib_pcap_main
=no
9222 rm -f conftest.err conftest.
$ac_objext \
9223 conftest
$ac_exeext conftest.
$ac_ext
9224 LIBS
=$ac_check_lib_save_LIBS
9226 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9227 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9228 if test $ac_cv_lib_pcap_main = yes; then
9232 if test $libpcap = FAIL
; then
9233 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9234 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9235 { (exit 1); exit 1; }; }
9237 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9238 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9239 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9240 \
( ! -r /usr
/include
/pcap.h \
); then
9241 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9242 d
="/usr/local/include/pcap"
9243 elif test -r /usr
/include
/pcap
/pcap.h
; then
9244 d
="/usr/include/pcap"
9247 if test -z "$d" ; then
9248 echo "$as_me:$LINENO: result: not found" >&5
9249 echo "${ECHO_T}not found" >&6
9251 V_INCLS
="-I$d $V_INCLS"
9252 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9253 echo "${ECHO_T}found -- -I$d added" >&6
9257 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9258 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9259 if test -r $d/pcap.h
; then
9260 V_INCLS
="-I$d $V_INCLS"
9261 elif test -r $places/pcap.h
; then
9262 V_INCLS
="-I$places $V_INCLS"
9264 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9265 echo "$as_me: error: cannot find pcap.h" >&2;}
9266 { (exit see INSTALL
); exit see INSTALL
; }; }
9268 echo "$as_me:$LINENO: result: $libpcap" >&5
9269 echo "${ECHO_T}$libpcap" >&6
9271 LIBS
="$libpcap $LIBS"
9275 pseexe
="/lib/pse.exp"
9276 echo "$as_me:$LINENO: checking for $pseexe" >&5
9277 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9278 if test -f $pseexe ; then
9279 echo "$as_me:$LINENO: result: yes" >&5
9280 echo "${ECHO_T}yes" >&6
9281 LIBS
="$LIBS -I:$pseexe"
9284 # We need "-lodm" and "-lcfg", as libpcap requires them on
9285 # AIX, and we just build a static libpcap.a and thus can't
9286 # arrange that when you link with libpcap you automatically
9287 # link with those libraries.
9289 LIBS
="$LIBS -lodm -lcfg"
9293 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9294 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9295 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char pcap_list_datalinks (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9314 # include <limits.h>
9316 # include <assert.h>
9319 #undef pcap_list_datalinks
9321 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328 char pcap_list_datalinks ();
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9335 char (*f) () = pcap_list_datalinks;
9344 return f != pcap_list_datalinks;
9349 rm -f conftest.
$ac_objext conftest
$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try
='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try
='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_func_pcap_list_datalinks
=yes
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.
$ac_ext >&5
9376 ac_cv_func_pcap_list_datalinks
=no
9378 rm -f conftest.err conftest.
$ac_objext \
9379 conftest
$ac_exeext conftest.
$ac_ext
9381 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9382 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9383 if test $ac_cv_func_pcap_list_datalinks = yes; then
9384 cat >>confdefs.h
<<\_ACEOF
9385 #define HAVE_PCAP_LIST_DATALINKS 1
9391 "datalinks.$ac_objext" | \
9392 *" datalinks.$ac_objext" | \
9393 "datalinks.$ac_objext "* | \
9394 *" datalinks.$ac_objext "* ) ;;
9395 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext" ;;
9401 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9402 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9403 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 cat >conftest.
$ac_ext <<_ACEOF
9409 cat confdefs.h
>>conftest.
$ac_ext
9410 cat >>conftest.
$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9414 #define pcap_set_datalink innocuous_pcap_set_datalink
9416 /* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char pcap_set_datalink (); below.
9418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 <limits.h> exists even on freestanding compilers. */
9422 # include <limits.h>
9424 # include <assert.h>
9427 #undef pcap_set_datalink
9429 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char pcap_set_datalink ();
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9443 char (*f) () = pcap_set_datalink;
9452 return f != pcap_set_datalink;
9457 rm -f conftest.
$ac_objext conftest
$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9461 grep -v '^ *+' conftest.er1
>conftest.err
9463 cat conftest.err
>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try
='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try
='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_func_pcap_set_datalink
=yes
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.
$ac_ext >&5
9484 ac_cv_func_pcap_set_datalink
=no
9486 rm -f conftest.err conftest.
$ac_objext \
9487 conftest
$ac_exeext conftest.
$ac_ext
9489 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9490 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9491 if test $ac_cv_func_pcap_set_datalink = yes; then
9492 cat >>confdefs.h
<<\_ACEOF
9493 #define HAVE_PCAP_SET_DATALINK 1
9498 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9499 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9500 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char pcap_datalink_name_to_val (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9519 # include <limits.h>
9521 # include <assert.h>
9524 #undef pcap_datalink_name_to_val
9526 /* Override any gcc2 internal prototype to avoid an error. */
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char pcap_datalink_name_to_val ();
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9540 char (*f) () = pcap_datalink_name_to_val;
9549 return f != pcap_datalink_name_to_val;
9554 rm -f conftest.
$ac_objext conftest
$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9558 grep -v '^ *+' conftest.er1
>conftest.err
9560 cat conftest.err
>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try
='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try
='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_func_pcap_datalink_name_to_val
=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.
$ac_ext >&5
9581 ac_cv_func_pcap_datalink_name_to_val
=no
9583 rm -f conftest.err conftest.
$ac_objext \
9584 conftest
$ac_exeext conftest.
$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9587 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9588 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9590 cat >>confdefs.h
<<\_ACEOF
9591 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9594 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9595 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9596 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.
$ac_ext <<_ACEOF
9602 cat confdefs.h
>>conftest.
$ac_ext
9603 cat >>conftest.
$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char pcap_datalink_val_to_description (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9615 # include <limits.h>
9617 # include <assert.h>
9620 #undef pcap_datalink_val_to_description
9622 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629 char pcap_datalink_val_to_description ();
9630 /* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9636 char (*f) () = pcap_datalink_val_to_description;
9645 return f != pcap_datalink_val_to_description;
9650 rm -f conftest.
$ac_objext conftest
$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>conftest.er1
9654 grep -v '^ *+' conftest.er1
>conftest.err
9656 cat conftest.err
>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try
='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try
='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_func_pcap_datalink_val_to_description
=yes
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.
$ac_ext >&5
9677 ac_cv_func_pcap_datalink_val_to_description
=no
9679 rm -f conftest.err conftest.
$ac_objext \
9680 conftest
$ac_exeext conftest.
$ac_ext
9682 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9683 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9684 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9685 cat >>confdefs.h
<<\_ACEOF
9686 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9692 "dlnames.$ac_objext" | \
9693 *" dlnames.$ac_objext" | \
9694 "dlnames.$ac_objext "* | \
9695 *" dlnames.$ac_objext "* ) ;;
9696 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext" ;;
9706 "dlnames.$ac_objext" | \
9707 *" dlnames.$ac_objext" | \
9708 "dlnames.$ac_objext "* | \
9709 *" dlnames.$ac_objext "* ) ;;
9710 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext" ;;
9718 for ac_func
in pcap_breakloop
9720 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_var+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.
$ac_ext <<_ACEOF
9729 cat confdefs.h
>>conftest.
$ac_ext
9730 cat >>conftest.
$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define $ac_func innocuous_$ac_func
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char $ac_func (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9742 # include <limits.h>
9744 # include <assert.h>
9749 /* Override any gcc2 internal prototype to avoid an error. */
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9763 char (*f) () = $ac_func;
9772 return f != $ac_func;
9777 rm -f conftest.
$ac_objext conftest
$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1
>conftest.err
9783 cat conftest.err
>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try
='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try
='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 eval "$as_ac_var=yes"
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.
$ac_ext >&5
9804 eval "$as_ac_var=no"
9806 rm -f conftest.err conftest.
$ac_objext \
9807 conftest
$ac_exeext conftest.
$ac_ext
9809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9811 if test `eval echo '${'$as_ac_var'}'` = yes; then
9812 cat >>confdefs.h
<<_ACEOF
9813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9820 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9821 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
9822 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.
$ac_ext <<_ACEOF
9828 cat confdefs.h
>>conftest.
$ac_ext
9829 cat >>conftest.
$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char pcap_dump_ftell (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9841 # include <limits.h>
9843 # include <assert.h>
9846 #undef pcap_dump_ftell
9848 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855 char pcap_dump_ftell ();
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
9862 char (*f) () = pcap_dump_ftell;
9871 return f != pcap_dump_ftell;
9876 rm -f conftest.
$ac_objext conftest
$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9880 grep -v '^ *+' conftest.er1
>conftest.err
9882 cat conftest.err
>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try
='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try
='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_func_pcap_dump_ftell
=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.
$ac_ext >&5
9903 ac_cv_func_pcap_dump_ftell
=no
9905 rm -f conftest.err conftest.
$ac_objext \
9906 conftest
$ac_exeext conftest.
$ac_ext
9908 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9909 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
9910 if test $ac_cv_func_pcap_dump_ftell = yes; then
9911 cat >>confdefs.h
<<\_ACEOF
9912 #define HAVE_PCAP_DUMP_FTELL 1
9918 "pcap_dump_ftell.$ac_objext" | \
9919 *" pcap_dump_ftell.$ac_objext" | \
9920 "pcap_dump_ftell.$ac_objext "* | \
9921 *" pcap_dump_ftell.$ac_objext "* ) ;;
9922 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext" ;;
9931 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9932 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9934 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9935 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9936 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9937 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9938 # it does not ship with a libc symbol "inet_ntop()", it ships with
9939 # "_inet_ntop()", and has a #define macro in one of the system headers
9942 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9943 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9944 cat >conftest.
$ac_ext <<_ACEOF
9947 cat confdefs.h
>>conftest.
$ac_ext
9948 cat >>conftest.
$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 #include <sys/types.h>
9951 #include <sys/socket.h>
9952 #include <netinet/in.h>
9953 #include <arpa/inet.h>
9957 char src[4], dst[128];
9958 inet_ntop(AF_INET, src, dst, sizeof(dst));
9963 rm -f conftest.
$ac_objext conftest
$ac_exeext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>conftest.er1
9967 grep -v '^ *+' conftest.er1
>conftest.err
9969 cat conftest.err
>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try
='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try
='test -s conftest$ac_exeext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 echo "$as_me:$LINENO: result: yes" >&5
9986 echo "${ECHO_T}yes" >&6
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9991 echo "$as_me:$LINENO: result: no" >&5
9992 echo "${ECHO_T}no" >&6
9994 "inet_ntop.$ac_objext" | \
9995 *" inet_ntop.$ac_objext" | \
9996 "inet_ntop.$ac_objext "* | \
9997 *" inet_ntop.$ac_objext "* ) ;;
9998 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext" ;;
10002 rm -f conftest.err conftest.
$ac_objext \
10003 conftest
$ac_exeext conftest.
$ac_ext
10004 echo "$as_me:$LINENO: checking for inet_pton" >&5
10005 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10006 cat >conftest.
$ac_ext <<_ACEOF
10009 cat confdefs.h
>>conftest.
$ac_ext
10010 cat >>conftest.
$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 #include <sys/types.h>
10013 #include <sys/socket.h>
10014 #include <netinet/in.h>
10015 #include <arpa/inet.h>
10019 char src[128], dst[4];
10020 inet_pton(AF_INET, src, dst);
10025 rm -f conftest.
$ac_objext conftest
$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>conftest.er1
10029 grep -v '^ *+' conftest.er1
>conftest.err
10031 cat conftest.err
>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try
='test -z "$ac_c_werror_flag"
10035 || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try
='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 echo "$as_me:$LINENO: result: yes" >&5
10048 echo "${ECHO_T}yes" >&6
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.
$ac_ext >&5
10053 echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6
10056 "inet_pton.$ac_objext" | \
10057 *" inet_pton.$ac_objext" | \
10058 "inet_pton.$ac_objext "* | \
10059 *" inet_pton.$ac_objext "* ) ;;
10060 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext" ;;
10064 rm -f conftest.err conftest.
$ac_objext \
10065 conftest
$ac_exeext conftest.
$ac_ext
10066 echo "$as_me:$LINENO: checking for inet_aton" >&5
10067 echo $ECHO_N "checking for inet_aton... $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 <netinet/in.h>
10076 #include <arpa/inet.h>
10081 struct in_addr dst;
10082 inet_aton(src, &dst);
10087 rm -f conftest.
$ac_objext conftest
$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10091 grep -v '^ *+' conftest.er1
>conftest.err
10093 cat conftest.err
>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try
='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try
='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.
$ac_ext >&5
10115 echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10118 "inet_aton.$ac_objext" | \
10119 *" inet_aton.$ac_objext" | \
10120 "inet_aton.$ac_objext "* | \
10121 *" inet_aton.$ac_objext "* ) ;;
10122 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext" ;;
10126 rm -f conftest.err conftest.
$ac_objext \
10127 conftest
$ac_exeext conftest.
$ac_ext
10130 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10132 # You are in a twisty little maze of UN*Xes, all different.
10133 # Some might not have ether_ntohost().
10134 # Some might have it, but not declare it in any header file.
10135 # Some might have it, but declare it in <netinet/if_ether.h>.
10136 # Some might have it, but declare it in <netinet/ether.h>
10137 # (And some might have it but document it as something declared in
10138 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10140 # Before you is a C compiler.
10143 for ac_func
in ether_ntohost
10145 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_var+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 cat >conftest.
$ac_ext <<_ACEOF
10154 cat confdefs.h
>>conftest.
$ac_ext
10155 cat >>conftest.
$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10159 #define $ac_func innocuous_$ac_func
10161 /* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char $ac_func (); below.
10163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164 <limits.h> exists even on freestanding compilers. */
10167 # include <limits.h>
10169 # include <assert.h>
10174 /* Override any gcc2 internal prototype to avoid an error. */
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10182 /* The GNU C library defines this for functions which it implements
10183 to always fail with ENOSYS. Some functions are actually named
10184 something starting with __ and the normal name is an alias. */
10185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10188 char (*f) () = $ac_func;
10197 return f != $ac_func;
10202 rm -f conftest.
$ac_objext conftest
$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1
>conftest.err
10208 cat conftest.err
>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try
='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try
='test -s conftest$ac_exeext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 eval "$as_ac_var=yes"
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.
$ac_ext >&5
10229 eval "$as_ac_var=no"
10231 rm -f conftest.err conftest.
$ac_objext \
10232 conftest
$ac_exeext conftest.
$ac_ext
10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10236 if test `eval echo '${'$as_ac_var'}'` = yes; then
10237 cat >>confdefs.h
<<_ACEOF
10238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10241 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10242 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10243 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10250 cat >conftest.
$ac_ext <<_ACEOF
10253 cat confdefs.h
>>conftest.
$ac_ext
10254 cat >>conftest.
$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10258 #include <sys/types.h>
10259 #include <sys/param.h>
10260 #include <sys/socket.h>
10263 main(int argc, char **argv)
10265 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10266 char name[MAXHOSTNAMELEN];
10268 ether_ntohost(name, (struct ether_addr *)ea);
10273 rm -f conftest
$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_buggy_ether_ntohost
=no
10286 echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.
$ac_ext >&5
10290 ( exit $ac_status )
10291 ac_cv_buggy_ether_ntohost
=yes
10293 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10297 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10298 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10299 cat >>confdefs.h
<<\_ACEOF
10300 #define USE_ETHER_NTOHOST 1
10308 if test "$ac_cv_func_ether_ntohost" = yes -a \
10309 "$ac_cv_buggy_ether_ntohost" = "no"; then
10311 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10313 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10315 # Yes. Does it declare ether_ntohost()?
10317 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10318 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10319 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 cat >conftest.
$ac_ext <<_ACEOF
10325 cat confdefs.h
>>conftest.
$ac_ext
10326 cat >>conftest.
$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 #include <sys/types.h>
10330 #include <sys/socket.h>
10331 #include <netinet/in.h>
10332 #include <arpa/inet.h>
10335 #include <net/if.h>
10336 #include <netinet/if_ether.h>
10342 #ifndef ether_ntohost
10343 char *p = (char *) ether_ntohost;
10350 rm -f conftest.
$ac_objext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352 (eval $ac_compile) 2>conftest.er1
10354 grep -v '^ *+' conftest.er1
>conftest.err
10356 cat conftest.err
>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try
='test -z "$ac_c_werror_flag"
10360 || test ! -s conftest.err'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; } &&
10366 { ac_try
='test -s conftest.$ac_objext'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 ac_cv_have_decl_ether_ntohost
=yes
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.
$ac_ext >&5
10377 ac_cv_have_decl_ether_ntohost
=no
10379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10382 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10383 if test $ac_cv_have_decl_ether_ntohost = yes; then
10386 cat >>confdefs.h
<<\_ACEOF
10387 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10395 # Did that succeed?
10397 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10399 # No, how about <netinet/ether.h>, as on Linux?
10402 for ac_header
in netinet
/ether.h
10404 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10406 echo "$as_me:$LINENO: checking for $ac_header" >&5
10407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10414 # Is the header compilable?
10415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10417 cat >conftest.
$ac_ext <<_ACEOF
10420 cat confdefs.h
>>conftest.
$ac_ext
10421 cat >>conftest.
$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 $ac_includes_default
10424 #include <$ac_header>
10426 rm -f conftest.
$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10430 grep -v '^ *+' conftest.er1
>conftest.err
10432 cat conftest.err
>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try
='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try
='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_header_compiler
=yes
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.
$ac_ext >&5
10453 ac_header_compiler
=no
10455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457 echo "${ECHO_T}$ac_header_compiler" >&6
10459 # Is the header present?
10460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10462 cat >conftest.
$ac_ext <<_ACEOF
10465 cat confdefs.h
>>conftest.
$ac_ext
10466 cat >>conftest.
$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <$ac_header>
10470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10473 grep -v '^ *+' conftest.er1
>conftest.err
10475 cat conftest.err
>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } >/dev
/null
; then
10478 if test -s conftest.err
; then
10479 ac_cpp_err
=$ac_c_preproc_warn_flag
10480 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10487 if test -z "$ac_cpp_err"; then
10488 ac_header_preproc
=yes
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.
$ac_ext >&5
10493 ac_header_preproc
=no
10495 rm -f conftest.err conftest.
$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10497 echo "${ECHO_T}$ac_header_preproc" >&6
10499 # So? What about this header?
10500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10506 ac_header_preproc
=yes
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10523 ## ------------------------------------------ ##
10524 ## Report this to the AC_PACKAGE_NAME lists. ##
10525 ## ------------------------------------------ ##
10528 sed "s/^/$as_me: WARNING: /" >&2
10531 echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 eval "$as_ac_Header=\$ac_header_preproc"
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543 cat >>confdefs.h
<<_ACEOF
10544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10551 if test "$ac_cv_header_netinet_ether_h" = yes; then
10553 # We have it - does it declare ether_ntohost()?
10554 # Unset ac_cv_have_decl_ether_ntohost so we don't
10555 # treat the previous failure as a cached value and
10556 # suppress the next test.
10558 unset ac_cv_have_decl_ether_ntohost
10559 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10560 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10561 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 cat >conftest.
$ac_ext <<_ACEOF
10567 cat confdefs.h
>>conftest.
$ac_ext
10568 cat >>conftest.
$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10571 #include <netinet/ether.h>
10577 #ifndef ether_ntohost
10578 char *p = (char *) ether_ntohost;
10585 rm -f conftest.
$ac_objext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>conftest.er1
10589 grep -v '^ *+' conftest.er1
>conftest.err
10591 cat conftest.err
>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } &&
10594 { ac_try
='test -z "$ac_c_werror_flag"
10595 || test ! -s conftest.err'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; } &&
10601 { ac_try
='test -s conftest.$ac_objext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 ac_cv_have_decl_ether_ntohost
=yes
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.
$ac_ext >&5
10612 ac_cv_have_decl_ether_ntohost
=no
10614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10616 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10617 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10618 if test $ac_cv_have_decl_ether_ntohost = yes; then
10621 cat >>confdefs.h
<<\_ACEOF
10622 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10631 # Is ether_ntohost() declared?
10633 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10635 # No, we'll have to declare it ourselves.
10636 # Do we have "struct ether_addr"?
10638 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10639 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10640 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.
$ac_ext <<_ACEOF
10646 cat confdefs.h
>>conftest.
$ac_ext
10647 cat >>conftest.
$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10650 #include <sys/types.h>
10651 #include <sys/socket.h>
10652 #include <netinet/in.h>
10653 #include <arpa/inet.h>
10656 #include <net/if.h>
10657 #include <netinet/if_ether.h>
10663 if ((struct ether_addr *) 0)
10665 if (sizeof (struct ether_addr))
10671 rm -f conftest.
$ac_objext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10673 (eval $ac_compile) 2>conftest.er1
10675 grep -v '^ *+' conftest.er1
>conftest.err
10677 cat conftest.err
>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try
='test -z "$ac_c_werror_flag"
10681 || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try
='test -s conftest.$ac_objext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_struct_ether_addr
=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.
$ac_ext >&5
10698 ac_cv_type_struct_ether_addr
=no
10700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10702 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10703 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10704 if test $ac_cv_type_struct_ether_addr = yes; then
10706 cat >>confdefs.h
<<_ACEOF
10707 #define HAVE_STRUCT_ETHER_ADDR 1
10714 cat >>confdefs.h
<<\_ACEOF
10715 #define HAVE_DECL_ETHER_NTOHOST 0
10720 cat >>confdefs.h
<<\_ACEOF
10721 #define HAVE_DECL_ETHER_NTOHOST 1
10727 # libdlpi is needed for Solaris 11 and later.
10728 echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10729 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6
10730 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 ac_check_lib_save_LIBS
=$LIBS
10734 LIBS
="-ldlpi -L/lib $LIBS"
10735 cat >conftest.
$ac_ext <<_ACEOF
10738 cat confdefs.h
>>conftest.
$ac_ext
10739 cat >>conftest.
$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10742 /* Override any gcc2 internal prototype to avoid an error. */
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10757 rm -f conftest.
$ac_objext conftest
$ac_exeext
10758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759 (eval $ac_link) 2>conftest.er1
10761 grep -v '^ *+' conftest.er1
>conftest.err
10763 cat conftest.err
>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try
='test -z "$ac_c_werror_flag"
10767 || test ! -s conftest.err'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; } &&
10773 { ac_try
='test -s conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_lib_dlpi_dlpi_walk
=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.
$ac_ext >&5
10784 ac_cv_lib_dlpi_dlpi_walk
=no
10786 rm -f conftest.err conftest.
$ac_objext \
10787 conftest
$ac_exeext conftest.
$ac_ext
10788 LIBS
=$ac_check_lib_save_LIBS
10790 echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10791 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6
10792 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10793 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
10798 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10799 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10800 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 cat >conftest.
$ac_ext <<_ACEOF
10806 cat confdefs.h
>>conftest.
$ac_ext
10807 cat >>conftest.
$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 # include <sys/types.h>
10811 # include <sys/socket.h>
10815 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10820 rm -f conftest.
$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1
>conftest.err
10826 cat conftest.err
>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try
='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try
='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_sockaddr_has_sa_len
=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_cv_sockaddr_has_sa_len
=no
10849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10853 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10854 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10855 cat >>confdefs.h
<<\_ACEOF
10856 #define HAVE_SOCKADDR_SA_LEN 1
10861 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
10862 missing_includes
=yes
10866 # Do we have the new open API? Check for pcap_create, and assume that,
10867 # if we do, we also have pcap_activate() and the other new routines.
10869 for ac_func
in pcap_create
10871 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10872 echo "$as_me:$LINENO: checking for $ac_func" >&5
10873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10874 if eval "test \"\${$as_ac_var+set}\" = set"; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 cat >conftest.
$ac_ext <<_ACEOF
10880 cat confdefs.h
>>conftest.
$ac_ext
10881 cat >>conftest.
$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10885 #define $ac_func innocuous_$ac_func
10887 /* System header to define __stub macros and hopefully few prototypes,
10888 which can conflict with char $ac_func (); below.
10889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10890 <limits.h> exists even on freestanding compilers. */
10893 # include <limits.h>
10895 # include <assert.h>
10900 /* Override any gcc2 internal prototype to avoid an error. */
10905 /* We use char because int might match the return type of a gcc2
10906 builtin and then its argument prototype would still apply. */
10908 /* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10914 char (*f) () = $ac_func;
10923 return f != $ac_func;
10928 rm -f conftest.
$ac_objext conftest
$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>conftest.er1
10932 grep -v '^ *+' conftest.er1
>conftest.err
10934 cat conftest.err
>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } &&
10937 { ac_try
='test -z "$ac_c_werror_flag"
10938 || test ! -s conftest.err'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try
='test -s conftest$ac_exeext'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 eval "$as_ac_var=yes"
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.
$ac_ext >&5
10955 eval "$as_ac_var=no"
10957 rm -f conftest.err conftest.
$ac_objext \
10958 conftest
$ac_exeext conftest.
$ac_ext
10960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10962 if test `eval echo '${'$as_ac_var'}'` = yes; then
10963 cat >>confdefs.h
<<_ACEOF
10964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10974 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
10976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10977 echo "$as_me:$LINENO: checking for $ac_func" >&5
10978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_var+set}\" = set"; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 cat >conftest.
$ac_ext <<_ACEOF
10985 cat confdefs.h
>>conftest.
$ac_ext
10986 cat >>conftest.
$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10990 #define $ac_func innocuous_$ac_func
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func (); below.
10994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10995 <limits.h> exists even on freestanding compilers. */
10998 # include <limits.h>
11000 # include <assert.h>
11005 /* Override any gcc2 internal prototype to avoid an error. */
11010 /* We use char because int might match the return type of a gcc2
11011 builtin and then its argument prototype would still apply. */
11013 /* The GNU C library defines this for functions which it implements
11014 to always fail with ENOSYS. Some functions are actually named
11015 something starting with __ and the normal name is an alias. */
11016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11019 char (*f) () = $ac_func;
11028 return f != $ac_func;
11033 rm -f conftest.
$ac_objext conftest
$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>conftest.er1
11037 grep -v '^ *+' conftest.er1
>conftest.err
11039 cat conftest.err
>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try
='test -z "$ac_c_werror_flag"
11043 || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try
='test -s conftest$ac_exeext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 eval "$as_ac_var=yes"
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.
$ac_ext >&5
11060 eval "$as_ac_var=no"
11062 rm -f conftest.err conftest.
$ac_objext \
11063 conftest
$ac_exeext conftest.
$ac_ext
11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11067 if test `eval echo '${'$as_ac_var'}'` = yes; then
11068 cat >>confdefs.h
<<_ACEOF
11069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11075 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11076 savedcflags
="$CFLAGS"
11077 CFLAGS
="$CFLAGS $V_INCLS"
11078 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11079 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
11080 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 cat >conftest.
$ac_ext <<_ACEOF
11086 cat confdefs.h
>>conftest.
$ac_ext
11087 cat >>conftest.
$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11094 if ((pcap_if_t *) 0)
11096 if (sizeof (pcap_if_t))
11102 rm -f conftest.
$ac_objext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104 (eval $ac_compile) 2>conftest.er1
11106 grep -v '^ *+' conftest.er1
>conftest.err
11108 cat conftest.err
>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try
='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try
='test -s conftest.$ac_objext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_type_pcap_if_t
=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.
$ac_ext >&5
11129 ac_cv_type_pcap_if_t
=no
11131 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11133 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11134 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
11135 if test $ac_cv_type_pcap_if_t = yes; then
11137 cat >>confdefs.h
<<_ACEOF
11138 #define HAVE_PCAP_IF_T 1
11144 CFLAGS
="$savedcflags"
11147 if test $ac_cv_func_pcap_lib_version = "no" ; then
11148 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11149 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
11150 cat >conftest.
$ac_ext <<_ACEOF
11153 cat confdefs.h
>>conftest.
$ac_ext
11154 cat >>conftest.
$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11161 extern char pcap_version[];
11163 return (int)pcap_version;
11169 rm -f conftest.
$ac_objext conftest
$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171 (eval $ac_link) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1
>conftest.err
11175 cat conftest.err
>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try
='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try
='test -s conftest$ac_exeext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_lbl_cv_pcap_version_defined
=yes
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.
$ac_ext >&5
11196 ac_lbl_cv_pcap_version_defined
=no
11198 rm -f conftest.err conftest.
$ac_objext \
11199 conftest
$ac_exeext conftest.
$ac_ext
11200 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11201 echo "$as_me:$LINENO: result: yes" >&5
11202 echo "${ECHO_T}yes" >&6
11203 cat >>confdefs.h
<<\_ACEOF
11204 #define HAVE_PCAP_VERSION 1
11208 echo "$as_me:$LINENO: result: no" >&5
11209 echo "${ECHO_T}no" >&6
11212 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11213 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
11214 cat >conftest.
$ac_ext <<_ACEOF
11217 cat confdefs.h
>>conftest.
$ac_ext
11218 cat >>conftest.
$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11225 extern int pcap_debug;
11233 rm -f conftest.
$ac_objext conftest
$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>conftest.er1
11237 grep -v '^ *+' conftest.er1
>conftest.err
11239 cat conftest.err
>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try
='test -z "$ac_c_werror_flag"
11243 || test ! -s conftest.err'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try
='test -s conftest$ac_exeext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 ac_lbl_cv_pcap_debug_defined
=yes
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.
$ac_ext >&5
11260 ac_lbl_cv_pcap_debug_defined
=no
11262 rm -f conftest.err conftest.
$ac_objext \
11263 conftest
$ac_exeext conftest.
$ac_ext
11264 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11265 echo "$as_me:$LINENO: result: yes" >&5
11266 echo "${ECHO_T}yes" >&6
11267 cat >>confdefs.h
<<\_ACEOF
11268 #define HAVE_PCAP_DEBUG 1
11272 echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6
11275 # OK, what about "yydebug"?
11277 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11278 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
11279 cat >conftest.
$ac_ext <<_ACEOF
11282 cat confdefs.h
>>conftest.
$ac_ext
11283 cat >>conftest.
$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11290 extern int yydebug;
11298 rm -f conftest.
$ac_objext conftest
$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300 (eval $ac_link) 2>conftest.er1
11302 grep -v '^ *+' conftest.er1
>conftest.err
11304 cat conftest.err
>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try
='test -z "$ac_c_werror_flag"
11308 || test ! -s conftest.err'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try
='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_lbl_cv_yydebug_defined
=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.
$ac_ext >&5
11325 ac_lbl_cv_yydebug_defined
=no
11327 rm -f conftest.err conftest.
$ac_objext \
11328 conftest
$ac_exeext conftest.
$ac_ext
11329 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11330 echo "$as_me:$LINENO: result: yes" >&5
11331 echo "${ECHO_T}yes" >&6
11332 cat >>confdefs.h
<<\_ACEOF
11333 #define HAVE_YYDEBUG 1
11337 echo "$as_me:$LINENO: result: no" >&5
11338 echo "${ECHO_T}no" >&6
11342 for ac_func
in bpf_dump
11344 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11345 echo "$as_me:$LINENO: checking for $ac_func" >&5
11346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11347 if eval "test \"\${$as_ac_var+set}\" = set"; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 cat >conftest.
$ac_ext <<_ACEOF
11353 cat confdefs.h
>>conftest.
$ac_ext
11354 cat >>conftest.
$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11358 #define $ac_func innocuous_$ac_func
11360 /* System header to define __stub macros and hopefully few prototypes,
11361 which can conflict with char $ac_func (); below.
11362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11363 <limits.h> exists even on freestanding compilers. */
11366 # include <limits.h>
11368 # include <assert.h>
11373 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11387 char (*f) () = $ac_func;
11396 return f != $ac_func;
11401 rm -f conftest.
$ac_objext conftest
$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11405 grep -v '^ *+' conftest.er1
>conftest.err
11407 cat conftest.err
>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try
='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try
='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 eval "$as_ac_var=yes"
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.
$ac_ext >&5
11428 eval "$as_ac_var=no"
11430 rm -f conftest.err conftest.
$ac_objext \
11431 conftest
$ac_exeext conftest.
$ac_ext
11433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11435 if test `eval echo '${'$as_ac_var'}'` = yes; then
11436 cat >>confdefs.h
<<_ACEOF
11437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11442 "$ac_func.$ac_objext" | \
11443 *" $ac_func.$ac_objext" | \
11444 "$ac_func.$ac_objext "* | \
11445 *" $ac_func.$ac_objext "* ) ;;
11446 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
11454 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11460 cat >>confdefs.h
<<\_ACEOF
11479 if test -f /dev
/bpf0
; then
11484 for ac_header
in sys
/bitypes.h
11486 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11488 echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11496 # Is the header compilable?
11497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11499 cat >conftest.
$ac_ext <<_ACEOF
11502 cat confdefs.h
>>conftest.
$ac_ext
11503 cat >>conftest.
$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11508 rm -f conftest.
$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>conftest.er1
11512 grep -v '^ *+' conftest.er1
>conftest.err
11514 cat conftest.err
>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try
='test -z "$ac_c_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try
='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_header_compiler
=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.
$ac_ext >&5
11535 ac_header_compiler
=no
11537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 echo "${ECHO_T}$ac_header_compiler" >&6
11541 # Is the header present?
11542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11544 cat >conftest.
$ac_ext <<_ACEOF
11547 cat confdefs.h
>>conftest.
$ac_ext
11548 cat >>conftest.
$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <$ac_header>
11552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11555 grep -v '^ *+' conftest.er1
>conftest.err
11557 cat conftest.err
>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } >/dev
/null
; then
11560 if test -s conftest.err
; then
11561 ac_cpp_err
=$ac_c_preproc_warn_flag
11562 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11569 if test -z "$ac_cpp_err"; then
11570 ac_header_preproc
=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.
$ac_ext >&5
11575 ac_header_preproc
=no
11577 rm -f conftest.err conftest.
$ac_ext
11578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc
=yes
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11605 ## ------------------------------------------ ##
11606 ## Report this to the AC_PACKAGE_NAME lists. ##
11607 ## ------------------------------------------ ##
11610 sed "s/^/$as_me: WARNING: /" >&2
11613 echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 eval "$as_ac_Header=\$ac_header_preproc"
11620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11625 cat >>confdefs.h
<<_ACEOF
11626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11634 echo "$as_me:$LINENO: checking for int8_t" >&5
11635 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11636 if test "${ac_cv_type_int8_t+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 cat >conftest.
$ac_ext <<_ACEOF
11642 cat confdefs.h
>>conftest.
$ac_ext
11643 cat >>conftest.
$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 $ac_includes_default
11651 if (sizeof (int8_t))
11657 rm -f conftest.
$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>conftest.er1
11661 grep -v '^ *+' conftest.er1
>conftest.err
11663 cat conftest.err
>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try
='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try
='test -s conftest.$ac_objext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_type_int8_t
=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.
$ac_ext >&5
11684 ac_cv_type_int8_t
=no
11686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11688 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11689 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11690 if test $ac_cv_type_int8_t = yes; then
11694 cat >>confdefs.h
<<\_ACEOF
11695 #define int8_t signed char
11700 echo "$as_me:$LINENO: checking for u_int8_t" >&5
11701 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11702 if test "${ac_cv_type_u_int8_t+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 cat >conftest.
$ac_ext <<_ACEOF
11708 cat confdefs.h
>>conftest.
$ac_ext
11709 cat >>conftest.
$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 $ac_includes_default
11712 #ifdef HAVE_SYS_BITYPES_H
11713 #include <sys/bitypes.h>
11719 if ((u_int8_t *) 0)
11721 if (sizeof (u_int8_t))
11727 rm -f conftest.
$ac_objext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11731 grep -v '^ *+' conftest.er1
>conftest.err
11733 cat conftest.err
>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try
='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try
='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_cv_type_u_int8_t
=yes
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.
$ac_ext >&5
11754 ac_cv_type_u_int8_t
=no
11756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11758 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11759 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11760 if test $ac_cv_type_u_int8_t = yes; then
11764 cat >>confdefs.h
<<\_ACEOF
11765 #define u_int8_t unsigned char
11770 echo "$as_me:$LINENO: checking for int16_t" >&5
11771 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11772 if test "${ac_cv_type_int16_t+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 cat >conftest.
$ac_ext <<_ACEOF
11778 cat confdefs.h
>>conftest.
$ac_ext
11779 cat >>conftest.
$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11787 if (sizeof (int16_t))
11793 rm -f conftest.
$ac_objext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>conftest.er1
11797 grep -v '^ *+' conftest.er1
>conftest.err
11799 cat conftest.err
>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try
='test -z "$ac_c_werror_flag"
11803 || test ! -s conftest.err'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try
='test -s conftest.$ac_objext'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 ac_cv_type_int16_t
=yes
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.
$ac_ext >&5
11820 ac_cv_type_int16_t
=no
11822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11824 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11825 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11826 if test $ac_cv_type_int16_t = yes; then
11830 cat >>confdefs.h
<<\_ACEOF
11831 #define int16_t short
11836 echo "$as_me:$LINENO: checking for u_int16_t" >&5
11837 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11838 if test "${ac_cv_type_u_int16_t+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 cat >conftest.
$ac_ext <<_ACEOF
11844 cat confdefs.h
>>conftest.
$ac_ext
11845 cat >>conftest.
$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 $ac_includes_default
11848 #ifdef HAVE_SYS_BITYPES_H
11849 #include <sys/bitypes.h>
11855 if ((u_int16_t *) 0)
11857 if (sizeof (u_int16_t))
11863 rm -f conftest.
$ac_objext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11865 (eval $ac_compile) 2>conftest.er1
11867 grep -v '^ *+' conftest.er1
>conftest.err
11869 cat conftest.err
>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try
='test -z "$ac_c_werror_flag"
11873 || test ! -s conftest.err'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try
='test -s conftest.$ac_objext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_cv_type_u_int16_t
=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.
$ac_ext >&5
11890 ac_cv_type_u_int16_t
=no
11892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11894 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11895 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11896 if test $ac_cv_type_u_int16_t = yes; then
11900 cat >>confdefs.h
<<\_ACEOF
11901 #define u_int16_t unsigned short
11906 echo "$as_me:$LINENO: checking for int32_t" >&5
11907 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11908 if test "${ac_cv_type_int32_t+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.
$ac_ext <<_ACEOF
11914 cat confdefs.h
>>conftest.
$ac_ext
11915 cat >>conftest.
$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 $ac_includes_default
11923 if (sizeof (int32_t))
11929 rm -f conftest.
$ac_objext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931 (eval $ac_compile) 2>conftest.er1
11933 grep -v '^ *+' conftest.er1
>conftest.err
11935 cat conftest.err
>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try
='test -z "$ac_c_werror_flag"
11939 || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try
='test -s conftest.$ac_objext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_type_int32_t
=yes
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.
$ac_ext >&5
11956 ac_cv_type_int32_t
=no
11958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11960 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11961 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11962 if test $ac_cv_type_int32_t = yes; then
11966 cat >>confdefs.h
<<\_ACEOF
11967 #define int32_t int
11972 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11973 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11974 if test "${ac_cv_type_u_int32_t+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 cat >conftest.
$ac_ext <<_ACEOF
11980 cat confdefs.h
>>conftest.
$ac_ext
11981 cat >>conftest.
$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 #ifdef HAVE_SYS_BITYPES_H
11985 #include <sys/bitypes.h>
11991 if ((u_int32_t *) 0)
11993 if (sizeof (u_int32_t))
11999 rm -f conftest.
$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>conftest.er1
12003 grep -v '^ *+' conftest.er1
>conftest.err
12005 cat conftest.err
>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try
='test -z "$ac_c_werror_flag"
12009 || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try
='test -s conftest.$ac_objext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_type_u_int32_t
=yes
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.
$ac_ext >&5
12026 ac_cv_type_u_int32_t
=no
12028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12030 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12032 if test $ac_cv_type_u_int32_t = yes; then
12036 cat >>confdefs.h
<<\_ACEOF
12037 #define u_int32_t unsigned int
12042 echo "$as_me:$LINENO: checking for int64_t" >&5
12043 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
12044 if test "${ac_cv_type_int64_t+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 cat >conftest.
$ac_ext <<_ACEOF
12050 cat confdefs.h
>>conftest.
$ac_ext
12051 cat >>conftest.
$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 $ac_includes_default
12059 if (sizeof (int64_t))
12065 rm -f conftest.
$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>conftest.er1
12069 grep -v '^ *+' conftest.er1
>conftest.err
12071 cat conftest.err
>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try
='test -z "$ac_c_werror_flag"
12075 || test ! -s conftest.err'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try
='test -s conftest.$ac_objext'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 ac_cv_type_int64_t
=yes
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.
$ac_ext >&5
12092 ac_cv_type_int64_t
=no
12094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12096 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12097 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
12098 if test $ac_cv_type_int64_t = yes; then
12102 cat >>confdefs.h
<<\_ACEOF
12103 #define int64_t long long
12108 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12109 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12110 if test "${ac_cv_type_u_int64_t+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.
$ac_ext <<_ACEOF
12116 cat confdefs.h
>>conftest.
$ac_ext
12117 cat >>conftest.
$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 $ac_includes_default
12120 #ifdef HAVE_SYS_BITYPES_H
12121 #include <sys/bitypes.h>
12127 if ((u_int64_t *) 0)
12129 if (sizeof (u_int64_t))
12135 rm -f conftest.
$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>conftest.er1
12139 grep -v '^ *+' conftest.er1
>conftest.err
12141 cat conftest.err
>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try
='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try
='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_type_u_int64_t
=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.
$ac_ext >&5
12162 ac_cv_type_u_int64_t
=no
12164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12166 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12167 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12168 if test $ac_cv_type_u_int64_t = yes; then
12172 cat >>confdefs.h
<<\_ACEOF
12173 #define u_int64_t unsigned long long
12180 # We can't just check for <inttypes.h> - some systems have one that
12181 # doesn't define all the PRI[doxu]64 macros.
12184 for ac_header
in inttypes.h
12186 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12188 echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12196 # Is the header compilable?
12197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12199 cat >conftest.
$ac_ext <<_ACEOF
12202 cat confdefs.h
>>conftest.
$ac_ext
12203 cat >>conftest.
$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12206 #include <$ac_header>
12208 rm -f conftest.
$ac_objext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>conftest.er1
12212 grep -v '^ *+' conftest.er1
>conftest.err
12214 cat conftest.err
>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try
='test -z "$ac_c_werror_flag"
12218 || test ! -s conftest.err'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try
='test -s conftest.$ac_objext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_header_compiler
=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.
$ac_ext >&5
12235 ac_header_compiler
=no
12237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12239 echo "${ECHO_T}$ac_header_compiler" >&6
12241 # Is the header present?
12242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12244 cat >conftest.
$ac_ext <<_ACEOF
12247 cat confdefs.h
>>conftest.
$ac_ext
12248 cat >>conftest.
$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <$ac_header>
12252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12255 grep -v '^ *+' conftest.er1
>conftest.err
12257 cat conftest.err
>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } >/dev
/null
; then
12260 if test -s conftest.err
; then
12261 ac_cpp_err
=$ac_c_preproc_warn_flag
12262 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12269 if test -z "$ac_cpp_err"; then
12270 ac_header_preproc
=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.
$ac_ext >&5
12275 ac_header_preproc
=no
12277 rm -f conftest.err conftest.
$ac_ext
12278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12279 echo "${ECHO_T}$ac_header_preproc" >&6
12281 # So? What about this header?
12282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12288 ac_header_preproc
=yes
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12305 ## ------------------------------------------ ##
12306 ## Report this to the AC_PACKAGE_NAME lists. ##
12307 ## ------------------------------------------ ##
12310 sed "s/^/$as_me: WARNING: /" >&2
12313 echo "$as_me:$LINENO: checking for $ac_header" >&5
12314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 eval "$as_ac_Header=\$ac_header_preproc"
12320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12325 cat >>confdefs.h
<<_ACEOF
12326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12330 # OK, we have inttypes.h, but does it define those macros?
12332 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12333 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
12334 cat >conftest.
$ac_ext <<_ACEOF
12338 cat confdefs.h
>>conftest.
$ac_ext
12339 cat >>conftest.
$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 #include <inttypes.h>
12344 #include <sys/types.h>
12345 #ifdef HAVE_SYS_BITYPES_H
12346 #include <sys/bitypes.h>
12351 printf("%" PRId64 "\n", (u_int64_t)1);
12352 printf("%" PRIo64 "\n", (u_int64_t)1);
12353 printf("%" PRIx64 "\n", (u_int64_t)1);
12354 printf("%" PRIu64 "\n", (u_int64_t)1);
12359 rm -f conftest.
$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>conftest.er1
12363 grep -v '^ *+' conftest.er1
>conftest.err
12365 cat conftest.err
>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try
='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try
='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12382 echo "$as_me:$LINENO: result: yes" >&5
12383 echo "${ECHO_T}yes" >&6
12384 ac_lbl_inttypes_h_defines_formats
=yes
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.
$ac_ext >&5
12391 echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6
12393 ac_lbl_inttypes_h_defines_formats
=no
12396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12401 # We don't have inttypes.h, so it obviously can't define those
12404 ac_lbl_inttypes_h_defines_formats
=no
12410 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
12412 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12413 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12414 if test "$cross_compiling" = yes; then
12415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12416 See \`config.log' for more details." >&5
12417 echo "$as_me: error: cannot run test program while cross compiling
12418 See \`config.log' for more details." >&2;}
12419 { (exit 1); exit 1; }; }
12421 cat >conftest.
$ac_ext <<_ACEOF
12425 cat confdefs.h
>>conftest.
$ac_ext
12426 cat >>conftest.
$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 # ifdef HAVE_INTTYPES_H
12430 #include <inttypes.h>
12432 # ifdef HAVE_SYS_BITYPES_H
12433 #include <sys/bitypes.h>
12436 #include <sys/types.h>
12442 sprintf(strbuf, "%016lx", t << 32);
12443 if (strcmp(strbuf, "0000000100000000") == 0)
12451 rm -f conftest
$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12463 cat >>confdefs.h
<<\_ACEOF
12464 #define PRId64 "ld"
12467 cat >>confdefs.h
<<\_ACEOF
12468 #define PRIo64 "lo"
12471 cat >>confdefs.h
<<\_ACEOF
12472 #define PRIx64 "lx"
12475 cat >>confdefs.h
<<\_ACEOF
12476 #define PRIu64 "lu"
12479 echo "$as_me:$LINENO: result: yes" >&5
12480 echo "${ECHO_T}yes" >&6
12483 echo "$as_me: program exited with status $ac_status" >&5
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.
$ac_ext >&5
12487 ( exit $ac_status )
12489 echo "$as_me:$LINENO: result: no" >&5
12490 echo "${ECHO_T}no" >&6
12493 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12494 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12495 if test "$cross_compiling" = yes; then
12496 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12497 See \`config.log' for more details." >&5
12498 echo "$as_me: error: cannot run test program while cross compiling
12499 See \`config.log' for more details." >&2;}
12500 { (exit 1); exit 1; }; }
12502 cat >conftest.
$ac_ext <<_ACEOF
12506 cat confdefs.h
>>conftest.
$ac_ext
12507 cat >>conftest.
$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12510 # ifdef HAVE_INTTYPES_H
12511 #include <inttypes.h>
12513 # ifdef HAVE_SYS_BITYPES_H
12514 #include <sys/bitypes.h>
12517 #include <sys/types.h>
12523 sprintf(strbuf, "%016llx", t << 32);
12524 if (strcmp(strbuf, "0000000100000000") == 0)
12532 rm -f conftest
$ac_exeext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534 (eval $ac_link) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12544 cat >>confdefs.h
<<\_ACEOF
12545 #define PRId64 "lld"
12548 cat >>confdefs.h
<<\_ACEOF
12549 #define PRIo64 "llo"
12552 cat >>confdefs.h
<<\_ACEOF
12553 #define PRIx64 "llx"
12556 cat >>confdefs.h
<<\_ACEOF
12557 #define PRIu64 "llu"
12560 echo "$as_me:$LINENO: result: yes" >&5
12561 echo "${ECHO_T}yes" >&6
12564 echo "$as_me: program exited with status $ac_status" >&5
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.
$ac_ext >&5
12568 ( exit $ac_status )
12570 echo "$as_me:$LINENO: result: no" >&5
12571 echo "${ECHO_T}no" >&6
12574 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12575 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12576 if test "$cross_compiling" = yes; then
12577 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12578 See \`config.log' for more details." >&5
12579 echo "$as_me: error: cannot run test program while cross compiling
12580 See \`config.log' for more details." >&2;}
12581 { (exit 1); exit 1; }; }
12583 cat >conftest.
$ac_ext <<_ACEOF
12587 cat confdefs.h
>>conftest.
$ac_ext
12588 cat >>conftest.
$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 # ifdef HAVE_INTTYPES_H
12592 #include <inttypes.h>
12594 # ifdef HAVE_SYS_BITYPES_H
12595 #include <sys/bitypes.h>
12598 #include <sys/types.h>
12604 sprintf(strbuf, "%016Lx", t << 32);
12605 if (strcmp(strbuf, "0000000100000000") == 0)
12613 rm -f conftest
$ac_exeext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615 (eval $ac_link) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12625 cat >>confdefs.h
<<\_ACEOF
12626 #define PRId64 "Ld"
12629 cat >>confdefs.h
<<\_ACEOF
12630 #define PRIo64 "Lo"
12633 cat >>confdefs.h
<<\_ACEOF
12634 #define PRIx64 "Lx"
12637 cat >>confdefs.h
<<\_ACEOF
12638 #define PRIu64 "Lu"
12641 echo "$as_me:$LINENO: result: yes" >&5
12642 echo "${ECHO_T}yes" >&6
12645 echo "$as_me: program exited with status $ac_status" >&5
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.
$ac_ext >&5
12649 ( exit $ac_status )
12651 echo "$as_me:$LINENO: result: no" >&5
12652 echo "${ECHO_T}no" >&6
12655 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12656 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12657 if test "$cross_compiling" = yes; then
12658 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12659 See \`config.log' for more details." >&5
12660 echo "$as_me: error: cannot run test program while cross compiling
12661 See \`config.log' for more details." >&2;}
12662 { (exit 1); exit 1; }; }
12664 cat >conftest.
$ac_ext <<_ACEOF
12668 cat confdefs.h
>>conftest.
$ac_ext
12669 cat >>conftest.
$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12672 # ifdef HAVE_INTTYPES_H
12673 #include <inttypes.h>
12675 # ifdef HAVE_SYS_BITYPES_H
12676 #include <sys/bitypes.h>
12679 #include <sys/types.h>
12685 sprintf(strbuf, "%016qx", t << 32);
12686 if (strcmp(strbuf, "0000000100000000") == 0)
12694 rm -f conftest
$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12706 cat >>confdefs.h
<<\_ACEOF
12707 #define PRId64 "qd"
12710 cat >>confdefs.h
<<\_ACEOF
12711 #define PRIo64 "qo"
12714 cat >>confdefs.h
<<\_ACEOF
12715 #define PRIx64 "qx"
12718 cat >>confdefs.h
<<\_ACEOF
12719 #define PRIu64 "qu"
12722 echo "$as_me:$LINENO: result: yes" >&5
12723 echo "${ECHO_T}yes" >&6
12726 echo "$as_me: program exited with status $ac_status" >&5
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.
$ac_ext >&5
12730 ( exit $ac_status )
12732 echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6
12735 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12736 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12737 { (exit 1); exit 1; }; }
12741 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12747 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12753 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12759 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12764 if test -n "$ac_tool_prefix"; then
12765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12766 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
12767 echo "$as_me:$LINENO: checking for $ac_word" >&5
12768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12769 if test "${ac_cv_prog_RANLIB+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 if test -n "$RANLIB"; then
12773 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
12775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12776 for as_dir
in $PATH
12779 test -z "$as_dir" && as_dir
=.
12780 for ac_exec_ext
in '' $ac_executable_extensions; do
12781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12782 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
12783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 RANLIB
=$ac_cv_prog_RANLIB
12792 if test -n "$RANLIB"; then
12793 echo "$as_me:$LINENO: result: $RANLIB" >&5
12794 echo "${ECHO_T}$RANLIB" >&6
12796 echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6
12801 if test -z "$ac_cv_prog_RANLIB"; then
12802 ac_ct_RANLIB
=$RANLIB
12803 # Extract the first word of "ranlib", so it can be a program name with args.
12804 set dummy ranlib
; ac_word
=$2
12805 echo "$as_me:$LINENO: checking for $ac_word" >&5
12806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12807 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 if test -n "$ac_ct_RANLIB"; then
12811 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
12813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12814 for as_dir
in $PATH
12817 test -z "$as_dir" && as_dir
=.
12818 for ac_exec_ext
in '' $ac_executable_extensions; do
12819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_prog_ac_ct_RANLIB
="ranlib"
12821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
12830 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
12831 if test -n "$ac_ct_RANLIB"; then
12832 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12833 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12835 echo "$as_me:$LINENO: result: no" >&5
12836 echo "${ECHO_T}no" >&6
12839 RANLIB
=$ac_ct_RANLIB
12841 RANLIB
="$ac_cv_prog_RANLIB"
12846 if test "${LBL_CFLAGS+set}" = set; then
12847 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
12849 if test -f .devel
; then
12850 if test "$GCC" = yes ; then
12851 if test "${LBL_CFLAGS+set}" != set; then
12852 if test "$ac_cv_prog_cc_g" = yes ; then
12853 V_CCOPT
="-g $V_CCOPT"
12855 V_CCOPT
="$V_CCOPT -Wall"
12856 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12857 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12864 V_CCOPT
="$V_CCOPT -n32"
12871 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12872 name
="lbl/os-$os.h"
12873 if test -f $name ; then
12874 ln -s $name os-proto.h
12875 cat >>confdefs.h
<<\_ACEOF
12876 #define HAVE_OS_PROTO_H 1
12880 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12881 echo "$as_me: WARNING: can't find $name" >&2;}
12885 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12886 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12887 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 cat >conftest.
$ac_ext <<_ACEOF
12893 cat confdefs.h
>>conftest.
$ac_ext
12894 cat >>conftest.
$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12897 # include <sys/types.h>
12898 # include <sys/socket.h>
12902 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12907 rm -f conftest.
$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>conftest.er1
12911 grep -v '^ *+' conftest.er1
>conftest.err
12913 cat conftest.err
>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try
='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try
='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_lbl_sockaddr_has_sa_len
=yes
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.
$ac_ext >&5
12934 ac_cv_lbl_sockaddr_has_sa_len
=no
12936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12939 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12940 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12941 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12942 cat >>confdefs.h
<<\_ACEOF
12943 #define HAVE_SOCKADDR_SA_LEN 1
12948 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12949 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
12950 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 case "$host_cpu" in
12956 # These are CPU types where:
12958 # the CPU faults on an unaligned access, but at least some
12959 # OSes that support that CPU catch the fault and simulate
12960 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12961 # the simulation is slow, so we don't want to use it;
12963 # the CPU, I infer (from the old
12965 # XXX: should also check that they don't do weird things (like on arm)
12967 # comment) doesn't fault on unaligned accesses, but doesn't
12968 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12970 # for whatever reason, the test program doesn't work
12971 # (this has been claimed to be the case for several of those
12972 # CPUs - I don't know what the problem is; the problem
12973 # was reported as "the test program dumps core" for SuperH,
12974 # but that's what the test program is *supposed* to do -
12975 # it dumps core before it writes anything, so the test
12976 # for an empty output file should find an empty output
12977 # file and conclude that unaligned accesses don't work).
12979 # This run-time test won't work if you're cross-compiling, so
12980 # in order to support cross-compiling for a particular CPU,
12981 # we have to wire in the list of CPU types anyway, as far as
12982 # I know, so perhaps we should just have a set of CPUs on
12983 # which we know it doesn't work, a set of CPUs on which we
12984 # know it does work, and have the script just fail on other
12985 # cpu types and update it when such a failure occurs.
12987 alpha
*|arm
*|bfin
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
12988 ac_cv_lbl_unaligned_fail
=yes
12992 cat >conftest.c
<<EOF
12993 # include <sys/types.h>
12994 # include <sys/wait.h>
12995 # include <stdio.h>
12996 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13001 /* avoid "core dumped" message */
13007 pid = waitpid(pid, &status, 0);
13010 exit(!WIFEXITED(status));
13013 i = *(unsigned int *)&a[1];
13018 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
13019 conftest.c
$LIBS >/dev
/null
2>&1
13020 if test ! -x conftest
; then
13021 ac_cv_lbl_unaligned_fail
=yes
13023 .
/conftest
>conftest.out
13024 if test ! -s conftest.out
; then
13025 ac_cv_lbl_unaligned_fail
=yes
13027 ac_cv_lbl_unaligned_fail
=no
13030 rm -f conftest
* core core.conftest
13035 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13036 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
13037 if test $ac_cv_lbl_unaligned_fail = yes ; then
13038 cat >>confdefs.h
<<\_ACEOF
13039 #define LBL_ALIGN 1
13045 echo "$as_me:$LINENO: checking for h_errno" >&5
13046 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
13047 if test "${ac_cv_var_h_errno+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.
$ac_ext <<_ACEOF
13053 cat confdefs.h
>>conftest.
$ac_ext
13054 cat >>conftest.
$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13057 # include <sys/types.h>
13058 # include <netdb.h>
13067 rm -f conftest.
$ac_objext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13069 (eval $ac_compile) 2>conftest.er1
13071 grep -v '^ *+' conftest.er1
>conftest.err
13073 cat conftest.err
>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try
='test -z "$ac_c_werror_flag"
13077 || test ! -s conftest.err'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; } &&
13083 { ac_try
='test -s conftest.$ac_objext'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 ac_cv_var_h_errno
=yes
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.
$ac_ext >&5
13094 ac_cv_var_h_errno
=no
13096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13100 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
13101 if test "$ac_cv_var_h_errno" = "yes"; then
13102 cat >>confdefs.h
<<\_ACEOF
13103 #define HAVE_H_ERRNO 1
13110 echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13111 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6
13112 # Specify location for both includes and libraries.
13113 want_libcrypto
=youmama
13115 # Check whether --with-crypto or --without-crypto was given.
13116 if test "${with_crypto+set}" = set; then
13117 withval
="$with_crypto"
13119 if test $withval = no
13122 echo "$as_me:$LINENO: result: no" >&5
13123 echo "${ECHO_T}no" >&6
13124 elif test $withval = yes
13127 echo "$as_me:$LINENO: result: yes" >&5
13128 echo "${ECHO_T}yes" >&6
13131 echo "$as_me:$LINENO: result: yes" >&5
13132 echo "${ECHO_T}yes" >&6
13133 crypto_dir
=$withval
13139 # Use libcrypto if it's present, otherwise don't.
13141 want_libcrypto
=ifavailable
13142 echo "$as_me:$LINENO: result: yes, if available" >&5
13143 echo "${ECHO_T}yes, if available" >&6
13146 if test "$want_libcrypto" != "no"; then
13147 ac_cv_ssleay_path
=no
13149 if test "x$crypto_dir" = x
; then
13151 # Location not specified; check the default locations.
13153 echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13154 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6
13155 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13156 if test "x${host_alias}" != x
; then
13157 dirs="/usr/${host_alias} $dirs"
13159 for dir
in $dirs; do
13162 # XXX - is there a better way to check if a given library is
13163 # in a given directory than checking each of the possible
13164 # shared library suffixes?
13166 # Are there any other suffixes we need to look for? Do we
13167 # have to worry about ".so.{version}"?
13169 # Or should we just look for "libcrypto.*"?
13171 if test -d "$dir/lib" -a \
( -f "$dir/lib/libcrypto.a" -o \
13172 -f "$dir/lib/libcrypto.so" -o \
13173 -f "$dir/lib/libcrypto.sl" -o \
13174 -f "$dir/lib/libcrypto.dylib" \
); then
13175 ac_cv_ssleay_path
="$dir"
13179 # Make sure we have the headers as well.
13181 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13182 incdir
="-I$dir/include"
13186 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13189 ac_cv_ssleay_path
=no
13193 if test "$ac_cv_ssleay_path" != no
; then
13194 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13195 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
13198 echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13199 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6
13202 # XXX - is there a better way to check if a given library is
13203 # in a given directory than checking each of the possible
13204 # shared library suffixes?
13206 # Are there any other suffixes we need to look for? Do we
13207 # have to worry about ".so.{version}"?
13209 # Or should we just look for "libcrypto.*"?
13211 if test -d "$crypto_dir/lib" -a \
( -f "$crypto_dir/lib/libcrypto.a" -o \
13212 -f "$crypto_dir/lib/libcrypto.so" -o \
13213 -f "$crypto_dir/lib/libcrypto.sl" -o \
13214 -f "$crypto_dir/lib/libcrypto.dylib" \
); then
13215 ac_cv_ssleay_path
="$crypto_dir"
13219 # Make sure we have the headers as well.
13221 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13222 incdir
="-I$crypto_dir/include"
13225 if test "$ac_cv_ssleay_path" != no
; then
13226 echo "$as_me:$LINENO: result: found" >&5
13227 echo "${ECHO_T}found" >&6
13230 if test "$ac_cv_ssleay_path" != no
; then
13231 V_INCLS
="$V_INCLS $incdir"
13232 LDFLAGS
="-L$dir/lib $LDFLAGS"
13233 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
13234 LIBS
="$LIBS -lRSAglue"
13236 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
13237 LIBS
="$LIBS -lrsaref"
13240 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13241 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13242 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 ac_check_lib_save_LIBS
=$LIBS
13246 LIBS
="-lcrypto $LIBS"
13247 cat >conftest.
$ac_ext <<_ACEOF
13250 cat confdefs.h
>>conftest.
$ac_ext
13251 cat >>conftest.
$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13254 /* Override any gcc2 internal prototype to avoid an error. */
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13260 char DES_cbc_encrypt ();
13264 DES_cbc_encrypt ();
13269 rm -f conftest.
$ac_objext conftest
$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>conftest.er1
13273 grep -v '^ *+' conftest.er1
>conftest.err
13275 cat conftest.err
>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try
='test -z "$ac_c_werror_flag"
13279 || test ! -s conftest.err'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; } &&
13285 { ac_try
='test -s conftest$ac_exeext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.
$ac_ext >&5
13296 ac_cv_lib_crypto_DES_cbc_encrypt
=no
13298 rm -f conftest.err conftest.
$ac_objext \
13299 conftest
$ac_exeext conftest.
$ac_ext
13300 LIBS
=$ac_check_lib_save_LIBS
13302 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13303 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
13304 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13305 cat >>confdefs.h
<<_ACEOF
13306 #define HAVE_LIBCRYPTO 1
13309 LIBS
="-lcrypto $LIBS"
13314 CPPFLAGS
="$CPPFLAGS $V_INCLS"
13316 for ac_header
in openssl
/evp.h
13318 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13320 echo "$as_me:$LINENO: checking for $ac_header" >&5
13321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13328 # Is the header compilable?
13329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13331 cat >conftest.
$ac_ext <<_ACEOF
13334 cat confdefs.h
>>conftest.
$ac_ext
13335 cat >>conftest.
$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13338 #include <$ac_header>
13340 rm -f conftest.
$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342 (eval $ac_compile) 2>conftest.er1
13344 grep -v '^ *+' conftest.er1
>conftest.err
13346 cat conftest.err
>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try
='test -z "$ac_c_werror_flag"
13350 || test ! -s conftest.err'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; } &&
13356 { ac_try
='test -s conftest.$ac_objext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_header_compiler
=yes
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.
$ac_ext >&5
13367 ac_header_compiler
=no
13369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 echo "${ECHO_T}$ac_header_compiler" >&6
13373 # Is the header present?
13374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13376 cat >conftest.
$ac_ext <<_ACEOF
13379 cat confdefs.h
>>conftest.
$ac_ext
13380 cat >>conftest.
$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 #include <$ac_header>
13384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13387 grep -v '^ *+' conftest.er1
>conftest.err
13389 cat conftest.err
>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } >/dev
/null
; then
13392 if test -s conftest.err
; then
13393 ac_cpp_err
=$ac_c_preproc_warn_flag
13394 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13401 if test -z "$ac_cpp_err"; then
13402 ac_header_preproc
=yes
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.
$ac_ext >&5
13407 ac_header_preproc
=no
13409 rm -f conftest.err conftest.
$ac_ext
13410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13411 echo "${ECHO_T}$ac_header_preproc" >&6
13413 # So? What about this header?
13414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13420 ac_header_preproc
=yes
13423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13437 ## ------------------------------------------ ##
13438 ## Report this to the AC_PACKAGE_NAME lists. ##
13439 ## ------------------------------------------ ##
13442 sed "s/^/$as_me: WARNING: /" >&2
13445 echo "$as_me:$LINENO: checking for $ac_header" >&5
13446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 eval "$as_ac_Header=\$ac_header_preproc"
13452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13457 cat >>confdefs.h
<<_ACEOF
13458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13467 # Not found. Did the user explicitly ask for it?
13469 echo "$as_me:$LINENO: result: not found" >&5
13470 echo "${ECHO_T}not found" >&6
13471 if test "$want_libcrypto" = yes; then
13472 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
13473 echo "$as_me: error: SSLeay not found" >&2;}
13474 { (exit 1); exit 1; }; }
13479 if test "$missing_includes" = "yes"; then
13480 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
13481 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
13491 # Find a good install program. We prefer a C program (faster),
13492 # so one script is as good as another. But avoid the broken or
13493 # incompatible versions:
13494 # SysV /etc/install, /usr/sbin/install
13495 # SunOS /usr/etc/install
13496 # IRIX /sbin/install
13498 # AmigaOS /C/install, which installs bootblocks on floppy discs
13499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13502 # OS/2's system install, which has a completely different semantic
13503 # ./install, which can be erroneously created by make from ./install.sh.
13504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13506 if test -z "$INSTALL"; then
13507 if test "${ac_cv_path_install+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13511 for as_dir
in $PATH
13514 test -z "$as_dir" && as_dir
=.
13515 # Account for people who put trailing slashes in PATH elements.
13517 .
/ | .
// |
/cC
/* | \
13518 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
13519 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
13522 # OSF1 and SCO ODT 3.0 have their own names for install.
13523 # Don't use installbsd from OSF since it installs stuff as root
13525 for ac_prog
in ginstall scoinst
install; do
13526 for ac_exec_ext
in '' $ac_executable_extensions; do
13527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13528 if test $ac_prog = install &&
13529 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13530 # AIX install. It has an incompatible calling convention.
13532 elif test $ac_prog = install &&
13533 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13534 # program-specific install script used by HP pwplus--don't use.
13537 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
13549 if test "${ac_cv_path_install+set}" = set; then
13550 INSTALL
=$ac_cv_path_install
13552 # As a last resort, use the slow shell script. We don't cache a
13553 # path for INSTALL within a source directory, because that will
13554 # break other packages using the cache if that directory is
13555 # removed, or if the path is relative.
13556 INSTALL
=$ac_install_sh
13559 echo "$as_me:$LINENO: result: $INSTALL" >&5
13560 echo "${ECHO_T}$INSTALL" >&6
13562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13563 # It thinks the first close brace ends the variable substitution.
13564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
13566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
13568 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
13571 ac_config_headers
="$ac_config_headers config.h"
13574 ac_config_commands
="$ac_config_commands default-1"
13576 ac_config_files
="$ac_config_files Makefile"
13577 cat >confcache
<<\_ACEOF
13578 # This file is a shell script that caches the results of configure
13579 # tests run on this system so they can be shared between configure
13580 # scripts and configure runs, see configure's option --config-cache.
13581 # It is not useful on other systems. If it contains results you don't
13582 # want to keep, you may remove or edit it.
13584 # config.status only pays attention to the cache file if you give it
13585 # the --recheck option to rerun configure.
13587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13589 # following values.
13593 # The following way of writing the cache mishandles newlines in values,
13594 # but we know of no workaround that is simple, portable, and efficient.
13595 # So, don't put newlines in cache variables' values.
13596 # Ultrix sh set writes to stderr and can't be redirected directly,
13597 # and sets the high bit in the cache file unless we assign to the vars.
13600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13602 # `set' does not quote correctly, so add quotes (double-quote
13603 # substitution turns \\\\ into \\, and sed turns \\ into \).
13606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13609 # `set' quotes correctly as required by POSIX, so do not add quotes.
13611 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13620 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13622 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
13623 if test -w $cache_file; then
13624 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13625 cat confcache
>$cache_file
13627 echo "not updating unwritable cache $cache_file"
13632 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13633 # Let make expand exec_prefix.
13634 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13638 # trailing colons and then remove the whole line if VPATH becomes empty
13639 # (actually we leave an empty line to preserve line numbers).
13640 if test "x$srcdir" = x.
; then
13641 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13642 s/:*\$(srcdir):*/:/;
13643 s/:*\${srcdir}:*/:/;
13645 s/^\([^=]*=[ ]*\):*/\1/;
13651 DEFS
=-DHAVE_CONFIG_H
13655 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13656 # 1. Remove the extension, and $U if already installed.
13657 ac_i
=`echo "$ac_i" |
13658 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13660 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
13661 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
13663 LIBOBJS
=$ac_libobjs
13665 LTLIBOBJS
=$ac_ltlibobjs
13669 : ${CONFIG_STATUS=./config.status}
13670 ac_clean_files_save
=$ac_clean_files
13671 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13672 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13674 cat >$CONFIG_STATUS <<_ACEOF
13676 # Generated by $as_me.
13677 # Run this file to recreate the current configuration.
13678 # Compiler output produced by configure, useful for debugging
13679 # configure, is in config.log if it exists.
13682 ac_cs_recheck=false
13684 SHELL=\${CONFIG_SHELL-$SHELL}
13687 cat >>$CONFIG_STATUS <<\_ACEOF
13688 ## --------------------- ##
13689 ## M4sh Initialization. ##
13690 ## --------------------- ##
13692 # Be Bourne compatible
13693 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
13696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13697 # is contrary to our usage. Disable this feature.
13698 alias -g '${1+"$@"}'='"$@"'
13699 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
13702 DUALCASE
=1; export DUALCASE
# for MKS sh
13704 # Support unset when possible.
13705 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13712 # Work around bugs in pre-3.0 UWIN ksh.
13713 $as_unset ENV MAIL MAILPATH
13720 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13721 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13722 LC_TELEPHONE LC_TIME
13724 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13725 eval $as_var=C
; export $as_var
13731 # Required to use basename.
13732 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13738 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
13739 as_basename
=basename
13745 # Name of the executable.
13746 as_me
=`$as_basename "$0" ||
13747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13748 X"$0" : 'X\(//\)$' \| \
13749 X"$0" : 'X\(/\)$' \| \
13750 . : '\(.\)' 2>/dev/null ||
13752 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13753 /^X\/\(\/\/\)$/{ s//\1/; q; }
13754 /^X\/\(\/\).*/{ s//\1/; q; }
13758 # PATH needs CR, and LINENO needs CR and PATH.
13759 # Avoid depending upon Character Ranges.
13760 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13761 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13762 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13763 as_cr_digits
='0123456789'
13764 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13766 # The user is always right.
13767 if test "${PATH_SEPARATOR+set}" != set; then
13768 echo "#! /bin/sh" >conf$$.sh
13769 echo "exit 0" >>conf$$.sh
13771 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13780 as_lineno_1
=$LINENO
13781 as_lineno_2
=$LINENO
13782 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
13783 test "x$as_lineno_1" != "x$as_lineno_2" &&
13784 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
13785 # Find who we are. Look in the path if we contain no path at all
13788 *[\\/]* ) as_myself
=$0 ;;
13789 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13790 for as_dir
in $PATH
13793 test -z "$as_dir" && as_dir
=.
13794 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13799 # We did not find ourselves, most probably we were run as `sh COMMAND'
13800 # in which case we are not to be found in the path.
13801 if test "x$as_myself" = x
; then
13804 if test ! -f "$as_myself"; then
13805 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13806 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13807 { (exit 1); exit 1; }; }
13809 case $CONFIG_SHELL in
13811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13812 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
13815 test -z "$as_dir" && as_dir
=.
13816 for as_base
in sh bash ksh sh5
; do
13819 if ("$as_dir/$as_base" -c '
13820 as_lineno_1=$LINENO
13821 as_lineno_2=$LINENO
13822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13823 test "x$as_lineno_1" != "x$as_lineno_2" &&
13824 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
13825 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
13826 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
13827 CONFIG_SHELL
=$as_dir/$as_base
13828 export CONFIG_SHELL
13829 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13837 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13838 # uniformly replaced by the line number. The first 'sed' inserts a
13839 # line-number line before each line; the second 'sed' does the real
13840 # work. The second script uses 'N' to pair each line-number line
13841 # with the numbered line, and appends trailing '-' during
13842 # substitution so that $LINENO is not a special case at line end.
13843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13844 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13845 sed '=' <$as_myself |
13850 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13853 s,^['$as_cr_digits']*\n,,
13854 ' >$as_me.lineno
&&
13855 chmod +x
$as_me.lineno ||
13856 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13857 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13858 { (exit 1); exit 1; }; }
13860 # Don't try to exec as it changes $[0], causing all sort of problems
13861 # (the dirname of $[0] is not the place where we might find the
13862 # original and so on. Autoconf is especially sensible to this).
13864 # Exit status is that of the last command.
13869 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13870 *c
*,-n*) ECHO_N
= ECHO_C
='
13872 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
13873 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
13876 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13882 rm -f conf$$ conf$$.exe conf$$.
file
13884 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13885 # We could just check for DJGPP; but this test a) works b) is more generic
13886 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13887 if test -f conf$$.exe
; then
13888 # Don't use ln at all; we don't have any links
13893 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13898 rm -f conf$$ conf$$.exe conf$$.
file
13900 if mkdir
-p .
2>/dev
/null
; then
13903 test -d .
/-p && rmdir .
/-p
13907 as_executable_p
="test -f"
13909 # Sed expression to map a string onto a valid CPP name.
13910 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13912 # Sed expression to map a string onto a valid variable name.
13913 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13917 # We need space, tab and new line, in precisely that order.
13927 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13928 # report actual input values of CONFIG_FILES etc. instead of their
13929 # values after options handling. Logging --version etc. is OK.
13933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13934 ## Running $as_me. ##
13939 This file was extended by $as_me, which was
13940 generated by GNU Autoconf 2.59. Invocation command line was
13942 CONFIG_FILES = $CONFIG_FILES
13943 CONFIG_HEADERS = $CONFIG_HEADERS
13944 CONFIG_LINKS = $CONFIG_LINKS
13945 CONFIG_COMMANDS = $CONFIG_COMMANDS
13949 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13953 # Files that config.status was made for.
13954 if test -n "$ac_config_files"; then
13955 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13958 if test -n "$ac_config_headers"; then
13959 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13962 if test -n "$ac_config_links"; then
13963 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13966 if test -n "$ac_config_commands"; then
13967 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13970 cat >>$CONFIG_STATUS <<\_ACEOF
13973 \`$as_me' instantiates files from templates according to the
13974 current configuration.
13976 Usage: $0 [OPTIONS] [FILE]...
13978 -h, --help print this help, then exit
13979 -V, --version print version number, then exit
13980 -q, --quiet do not print progress messages
13981 -d, --debug don't remove temporary files
13982 --recheck update $as_me by reconfiguring in the same conditions
13983 --file=FILE[:TEMPLATE]
13984 instantiate the configuration file FILE
13985 --header=FILE[:TEMPLATE]
13986 instantiate the configuration header FILE
13988 Configuration files:
13991 Configuration headers:
13994 Configuration commands:
13997 Report bugs to <bug-autoconf@gnu.org>."
14000 cat >>$CONFIG_STATUS <<_ACEOF
14003 configured by $0, generated by GNU Autoconf 2.59,
14004 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14006 Copyright (C) 2003 Free Software Foundation, Inc.
14007 This config.status script is free software; the Free Software Foundation
14008 gives unlimited permission to copy, distribute and modify it."
14013 cat >>$CONFIG_STATUS <<\_ACEOF
14014 # If no file are specified by the user, then we need to provide default
14015 # value. By we need to know if files were specified by the user.
14021 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
14022 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
14030 *) # This is not an option, so the user has probably given explicit
14033 ac_need_defaults
=false
;;
14037 # Handling of the options.
14039 cat >>$CONFIG_STATUS <<\_ACEOF
14040 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14042 --version |
--vers* |
-V )
14043 echo "$ac_cs_version"; exit 0 ;;
14045 # Conflict between --help and --header
14046 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14047 Try \`$0 --help' for more information." >&5
14048 echo "$as_me: error: ambiguous option: $1
14049 Try \`$0 --help' for more information." >&2;}
14050 { (exit 1); exit 1; }; };;
14051 --help |
--hel |
-h )
14052 echo "$ac_cs_usage"; exit 0 ;;
14053 --debug |
--d* |
-d )
14055 --file |
--fil |
--fi |
--f )
14057 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14058 ac_need_defaults
=false
;;
14059 --header |
--heade |
--head |
--hea )
14061 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14062 ac_need_defaults
=false
;;
14063 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14064 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14067 # This is an error.
14068 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14069 Try \`$0 --help' for more information." >&5
14070 echo "$as_me: error: unrecognized option: $1
14071 Try \`$0 --help' for more information." >&2;}
14072 { (exit 1); exit 1; }; } ;;
14074 *) ac_config_targets
="$ac_config_targets $1" ;;
14080 ac_configure_extra_args
=
14082 if $ac_cs_silent; then
14084 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14088 cat >>$CONFIG_STATUS <<_ACEOF
14089 if \$ac_cs_recheck; then
14090 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14091 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14096 cat >>$CONFIG_STATUS <<_ACEOF
14098 # INIT-COMMANDS section.
14107 cat >>$CONFIG_STATUS <<\_ACEOF
14108 for ac_config_target
in $ac_config_targets
14110 case "$ac_config_target" in
14111 # Handling of arguments.
14112 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14113 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14114 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14115 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14116 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14117 { (exit 1); exit 1; }; };;
14121 # If the user did not use the arguments to specify the items to instantiate,
14122 # then the envvar interface is used. Set only those that are not.
14123 # We use the long form for the default assignment because of an extremely
14124 # bizarre bug on SunOS 4.1.3.
14125 if $ac_need_defaults; then
14126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14131 # Have a temporary directory for convenience. Make it in the build tree
14132 # simply because there is no reason to put it here, and in addition,
14133 # creating and moving files from /tmp can sometimes cause problems.
14134 # Create a temporary directory, and hook for its removal unless debugging.
14137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14138 trap '{ (exit 1); exit 1; }' 1 2 13 15
14141 # Create a (secure) tmp directory for tmp files.
14144 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14145 test -n "$tmp" && test -d "$tmp"
14148 tmp
=.
/confstat$$
-$RANDOM
14149 (umask 077 && mkdir
$tmp)
14152 echo "$me: cannot create a temporary directory in ." >&2
14153 { (exit 1); exit 1; }
14158 cat >>$CONFIG_STATUS <<_ACEOF
14161 # CONFIG_FILES section.
14164 # No need to generate the scripts if there are no CONFIG_FILES.
14165 # This happens for instance when ./config.status config.h
14166 if test -n "\$CONFIG_FILES"; then
14167 # Protect against being on the right side of a sed subst in config.status.
14168 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14169 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14170 s,@SHELL@,$SHELL,;t t
14171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14177 s,@exec_prefix@,$exec_prefix,;t t
14178 s,@prefix@,$prefix,;t t
14179 s,@program_transform_name@,$program_transform_name,;t t
14180 s,@bindir@,$bindir,;t t
14181 s,@sbindir@,$sbindir,;t t
14182 s,@libexecdir@,$libexecdir,;t t
14183 s,@datadir@,$datadir,;t t
14184 s,@sysconfdir@,$sysconfdir,;t t
14185 s,@sharedstatedir@,$sharedstatedir,;t t
14186 s,@localstatedir@,$localstatedir,;t t
14187 s,@libdir@,$libdir,;t t
14188 s,@includedir@,$includedir,;t t
14189 s,@oldincludedir@,$oldincludedir,;t t
14190 s,@infodir@,$infodir,;t t
14191 s,@mandir@,$mandir,;t t
14192 s,@build_alias@,$build_alias,;t t
14193 s,@host_alias@,$host_alias,;t t
14194 s,@target_alias@,$target_alias,;t t
14195 s,@DEFS@,$DEFS,;t t
14196 s,@ECHO_C@,$ECHO_C,;t t
14197 s,@ECHO_N@,$ECHO_N,;t t
14198 s,@ECHO_T@,$ECHO_T,;t t
14199 s,@LIBS@,$LIBS,;t t
14200 s,@build@,$build,;t t
14201 s,@build_cpu@,$build_cpu,;t t
14202 s,@build_vendor@,$build_vendor,;t t
14203 s,@build_os@,$build_os,;t t
14204 s,@host@,$host,;t t
14205 s,@host_cpu@,$host_cpu,;t t
14206 s,@host_vendor@,$host_vendor,;t t
14207 s,@host_os@,$host_os,;t t
14208 s,@SHLICC2@,$SHLICC2,;t t
14210 s,@CFLAGS@,$CFLAGS,;t t
14211 s,@LDFLAGS@,$LDFLAGS,;t t
14212 s,@CPPFLAGS@,$CPPFLAGS,;t t
14213 s,@ac_ct_CC@,$ac_ct_CC,;t t
14214 s,@EXEEXT@,$EXEEXT,;t t
14215 s,@OBJEXT@,$OBJEXT,;t t
14217 s,@EGREP@,$EGREP,;t t
14218 s,@LIBOBJS@,$LIBOBJS,;t t
14219 s,@RANLIB@,$RANLIB,;t t
14220 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14221 s,@V_CCOPT@,$V_CCOPT,;t t
14222 s,@V_DEFS@,$V_DEFS,;t t
14223 s,@V_GROUP@,$V_GROUP,;t t
14224 s,@V_INCLS@,$V_INCLS,;t t
14225 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
14226 s,@LOCALSRC@,$LOCALSRC,;t t
14227 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14228 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14229 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14230 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14235 cat >>$CONFIG_STATUS <<\_ACEOF
14236 # Split the substitutions into bite-sized pieces for seds with
14237 # small command number limits, like on Digital OSF/1 and HP-UX.
14238 ac_max_sed_lines
=48
14239 ac_sed_frag
=1 # Number of current file.
14240 ac_beg
=1 # First line for current file.
14241 ac_end
=$ac_max_sed_lines # Line after last line for current file.
14244 while $ac_more_lines; do
14245 if test $ac_beg -gt 1; then
14246 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14248 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14250 if test ! -s $tmp/subs.frag
; then
14251 ac_more_lines
=false
14253 # The purpose of the label and of the branching condition is to
14254 # speed up the sed processing (if there are no `@' at all, there
14255 # is no need to browse any of the substitutions).
14256 # These are the two extra sed commands mentioned above.
14258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
14259 if test -z "$ac_sed_cmds"; then
14260 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
14262 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14264 ac_sed_frag
=`expr $ac_sed_frag + 1`
14266 ac_end
=`expr $ac_end + $ac_max_sed_lines`
14269 if test -z "$ac_sed_cmds"; then
14272 fi # test -n "$CONFIG_FILES"
14275 cat >>$CONFIG_STATUS <<\_ACEOF
14276 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
14277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14279 - |
*:- |
*:-:* ) # input from stdin
14281 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14282 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14283 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14284 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14285 * ) ac_file_in
=$ac_file.
in ;;
14288 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14289 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14291 X"$ac_file" : 'X\(//\)[^/]' \| \
14292 X"$ac_file" : 'X\(//\)$' \| \
14293 X"$ac_file" : 'X\(/\)' \| \
14294 . : '\(.\)' 2>/dev/null ||
14296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14298 /^X\(\/\/\)$/{ s//\1/; q; }
14299 /^X\(\/\).*/{ s//\1/; q; }
14301 { if $as_mkdir_p; then
14306 while test ! -d "$as_dir"; do
14307 as_dirs
="$as_dir $as_dirs"
14308 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14310 X"$as_dir" : 'X\(//\)[^/]' \| \
14311 X"$as_dir" : 'X\(//\)$' \| \
14312 X"$as_dir" : 'X\(/\)' \| \
14313 . : '\(.\)' 2>/dev/null ||
14315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14317 /^X\(\/\/\)$/{ s//\1/; q; }
14318 /^X\(\/\).*/{ s//\1/; q; }
14321 test ! -n "$as_dirs" || mkdir
$as_dirs
14322 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14324 { (exit 1); exit 1; }; }; }
14328 if test "$ac_dir" != .
; then
14329 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14330 # A "../" for each directory in $ac_dir_suffix.
14331 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14333 ac_dir_suffix
= ac_top_builddir
=
14337 .
) # No --srcdir option. We are building in place.
14339 if test -z "$ac_top_builddir"; then
14342 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14344 [\\/]* | ?
:[\\/]* ) # Absolute path.
14345 ac_srcdir
=$srcdir$ac_dir_suffix;
14346 ac_top_srcdir
=$srcdir ;;
14347 *) # Relative path.
14348 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14349 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14352 # Do not use `cd foo && pwd` to compute absolute paths, because
14353 # the directories may not exist.
14355 .
) ac_abs_builddir
="$ac_dir";;
14358 .
) ac_abs_builddir
=`pwd`;;
14359 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14360 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14363 case $ac_abs_builddir in
14364 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14366 case ${ac_top_builddir}.
in
14367 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14368 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14369 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14372 case $ac_abs_builddir in
14373 .
) ac_abs_srcdir
=$ac_srcdir;;
14376 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14377 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14378 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14381 case $ac_abs_builddir in
14382 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14384 case $ac_top_srcdir in
14385 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14386 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14387 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14393 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14394 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
14397 if test x
"$ac_file" != x-
; then
14398 { echo "$as_me:$LINENO: creating $ac_file" >&5
14399 echo "$as_me: creating $ac_file" >&6;}
14402 # Let's still pretend it is `configure' which instantiates (i.e., don't
14403 # use $as_me), people would be surprised to read:
14404 # /* config.h. Generated by config.status. */
14405 if test x
"$ac_file" = x-
; then
14408 configure_input
="$ac_file. "
14410 configure_input
=$configure_input"Generated from `echo $ac_file_in |
14411 sed 's,.*/,,'` by configure."
14413 # First look for the input files in the build tree, otherwise in the
14415 ac_file_inputs
=`IFS=:
14416 for f in $ac_file_in; do
14418 -) echo $tmp/stdin ;;
14420 # Absolute (can't be DOS-style, as IFS=:)
14421 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14422 echo "$as_me: error: cannot find input file: $f" >&2;}
14423 { (exit 1); exit 1; }; }
14426 if test -f "$f"; then
14429 elif test -f "$srcdir/$f"; then
14434 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14435 echo "$as_me: error: cannot find input file: $f" >&2;}
14436 { (exit 1); exit 1; }; }
14439 done` ||
{ (exit 1); exit 1; }
14441 cat >>$CONFIG_STATUS <<_ACEOF
14445 cat >>$CONFIG_STATUS <<\_ACEOF
14447 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14448 s
,@configure_input@
,$configure_input,;t t
14449 s
,@srcdir@
,$ac_srcdir,;t t
14450 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
14451 s
,@top_srcdir@
,$ac_top_srcdir,;t t
14452 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
14453 s
,@builddir@
,$ac_builddir,;t t
14454 s
,@abs_builddir@
,$ac_abs_builddir,;t t
14455 s
,@top_builddir@
,$ac_top_builddir,;t t
14456 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
14457 s
,@INSTALL@
,$ac_INSTALL,;t t
14458 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14460 if test x"$ac_file" != x-; then
14461 mv $tmp/out $ac_file
14469 cat >>$CONFIG_STATUS <<\_ACEOF
14472 # CONFIG_HEADER section.
14475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14478 # ac_d sets the value in "#define NAME VALUE" lines.
14479 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14480 ac_dB
='[ ].*$,\1#\2'
14483 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14484 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14485 ac_uB
='$,\1#\2define\3'
14489 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14492 - |
*:- |
*:-:* ) # input from stdin
14494 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14495 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14496 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14497 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14498 * ) ac_file_in
=$ac_file.
in ;;
14501 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
14502 echo "$as_me: creating $ac_file" >&6;}
14504 # First look for the input files in the build tree, otherwise in the
14506 ac_file_inputs
=`IFS=:
14507 for f in $ac_file_in; do
14509 -) echo $tmp/stdin ;;
14511 # Absolute (can't be DOS-style, as IFS=:)
14512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14513 echo "$as_me: error: cannot find input file: $f" >&2;}
14514 { (exit 1); exit 1; }; }
14515 # Do quote $f, to prevent DOS paths from being IFS'd.
14518 if test -f "$f"; then
14521 elif test -f "$srcdir/$f"; then
14526 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14527 echo "$as_me: error: cannot find input file: $f" >&2;}
14528 { (exit 1); exit 1; }; }
14531 done` ||
{ (exit 1); exit 1; }
14532 # Remove the trailing spaces.
14533 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14538 # `conftest.undefs', that substitutes the proper values into
14539 # config.h.in to produce config.h. The first handles `#define'
14540 # templates, and the second `#undef' templates.
14541 # And first: Protect against being on the right side of a sed subst in
14542 # config.status. Protect against being in an unquoted here document
14543 # in config.status.
14544 rm -f conftest.defines conftest.undefs
14545 # Using a here document instead of a string reduces the quoting nightmare.
14546 # Putting comments in sed scripts is not portable.
14548 # `end' is used to avoid that the second main sed command (meant for
14549 # 0-ary CPP macros) applies to n-ary macro definitions.
14550 # See the Autoconf documentation for `clear'.
14551 cat >confdef2sed.
sed <<\_ACEOF
14556 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14558 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14561 # If some macros were called several times there might be several times
14562 # the same #defines, which is useless. Nevertheless, we may not want to
14563 # sort them, since we want the *last* AC-DEFINE to be honored.
14564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14566 rm -f confdef2sed.sed
14568 # This sed command replaces #undef with comments. This is necessary, for
14569 # example, in the case of _POSIX_SOURCE, which is predefined and required
14570 # on some systems where configure will not decide to define it.
14571 cat >>conftest.undefs <<\_ACEOF
14572 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14575 # Break up conftest.defines because some shells have a limit on the size
14576 # of here documents, and old seds have small limits too (100 cmds).
14577 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14578 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14579 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14580 echo ' :' >>$CONFIG_STATUS
14581 rm -f conftest.tail
14582 while grep . conftest.defines >/dev/null
14584 # Write a limited-size here document to $tmp/defines.sed.
14585 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14586 # Speed up: don't consider the non `#define' lines.
14587 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14588 # Work around the forget-to-reset-the-flag bug.
14589 echo 't clr' >>$CONFIG_STATUS
14590 echo ': clr' >>$CONFIG_STATUS
14591 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
14593 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14595 mv $tmp/out $tmp/in
14597 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
14598 rm -f conftest.defines
14599 mv conftest.
tail conftest.defines
14601 rm -f conftest.defines
14602 echo ' fi # grep' >>$CONFIG_STATUS
14603 echo >>$CONFIG_STATUS
14605 # Break up conftest.undefs because some shells have a limit on the size
14606 # of here documents, and old seds have small limits too (100 cmds).
14607 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14608 rm -f conftest.
tail
14609 while grep . conftest.undefs
>/dev
/null
14611 # Write a limited-size here document to $tmp/undefs.sed.
14612 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14613 # Speed up: don't consider the non
`#undef'
14614 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14615 # Work around the forget-to-reset-the-flag bug.
14616 echo 't clr' >>$CONFIG_STATUS
14617 echo ': clr' >>$CONFIG_STATUS
14618 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14620 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14622 mv $tmp/out $tmp/in
14624 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14625 rm -f conftest.undefs
14626 mv conftest.tail conftest.undefs
14628 rm -f conftest.undefs
14630 cat >>$CONFIG_STATUS <<\_ACEOF
14631 # Let's still pretend it is `configure
' which instantiates (i.e., don't
14632 # use $as_me), people would be surprised to read:
14633 # /* config.h. Generated by config.status. */
14634 if test x
"$ac_file" = x-
; then
14635 echo "/* Generated by configure. */" >$tmp/config.h
14637 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14639 cat $tmp/in >>$tmp/config.h
14641 if test x
"$ac_file" != x-
; then
14642 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
14643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14644 echo "$as_me: $ac_file is unchanged" >&6;}
14646 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648 X"$ac_file" : 'X\(//\)[^/]' \| \
14649 X"$ac_file" : 'X\(//\)$' \| \
14650 X"$ac_file" : 'X\(/\)' \| \
14651 . : '\(.\)' 2>/dev/null ||
14653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14655 /^X\(\/\/\)$/{ s//\1/; q; }
14656 /^X\(\/\).*/{ s//\1/; q; }
14658 { if $as_mkdir_p; then
14663 while test ! -d "$as_dir"; do
14664 as_dirs
="$as_dir $as_dirs"
14665 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14667 X"$as_dir" : 'X\(//\)[^/]' \| \
14668 X"$as_dir" : 'X\(//\)$' \| \
14669 X"$as_dir" : 'X\(/\)' \| \
14670 . : '\(.\)' 2>/dev/null ||
14672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14674 /^X\(\/\/\)$/{ s//\1/; q; }
14675 /^X\(\/\).*/{ s//\1/; q; }
14678 test ! -n "$as_dirs" || mkdir
$as_dirs
14679 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14681 { (exit 1); exit 1; }; }; }
14684 mv $tmp/config.h
$ac_file
14688 rm -f $tmp/config.h
14692 cat >>$CONFIG_STATUS <<\_ACEOF
14695 # CONFIG_COMMANDS section.
14697 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
14698 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
14699 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14700 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
14701 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14702 X"$ac_dest" : 'X\(//\)[^/]' \| \
14703 X"$ac_dest" : 'X\(//\)$' \| \
14704 X"$ac_dest" : 'X\(/\)' \| \
14705 . : '\(.\)' 2>/dev/null ||
14707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14709 /^X\(\/\/\)$/{ s//\1/; q; }
14710 /^X\(\/\).*/{ s//\1/; q; }
14712 { if $as_mkdir_p; then
14717 while test ! -d "$as_dir"; do
14718 as_dirs
="$as_dir $as_dirs"
14719 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14721 X"$as_dir" : 'X\(//\)[^/]' \| \
14722 X"$as_dir" : 'X\(//\)$' \| \
14723 X"$as_dir" : 'X\(/\)' \| \
14724 . : '\(.\)' 2>/dev/null ||
14726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14728 /^X\(\/\/\)$/{ s//\1/; q; }
14729 /^X\(\/\).*/{ s//\1/; q; }
14732 test ! -n "$as_dirs" || mkdir
$as_dirs
14733 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14734 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14735 { (exit 1); exit 1; }; }; }
14739 if test "$ac_dir" != .
; then
14740 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14741 # A "../" for each directory in $ac_dir_suffix.
14742 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14744 ac_dir_suffix
= ac_top_builddir
=
14748 .
) # No --srcdir option. We are building in place.
14750 if test -z "$ac_top_builddir"; then
14753 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14755 [\\/]* | ?
:[\\/]* ) # Absolute path.
14756 ac_srcdir
=$srcdir$ac_dir_suffix;
14757 ac_top_srcdir
=$srcdir ;;
14758 *) # Relative path.
14759 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14760 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14763 # Do not use `cd foo && pwd` to compute absolute paths, because
14764 # the directories may not exist.
14766 .
) ac_abs_builddir
="$ac_dir";;
14769 .
) ac_abs_builddir
=`pwd`;;
14770 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14771 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14774 case $ac_abs_builddir in
14775 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14777 case ${ac_top_builddir}.
in
14778 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14779 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14780 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14783 case $ac_abs_builddir in
14784 .
) ac_abs_srcdir
=$ac_srcdir;;
14787 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14788 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14789 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14792 case $ac_abs_builddir in
14793 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14795 case $ac_top_srcdir in
14796 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14797 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14798 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14803 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14804 echo "$as_me: executing $ac_dest commands" >&6;}
14806 default-1
) if test -f .devel
; then
14807 echo timestamp
> stamp-h
14808 cat Makefile-devel-adds
>> Makefile
14815 cat >>$CONFIG_STATUS <<\_ACEOF
14817 { (exit 0); exit 0; }
14819 chmod +x
$CONFIG_STATUS
14820 ac_clean_files
=$ac_clean_files_save
14823 # configure is writing to config.log, and then calls config.status.
14824 # config.status does its own redirection, appending to config.log.
14825 # Unfortunately, on DOS this fails, as config.log is still kept open
14826 # by configure, so config.status won't be able to write to it; its
14827 # output is simply discarded. So we exec the FD to /dev/null,
14828 # effectively closing config.log, so it can be properly (re)opened and
14829 # appended to by config.status. When coming back to configure, we
14830 # need to make the FD available again.
14831 if test "$no_create" != yes; then
14833 ac_config_status_args
=
14834 test "$silent" = yes &&
14835 ac_config_status_args
="$ac_config_status_args --quiet"
14837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14840 # would make configure fail if this is the last instruction.
14841 $ac_cs_success ||
{ (exit 1); exit 1; }