2 # From configure.in Revision: 1.194 .
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 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
859 --without-crypto disable crypto support
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
870 Use these variables to override the choices made by `configure' or to
help
871 it to
find libraries and programs with nonstandard names
/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
880 test -d $ac_dir ||
continue
883 if test "$ac_dir" != .
; then
884 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix
= ac_top_builddir
=
892 .
) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?
:[\\/]* ) # Absolute path.
900 ac_srcdir
=$srcdir$ac_dir_suffix;
901 ac_top_srcdir
=$srcdir ;;
903 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .
) ac_abs_builddir
="$ac_dir";;
913 .
) ac_abs_builddir
=`pwd`;;
914 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
915 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
921 case ${ac_top_builddir}.
in
922 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
923 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
924 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
927 case $ac_abs_builddir in
928 .
) ac_abs_srcdir
=$ac_srcdir;;
931 .
) ac_abs_srcdir
=$ac_abs_builddir;;
932 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
933 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
941 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu
; then
950 $SHELL $ac_srcdir/configure.gnu
--help=recursive
951 elif test -f $ac_srcdir/configure
; then
953 $SHELL $ac_srcdir/configure
--help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.
in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright
(C
) 2003 Free Software Foundation
, Inc.
970 This configure
script is free software
; the Free Software Foundation
971 gives unlimited permission to copy
, distribute and modify it.
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1015 test -z "$as_dir" && as_dir
=.
1016 echo "PATH: $as_dir"
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_must_keep_next
=false
1046 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1047 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1048 |
-silent |
--silent |
--silen |
--sile |
--sil)
1050 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true
; then
1058 ac_must_keep_next
=false
# Got value, back to normal.
1061 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1062 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1063 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1064 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 -* ) ac_must_keep_next
=true
;;
1072 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1079 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1080 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1098 # The following way of writing the cache mishandles newlines in values,
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1121 for ac_var in $ac_subst_vars
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -n "$ac_subst_files"; then
1135 for ac_var in $ac_subst_files
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -s confdefs.h; then
1150 sed "/^$/d" confdefs.h | sort
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 for ac_signal
in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest
* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h
<<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 cat >>confdefs.h
<<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 cat >>confdefs.h
<<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 cat >>confdefs.h
<<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 cat >>confdefs.h
<<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE
; then
1202 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1204 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file
in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1223 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1224 *) . .
/$cache_file;;
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1233 # Check that the precious variables saved in the cache have kept the same
1235 ac_cache_corrupted
=false
1236 for ac_var
in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1239 eval ac_new_set
=\
$ac_env_${ac_var}_set
1240 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val
="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted
=: ;;
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted
=: ;;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted
=:
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1266 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg
=$ac_var=$ac_new_val ;;
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1285 ac_cpp
='$CPP $CPPFLAGS'
1286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1310 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1311 if test -f $ac_dir/install-sh
; then
1313 ac_install_sh
="$ac_aux_dir/install-sh -c"
1315 elif test -f $ac_dir/install.sh
; then
1317 ac_install_sh
="$ac_aux_dir/install.sh -c"
1319 elif test -f $ac_dir/shtool
; then
1321 ac_install_sh
="$ac_aux_dir/shtool install -c"
1325 if test -z "$ac_aux_dir"; then
1326 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1327 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1328 { (exit 1); exit 1; }; }
1330 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1331 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1332 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1334 # Make sure we can run config.sub.
1335 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1336 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1337 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1338 { (exit 1); exit 1; }; }
1340 echo "$as_me:$LINENO: checking build system type" >&5
1341 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1342 if test "${ac_cv_build+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 ac_cv_build_alias
=$build_alias
1346 test -z "$ac_cv_build_alias" &&
1347 ac_cv_build_alias
=`$ac_config_guess`
1348 test -z "$ac_cv_build_alias" &&
1349 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1350 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1351 { (exit 1); exit 1; }; }
1352 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1353 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1354 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1355 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1359 echo "${ECHO_T}$ac_cv_build" >&6
1361 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1362 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1363 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366 echo "$as_me:$LINENO: checking host system type" >&5
1367 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1368 if test "${ac_cv_host+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 ac_cv_host_alias
=$host_alias
1372 test -z "$ac_cv_host_alias" &&
1373 ac_cv_host_alias
=$ac_cv_build_alias
1374 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1381 echo "${ECHO_T}$ac_cv_host" >&6
1383 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1394 # Check whether --with-gcc or --without-gcc was given.
1395 if test "${with_gcc+set}" = set; then
1401 if test "${srcdir}" != "." ; then
1402 V_INCLS
="-I\$(srcdir)"
1404 if test "${CFLAGS+set}" = set; then
1405 LBL_CFLAGS
="$CFLAGS"
1407 if test -z "$CC" ; then
1411 # Extract the first word of "shlicc2", so it can be a program name with args.
1412 set dummy shlicc2
; ac_word
=$2
1413 echo "$as_me:$LINENO: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 if test -n "$SHLICC2"; then
1419 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1425 test -z "$as_dir" && as_dir
=.
1426 for ac_exec_ext
in '' $ac_executable_extensions; do
1427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428 ac_cv_prog_SHLICC2
="yes"
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1438 SHLICC2
=$ac_cv_prog_SHLICC2
1439 if test -n "$SHLICC2"; then
1440 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1441 echo "${ECHO_T}$SHLICC2" >&6
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1447 if test $SHLICC2 = yes ; then
1454 if test -z "$CC" -a "$with_gcc" = no
; then
1459 ac_cpp
='$CPP $CPPFLAGS'
1460 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC
="$CC" # Let the user override the test.
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 for ac_exec_ext
in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1500 if test -z "$ac_cv_prog_CC"; then
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc
; ac_word
=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir
=.
1517 for ac_exec_ext
in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC
="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC
="$CC" # Let the user override the test.
1554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir
=.
1559 for ac_exec_ext
in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1580 if test -z "$ac_cv_prog_CC"; then
1582 # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc
; ac_word
=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir
=.
1597 for ac_exec_ext
in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC
="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1623 if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc
; ac_word
=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC
="$CC" # Let the user override the test.
1635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir
=.
1640 for ac_exec_ext
in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected
=yes
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy
$ac_cv_prog_CC
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1662 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC
="$CC" # Let the user override the test.
1691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1695 test -z "$as_dir" && as_dir
=.
1696 for ac_exec_ext
in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1716 test -n "$CC" && break
1719 if test -z "$CC"; then
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy
$ac_prog; ac_word
=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir
=.
1738 for ac_exec_ext
in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC
="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$ac_ct_CC" && break
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776 ac_compiler
=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1793 cat >conftest.
$ac_ext <<_ACEOF
1796 cat confdefs.h
>>conftest.
$ac_ext
1797 cat >>conftest.
$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 ac_clean_files_save
=$ac_clean_files
1809 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1813 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 # b.out is created by i960 compilers.
1829 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1831 test -f "$ac_file" ||
continue
1833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1836 # This is the source file.
1839 # We found the default executable, but exeext='' is most
1843 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.
$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1864 ac_exeext
=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try
='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 if test "$cross_compiling" = maybe
; then
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1899 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1900 ac_clean_files
=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1919 for ac_file
in conftest.exe conftest conftest.
*; do
1920 test -f "$ac_file" ||
continue
1922 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1923 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest
$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1941 rm -f conftest.
$ac_ext
1942 EXEEXT
=$ac_cv_exeext
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.
$ac_ext <<_ACEOF
1952 cat confdefs.h
>>conftest.
$ac_ext
1953 cat >>conftest.
$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1972 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1973 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.
$ac_ext >&5
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1988 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT
=$ac_cv_objext
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 cat >conftest.
$ac_ext <<_ACEOF
2002 cat confdefs.h
>>conftest.
$ac_ext
2003 cat >>conftest.
$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2017 rm -f conftest.
$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2021 grep -v '^ *+' conftest.er1
>conftest.err
2023 cat conftest.err
>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try
='test -z "$ac_c_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try
='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.
$ac_ext >&5
2046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2047 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS
=${CFLAGS+set}
2054 ac_save_CFLAGS
=$CFLAGS
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.
$ac_ext <<_ACEOF
2064 cat confdefs.h
>>conftest.
$ac_ext
2065 cat >>conftest.
$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2076 rm -f conftest.
$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1
>conftest.err
2082 cat conftest.err
>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try
='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try
='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.
$ac_ext >&5
2105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109 if test "$ac_test_CFLAGS" = set; then
2110 CFLAGS
=$ac_save_CFLAGS
2111 elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2118 if test "$GCC" = yes; then
2124 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 ac_cv_prog_cc_stdc
=no
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2139 #include <sys/types.h>
2140 #include <sys/stat.h>
2141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2142 struct buf { int x; };
2143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2155 s = g (p, va_arg (v,int));
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not '\xHH' hex character constants.
2162 These don't provoke an error unfortunately, instead are silently treated
2163 as 'x'. The following induces an error, until -std1 is added to get
2164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2165 array size at least. It's necessary to write '\x00'==0 to get something
2166 that's true only with -std1. */
2167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2183 # Don't try gcc -ansi; that turns off useful extensions and
2184 # breaks some systems' header files.
2185 # AIX -qlanglvl=ansi
2186 # Ultrix and OSF/1 -std1
2187 # HP-UX 10.20 and later -Ae
2188 # HP-UX older versions -Aa -D_HPUX_SOURCE
2189 # SVR4 -Xc -D__EXTENSIONS__
2190 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2192 CC
="$ac_save_CC $ac_arg"
2193 rm -f conftest.
$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1
>conftest.err
2199 cat conftest.err
>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try
='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try
='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_cv_prog_cc_stdc
=$ac_arg
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.
$ac_ext >&5
2222 rm -f conftest.err conftest.
$ac_objext
2224 rm -f conftest.
$ac_ext conftest.
$ac_objext
2229 case "x$ac_cv_prog_cc_stdc" in
2231 echo "$as_me:$LINENO: result: none needed" >&5
2232 echo "${ECHO_T}none needed" >&6 ;;
2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2239 # Some people use a C++ compiler to compile C. Since we use `exit',
2240 # in C++ we need to declare it. In case someone uses the same compiler
2241 # for both compiling C and C++ we need to have the C++ compiler decide
2242 # the declaration of exit, since it's the most demanding environment.
2243 cat >conftest.
$ac_ext <<_ACEOF
2248 rm -f conftest.
$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2252 grep -v '^ *+' conftest.er1
>conftest.err
2254 cat conftest.err
>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try
='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try
='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration
in \
2272 'extern "C" void std::exit (int) throw (); using std::exit;' \
2273 'extern "C" void std::exit (int); using std::exit;' \
2274 'extern "C" void exit (int) throw ();' \
2275 'extern "C" void exit (int);' \
2278 cat >conftest.
$ac_ext <<_ACEOF
2281 cat confdefs.h
>>conftest.
$ac_ext
2282 cat >>conftest.
$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2294 rm -f conftest.
$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2298 grep -v '^ *+' conftest.er1
>conftest.err
2300 cat conftest.err
>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try
='test -z "$ac_c_werror_flag"
2304 || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try
='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.
$ac_ext >&5
2323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2324 cat >conftest.
$ac_ext <<_ACEOF
2327 cat confdefs.h
>>conftest.
$ac_ext
2328 cat >>conftest.
$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2339 rm -f conftest.
$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2343 grep -v '^ *+' conftest.er1
>conftest.err
2345 cat conftest.err
>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try
='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try
='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.
$ac_ext >&5
2367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2370 if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.
$ac_ext >&5
2381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2383 ac_cpp
='$CPP $CPPFLAGS'
2384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2388 if test "$GCC" = yes ; then
2389 if test "$SHLICC2" = yes ; then
2390 ac_cv_lbl_gcc_vers
=2
2393 echo "$as_me:$LINENO: checking gcc version" >&5
2394 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2395 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2399 sed -e '/^gcc version /!d' \
2400 -e 's/^gcc version //' \
2401 -e 's/ .*//' -e 's/^[^0-9]*//' \
2405 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2406 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2407 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2412 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2413 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2414 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cat >conftest.
$ac_ext <<_ACEOF
2421 cat confdefs.h
>>conftest.
$ac_ext
2422 cat >>conftest.
$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2424 #include <sys/types.h>
2428 int frob(int, char *)
2433 rm -f conftest.
$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>conftest.er1
2437 grep -v '^ *+' conftest.er1
>conftest.err
2439 cat conftest.err
>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try
='test -z "$ac_c_werror_flag"
2443 || test ! -s conftest.err'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try
='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2455 ac_cv_lbl_cc_ansi_prototypes
=yes
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.
$ac_ext >&5
2460 ac_cv_lbl_cc_ansi_prototypes
=no
2462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2465 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2466 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2467 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2471 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2472 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2473 savedcflags
="$CFLAGS"
2474 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2475 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.
$ac_ext <<_ACEOF
2481 cat confdefs.h
>>conftest.
$ac_ext
2482 cat >>conftest.
$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 #include <sys/types.h>
2488 int frob(int, char *)
2493 rm -f conftest.
$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1
>conftest.err
2499 cat conftest.err
>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try
='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try
='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_lbl_cc_hpux_cc_aa
=yes
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2520 ac_cv_lbl_cc_hpux_cc_aa
=no
2522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2525 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2526 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2527 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2528 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2529 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2530 { (exit 1); exit 1; }; }
2532 CFLAGS
="$savedcflags"
2533 V_CCOPT
="-Aa $V_CCOPT"
2534 cat >>confdefs.h
<<\_ACEOF
2535 #define _HPUX_SOURCE 1
2541 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2542 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2543 { (exit 1); exit 1; }; }
2547 V_INCLS
="$V_INCLS -I/usr/local/include"
2548 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2553 V_CCOPT
="$V_CCOPT -xansi -signed -O"
2557 V_CCOPT
="$V_CCOPT -std1 -O"
2561 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2562 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2563 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 cat >conftest.
$ac_ext <<_ACEOF
2569 cat confdefs.h
>>conftest.
$ac_ext
2570 cat >>conftest.
$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 #include <sys/types.h>
2576 struct a { int b; };
2577 void c(const struct a *)
2582 rm -f conftest.
$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2586 grep -v '^ *+' conftest.er1
>conftest.err
2588 cat conftest.err
>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try
='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try
='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_lbl_cc_const_proto
=yes
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.
$ac_ext >&5
2609 ac_cv_lbl_cc_const_proto
=no
2611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2614 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2615 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2616 if test $ac_cv_lbl_cc_const_proto = no
; then
2617 cat >>confdefs.h
<<\_ACEOF
2626 echo "$as_me:$LINENO: checking for inline" >&5
2627 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2628 if test "${ac_cv_lbl_inline+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 for ac_lbl_inline
in inline __inline__ __inline
2636 cat >conftest.
$ac_ext <<_ACEOF
2639 cat confdefs.h
>>conftest.
$ac_ext
2640 cat >>conftest.
$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642 #define inline $ac_lbl_inline
2643 static inline struct iltest *foo(void);
2649 static inline struct iltest *
2652 static struct iltest xxx;
2664 rm -f conftest.
$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2668 grep -v '^ *+' conftest.er1
>conftest.err
2670 cat conftest.err
>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try
='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try
='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 ac_lbl_cc_inline
=yes
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.
$ac_ext >&5
2692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2693 if test "$ac_lbl_cc_inline" = yes ; then
2697 if test "$ac_lbl_cc_inline" = yes ; then
2698 ac_cv_lbl_inline
=$ac_lbl_inline
2702 if test ! -z "$ac_cv_lbl_inline" ; then
2703 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2704 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 cat >>confdefs.h
<<_ACEOF
2711 #define inline $ac_cv_lbl_inline
2715 echo "$as_me:$LINENO: checking for __attribute__" >&5
2716 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2717 if test "${ac_cv___attribute__+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 cat >conftest.
$ac_ext <<_ACEOF
2724 cat confdefs.h
>>conftest.
$ac_ext
2725 cat >>conftest.
$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2730 static void foo(void) __attribute__ ((noreturn));
2739 main(int argc, char **argv)
2745 rm -f conftest.
$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>conftest.er1
2749 grep -v '^ *+' conftest.er1
>conftest.err
2751 cat conftest.err
>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try
='test -z "$ac_c_werror_flag"
2755 || test ! -s conftest.err'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try
='test -s conftest.$ac_objext'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 ac_cv___attribute__
=yes
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.
$ac_ext >&5
2772 ac_cv___attribute__
=no
2774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2777 if test "$ac_cv___attribute__" = "yes"; then
2779 cat >>confdefs.h
<<\_ACEOF
2780 #define HAVE___ATTRIBUTE__ 1
2783 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2785 V_DEFS
="$V_DEFS -D_U_=\"\""
2787 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2788 echo "${ECHO_T}$ac_cv___attribute__" >&6
2791 ac_cpp
='$CPP $CPPFLAGS'
2792 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2795 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2796 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2797 # On Suns, sometimes $CPP names a directory.
2798 if test -n "$CPP" && test -d "$CPP"; then
2801 if test -z "$CPP"; then
2802 if test "${ac_cv_prog_CPP+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 # Double quotes because CPP needs to be expanded
2806 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2809 for ac_c_preproc_warn_flag
in '' yes
2811 # Use a header file that comes with gcc, so configuring glibc
2812 # with a fresh cross-compiler works.
2813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814 # <limits.h> exists even on freestanding compilers.
2815 # On the NeXT, cc -E runs the code through the compiler's parser,
2816 # not just through cpp. "Syntax error" is here to catch this case.
2817 cat >conftest.
$ac_ext <<_ACEOF
2820 cat confdefs.h
>>conftest.
$ac_ext
2821 cat >>conftest.
$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2824 # include <limits.h>
2826 # include <assert.h>
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2833 grep -v '^ *+' conftest.er1
>conftest.err
2835 cat conftest.err
>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev
/null
; then
2838 if test -s conftest.err
; then
2839 ac_cpp_err
=$ac_c_preproc_warn_flag
2840 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2847 if test -z "$ac_cpp_err"; then
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.
$ac_ext >&5
2853 # Broken: fails on valid input.
2856 rm -f conftest.err conftest.
$ac_ext
2858 # OK, works on sane cases. Now check whether non-existent headers
2859 # can be detected and how.
2860 cat >conftest.
$ac_ext <<_ACEOF
2863 cat confdefs.h
>>conftest.
$ac_ext
2864 cat >>conftest.
$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <ac_nonexistent.h>
2868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1
>conftest.err
2873 cat conftest.err
>&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } >/dev
/null
; then
2876 if test -s conftest.err
; then
2877 ac_cpp_err
=$ac_c_preproc_warn_flag
2878 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2885 if test -z "$ac_cpp_err"; then
2886 # Broken: success on invalid input.
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.
$ac_ext >&5
2892 # Passes both tests.
2896 rm -f conftest.err conftest.
$ac_ext
2899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900 rm -f conftest.err conftest.
$ac_ext
2901 if $ac_preproc_ok; then
2913 echo "$as_me:$LINENO: result: $CPP" >&5
2914 echo "${ECHO_T}$CPP" >&6
2916 for ac_c_preproc_warn_flag
in '' yes
2918 # Use a header file that comes with gcc, so configuring glibc
2919 # with a fresh cross-compiler works.
2920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2921 # <limits.h> exists even on freestanding compilers.
2922 # On the NeXT, cc -E runs the code through the compiler's parser,
2923 # not just through cpp. "Syntax error" is here to catch this case.
2924 cat >conftest.
$ac_ext <<_ACEOF
2927 cat confdefs.h
>>conftest.
$ac_ext
2928 cat >>conftest.
$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2931 # include <limits.h>
2933 # include <assert.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1
>conftest.err
2942 cat conftest.err
>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev
/null
; then
2945 if test -s conftest.err
; then
2946 ac_cpp_err
=$ac_c_preproc_warn_flag
2947 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2954 if test -z "$ac_cpp_err"; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.
$ac_ext >&5
2960 # Broken: fails on valid input.
2963 rm -f conftest.err conftest.
$ac_ext
2965 # OK, works on sane cases. Now check whether non-existent headers
2966 # can be detected and how.
2967 cat >conftest.
$ac_ext <<_ACEOF
2970 cat confdefs.h
>>conftest.
$ac_ext
2971 cat >>conftest.
$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #include <ac_nonexistent.h>
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1
>conftest.err
2980 cat conftest.err
>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } >/dev
/null
; then
2983 if test -s conftest.err
; then
2984 ac_cpp_err
=$ac_c_preproc_warn_flag
2985 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2992 if test -z "$ac_cpp_err"; then
2993 # Broken: success on invalid input.
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.
$ac_ext >&5
2999 # Passes both tests.
3003 rm -f conftest.err conftest.
$ac_ext
3006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3007 rm -f conftest.err conftest.
$ac_ext
3008 if $ac_preproc_ok; then
3011 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3019 ac_cpp
='$CPP $CPPFLAGS'
3020 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3025 echo "$as_me:$LINENO: checking for egrep" >&5
3026 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3027 if test "${ac_cv_prog_egrep+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3031 then ac_cv_prog_egrep
='grep -E'
3032 else ac_cv_prog_egrep
='egrep'
3035 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3036 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3037 EGREP
=$ac_cv_prog_egrep
3040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3042 if test "${ac_cv_header_stdc+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 cat >conftest.
$ac_ext <<_ACEOF
3048 cat confdefs.h
>>conftest.
$ac_ext
3049 cat >>conftest.
$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3064 rm -f conftest.
$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>conftest.er1
3068 grep -v '^ *+' conftest.er1
>conftest.err
3070 cat conftest.err
>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } &&
3073 { ac_try
='test -z "$ac_c_werror_flag"
3074 || test ! -s conftest.err'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try
='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 ac_cv_header_stdc
=yes
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.
$ac_ext >&5
3091 ac_cv_header_stdc
=no
3093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3095 if test $ac_cv_header_stdc = yes; then
3096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3097 cat >conftest.
$ac_ext <<_ACEOF
3100 cat confdefs.h
>>conftest.
$ac_ext
3101 cat >>conftest.
$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107 $EGREP "memchr" >/dev
/null
2>&1; then
3110 ac_cv_header_stdc
=no
3116 if test $ac_cv_header_stdc = yes; then
3117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3118 cat >conftest.
$ac_ext <<_ACEOF
3121 cat confdefs.h
>>conftest.
$ac_ext
3122 cat >>conftest.
$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128 $EGREP "free" >/dev
/null
2>&1; then
3131 ac_cv_header_stdc
=no
3137 if test $ac_cv_header_stdc = yes; then
3138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3139 if test "$cross_compiling" = yes; then
3142 cat >conftest.
$ac_ext <<_ACEOF
3145 cat confdefs.h
>>conftest.
$ac_ext
3146 cat >>conftest.
$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 #if ((' ' & 0x0FF) == 0x020)
3150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3153 # define ISLOWER(c) \
3154 (('a' <= (c) && (c) <= 'i') \
3155 || ('j' <= (c) && (c) <= 'r') \
3156 || ('s' <= (c) && (c) <= 'z'))
3157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3165 for (i = 0; i < 256; i++)
3166 if (XOR (islower (i), ISLOWER (i))
3167 || toupper (i) != TOUPPER (i))
3172 rm -f conftest
$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3185 echo "$as_me: program exited with status $ac_status" >&5
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.
$ac_ext >&5
3190 ac_cv_header_stdc
=no
3192 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3198 if test $ac_cv_header_stdc = yes; then
3200 cat >>confdefs.h
<<\_ACEOF
3201 #define STDC_HEADERS 1
3206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3216 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3217 inttypes.h stdint.h unistd.h
3219 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3220 echo "$as_me:$LINENO: checking for $ac_header" >&5
3221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 cat >conftest.
$ac_ext <<_ACEOF
3228 cat confdefs.h
>>conftest.
$ac_ext
3229 cat >>conftest.
$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 $ac_includes_default
3233 #include <$ac_header>
3235 rm -f conftest.
$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>conftest.er1
3239 grep -v '^ *+' conftest.er1
>conftest.err
3241 cat conftest.err
>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try
='test -z "$ac_c_werror_flag"
3245 || test ! -s conftest.err'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; } &&
3251 { ac_try
='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 eval "$as_ac_Header=yes"
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.
$ac_ext >&5
3262 eval "$as_ac_Header=no"
3264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3269 cat >>confdefs.h
<<_ACEOF
3270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3281 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3283 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3285 echo "$as_me:$LINENO: checking for $ac_header" >&5
3286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3293 # Is the header compilable?
3294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3296 cat >conftest.
$ac_ext <<_ACEOF
3299 cat confdefs.h
>>conftest.
$ac_ext
3300 cat >>conftest.
$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 $ac_includes_default
3303 #include <$ac_header>
3305 rm -f conftest.
$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>conftest.er1
3309 grep -v '^ *+' conftest.er1
>conftest.err
3311 cat conftest.err
>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try
='test -z "$ac_c_werror_flag"
3315 || test ! -s conftest.err'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try
='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_header_compiler
=yes
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.
$ac_ext >&5
3332 ac_header_compiler
=no
3334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3336 echo "${ECHO_T}$ac_header_compiler" >&6
3338 # Is the header present?
3339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3341 cat >conftest.
$ac_ext <<_ACEOF
3344 cat confdefs.h
>>conftest.
$ac_ext
3345 cat >>conftest.
$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <$ac_header>
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3352 grep -v '^ *+' conftest.er1
>conftest.err
3354 cat conftest.err
>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev
/null
; then
3357 if test -s conftest.err
; then
3358 ac_cpp_err
=$ac_c_preproc_warn_flag
3359 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3366 if test -z "$ac_cpp_err"; then
3367 ac_header_preproc
=yes
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.
$ac_ext >&5
3372 ac_header_preproc
=no
3374 rm -f conftest.err conftest.
$ac_ext
3375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3376 echo "${ECHO_T}$ac_header_preproc" >&6
3378 # So? What about this header?
3379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3385 ac_header_preproc
=yes
3388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3402 ## ------------------------------------------ ##
3403 ## Report this to the AC_PACKAGE_NAME lists. ##
3404 ## ------------------------------------------ ##
3407 sed "s/^/$as_me: WARNING: /" >&2
3410 echo "$as_me:$LINENO: checking for $ac_header" >&5
3411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 eval "$as_ac_Header=\$ac_header_preproc"
3417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3422 cat >>confdefs.h
<<_ACEOF
3423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3431 for ac_header
in netinet
/if_ether.h
3433 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434 echo "$as_me:$LINENO: checking for $ac_header" >&5
3435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 cat >conftest.
$ac_ext <<_ACEOF
3442 cat confdefs.h
>>conftest.
$ac_ext
3443 cat >>conftest.
$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 #include <sys/types.h>
3446 #include <sys/socket.h>
3448 #include <$ac_header>
3450 rm -f conftest.
$ac_objext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452 (eval $ac_compile) 2>conftest.er1
3454 grep -v '^ *+' conftest.er1
>conftest.err
3456 cat conftest.err
>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try
='test -z "$ac_c_werror_flag"
3460 || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try
='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 eval "$as_ac_Header=yes"
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.
$ac_ext >&5
3477 eval "$as_ac_Header=no"
3479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3484 cat >>confdefs.h
<<_ACEOF
3485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3492 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3494 # The simple test didn't work.
3495 # Do we need to include <net/if.h> first?
3496 # Unset ac_cv_header_netinet_if_ether_h so we don't
3497 # treat the previous failure as a cached value and
3498 # suppress the next test.
3500 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3501 echo "$as_me: Rechecking with some additional includes" >&6;}
3502 unset ac_cv_header_netinet_if_ether_h
3504 for ac_header
in netinet
/if_ether.h
3506 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3507 echo "$as_me:$LINENO: checking for $ac_header" >&5
3508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 cat >conftest.
$ac_ext <<_ACEOF
3515 cat confdefs.h
>>conftest.
$ac_ext
3516 cat >>conftest.
$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <sys/types.h>
3519 #include <sys/socket.h>
3520 #include <netinet/in.h>
3525 #include <$ac_header>
3527 rm -f conftest.
$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>conftest.er1
3531 grep -v '^ *+' conftest.er1
>conftest.err
3533 cat conftest.err
>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try
='test -z "$ac_c_werror_flag"
3537 || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try
='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 eval "$as_ac_Header=yes"
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.
$ac_ext >&5
3554 eval "$as_ac_Header=no"
3556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3561 cat >>confdefs.h
<<_ACEOF
3562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3571 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3573 if test "${ac_cv_header_time+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 cat >conftest.
$ac_ext <<_ACEOF
3579 cat confdefs.h
>>conftest.
$ac_ext
3580 cat >>conftest.
$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <sys/types.h>
3583 #include <sys/time.h>
3589 if ((struct tm *) 0)
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 ac_cv_header_time
=yes
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.
$ac_ext >&5
3622 ac_cv_header_time
=no
3624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3627 echo "${ECHO_T}$ac_cv_header_time" >&6
3628 if test $ac_cv_header_time = yes; then
3630 cat >>confdefs.h
<<\_ACEOF
3631 #define TIME_WITH_SYS_TIME 1
3640 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3641 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3642 if test "$cross_compiling" = yes; then
3643 if test "${ac_cv_linux_vers+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 ac_cv_linux_vers
=unknown
3650 if test "${ac_cv_linux_vers+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 ac_cv_linux_vers
=`uname -r 2>&1 | \
3654 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3658 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3659 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3660 if test $ac_cv_linux_vers = unknown
; then
3661 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3662 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3663 { (exit 1); exit 1; }; }
3665 if test $ac_cv_linux_vers -lt 2 ; then
3666 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3667 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3668 { (exit 1); exit 1; }; }
3678 for ac_header
in smi.h
3680 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3682 echo "$as_me:$LINENO: checking for $ac_header" >&5
3683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3690 # Is the header compilable?
3691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3693 cat >conftest.
$ac_ext <<_ACEOF
3696 cat confdefs.h
>>conftest.
$ac_ext
3697 cat >>conftest.
$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 $ac_includes_default
3700 #include <$ac_header>
3702 rm -f conftest.
$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>conftest.er1
3706 grep -v '^ *+' conftest.er1
>conftest.err
3708 cat conftest.err
>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try
='test -z "$ac_c_werror_flag"
3712 || test ! -s conftest.err'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try
='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_header_compiler
=yes
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.
$ac_ext >&5
3729 ac_header_compiler
=no
3731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3733 echo "${ECHO_T}$ac_header_compiler" >&6
3735 # Is the header present?
3736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3738 cat >conftest.
$ac_ext <<_ACEOF
3741 cat confdefs.h
>>conftest.
$ac_ext
3742 cat >>conftest.
$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3744 #include <$ac_header>
3746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3749 grep -v '^ *+' conftest.er1
>conftest.err
3751 cat conftest.err
>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev
/null
; then
3754 if test -s conftest.err
; then
3755 ac_cpp_err
=$ac_c_preproc_warn_flag
3756 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3763 if test -z "$ac_cpp_err"; then
3764 ac_header_preproc
=yes
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.
$ac_ext >&5
3769 ac_header_preproc
=no
3771 rm -f conftest.err conftest.
$ac_ext
3772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3773 echo "${ECHO_T}$ac_header_preproc" >&6
3775 # So? What about this header?
3776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3782 ac_header_preproc
=yes
3785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3799 ## ------------------------------------------ ##
3800 ## Report this to the AC_PACKAGE_NAME lists. ##
3801 ## ------------------------------------------ ##
3804 sed "s/^/$as_me: WARNING: /" >&2
3807 echo "$as_me:$LINENO: checking for $ac_header" >&5
3808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 eval "$as_ac_Header=\$ac_header_preproc"
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3819 cat >>confdefs.h
<<_ACEOF
3820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3828 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3829 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3830 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 ac_check_lib_save_LIBS
=$LIBS
3835 cat >conftest.
$ac_ext <<_ACEOF
3838 cat confdefs.h
>>conftest.
$ac_ext
3839 cat >>conftest.
$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3842 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3857 rm -f conftest.
$ac_objext conftest
$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>conftest.er1
3861 grep -v '^ *+' conftest.er1
>conftest.err
3863 cat conftest.err
>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try
='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try
='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_lib_smi_smiInit
=yes
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.
$ac_ext >&5
3884 ac_cv_lib_smi_smiInit
=no
3886 rm -f conftest.err conftest.
$ac_objext \
3887 conftest
$ac_exeext conftest.
$ac_ext
3888 LIBS
=$ac_check_lib_save_LIBS
3890 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3891 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3892 if test $ac_cv_lib_smi_smiInit = yes; then
3893 cat >>confdefs.h
<<_ACEOF
3894 #define HAVE_LIBSMI 1
3901 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3903 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3904 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3905 if test "$cross_compiling" = yes; then
3906 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3907 echo "${ECHO_T}not when cross-compiling" >&6
3911 cat >conftest.
$ac_ext <<_ACEOF
3914 cat confdefs.h
>>conftest.
$ac_ext
3915 cat >>conftest.
$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 /* libsmi available check */
3921 int current, revision, age, n;
3922 const int required = 2;
3925 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3927 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3930 if (required < current - age || required > current)
3936 rm -f conftest
$ac_exeext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938 (eval $ac_link) 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && { ac_try
='./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 echo "$as_me:$LINENO: result: yes" >&5
3948 echo "${ECHO_T}yes" >&6
3949 cat >>confdefs.h
<<\_ACEOF
3955 echo "$as_me: program exited with status $ac_status" >&5
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.
$ac_ext >&5
3961 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3962 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3963 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3964 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3965 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3966 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3967 4) echo "$as_me:$LINENO: result: no - too old" >&5
3968 echo "${ECHO_T}no - too old" >&6 ;;
3969 *) echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6 ;;
3974 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3978 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3979 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3980 # Check whether --enable-smb or --disable-smb was given.
3981 if test "${enable_smb+set}" = set; then
3982 enableval
="$enable_smb"
3987 case "$enableval" in
3988 yes) echo "$as_me:$LINENO: result: yes" >&5
3989 echo "${ECHO_T}yes" >&6
3990 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3991 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3992 cat >>confdefs.h
<<\_ACEOF
3993 #define TCPDUMP_DO_SMB 1
3996 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
3998 *) echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4004 # Check whether --with-user or --without-user was given.
4005 if test "${with_user+set}" = set; then
4006 withval
="$with_user"
4009 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4010 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4011 if test ! -z "$with_user" ; then
4012 cat >>confdefs.h
<<_ACEOF
4013 #define WITH_USER "$withval"
4016 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4017 echo "${ECHO_T}to \"$withval\"" >&6
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4024 # Check whether --with-chroot or --without-chroot was given.
4025 if test "${with_chroot+set}" = set; then
4026 withval
="$with_chroot"
4029 echo "$as_me:$LINENO: checking whether to chroot" >&5
4030 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4031 if test ! -z "$with_chroot" ; then
4032 cat >>confdefs.h
<<_ACEOF
4033 #define WITH_CHROOT "$withval"
4036 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4037 echo "${ECHO_T}to \"$withval\"" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4044 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4045 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4046 if test "${enable_ipv6+set}" = set; then
4047 enableval
="$enable_ipv6"
4048 case "$enableval" in
4049 yes) echo "$as_me:$LINENO: result: yes" >&5
4050 echo "${ECHO_T}yes" >&6
4051 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"
4052 cat >>confdefs.h
<<\_ACEOF
4059 echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4065 if test "$cross_compiling" = yes; then
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4071 cat >conftest.
$ac_ext <<_ACEOF
4074 cat confdefs.h
>>conftest.
$ac_ext
4075 cat >>conftest.
$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 /* AF_INET6 available check */
4078 #include <sys/types.h>
4079 #include <sys/socket.h>
4082 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4089 rm -f conftest
$ac_exeext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091 (eval $ac_link) 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 echo "$as_me:$LINENO: result: yes" >&5
4101 echo "${ECHO_T}yes" >&6
4102 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"
4103 cat >>confdefs.h
<<\_ACEOF
4109 echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.
$ac_ext >&5
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4126 if test "$ipv6" = "yes"; then
4127 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4128 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4129 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
4132 cat >conftest.
$ac_ext <<_ACEOF
4135 cat confdefs.h
>>conftest.
$ac_ext
4136 cat >>conftest.
$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <netinet/in.h>
4139 #ifdef IPV6_INRIA_VERSION
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144 $EGREP "yes" >/dev
/null
2>&1; then
4146 CFLAGS
="-DINET6 $CFLAGS"
4152 cat >conftest.
$ac_ext <<_ACEOF
4155 cat confdefs.h
>>conftest.
$ac_ext
4156 cat >>conftest.
$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <netinet/in.h>
4163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164 $EGREP "yes" >/dev
/null
2>&1; then
4167 ipv6libdir
=/usr
/local
/v
6/lib
;
4169 CFLAGS
="-DINET6 $CFLAGS"
4175 cat >conftest.
$ac_ext <<_ACEOF
4178 cat confdefs.h
>>conftest.
$ac_ext
4179 cat >>conftest.
$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #include <features.h>
4182 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187 $EGREP "yes" >/dev
/null
2>&1; then
4189 CFLAGS
="-DINET6 $CFLAGS"
4195 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
4198 ipv6libdir
=/usr
/inet
6/lib
4200 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
4204 cat >conftest.
$ac_ext <<_ACEOF
4207 cat confdefs.h
>>conftest.
$ac_ext
4208 cat >>conftest.
$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <sys/param.h>
4211 #ifdef _TOSHIBA_INET6
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "yes" >/dev
/null
2>&1; then
4219 ipv6libdir
=/usr
/local
/v
6/lib
;
4220 CFLAGS
="-DINET6 $CFLAGS"
4226 cat >conftest.
$ac_ext <<_ACEOF
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 #include </usr/local/v6/include/sys/v6config.h>
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "yes" >/dev
/null
2>&1; then
4241 ipv6libdir
=/usr
/local
/v
6/lib
;
4242 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
4248 cat >conftest.
$ac_ext <<_ACEOF
4251 cat confdefs.h
>>conftest.
$ac_ext
4252 cat >>conftest.
$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 #include <sys/param.h>
4255 #ifdef _ZETA_MINAMI_INET6
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "yes" >/dev
/null
2>&1; then
4263 ipv6libdir
=/usr
/local
/v
6/lib
;
4264 CFLAGS
="-DINET6 $CFLAGS"
4270 if test "$ipv6type" != "unknown"; then
4274 echo "$as_me:$LINENO: result: $ipv6type" >&5
4275 echo "${ECHO_T}$ipv6type" >&6
4278 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4279 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4280 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4281 echo "You have $ipv6lib library, using it"
4283 if test "$ipv6trylibc" = "yes"; then
4284 echo "You do not have $ipv6lib library, using libc"
4286 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4287 echo "You need to fetch lib$ipv6lib.a from appropriate"
4288 echo 'ipv6 kit and compile beforehand.'
4295 if test "$ipv6" = "yes"; then
4297 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4298 # function in libc; there are "ngetaddrinfo()" and
4299 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4300 # "getaddrinfo" to be either "ngetaddrinfo" or
4301 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4302 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4304 # So this test doesn't work on Tru64 5.1, and possibly
4305 # on other 5.x releases. This causes the configure
4306 # script to become confused, and results in libpcap
4307 # being unbuildable.
4309 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4310 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4311 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_func_search_save_LIBS
=$LIBS
4315 ac_cv_search_getaddrinfo
=no
4316 cat >conftest.
$ac_ext <<_ACEOF
4319 cat confdefs.h
>>conftest.
$ac_ext
4320 cat >>conftest.
$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4329 char getaddrinfo ();
4338 rm -f conftest.
$ac_objext conftest
$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>conftest.er1
4342 grep -v '^ *+' conftest.er1
>conftest.err
4344 cat conftest.err
>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try
='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try
='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_search_getaddrinfo
="none required"
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.
$ac_ext >&5
4366 rm -f conftest.err conftest.
$ac_objext \
4367 conftest
$ac_exeext conftest.
$ac_ext
4368 if test "$ac_cv_search_getaddrinfo" = no
; then
4369 for ac_lib
in socket
; do
4370 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4371 cat >conftest.
$ac_ext <<_ACEOF
4374 cat confdefs.h
>>conftest.
$ac_ext
4375 cat >>conftest.
$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4378 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4384 char getaddrinfo ();
4393 rm -f conftest.
$ac_objext conftest
$ac_exeext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395 (eval $ac_link) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1
>conftest.err
4399 cat conftest.err
>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try
='test -z "$ac_c_werror_flag"
4403 || test ! -s conftest.err'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try
='test -s conftest$ac_exeext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 ac_cv_search_getaddrinfo
="-l$ac_lib"
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.
$ac_ext >&5
4422 rm -f conftest.err conftest.
$ac_objext \
4423 conftest
$ac_exeext conftest.
$ac_ext
4426 LIBS
=$ac_func_search_save_LIBS
4428 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4429 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4430 if test "$ac_cv_search_getaddrinfo" != no
; then
4431 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4432 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4433 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4434 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test "$cross_compiling" = yes; then
4438 td_cv_buggygetaddrinfo
=yes
4440 cat >conftest.
$ac_ext <<_ACEOF
4443 cat confdefs.h
>>conftest.
$ac_ext
4444 cat >>conftest.
$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 #include <sys/types.h>
4450 #include <sys/socket.h>
4451 #include <netinet/in.h>
4455 int passive, gaierr, inet4 = 0, inet6 = 0;
4456 struct addrinfo hints, *ai, *aitop;
4457 char straddr[INET6_ADDRSTRLEN], strport[16];
4459 for (passive = 0; passive <= 1; passive++) {
4460 memset(&hints, 0, sizeof(hints));
4461 hints.ai_family = AF_UNSPEC;
4462 hints.ai_flags = passive ? AI_PASSIVE : 0;
4463 hints.ai_socktype = SOCK_STREAM;
4464 hints.ai_protocol = IPPROTO_TCP;
4465 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4466 (void)gai_strerror(gaierr);
4469 for (ai = aitop; ai; ai = ai->ai_next) {
4470 if (ai->ai_addr == NULL ||
4471 ai->ai_addrlen == 0 ||
4472 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4473 straddr, sizeof(straddr), strport, sizeof(strport),
4474 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4477 switch (ai->ai_family) {
4479 if (strcmp(strport, "54321") != 0) {
4483 if (strcmp(straddr, "0.0.0.0") != 0) {
4487 if (strcmp(straddr, "127.0.0.1") != 0) {
4494 if (strcmp(strport, "54321") != 0) {
4498 if (strcmp(straddr, "::") != 0) {
4502 if (strcmp(straddr, "::1") != 0) {
4519 /* another family support? */
4525 /* supported family should be 2, unsupported family should be 0 */
4526 if (!(inet4 == 0 || inet4 == 2))
4528 if (!(inet6 == 0 || inet6 == 2))
4532 freeaddrinfo(aitop);
4537 freeaddrinfo(aitop);
4542 rm -f conftest
$ac_exeext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 td_cv_buggygetaddrinfo
=no
4555 echo "$as_me: program exited with status $ac_status" >&5
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.
$ac_ext >&5
4560 td_cv_buggygetaddrinfo
=yes
4562 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4566 if test "$td_cv_buggygetaddrinfo" = no
; then
4567 echo "$as_me:$LINENO: result: good" >&5
4568 echo "${ECHO_T}good" >&6
4570 echo "$as_me:$LINENO: result: buggy" >&5
4571 echo "${ECHO_T}buggy" >&6
4574 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4576 # XXX - it doesn't appear that "ipv6type" can ever be
4577 # set to "linux". Should this be testing for
4578 # "linux-glibc", or for that *or* "linux-libinet6"?
4579 # If the latter, note that "linux-libinet6" is also
4580 # the type given to some non-Linux OSes.
4582 if test "$ipv6type" != "linux"; then
4583 echo 'Fatal: You must get working getaddrinfo() function.'
4584 echo ' or you can specify "--disable-ipv6"'.
4587 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4588 echo ' Better upgrade your system library to newest version'
4589 echo ' of GNU C library (aka glibc).'
4597 for ac_func
in getaddrinfo getnameinfo
4599 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4600 echo "$as_me:$LINENO: checking for $ac_func" >&5
4601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4602 if eval "test \"\${$as_ac_var+set}\" = set"; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 cat >conftest.
$ac_ext <<_ACEOF
4608 cat confdefs.h
>>conftest.
$ac_ext
4609 cat >>conftest.
$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4613 #define $ac_func innocuous_$ac_func
4615 /* System header to define __stub macros and hopefully few prototypes,
4616 which can conflict with char $ac_func (); below.
4617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4618 <limits.h> exists even on freestanding compilers. */
4621 # include <limits.h>
4623 # include <assert.h>
4628 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4636 /* The GNU C library defines this for functions which it implements
4637 to always fail with ENOSYS. Some functions are actually named
4638 something starting with __ and the normal name is an alias. */
4639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4642 char (*f) () = $ac_func;
4651 return f != $ac_func;
4656 rm -f conftest.
$ac_objext conftest
$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>conftest.er1
4660 grep -v '^ *+' conftest.er1
>conftest.err
4662 cat conftest.err
>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try
='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try
='test -s conftest$ac_exeext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 eval "$as_ac_var=yes"
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.
$ac_ext >&5
4683 eval "$as_ac_var=no"
4685 rm -f conftest.err conftest.
$ac_objext \
4686 conftest
$ac_exeext conftest.
$ac_ext
4688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4690 if test `eval echo '${'$as_ac_var'}'` = yes; then
4691 cat >>confdefs.h
<<_ACEOF
4692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4697 "$ac_func.$ac_objext" | \
4698 *" $ac_func.$ac_objext" | \
4699 "$ac_func.$ac_objext "* | \
4700 *" $ac_func.$ac_objext "* ) ;;
4701 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
4710 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4711 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4712 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 cat >conftest.
$ac_ext <<_ACEOF
4718 cat confdefs.h
>>conftest.
$ac_ext
4719 cat >>conftest.
$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #include <netdnet/dnetdb.h>
4724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4725 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4726 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4728 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4733 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4734 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4735 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4736 cat >>confdefs.h
<<\_ACEOF
4737 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4742 echo "$as_me:$LINENO: checking for char" >&5
4743 echo $ECHO_N "checking for char... $ECHO_C" >&6
4744 if test "${ac_cv_type_char+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 cat >conftest.
$ac_ext <<_ACEOF
4750 cat confdefs.h
>>conftest.
$ac_ext
4751 cat >>conftest.
$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_includes_default
4765 rm -f conftest.
$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1
>conftest.err
4771 cat conftest.err
>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try
='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try
='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.
$ac_ext >&5
4794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4796 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4797 echo "${ECHO_T}$ac_cv_type_char" >&6
4799 echo "$as_me:$LINENO: checking size of char" >&5
4800 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4801 if test "${ac_cv_sizeof_char+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 if test "$ac_cv_type_char" = yes; then
4805 # The cast to unsigned long works around a bug in the HP C Compiler
4806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4808 # This bug is HP SR number 8606223364.
4809 if test "$cross_compiling" = yes; then
4810 # Depending upon the size, compute the lo and hi bounds.
4811 cat >conftest.
$ac_ext <<_ACEOF
4814 cat confdefs.h
>>conftest.
$ac_ext
4815 cat >>conftest.
$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 $ac_includes_default
4821 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4828 rm -f conftest.
$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4832 grep -v '^ *+' conftest.er1
>conftest.err
4834 cat conftest.err
>&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try
='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try
='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4852 cat >conftest.
$ac_ext <<_ACEOF
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 $ac_includes_default
4862 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4869 rm -f conftest.
$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1
>conftest.err
4875 cat conftest.err
>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try
='test -z "$ac_c_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try
='test -s conftest.$ac_objext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_hi
=$ac_mid; break
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.
$ac_ext >&5
4896 ac_lo
=`expr $ac_mid + 1`
4897 if test $ac_lo -le $ac_mid; then
4901 ac_mid
=`expr 2 '*' $ac_mid + 1`
4903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.
$ac_ext >&5
4909 cat >conftest.
$ac_ext <<_ACEOF
4912 cat confdefs.h
>>conftest.
$ac_ext
4913 cat >>conftest.
$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 $ac_includes_default
4919 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4926 rm -f conftest.
$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4930 grep -v '^ *+' conftest.er1
>conftest.err
4932 cat conftest.err
>&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try
='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try
='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4950 cat >conftest.
$ac_ext <<_ACEOF
4953 cat confdefs.h
>>conftest.
$ac_ext
4954 cat >>conftest.
$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4960 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4967 rm -f conftest.
$ac_objext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4969 (eval $ac_compile) 2>conftest.er1
4971 grep -v '^ *+' conftest.er1
>conftest.err
4973 cat conftest.err
>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try
='test -z "$ac_c_werror_flag"
4977 || test ! -s conftest.err'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; } &&
4983 { ac_try
='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_lo
=$ac_mid; break
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.
$ac_ext >&5
4994 ac_hi
=`expr '(' $ac_mid ')' - 1`
4995 if test $ac_mid -le $ac_hi; then
4999 ac_mid
=`expr 2 '*' $ac_mid`
5001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.
$ac_ext >&5
5009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5012 # Binary search between lo and hi bounds.
5013 while test "x$ac_lo" != "x$ac_hi"; do
5014 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5015 cat >conftest.
$ac_ext <<_ACEOF
5018 cat confdefs.h
>>conftest.
$ac_ext
5019 cat >>conftest.
$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5025 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5032 rm -f conftest.
$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1
>conftest.err
5038 cat conftest.err
>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try
='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try
='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.
$ac_ext >&5
5059 ac_lo
=`expr '(' $ac_mid ')' + 1`
5061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5064 ?
*) ac_cv_sizeof_char
=$ac_lo;;
5065 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5066 See \`config.log' for more details." >&5
5067 echo "$as_me: error: cannot compute sizeof (char), 77
5068 See \`config.log' for more details." >&2;}
5069 { (exit 1); exit 1; }; } ;;
5072 if test "$cross_compiling" = yes; then
5073 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5074 See \`config.log' for more details." >&5
5075 echo "$as_me: error: cannot run test program while cross compiling
5076 See \`config.log' for more details." >&2;}
5077 { (exit 1); exit 1; }; }
5079 cat >conftest.
$ac_ext <<_ACEOF
5082 cat confdefs.h
>>conftest.
$ac_ext
5083 cat >>conftest.
$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5086 long longval () { return (long) (sizeof (char)); }
5087 unsigned long ulongval () { return (long) (sizeof (char)); }
5094 FILE *f = fopen ("conftest.val", "w");
5097 if (((long) (sizeof (char))) < 0)
5099 long i = longval ();
5100 if (i != ((long) (sizeof (char))))
5102 fprintf (f, "%ld\n", i);
5106 unsigned long i = ulongval ();
5107 if (i != ((long) (sizeof (char))))
5109 fprintf (f, "%lu\n", i);
5111 exit (ferror (f) || fclose (f) != 0);
5117 rm -f conftest
$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 ac_cv_sizeof_char
=`cat conftest.val`
5130 echo "$as_me: program exited with status $ac_status" >&5
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.
$ac_ext >&5
5135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5136 See \`config.log' for more details." >&5
5137 echo "$as_me: error: cannot compute sizeof (char), 77
5138 See \`config.log' for more details." >&2;}
5139 { (exit 1); exit 1; }; }
5141 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5150 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5151 cat >>confdefs.h
<<_ACEOF
5152 #define SIZEOF_CHAR $ac_cv_sizeof_char
5156 echo "$as_me:$LINENO: checking for short" >&5
5157 echo $ECHO_N "checking for short... $ECHO_C" >&6
5158 if test "${ac_cv_type_short+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 cat >conftest.
$ac_ext <<_ACEOF
5164 cat confdefs.h
>>conftest.
$ac_ext
5165 cat >>conftest.
$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 $ac_includes_default
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1
>conftest.err
5185 cat conftest.err
>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try
='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try
='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_type_short
=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.
$ac_ext >&5
5208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5210 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5211 echo "${ECHO_T}$ac_cv_type_short" >&6
5213 echo "$as_me:$LINENO: checking size of short" >&5
5214 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5215 if test "${ac_cv_sizeof_short+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 if test "$ac_cv_type_short" = yes; then
5219 # The cast to unsigned long works around a bug in the HP C Compiler
5220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5222 # This bug is HP SR number 8606223364.
5223 if test "$cross_compiling" = yes; then
5224 # Depending upon the size, compute the lo and hi bounds.
5225 cat >conftest.
$ac_ext <<_ACEOF
5228 cat confdefs.h
>>conftest.
$ac_ext
5229 cat >>conftest.
$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5235 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5242 rm -f conftest.
$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>conftest.er1
5246 grep -v '^ *+' conftest.er1
>conftest.err
5248 cat conftest.err
>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try
='test -z "$ac_c_werror_flag"
5252 || test ! -s conftest.err'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try
='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5266 cat >conftest.
$ac_ext <<_ACEOF
5269 cat confdefs.h
>>conftest.
$ac_ext
5270 cat >>conftest.
$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 $ac_includes_default
5276 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5283 rm -f conftest.
$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
5287 grep -v '^ *+' conftest.er1
>conftest.err
5289 cat conftest.err
>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try
='test -z "$ac_c_werror_flag"
5293 || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try
='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_hi
=$ac_mid; break
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.
$ac_ext >&5
5310 ac_lo
=`expr $ac_mid + 1`
5311 if test $ac_lo -le $ac_mid; then
5315 ac_mid
=`expr 2 '*' $ac_mid + 1`
5317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5323 cat >conftest.
$ac_ext <<_ACEOF
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5333 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5340 rm -f conftest.
$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1
>conftest.err
5346 cat conftest.err
>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try
='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try
='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5364 cat >conftest.
$ac_ext <<_ACEOF
5367 cat confdefs.h
>>conftest.
$ac_ext
5368 cat >>conftest.
$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 $ac_includes_default
5374 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5381 rm -f conftest.
$ac_objext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383 (eval $ac_compile) 2>conftest.er1
5385 grep -v '^ *+' conftest.er1
>conftest.err
5387 cat conftest.err
>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try
='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try
='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_lo
=$ac_mid; break
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.
$ac_ext >&5
5408 ac_hi
=`expr '(' $ac_mid ')' - 1`
5409 if test $ac_mid -le $ac_hi; then
5413 ac_mid
=`expr 2 '*' $ac_mid`
5415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.
$ac_ext >&5
5423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5426 # Binary search between lo and hi bounds.
5427 while test "x$ac_lo" != "x$ac_hi"; do
5428 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429 cat >conftest.
$ac_ext <<_ACEOF
5432 cat confdefs.h
>>conftest.
$ac_ext
5433 cat >>conftest.
$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5439 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5446 rm -f conftest.
$ac_objext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448 (eval $ac_compile) 2>conftest.er1
5450 grep -v '^ *+' conftest.er1
>conftest.err
5452 cat conftest.err
>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try
='test -z "$ac_c_werror_flag"
5456 || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try
='test -s conftest.$ac_objext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.
$ac_ext >&5
5473 ac_lo
=`expr '(' $ac_mid ')' + 1`
5475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5478 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5479 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5480 See \`config.log' for more details." >&5
5481 echo "$as_me: error: cannot compute sizeof (short), 77
5482 See \`config.log' for more details." >&2;}
5483 { (exit 1); exit 1; }; } ;;
5486 if test "$cross_compiling" = yes; then
5487 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5488 See \`config.log' for more details." >&5
5489 echo "$as_me: error: cannot run test program while cross compiling
5490 See \`config.log' for more details." >&2;}
5491 { (exit 1); exit 1; }; }
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 $ac_includes_default
5500 long longval () { return (long) (sizeof (short)); }
5501 unsigned long ulongval () { return (long) (sizeof (short)); }
5508 FILE *f = fopen ("conftest.val", "w");
5511 if (((long) (sizeof (short))) < 0)
5513 long i = longval ();
5514 if (i != ((long) (sizeof (short))))
5516 fprintf (f, "%ld\n", i);
5520 unsigned long i = ulongval ();
5521 if (i != ((long) (sizeof (short))))
5523 fprintf (f, "%lu\n", i);
5525 exit (ferror (f) || fclose (f) != 0);
5531 rm -f conftest
$ac_exeext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533 (eval $ac_link) 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_sizeof_short
=`cat conftest.val`
5544 echo "$as_me: program exited with status $ac_status" >&5
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (short), 77
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; }
5555 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5560 ac_cv_sizeof_short
=0
5563 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5564 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5565 cat >>confdefs.h
<<_ACEOF
5566 #define SIZEOF_SHORT $ac_cv_sizeof_short
5570 echo "$as_me:$LINENO: checking for int" >&5
5571 echo $ECHO_N "checking for int... $ECHO_C" >&6
5572 if test "${ac_cv_type_int+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5593 rm -f conftest.
$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>conftest.er1
5597 grep -v '^ *+' conftest.er1
>conftest.err
5599 cat conftest.err
>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try
='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try
='test -s conftest.$ac_objext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.
$ac_ext >&5
5622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5625 echo "${ECHO_T}$ac_cv_type_int" >&6
5627 echo "$as_me:$LINENO: checking size of int" >&5
5628 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5629 if test "${ac_cv_sizeof_int+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test "$ac_cv_type_int" = yes; then
5633 # The cast to unsigned long works around a bug in the HP C Compiler
5634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5636 # This bug is HP SR number 8606223364.
5637 if test "$cross_compiling" = yes; then
5638 # Depending upon the size, compute the lo and hi bounds.
5639 cat >conftest.
$ac_ext <<_ACEOF
5642 cat confdefs.h
>>conftest.
$ac_ext
5643 cat >>conftest.
$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 $ac_includes_default
5649 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5656 rm -f conftest.
$ac_objext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>conftest.er1
5660 grep -v '^ *+' conftest.er1
>conftest.err
5662 cat conftest.err
>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try
='test -z "$ac_c_werror_flag"
5666 || test ! -s conftest.err'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; } &&
5672 { ac_try
='test -s conftest.$ac_objext'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
5680 cat >conftest.
$ac_ext <<_ACEOF
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5690 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5697 rm -f conftest.
$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>conftest.er1
5701 grep -v '^ *+' conftest.er1
>conftest.err
5703 cat conftest.err
>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try
='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try
='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_hi
=$ac_mid; break
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.
$ac_ext >&5
5724 ac_lo
=`expr $ac_mid + 1`
5725 if test $ac_lo -le $ac_mid; then
5729 ac_mid
=`expr 2 '*' $ac_mid + 1`
5731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.
$ac_ext >&5
5737 cat >conftest.
$ac_ext <<_ACEOF
5740 cat confdefs.h
>>conftest.
$ac_ext
5741 cat >>conftest.
$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5747 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5754 rm -f conftest.
$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1
>conftest.err
5760 cat conftest.err
>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -z "$ac_c_werror_flag"
5764 || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try
='test -s conftest.$ac_objext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5778 cat >conftest.
$ac_ext <<_ACEOF
5781 cat confdefs.h
>>conftest.
$ac_ext
5782 cat >>conftest.
$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 $ac_includes_default
5788 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5795 rm -f conftest.
$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>conftest.er1
5799 grep -v '^ *+' conftest.er1
>conftest.err
5801 cat conftest.err
>&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try
='test -z "$ac_c_werror_flag"
5805 || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try
='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_lo
=$ac_mid; break
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.
$ac_ext >&5
5822 ac_hi
=`expr '(' $ac_mid ')' - 1`
5823 if test $ac_mid -le $ac_hi; then
5827 ac_mid
=`expr 2 '*' $ac_mid`
5829 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.
$ac_ext >&5
5837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5840 # Binary search between lo and hi bounds.
5841 while test "x$ac_lo" != "x$ac_hi"; do
5842 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5843 cat >conftest.
$ac_ext <<_ACEOF
5846 cat confdefs.h
>>conftest.
$ac_ext
5847 cat >>conftest.
$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 $ac_includes_default
5853 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5860 rm -f conftest.
$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5864 grep -v '^ *+' conftest.er1
>conftest.err
5866 cat conftest.err
>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try
='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try
='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 ac_lo
=`expr '(' $ac_mid ')' + 1`
5889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5892 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5893 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5894 See \`config.log' for more details." >&5
5895 echo "$as_me: error: cannot compute sizeof (int), 77
5896 See \`config.log' for more details." >&2;}
5897 { (exit 1); exit 1; }; } ;;
5900 if test "$cross_compiling" = yes; then
5901 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5902 See \`config.log' for more details." >&5
5903 echo "$as_me: error: cannot run test program while cross compiling
5904 See \`config.log' for more details." >&2;}
5905 { (exit 1); exit 1; }; }
5907 cat >conftest.
$ac_ext <<_ACEOF
5910 cat confdefs.h
>>conftest.
$ac_ext
5911 cat >>conftest.
$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 $ac_includes_default
5914 long longval () { return (long) (sizeof (int)); }
5915 unsigned long ulongval () { return (long) (sizeof (int)); }
5922 FILE *f = fopen ("conftest.val", "w");
5925 if (((long) (sizeof (int))) < 0)
5927 long i = longval ();
5928 if (i != ((long) (sizeof (int))))
5930 fprintf (f, "%ld\n", i);
5934 unsigned long i = ulongval ();
5935 if (i != ((long) (sizeof (int))))
5937 fprintf (f, "%lu\n", i);
5939 exit (ferror (f) || fclose (f) != 0);
5945 rm -f conftest
$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_sizeof_int
=`cat conftest.val`
5958 echo "$as_me: program exited with status $ac_status" >&5
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.
$ac_ext >&5
5963 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5964 See \`config.log' for more details." >&5
5965 echo "$as_me: error: cannot compute sizeof (int), 77
5966 See \`config.log' for more details." >&2;}
5967 { (exit 1); exit 1; }; }
5969 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5978 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5979 cat >>confdefs.h
<<_ACEOF
5980 #define SIZEOF_INT $ac_cv_sizeof_int
5984 echo "$as_me:$LINENO: checking for long" >&5
5985 echo $ECHO_N "checking for long... $ECHO_C" >&6
5986 if test "${ac_cv_type_long+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 cat >conftest.
$ac_ext <<_ACEOF
5992 cat confdefs.h
>>conftest.
$ac_ext
5993 cat >>conftest.
$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
6007 rm -f conftest.
$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1
>conftest.err
6013 cat conftest.err
>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try
='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try
='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6038 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6039 echo "${ECHO_T}$ac_cv_type_long" >&6
6041 echo "$as_me:$LINENO: checking size of long" >&5
6042 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6043 if test "${ac_cv_sizeof_long+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test "$ac_cv_type_long" = yes; then
6047 # The cast to unsigned long works around a bug in the HP C Compiler
6048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6050 # This bug is HP SR number 8606223364.
6051 if test "$cross_compiling" = yes; then
6052 # Depending upon the size, compute the lo and hi bounds.
6053 cat >conftest.
$ac_ext <<_ACEOF
6056 cat confdefs.h
>>conftest.
$ac_ext
6057 cat >>conftest.
$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 $ac_includes_default
6063 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6070 rm -f conftest.
$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6074 grep -v '^ *+' conftest.er1
>conftest.err
6076 cat conftest.err
>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try
='test -z "$ac_c_werror_flag"
6080 || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try
='test -s conftest.$ac_objext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6094 cat >conftest.
$ac_ext <<_ACEOF
6097 cat confdefs.h
>>conftest.
$ac_ext
6098 cat >>conftest.
$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6104 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6111 rm -f conftest.
$ac_objext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113 (eval $ac_compile) 2>conftest.er1
6115 grep -v '^ *+' conftest.er1
>conftest.err
6117 cat conftest.err
>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try
='test -z "$ac_c_werror_flag"
6121 || test ! -s conftest.err'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; } &&
6127 { ac_try
='test -s conftest.$ac_objext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_hi
=$ac_mid; break
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.
$ac_ext >&5
6138 ac_lo
=`expr $ac_mid + 1`
6139 if test $ac_lo -le $ac_mid; then
6143 ac_mid
=`expr 2 '*' $ac_mid + 1`
6145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.
$ac_ext >&5
6151 cat >conftest.
$ac_ext <<_ACEOF
6154 cat confdefs.h
>>conftest.
$ac_ext
6155 cat >>conftest.
$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 $ac_includes_default
6161 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6168 rm -f conftest.
$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170 (eval $ac_compile) 2>conftest.er1
6172 grep -v '^ *+' conftest.er1
>conftest.err
6174 cat conftest.err
>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try
='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try
='test -s conftest.$ac_objext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6192 cat >conftest.
$ac_ext <<_ACEOF
6195 cat confdefs.h
>>conftest.
$ac_ext
6196 cat >>conftest.
$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6202 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6209 rm -f conftest.
$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1
>conftest.err
6215 cat conftest.err
>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try
='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try
='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_lo
=$ac_mid; break
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.
$ac_ext >&5
6236 ac_hi
=`expr '(' $ac_mid ')' - 1`
6237 if test $ac_mid -le $ac_hi; then
6241 ac_mid
=`expr 2 '*' $ac_mid`
6243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.
$ac_ext >&5
6251 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6254 # Binary search between lo and hi bounds.
6255 while test "x$ac_lo" != "x$ac_hi"; do
6256 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6257 cat >conftest.
$ac_ext <<_ACEOF
6260 cat confdefs.h
>>conftest.
$ac_ext
6261 cat >>conftest.
$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6267 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6274 rm -f conftest.
$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1
>conftest.err
6280 cat conftest.err
>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try
='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try
='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.
$ac_ext >&5
6301 ac_lo
=`expr '(' $ac_mid ')' + 1`
6303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6306 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6307 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6308 See \`config.log' for more details." >&5
6309 echo "$as_me: error: cannot compute sizeof (long), 77
6310 See \`config.log' for more details." >&2;}
6311 { (exit 1); exit 1; }; } ;;
6314 if test "$cross_compiling" = yes; then
6315 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6316 See \`config.log' for more details." >&5
6317 echo "$as_me: error: cannot run test program while cross compiling
6318 See \`config.log' for more details." >&2;}
6319 { (exit 1); exit 1; }; }
6321 cat >conftest.
$ac_ext <<_ACEOF
6324 cat confdefs.h
>>conftest.
$ac_ext
6325 cat >>conftest.
$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6328 long longval () { return (long) (sizeof (long)); }
6329 unsigned long ulongval () { return (long) (sizeof (long)); }
6336 FILE *f = fopen ("conftest.val", "w");
6339 if (((long) (sizeof (long))) < 0)
6341 long i = longval ();
6342 if (i != ((long) (sizeof (long))))
6344 fprintf (f, "%ld\n", i);
6348 unsigned long i = ulongval ();
6349 if (i != ((long) (sizeof (long))))
6351 fprintf (f, "%lu\n", i);
6353 exit (ferror (f) || fclose (f) != 0);
6359 rm -f conftest
$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_cv_sizeof_long
=`cat conftest.val`
6372 echo "$as_me: program exited with status $ac_status" >&5
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.
$ac_ext >&5
6377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6378 See \`config.log' for more details." >&5
6379 echo "$as_me: error: cannot compute sizeof (long), 77
6380 See \`config.log' for more details." >&2;}
6381 { (exit 1); exit 1; }; }
6383 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6391 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6392 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6393 cat >>confdefs.h
<<_ACEOF
6394 #define SIZEOF_LONG $ac_cv_sizeof_long
6398 echo "$as_me:$LINENO: checking for long long" >&5
6399 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6400 if test "${ac_cv_type_long_long+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 cat >conftest.
$ac_ext <<_ACEOF
6406 cat confdefs.h
>>conftest.
$ac_ext
6407 cat >>conftest.
$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6413 if ((long long *) 0)
6415 if (sizeof (long long))
6421 rm -f conftest.
$ac_objext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423 (eval $ac_compile) 2>conftest.er1
6425 grep -v '^ *+' conftest.er1
>conftest.err
6427 cat conftest.err
>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try
='test -z "$ac_c_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try
='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_cv_type_long_long
=yes
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.
$ac_ext >&5
6448 ac_cv_type_long_long
=no
6450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6453 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6455 echo "$as_me:$LINENO: checking size of long long" >&5
6456 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6457 if test "${ac_cv_sizeof_long_long+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 if test "$ac_cv_type_long_long" = yes; then
6461 # The cast to unsigned long works around a bug in the HP C Compiler
6462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6464 # This bug is HP SR number 8606223364.
6465 if test "$cross_compiling" = yes; then
6466 # Depending upon the size, compute the lo and hi bounds.
6467 cat >conftest.
$ac_ext <<_ACEOF
6470 cat confdefs.h
>>conftest.
$ac_ext
6471 cat >>conftest.
$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6477 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6484 rm -f conftest.
$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>conftest.er1
6488 grep -v '^ *+' conftest.er1
>conftest.err
6490 cat conftest.err
>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try
='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try
='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6508 cat >conftest.
$ac_ext <<_ACEOF
6511 cat confdefs.h
>>conftest.
$ac_ext
6512 cat >>conftest.
$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 $ac_includes_default
6518 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6525 rm -f conftest.
$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>conftest.er1
6529 grep -v '^ *+' conftest.er1
>conftest.err
6531 cat conftest.err
>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try
='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try
='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_hi
=$ac_mid; break
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.
$ac_ext >&5
6552 ac_lo
=`expr $ac_mid + 1`
6553 if test $ac_lo -le $ac_mid; then
6557 ac_mid
=`expr 2 '*' $ac_mid + 1`
6559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 cat >conftest.
$ac_ext <<_ACEOF
6568 cat confdefs.h
>>conftest.
$ac_ext
6569 cat >>conftest.
$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 $ac_includes_default
6575 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6582 rm -f conftest.
$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6586 grep -v '^ *+' conftest.er1
>conftest.err
6588 cat conftest.err
>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try
='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try
='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6606 cat >conftest.
$ac_ext <<_ACEOF
6609 cat confdefs.h
>>conftest.
$ac_ext
6610 cat >>conftest.
$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6612 $ac_includes_default
6616 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6623 rm -f conftest.
$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>conftest.er1
6627 grep -v '^ *+' conftest.er1
>conftest.err
6629 cat conftest.err
>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try
='test -z "$ac_c_werror_flag"
6633 || test ! -s conftest.err'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; } &&
6639 { ac_try
='test -s conftest.$ac_objext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 ac_lo
=$ac_mid; break
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.
$ac_ext >&5
6650 ac_hi
=`expr '(' $ac_mid ')' - 1`
6651 if test $ac_mid -le $ac_hi; then
6655 ac_mid
=`expr 2 '*' $ac_mid`
6657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.
$ac_ext >&5
6665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6668 # Binary search between lo and hi bounds.
6669 while test "x$ac_lo" != "x$ac_hi"; do
6670 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6671 cat >conftest.
$ac_ext <<_ACEOF
6674 cat confdefs.h
>>conftest.
$ac_ext
6675 cat >>conftest.
$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6681 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6688 rm -f conftest.
$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1
>conftest.err
6694 cat conftest.err
>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try
='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try
='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.
$ac_ext >&5
6715 ac_lo
=`expr '(' $ac_mid ')' + 1`
6717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6720 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6721 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6722 See \`config.log' for more details." >&5
6723 echo "$as_me: error: cannot compute sizeof (long long), 77
6724 See \`config.log' for more details." >&2;}
6725 { (exit 1); exit 1; }; } ;;
6728 if test "$cross_compiling" = yes; then
6729 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6730 See \`config.log' for more details." >&5
6731 echo "$as_me: error: cannot run test program while cross compiling
6732 See \`config.log' for more details." >&2;}
6733 { (exit 1); exit 1; }; }
6735 cat >conftest.
$ac_ext <<_ACEOF
6738 cat confdefs.h
>>conftest.
$ac_ext
6739 cat >>conftest.
$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6742 long longval () { return (long) (sizeof (long long)); }
6743 unsigned long ulongval () { return (long) (sizeof (long long)); }
6750 FILE *f = fopen ("conftest.val", "w");
6753 if (((long) (sizeof (long long))) < 0)
6755 long i = longval ();
6756 if (i != ((long) (sizeof (long long))))
6758 fprintf (f, "%ld\n", i);
6762 unsigned long i = ulongval ();
6763 if (i != ((long) (sizeof (long long))))
6765 fprintf (f, "%lu\n", i);
6767 exit (ferror (f) || fclose (f) != 0);
6773 rm -f conftest
$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 ac_cv_sizeof_long_long
=`cat conftest.val`
6786 echo "$as_me: program exited with status $ac_status" >&5
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.
$ac_ext >&5
6791 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6792 See \`config.log' for more details." >&5
6793 echo "$as_me: error: cannot compute sizeof (long long), 77
6794 See \`config.log' for more details." >&2;}
6795 { (exit 1); exit 1; }; }
6797 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6802 ac_cv_sizeof_long_long
=0
6805 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6806 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6807 cat >>confdefs.h
<<_ACEOF
6808 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6815 echo "$as_me:$LINENO: checking for addrinfo" >&5
6816 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6817 if test "${ac_cv_addrinfo+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.
$ac_ext <<_ACEOF
6823 cat confdefs.h
>>conftest.
$ac_ext
6824 cat >>conftest.
$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6836 rm -f conftest.
$ac_objext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>conftest.er1
6840 grep -v '^ *+' conftest.er1
>conftest.err
6842 cat conftest.err
>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try
='test -z "$ac_c_werror_flag"
6846 || test ! -s conftest.err'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; } &&
6852 { ac_try
='test -s conftest.$ac_objext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.
$ac_ext >&5
6865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6869 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6870 if test $ac_cv_addrinfo = yes; then
6871 cat >>confdefs.h
<<\_ACEOF
6872 #define HAVE_ADDRINFO 1
6876 cat >>confdefs.h
<<\_ACEOF
6877 #define NEED_ADDRINFO_H 1
6882 if test "$ac_cv_addrinfo" = no
; then
6883 missing_includes
=yes
6887 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6888 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6889 if test "${ac_cv_maxserv+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 cat >conftest.
$ac_ext <<_ACEOF
6895 cat confdefs.h
>>conftest.
$ac_ext
6896 cat >>conftest.
$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904 $EGREP "yes" >/dev
/null
2>&1; then
6913 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6914 echo "${ECHO_T}$ac_cv_maxserv" >&6
6915 if test $ac_cv_maxserv != yes; then
6916 cat >>confdefs.h
<<\_ACEOF
6917 #define NEED_ADDRINFO_H 1
6922 if test "$ac_cv_maxserv" = no
; then
6923 missing_includes
=yes
6927 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6928 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6929 if test "${ac_cv_namereqd+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat >conftest.
$ac_ext <<_ACEOF
6935 cat confdefs.h
>>conftest.
$ac_ext
6936 cat >>conftest.
$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6944 $EGREP "yes" >/dev
/null
2>&1; then
6953 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6954 echo "${ECHO_T}$ac_cv_namereqd" >&6
6955 if test $ac_cv_namereqd != yes; then
6956 cat >>confdefs.h
<<\_ACEOF
6957 #define NEED_ADDRINFO_H 1
6962 if test "$ac_cv_namereqd" = no
; then
6963 missing_includes
=yes
6967 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6968 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6969 if test "${ac_cv_sa_storage+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 cat >conftest.
$ac_ext <<_ACEOF
6975 cat confdefs.h
>>conftest.
$ac_ext
6976 cat >>conftest.
$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6979 # include <sys/types.h>
6980 # include <sys/socket.h>
6984 struct sockaddr_storage s
6989 rm -f conftest.
$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1
>conftest.err
6995 cat conftest.err
>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try
='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try
='test -s conftest.$ac_objext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_sa_storage
=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.
$ac_ext >&5
7018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7022 echo "${ECHO_T}$ac_cv_sa_storage" >&6
7023 if test $ac_cv_sa_storage = yes; then
7024 cat >>confdefs.h
<<\_ACEOF
7025 #define HAVE_SOCKADDR_STORAGE 1
7030 if test "$ac_cv_sa_storage" = no
; then
7031 missing_includes
=yes
7036 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7037 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7038 if test "${ac_cv_inaddrsz+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 cat >conftest.
$ac_ext <<_ACEOF
7044 cat confdefs.h
>>conftest.
$ac_ext
7045 cat >>conftest.
$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7048 # include <arpa/nameser.h>
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
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_inaddrsz" >&5
7090 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7091 if test $ac_cv_inaddrsz = yes; then
7092 cat >>confdefs.h
<<\_ACEOF
7093 #define HAVE_INADDRSZ 1
7099 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7100 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7101 if test "${ac_cv_in6addrsz+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 cat >conftest.
$ac_ext <<_ACEOF
7107 cat confdefs.h
>>conftest.
$ac_ext
7108 cat >>conftest.
$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7111 # include <arpa/nameser.h>
7120 rm -f conftest.
$ac_objext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122 (eval $ac_compile) 2>conftest.er1
7124 grep -v '^ *+' conftest.er1
>conftest.err
7126 cat conftest.err
>&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try
='test -z "$ac_c_werror_flag"
7130 || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try
='test -s conftest.$ac_objext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.
$ac_ext >&5
7149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7152 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7153 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7154 if test $ac_cv_in6addrsz = yes; then
7155 cat >>confdefs.h
<<\_ACEOF
7156 #define HAVE_IN6ADDRSZ 1
7163 if test "$ac_cv_addrsz" = no
; then
7164 missing_includes
=yes
7168 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7169 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7170 if test "${ac_cv_res_inet6+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 cat >conftest.
$ac_ext <<_ACEOF
7176 cat confdefs.h
>>conftest.
$ac_ext
7177 cat >>conftest.
$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7180 # include <sys/types.h>
7181 # include <netinet/in.h>
7182 # include <resolv.h>
7186 int a = RES_USE_INET6
7191 rm -f conftest.
$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7195 grep -v '^ *+' conftest.er1
>conftest.err
7197 cat conftest.err
>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try
='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try
='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.
$ac_ext >&5
7220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7223 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7224 echo "${ECHO_T}$ac_cv_res_inet6" >&6
7225 if test $ac_cv_res_inet6 = yes; then
7226 cat >>confdefs.h
<<\_ACEOF
7227 #define HAVE_RES_USE_INET6 1
7232 if test "$ac_cv_res_inet6" = no
; then
7233 missing_includes
=yes
7237 echo "$as_me:$LINENO: checking for res_state_ext" >&5
7238 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7239 if test "${ac_cv_res_state_ext+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 cat >conftest.
$ac_ext <<_ACEOF
7245 cat confdefs.h
>>conftest.
$ac_ext
7246 cat >>conftest.
$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7249 # include <sys/types.h>
7250 # include <netinet/in.h>
7251 # include <netinet6/in6.h>
7252 # include <resolv.h>
7256 struct __res_state_ext e
7261 rm -f conftest.
$ac_objext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7263 (eval $ac_compile) 2>conftest.er1
7265 grep -v '^ *+' conftest.er1
>conftest.err
7267 cat conftest.err
>&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try
='test -z "$ac_c_werror_flag"
7271 || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try
='test -s conftest.$ac_objext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 ac_cv_res_state_ext
=yes
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.
$ac_ext >&5
7288 ac_cv_res_state_ext
=no
7290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7293 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7294 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7295 if test $ac_cv_res_state_ext = yes; then
7296 cat >>confdefs.h
<<\_ACEOF
7297 #define HAVE_RES_STATE_EXT 1
7302 if test "$ac_cv_res_state_ext" = no
; then
7303 missing_includes
=yes
7307 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7308 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7309 if test "${ac_cv_res_state+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7319 # include <sys/types.h>
7320 # include <netinet/in.h>
7321 # include <netinet6/in6.h>
7322 # include <resolv.h>
7326 struct __res_state e; e.nsort = 0
7331 rm -f conftest.
$ac_objext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333 (eval $ac_compile) 2>conftest.er1
7335 grep -v '^ *+' conftest.er1
>conftest.err
7337 cat conftest.err
>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } &&
7340 { ac_try
='test -z "$ac_c_werror_flag"
7341 || test ! -s conftest.err'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; } &&
7347 { ac_try
='test -s conftest.$ac_objext'
7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; }; then
7355 echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.
$ac_ext >&5
7360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7364 echo "${ECHO_T}$ac_cv_res_state" >&6
7365 if test $ac_cv_res_state = yes; then
7366 cat >>confdefs.h
<<\_ACEOF
7367 #define HAVE_NEW_RES_STATE 1
7380 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
7382 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7383 echo "$as_me:$LINENO: checking for $ac_func" >&5
7384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7385 if eval "test \"\${$as_ac_var+set}\" = set"; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 cat >conftest.
$ac_ext <<_ACEOF
7391 cat confdefs.h
>>conftest.
$ac_ext
7392 cat >>conftest.
$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7396 #define $ac_func innocuous_$ac_func
7398 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char $ac_func (); below.
7400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401 <limits.h> exists even on freestanding compilers. */
7404 # include <limits.h>
7406 # include <assert.h>
7411 /* Override any gcc2 internal prototype to avoid an error. */
7416 /* We use char because int might match the return type of a gcc2
7417 builtin and then its argument prototype would still apply. */
7419 /* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7425 char (*f) () = $ac_func;
7434 return f != $ac_func;
7439 rm -f conftest.
$ac_objext conftest
$ac_exeext
7440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7441 (eval $ac_link) 2>conftest.er1
7443 grep -v '^ *+' conftest.er1
>conftest.err
7445 cat conftest.err
>&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try
='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try
='test -s conftest$ac_exeext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 eval "$as_ac_var=yes"
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.
$ac_ext >&5
7466 eval "$as_ac_var=no"
7468 rm -f conftest.err conftest.
$ac_objext \
7469 conftest
$ac_exeext conftest.
$ac_ext
7471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7473 if test `eval echo '${'$as_ac_var'}'` = yes; then
7474 cat >>confdefs.h
<<_ACEOF
7475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7480 "$ac_func.$ac_objext" | \
7481 *" $ac_func.$ac_objext" | \
7482 "$ac_func.$ac_objext "* | \
7483 *" $ac_func.$ac_objext "* ) ;;
7484 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7492 for ac_func
in strftime
7494 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7495 echo "$as_me:$LINENO: checking for $ac_func" >&5
7496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7497 if eval "test \"\${$as_ac_var+set}\" = set"; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 cat >conftest.
$ac_ext <<_ACEOF
7503 cat confdefs.h
>>conftest.
$ac_ext
7504 cat >>conftest.
$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7508 #define $ac_func innocuous_$ac_func
7510 /* System header to define __stub macros and hopefully few prototypes,
7511 which can conflict with char $ac_func (); below.
7512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 <limits.h> exists even on freestanding compilers. */
7516 # include <limits.h>
7518 # include <assert.h>
7523 /* Override any gcc2 internal prototype to avoid an error. */
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7531 /* The GNU C library defines this for functions which it implements
7532 to always fail with ENOSYS. Some functions are actually named
7533 something starting with __ and the normal name is an alias. */
7534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7537 char (*f) () = $ac_func;
7546 return f != $ac_func;
7551 rm -f conftest.
$ac_objext conftest
$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>conftest.er1
7555 grep -v '^ *+' conftest.er1
>conftest.err
7557 cat conftest.err
>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try
='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try
='test -s conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 eval "$as_ac_var=yes"
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.
$ac_ext >&5
7578 eval "$as_ac_var=no"
7580 rm -f conftest.err conftest.
$ac_objext \
7581 conftest
$ac_exeext conftest.
$ac_ext
7583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7585 if test `eval echo '${'$as_ac_var'}'` = yes; then
7586 cat >>confdefs.h
<<_ACEOF
7587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7595 for ac_func
in setlinebuf alarm
7597 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7598 echo "$as_me:$LINENO: checking for $ac_func" >&5
7599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_var+set}\" = set"; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 cat >conftest.
$ac_ext <<_ACEOF
7606 cat confdefs.h
>>conftest.
$ac_ext
7607 cat >>conftest.
$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7611 #define $ac_func innocuous_$ac_func
7613 /* System header to define __stub macros and hopefully few prototypes,
7614 which can conflict with char $ac_func (); below.
7615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7616 <limits.h> exists even on freestanding compilers. */
7619 # include <limits.h>
7621 # include <assert.h>
7626 /* Override any gcc2 internal prototype to avoid an error. */
7631 /* We use char because int might match the return type of a gcc2
7632 builtin and then its argument prototype would still apply. */
7634 /* The GNU C library defines this for functions which it implements
7635 to always fail with ENOSYS. Some functions are actually named
7636 something starting with __ and the normal name is an alias. */
7637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7640 char (*f) () = $ac_func;
7649 return f != $ac_func;
7654 rm -f conftest.
$ac_objext conftest
$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1
>conftest.err
7660 cat conftest.err
>&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try
='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try
='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 eval "$as_ac_var=yes"
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.
$ac_ext >&5
7681 eval "$as_ac_var=no"
7683 rm -f conftest.err conftest.
$ac_objext \
7684 conftest
$ac_exeext conftest.
$ac_ext
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7688 if test `eval echo '${'$as_ac_var'}'` = yes; then
7689 cat >>confdefs.h
<<_ACEOF
7690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7700 for ac_func
in vsnprintf snprintf
7702 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7703 echo "$as_me:$LINENO: checking for $ac_func" >&5
7704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7705 if eval "test \"\${$as_ac_var+set}\" = set"; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 cat >conftest.
$ac_ext <<_ACEOF
7711 cat confdefs.h
>>conftest.
$ac_ext
7712 cat >>conftest.
$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7716 #define $ac_func innocuous_$ac_func
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char $ac_func (); below.
7720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 <limits.h> exists even on freestanding compilers. */
7724 # include <limits.h>
7726 # include <assert.h>
7731 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7739 /* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7745 char (*f) () = $ac_func;
7754 return f != $ac_func;
7759 rm -f conftest.
$ac_objext conftest
$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>conftest.er1
7763 grep -v '^ *+' conftest.er1
>conftest.err
7765 cat conftest.err
>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try
='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try
='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 eval "$as_ac_var=yes"
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.
$ac_ext >&5
7786 eval "$as_ac_var=no"
7788 rm -f conftest.err conftest.
$ac_objext \
7789 conftest
$ac_exeext conftest.
$ac_ext
7791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7793 if test `eval echo '${'$as_ac_var'}'` = yes; then
7794 cat >>confdefs.h
<<_ACEOF
7795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7803 if test $needsnprintf = yes; then
7805 "snprintf.$ac_objext" | \
7806 *" snprintf.$ac_objext" | \
7807 "snprintf.$ac_objext "* | \
7808 *" snprintf.$ac_objext "* ) ;;
7809 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
7815 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7816 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7817 if test "${ac_cv_type_signal+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 cat >conftest.
$ac_ext <<_ACEOF
7823 cat confdefs.h
>>conftest.
$ac_ext
7824 cat >>conftest.
$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 #include <sys/types.h>
7832 extern "C" void (*signal (int, void (*)(int)))(int);
7834 void (*signal ()) ();
7845 rm -f conftest.
$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>conftest.er1
7849 grep -v '^ *+' conftest.er1
>conftest.err
7851 cat conftest.err
>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try
='test -z "$ac_c_werror_flag"
7855 || test ! -s conftest.err'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try
='test -s conftest.$ac_objext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 ac_cv_type_signal
=void
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.
$ac_ext >&5
7872 ac_cv_type_signal
=int
7874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7876 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7877 echo "${ECHO_T}$ac_cv_type_signal" >&6
7879 cat >>confdefs.h
<<_ACEOF
7880 #define RETSIGTYPE $ac_cv_type_signal
7884 if test "$ac_cv_type_signal" = void
; then
7885 cat >>confdefs.h
<<\_ACEOF
7890 cat >>confdefs.h
<<\_ACEOF
7891 #define RETSIGVAL (0)
7898 cat >>confdefs.h
<<\_ACEOF
7899 #define _BSD_SIGNALS 1
7906 for ac_func
in sigaction
7908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7909 echo "$as_me:$LINENO: checking for $ac_func" >&5
7910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7911 if eval "test \"\${$as_ac_var+set}\" = set"; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.
$ac_ext <<_ACEOF
7917 cat confdefs.h
>>conftest.
$ac_ext
7918 cat >>conftest.
$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7922 #define $ac_func innocuous_$ac_func
7924 /* System header to define __stub macros and hopefully few prototypes,
7925 which can conflict with char $ac_func (); below.
7926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7927 <limits.h> exists even on freestanding compilers. */
7930 # include <limits.h>
7932 # include <assert.h>
7937 /* Override any gcc2 internal prototype to avoid an error. */
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7945 /* The GNU C library defines this for functions which it implements
7946 to always fail with ENOSYS. Some functions are actually named
7947 something starting with __ and the normal name is an alias. */
7948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7951 char (*f) () = $ac_func;
7960 return f != $ac_func;
7965 rm -f conftest.
$ac_objext conftest
$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>conftest.er1
7969 grep -v '^ *+' conftest.er1
>conftest.err
7971 cat conftest.err
>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try
='test -z "$ac_c_werror_flag"
7975 || test ! -s conftest.err'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try
='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 eval "$as_ac_var=yes"
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.
$ac_ext >&5
7992 eval "$as_ac_var=no"
7994 rm -f conftest.err conftest.
$ac_objext \
7995 conftest
$ac_exeext conftest.
$ac_ext
7997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7999 if test `eval echo '${'$as_ac_var'}'` = yes; then
8000 cat >>confdefs.h
<<_ACEOF
8001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8007 if test $ac_cv_func_sigaction = no
; then
8009 for ac_func
in sigset
8011 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012 echo "$as_me:$LINENO: checking for $ac_func" >&5
8013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8014 if eval "test \"\${$as_ac_var+set}\" = set"; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 cat >conftest.
$ac_ext <<_ACEOF
8020 cat confdefs.h
>>conftest.
$ac_ext
8021 cat >>conftest.
$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8025 #define $ac_func innocuous_$ac_func
8027 /* System header to define __stub macros and hopefully few prototypes,
8028 which can conflict with char $ac_func (); below.
8029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030 <limits.h> exists even on freestanding compilers. */
8033 # include <limits.h>
8035 # include <assert.h>
8040 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8048 /* The GNU C library defines this for functions which it implements
8049 to always fail with ENOSYS. Some functions are actually named
8050 something starting with __ and the normal name is an alias. */
8051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8054 char (*f) () = $ac_func;
8063 return f != $ac_func;
8068 rm -f conftest.
$ac_objext conftest
$ac_exeext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070 (eval $ac_link) 2>conftest.er1
8072 grep -v '^ *+' conftest.er1
>conftest.err
8074 cat conftest.err
>&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try
='test -z "$ac_c_werror_flag"
8078 || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try
='test -s conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 eval "$as_ac_var=yes"
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.
$ac_ext >&5
8095 eval "$as_ac_var=no"
8097 rm -f conftest.err conftest.
$ac_objext \
8098 conftest
$ac_exeext conftest.
$ac_ext
8100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8102 if test `eval echo '${'$as_ac_var'}'` = yes; then
8103 cat >>confdefs.h
<<_ACEOF
8104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8114 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8115 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8116 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 ac_func_search_save_LIBS
=$LIBS
8120 ac_cv_search_dnet_htoa
=no
8121 cat >conftest.
$ac_ext <<_ACEOF
8124 cat confdefs.h
>>conftest.
$ac_ext
8125 cat >>conftest.
$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8128 /* Override any gcc2 internal prototype to avoid an error. */
8132 /* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8143 rm -f conftest.
$ac_objext conftest
$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>conftest.er1
8147 grep -v '^ *+' conftest.er1
>conftest.err
8149 cat conftest.err
>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try
='test -z "$ac_c_werror_flag"
8153 || test ! -s conftest.err'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; } &&
8159 { ac_try
='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_cv_search_dnet_htoa
="none required"
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.
$ac_ext >&5
8171 rm -f conftest.err conftest.
$ac_objext \
8172 conftest
$ac_exeext conftest.
$ac_ext
8173 if test "$ac_cv_search_dnet_htoa" = no
; then
8174 for ac_lib
in dnet
; do
8175 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8176 cat >conftest.
$ac_ext <<_ACEOF
8179 cat confdefs.h
>>conftest.
$ac_ext
8180 cat >>conftest.
$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8183 /* Override any gcc2 internal prototype to avoid an error. */
8187 /* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8198 rm -f conftest.
$ac_objext conftest
$ac_exeext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8200 (eval $ac_link) 2>conftest.er1
8202 grep -v '^ *+' conftest.er1
>conftest.err
8204 cat conftest.err
>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try
='test -z "$ac_c_werror_flag"
8208 || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try
='test -s conftest$ac_exeext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_search_dnet_htoa
="-l$ac_lib"
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8227 rm -f conftest.err conftest.
$ac_objext \
8228 conftest
$ac_exeext conftest.
$ac_ext
8231 LIBS
=$ac_func_search_save_LIBS
8233 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8234 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8235 if test "$ac_cv_search_dnet_htoa" != no
; then
8236 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
8237 cat >>confdefs.h
<<\_ACEOF
8238 #define HAVE_DNET_HTOA 1
8245 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8246 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8247 if test "${ac_cv_lib_rpc_main+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 ac_check_lib_save_LIBS
=$LIBS
8252 cat >conftest.
$ac_ext <<_ACEOF
8255 cat confdefs.h
>>conftest.
$ac_ext
8256 cat >>conftest.
$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8268 rm -f conftest.
$ac_objext conftest
$ac_exeext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270 (eval $ac_link) 2>conftest.er1
8272 grep -v '^ *+' conftest.er1
>conftest.err
8274 cat conftest.err
>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try
='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try
='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_lib_rpc_main
=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.
$ac_ext >&5
8295 ac_cv_lib_rpc_main
=no
8297 rm -f conftest.err conftest.
$ac_objext \
8298 conftest
$ac_exeext conftest.
$ac_ext
8299 LIBS
=$ac_check_lib_save_LIBS
8301 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8302 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8303 if test $ac_cv_lib_rpc_main = yes; then
8304 cat >>confdefs.h
<<_ACEOF
8305 #define HAVE_LIBRPC 1
8312 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8313 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8314 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 ac_func_search_save_LIBS
=$LIBS
8318 ac_cv_search_getrpcbynumber
=no
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 /* Override any gcc2 internal prototype to avoid an error. */
8330 /* We use char because int might match the return type of a gcc2
8331 builtin and then its argument prototype would still apply. */
8332 char getrpcbynumber ();
8341 rm -f conftest.
$ac_objext conftest
$ac_exeext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343 (eval $ac_link) 2>conftest.er1
8345 grep -v '^ *+' conftest.er1
>conftest.err
8347 cat conftest.err
>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try
='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try
='test -s conftest$ac_exeext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_search_getrpcbynumber
="none required"
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.
$ac_ext >&5
8369 rm -f conftest.err conftest.
$ac_objext \
8370 conftest
$ac_exeext conftest.
$ac_ext
8371 if test "$ac_cv_search_getrpcbynumber" = no
; then
8372 for ac_lib
in nsl
; do
8373 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8374 cat >conftest.
$ac_ext <<_ACEOF
8377 cat confdefs.h
>>conftest.
$ac_ext
8378 cat >>conftest.
$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8381 /* Override any gcc2 internal prototype to avoid an error. */
8385 /* We use char because int might match the return type of a gcc2
8386 builtin and then its argument prototype would still apply. */
8387 char getrpcbynumber ();
8396 rm -f conftest.
$ac_objext conftest
$ac_exeext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>conftest.er1
8400 grep -v '^ *+' conftest.er1
>conftest.err
8402 cat conftest.err
>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try
='test -z "$ac_c_werror_flag"
8406 || test ! -s conftest.err'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try
='test -s conftest$ac_exeext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_cv_search_getrpcbynumber
="-l$ac_lib"
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.
$ac_ext >&5
8425 rm -f conftest.err conftest.
$ac_objext \
8426 conftest
$ac_exeext conftest.
$ac_ext
8429 LIBS
=$ac_func_search_save_LIBS
8431 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8432 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8433 if test "$ac_cv_search_getrpcbynumber" != no
; then
8434 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
8435 cat >>confdefs.h
<<\_ACEOF
8436 #define HAVE_GETRPCBYNUMBER 1
8444 # Most operating systems have gethostbyname() in the default searched
8445 # libraries (i.e. libc):
8446 # Some OSes (eg. Solaris) place it in libnsl
8447 # Some strange OSes (SINIX) have it in libsocket:
8448 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8449 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8450 if test "${ac_cv_search_gethostbyname+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 ac_func_search_save_LIBS
=$LIBS
8454 ac_cv_search_gethostbyname
=no
8455 cat >conftest.
$ac_ext <<_ACEOF
8458 cat confdefs.h
>>conftest.
$ac_ext
8459 cat >>conftest.
$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8462 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8468 char gethostbyname ();
8477 rm -f conftest.
$ac_objext conftest
$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>conftest.er1
8481 grep -v '^ *+' conftest.er1
>conftest.err
8483 cat conftest.err
>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try
='test -z "$ac_c_werror_flag"
8487 || test ! -s conftest.err'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try
='test -s conftest$ac_exeext'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_cv_search_gethostbyname
="none required"
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.
$ac_ext >&5
8505 rm -f conftest.err conftest.
$ac_objext \
8506 conftest
$ac_exeext conftest.
$ac_ext
8507 if test "$ac_cv_search_gethostbyname" = no
; then
8508 for ac_lib
in nsl socket resolv
; do
8509 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8510 cat >conftest.
$ac_ext <<_ACEOF
8513 cat confdefs.h
>>conftest.
$ac_ext
8514 cat >>conftest.
$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8517 /* Override any gcc2 internal prototype to avoid an error. */
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523 char gethostbyname ();
8532 rm -f conftest.
$ac_objext conftest
$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1
>conftest.err
8538 cat conftest.err
>&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try
='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try
='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_search_gethostbyname
="-l$ac_lib"
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.
$ac_ext >&5
8561 rm -f conftest.err conftest.
$ac_objext \
8562 conftest
$ac_exeext conftest.
$ac_ext
8565 LIBS
=$ac_func_search_save_LIBS
8567 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8568 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8569 if test "$ac_cv_search_gethostbyname" != no
; then
8570 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
8574 # Unfortunately libsocket sometimes depends on libnsl and
8575 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8576 if test "$ac_cv_search_gethostbyname" = "no"
8578 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8579 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8580 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 ac_check_lib_save_LIBS
=$LIBS
8584 LIBS
="-lsocket -lnsl $LIBS"
8585 cat >conftest.
$ac_ext <<_ACEOF
8588 cat confdefs.h
>>conftest.
$ac_ext
8589 cat >>conftest.
$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8592 /* Override any gcc2 internal prototype to avoid an error. */
8596 /* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8598 char gethostbyname ();
8607 rm -f conftest.
$ac_objext conftest
$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>conftest.er1
8611 grep -v '^ *+' conftest.er1
>conftest.err
8613 cat conftest.err
>&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try
='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try
='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_lib_socket_gethostbyname
=yes
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.
$ac_ext >&5
8634 ac_cv_lib_socket_gethostbyname
=no
8636 rm -f conftest.err conftest.
$ac_objext \
8637 conftest
$ac_exeext conftest.
$ac_ext
8638 LIBS
=$ac_check_lib_save_LIBS
8640 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8641 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8642 if test $ac_cv_lib_socket_gethostbyname = yes; then
8643 LIBS
="-lsocket -lnsl $LIBS"
8647 echo "$as_me:$LINENO: checking for library containing socket" >&5
8648 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8649 if test "${ac_cv_search_socket+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 ac_func_search_save_LIBS
=$LIBS
8653 ac_cv_search_socket
=no
8654 cat >conftest.
$ac_ext <<_ACEOF
8657 cat confdefs.h
>>conftest.
$ac_ext
8658 cat >>conftest.
$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 /* Override any gcc2 internal prototype to avoid an error. */
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8676 rm -f conftest.
$ac_objext conftest
$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8680 grep -v '^ *+' conftest.er1
>conftest.err
8682 cat conftest.err
>&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try
='test -z "$ac_c_werror_flag"
8686 || test ! -s conftest.err'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try
='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_search_socket
="none required"
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.
$ac_ext >&5
8704 rm -f conftest.err conftest.
$ac_objext \
8705 conftest
$ac_exeext conftest.
$ac_ext
8706 if test "$ac_cv_search_socket" = no
; then
8707 for ac_lib
in socket
; do
8708 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8709 cat >conftest.
$ac_ext <<_ACEOF
8712 cat confdefs.h
>>conftest.
$ac_ext
8713 cat >>conftest.
$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8716 /* Override any gcc2 internal prototype to avoid an error. */
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8731 rm -f conftest.
$ac_objext conftest
$ac_exeext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733 (eval $ac_link) 2>conftest.er1
8735 grep -v '^ *+' conftest.er1
>conftest.err
8737 cat conftest.err
>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try
='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try
='test -s conftest$ac_exeext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_search_socket
="-l$ac_lib"
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.
$ac_ext >&5
8760 rm -f conftest.err conftest.
$ac_objext \
8761 conftest
$ac_exeext conftest.
$ac_ext
8764 LIBS
=$ac_func_search_save_LIBS
8766 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8767 echo "${ECHO_T}$ac_cv_search_socket" >&6
8768 if test "$ac_cv_search_socket" != no
; then
8769 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
8772 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8773 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8774 if test "${ac_cv_lib_socket_socket+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 ac_check_lib_save_LIBS
=$LIBS
8778 LIBS
="-lsocket -lnsl $LIBS"
8779 cat >conftest.
$ac_ext <<_ACEOF
8782 cat confdefs.h
>>conftest.
$ac_ext
8783 cat >>conftest.
$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8786 /* Override any gcc2 internal prototype to avoid an error. */
8790 /* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8801 rm -f conftest.
$ac_objext conftest
$ac_exeext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8803 (eval $ac_link) 2>conftest.er1
8805 grep -v '^ *+' conftest.er1
>conftest.err
8807 cat conftest.err
>&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try
='test -z "$ac_c_werror_flag"
8811 || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try
='test -s conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_lib_socket_socket
=yes
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.
$ac_ext >&5
8828 ac_cv_lib_socket_socket
=no
8830 rm -f conftest.err conftest.
$ac_objext \
8831 conftest
$ac_exeext conftest.
$ac_ext
8832 LIBS
=$ac_check_lib_save_LIBS
8834 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8835 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8836 if test $ac_cv_lib_socket_socket = yes; then
8837 LIBS
="-lsocket -lnsl $LIBS"
8842 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8843 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8844 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8845 if test "${ac_cv_search_putmsg+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 ac_func_search_save_LIBS
=$LIBS
8849 ac_cv_search_putmsg
=no
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8857 /* Override any gcc2 internal prototype to avoid an error. */
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8872 rm -f conftest.
$ac_objext conftest
$ac_exeext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8876 grep -v '^ *+' conftest.er1
>conftest.err
8878 cat conftest.err
>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try
='test -z "$ac_c_werror_flag"
8882 || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try
='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_search_putmsg
="none required"
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.
$ac_ext >&5
8900 rm -f conftest.err conftest.
$ac_objext \
8901 conftest
$ac_exeext conftest.
$ac_ext
8902 if test "$ac_cv_search_putmsg" = no
; then
8903 for ac_lib
in str
; do
8904 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8905 cat >conftest.
$ac_ext <<_ACEOF
8908 cat confdefs.h
>>conftest.
$ac_ext
8909 cat >>conftest.
$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8912 /* Override any gcc2 internal prototype to avoid an error. */
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8927 rm -f conftest.
$ac_objext conftest
$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929 (eval $ac_link) 2>conftest.er1
8931 grep -v '^ *+' conftest.er1
>conftest.err
8933 cat conftest.err
>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try
='test -z "$ac_c_werror_flag"
8937 || test ! -s conftest.err'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try
='test -s conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_cv_search_putmsg
="-l$ac_lib"
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.
$ac_ext >&5
8956 rm -f conftest.err conftest.
$ac_objext \
8957 conftest
$ac_exeext conftest.
$ac_ext
8960 LIBS
=$ac_func_search_save_LIBS
8962 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8963 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8964 if test "$ac_cv_search_putmsg" != no
; then
8965 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
8972 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
8973 if test -f $pfopen ; then
8975 for ac_func
in pfopen
8977 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8978 echo "$as_me:$LINENO: checking for $ac_func" >&5
8979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_var+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.
$ac_ext <<_ACEOF
8986 cat confdefs.h
>>conftest.
$ac_ext
8987 cat >>conftest.
$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8991 #define $ac_func innocuous_$ac_func
8993 /* System header to define __stub macros and hopefully few prototypes,
8994 which can conflict with char $ac_func (); below.
8995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8996 <limits.h> exists even on freestanding compilers. */
8999 # include <limits.h>
9001 # include <assert.h>
9006 /* Override any gcc2 internal prototype to avoid an error. */
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9014 /* The GNU C library defines this for functions which it implements
9015 to always fail with ENOSYS. Some functions are actually named
9016 something starting with __ and the normal name is an alias. */
9017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9020 char (*f) () = $ac_func;
9029 return f != $ac_func;
9034 rm -f conftest.
$ac_objext conftest
$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>conftest.er1
9038 grep -v '^ *+' conftest.er1
>conftest.err
9040 cat conftest.err
>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try
='test -z "$ac_c_werror_flag"
9044 || test ! -s conftest.err'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; } &&
9050 { ac_try
='test -s conftest$ac_exeext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 eval "$as_ac_var=yes"
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.
$ac_ext >&5
9061 eval "$as_ac_var=no"
9063 rm -f conftest.err conftest.
$ac_objext \
9064 conftest
$ac_exeext conftest.
$ac_ext
9066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9068 if test `eval echo '${'$as_ac_var'}'` = yes; then
9069 cat >>confdefs.h
<<_ACEOF
9070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9076 if test $ac_cv_func_pfopen = "no" ; then
9077 echo "$as_me:$LINENO: result: Using $pfopen" >&5
9078 echo "${ECHO_T}Using $pfopen" >&6
9079 LIBS
="$LIBS $pfopen"
9082 echo "$as_me:$LINENO: checking for local pcap library" >&5
9083 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9086 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9087 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9088 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
9089 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9090 if test $lastdir = $basedir ; then
9094 if test -r $dir/libpcap.a
; then
9095 libpcap
=$dir/libpcap.a
9099 if test $libpcap = FAIL
; then
9100 echo "$as_me:$LINENO: result: not found" >&5
9101 echo "${ECHO_T}not found" >&6
9102 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9103 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9104 if test "${ac_cv_lib_pcap_main+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 ac_check_lib_save_LIBS
=$LIBS
9109 cat >conftest.
$ac_ext <<_ACEOF
9112 cat confdefs.h
>>conftest.
$ac_ext
9113 cat >>conftest.
$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9125 rm -f conftest.
$ac_objext conftest
$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>conftest.er1
9129 grep -v '^ *+' conftest.er1
>conftest.err
9131 cat conftest.err
>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try
='test -z "$ac_c_werror_flag"
9135 || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try
='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_lib_pcap_main
=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.
$ac_ext >&5
9152 ac_cv_lib_pcap_main
=no
9154 rm -f conftest.err conftest.
$ac_objext \
9155 conftest
$ac_exeext conftest.
$ac_ext
9156 LIBS
=$ac_check_lib_save_LIBS
9158 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9159 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9160 if test $ac_cv_lib_pcap_main = yes; then
9164 if test $libpcap = FAIL
; then
9165 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9166 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9167 { (exit 1); exit 1; }; }
9169 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9170 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9171 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9172 \
( ! -r /usr
/include
/pcap.h \
); then
9173 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9174 d
="/usr/local/include/pcap"
9175 elif test -r /usr
/include
/pcap
/pcap.h
; then
9176 d
="/usr/include/pcap"
9179 if test -z "$d" ; then
9180 echo "$as_me:$LINENO: result: not found" >&5
9181 echo "${ECHO_T}not found" >&6
9183 V_INCLS
="-I$d $V_INCLS"
9184 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9185 echo "${ECHO_T}found -- -I$d added" >&6
9189 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9190 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9191 if test -r $d/pcap.h
; then
9192 V_INCLS
="-I$d $V_INCLS"
9193 elif test -r $places/pcap.h
; then
9194 V_INCLS
="-I$places $V_INCLS"
9196 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9197 echo "$as_me: error: cannot find pcap.h" >&2;}
9198 { (exit see INSTALL
); exit see INSTALL
; }; }
9200 echo "$as_me:$LINENO: result: $libpcap" >&5
9201 echo "${ECHO_T}$libpcap" >&6
9203 LIBS
="$libpcap $LIBS"
9207 pseexe
="/lib/pse.exp"
9208 echo "$as_me:$LINENO: checking for $pseexe" >&5
9209 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9210 if test -f $pseexe ; then
9211 echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6
9213 LIBS
="$LIBS -I:$pseexe"
9216 # We need "-lodm" and "-lcfg", as libpcap requires them on
9217 # AIX, and we just build a static libpcap.a and thus can't
9218 # arrange that when you link with libpcap you automatically
9219 # link with those libraries.
9221 LIBS
="$LIBS -lodm -lcfg"
9225 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9226 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9227 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 cat >conftest.
$ac_ext <<_ACEOF
9233 cat confdefs.h
>>conftest.
$ac_ext
9234 cat >>conftest.
$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9238 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9240 /* System header to define __stub macros and hopefully few prototypes,
9241 which can conflict with char pcap_list_datalinks (); below.
9242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9243 <limits.h> exists even on freestanding compilers. */
9246 # include <limits.h>
9248 # include <assert.h>
9251 #undef pcap_list_datalinks
9253 /* Override any gcc2 internal prototype to avoid an error. */
9258 /* We use char because int might match the return type of a gcc2
9259 builtin and then its argument prototype would still apply. */
9260 char pcap_list_datalinks ();
9261 /* The GNU C library defines this for functions which it implements
9262 to always fail with ENOSYS. Some functions are actually named
9263 something starting with __ and the normal name is an alias. */
9264 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9267 char (*f) () = pcap_list_datalinks;
9276 return f != pcap_list_datalinks;
9281 rm -f conftest.
$ac_objext conftest
$ac_exeext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283 (eval $ac_link) 2>conftest.er1
9285 grep -v '^ *+' conftest.er1
>conftest.err
9287 cat conftest.err
>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try
='test -z "$ac_c_werror_flag"
9291 || test ! -s conftest.err'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; } &&
9297 { ac_try
='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_cv_func_pcap_list_datalinks
=yes
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.
$ac_ext >&5
9308 ac_cv_func_pcap_list_datalinks
=no
9310 rm -f conftest.err conftest.
$ac_objext \
9311 conftest
$ac_exeext conftest.
$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9314 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9315 if test $ac_cv_func_pcap_list_datalinks = yes; then
9316 cat >>confdefs.h
<<\_ACEOF
9317 #define HAVE_PCAP_LIST_DATALINKS 1
9323 "datalinks.$ac_objext" | \
9324 *" datalinks.$ac_objext" | \
9325 "datalinks.$ac_objext "* | \
9326 *" datalinks.$ac_objext "* ) ;;
9327 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext" ;;
9333 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9334 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9335 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.
$ac_ext <<_ACEOF
9341 cat confdefs.h
>>conftest.
$ac_ext
9342 cat >>conftest.
$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9346 #define pcap_set_datalink innocuous_pcap_set_datalink
9348 /* System header to define __stub macros and hopefully few prototypes,
9349 which can conflict with char pcap_set_datalink (); below.
9350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351 <limits.h> exists even on freestanding compilers. */
9354 # include <limits.h>
9356 # include <assert.h>
9359 #undef pcap_set_datalink
9361 /* Override any gcc2 internal prototype to avoid an error. */
9366 /* We use char because int might match the return type of a gcc2
9367 builtin and then its argument prototype would still apply. */
9368 char pcap_set_datalink ();
9369 /* The GNU C library defines this for functions which it implements
9370 to always fail with ENOSYS. Some functions are actually named
9371 something starting with __ and the normal name is an alias. */
9372 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9375 char (*f) () = pcap_set_datalink;
9384 return f != pcap_set_datalink;
9389 rm -f conftest.
$ac_objext conftest
$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>conftest.er1
9393 grep -v '^ *+' conftest.er1
>conftest.err
9395 cat conftest.err
>&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try
='test -z "$ac_c_werror_flag"
9399 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try
='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_func_pcap_set_datalink
=yes
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.
$ac_ext >&5
9416 ac_cv_func_pcap_set_datalink
=no
9418 rm -f conftest.err conftest.
$ac_objext \
9419 conftest
$ac_exeext conftest.
$ac_ext
9421 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9422 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9423 if test $ac_cv_func_pcap_set_datalink = yes; then
9424 cat >>confdefs.h
<<\_ACEOF
9425 #define HAVE_PCAP_SET_DATALINK 1
9430 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9431 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9432 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 cat >conftest.
$ac_ext <<_ACEOF
9438 cat confdefs.h
>>conftest.
$ac_ext
9439 cat >>conftest.
$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9443 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9445 /* System header to define __stub macros and hopefully few prototypes,
9446 which can conflict with char pcap_datalink_name_to_val (); below.
9447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9448 <limits.h> exists even on freestanding compilers. */
9451 # include <limits.h>
9453 # include <assert.h>
9456 #undef pcap_datalink_name_to_val
9458 /* Override any gcc2 internal prototype to avoid an error. */
9463 /* We use char because int might match the return type of a gcc2
9464 builtin and then its argument prototype would still apply. */
9465 char pcap_datalink_name_to_val ();
9466 /* The GNU C library defines this for functions which it implements
9467 to always fail with ENOSYS. Some functions are actually named
9468 something starting with __ and the normal name is an alias. */
9469 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9472 char (*f) () = pcap_datalink_name_to_val;
9481 return f != pcap_datalink_name_to_val;
9486 rm -f conftest.
$ac_objext conftest
$ac_exeext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1
>conftest.err
9492 cat conftest.err
>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try
='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try
='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_cv_func_pcap_datalink_name_to_val
=yes
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.
$ac_ext >&5
9513 ac_cv_func_pcap_datalink_name_to_val
=no
9515 rm -f conftest.err conftest.
$ac_objext \
9516 conftest
$ac_exeext conftest.
$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9519 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9520 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9522 cat >>confdefs.h
<<\_ACEOF
9523 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9526 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9527 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9528 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 cat >conftest.
$ac_ext <<_ACEOF
9534 cat confdefs.h
>>conftest.
$ac_ext
9535 cat >>conftest.
$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9539 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9541 /* System header to define __stub macros and hopefully few prototypes,
9542 which can conflict with char pcap_datalink_val_to_description (); below.
9543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544 <limits.h> exists even on freestanding compilers. */
9547 # include <limits.h>
9549 # include <assert.h>
9552 #undef pcap_datalink_val_to_description
9554 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561 char pcap_datalink_val_to_description ();
9562 /* The GNU C library defines this for functions which it implements
9563 to always fail with ENOSYS. Some functions are actually named
9564 something starting with __ and the normal name is an alias. */
9565 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9568 char (*f) () = pcap_datalink_val_to_description;
9577 return f != pcap_datalink_val_to_description;
9582 rm -f conftest.
$ac_objext conftest
$ac_exeext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9584 (eval $ac_link) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1
>conftest.err
9588 cat conftest.err
>&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try
='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try
='test -s conftest$ac_exeext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_func_pcap_datalink_val_to_description
=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.
$ac_ext >&5
9609 ac_cv_func_pcap_datalink_val_to_description
=no
9611 rm -f conftest.err conftest.
$ac_objext \
9612 conftest
$ac_exeext conftest.
$ac_ext
9614 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9615 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9616 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9617 cat >>confdefs.h
<<\_ACEOF
9618 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9624 "dlnames.$ac_objext" | \
9625 *" dlnames.$ac_objext" | \
9626 "dlnames.$ac_objext "* | \
9627 *" dlnames.$ac_objext "* ) ;;
9628 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext" ;;
9638 "dlnames.$ac_objext" | \
9639 *" dlnames.$ac_objext" | \
9640 "dlnames.$ac_objext "* | \
9641 *" dlnames.$ac_objext "* ) ;;
9642 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext" ;;
9650 for ac_func
in pcap_breakloop
9652 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9653 echo "$as_me:$LINENO: checking for $ac_func" >&5
9654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9655 if eval "test \"\${$as_ac_var+set}\" = set"; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 cat >conftest.
$ac_ext <<_ACEOF
9661 cat confdefs.h
>>conftest.
$ac_ext
9662 cat >>conftest.
$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9666 #define $ac_func innocuous_$ac_func
9668 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char $ac_func (); below.
9670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9671 <limits.h> exists even on freestanding compilers. */
9674 # include <limits.h>
9676 # include <assert.h>
9681 /* Override any gcc2 internal prototype to avoid an error. */
9686 /* We use char because int might match the return type of a gcc2
9687 builtin and then its argument prototype would still apply. */
9689 /* The GNU C library defines this for functions which it implements
9690 to always fail with ENOSYS. Some functions are actually named
9691 something starting with __ and the normal name is an alias. */
9692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9695 char (*f) () = $ac_func;
9704 return f != $ac_func;
9709 rm -f conftest.
$ac_objext conftest
$ac_exeext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711 (eval $ac_link) 2>conftest.er1
9713 grep -v '^ *+' conftest.er1
>conftest.err
9715 cat conftest.err
>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try
='test -z "$ac_c_werror_flag"
9719 || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try
='test -s conftest$ac_exeext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 eval "$as_ac_var=yes"
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.
$ac_ext >&5
9736 eval "$as_ac_var=no"
9738 rm -f conftest.err conftest.
$ac_objext \
9739 conftest
$ac_exeext conftest.
$ac_ext
9741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9743 if test `eval echo '${'$as_ac_var'}'` = yes; then
9744 cat >>confdefs.h
<<_ACEOF
9745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9754 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9755 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9757 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9758 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9759 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9760 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9761 # it does not ship with a libc symbol "inet_ntop()", it ships with
9762 # "_inet_ntop()", and has a #define macro in one of the system headers
9765 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9766 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9767 cat >conftest.
$ac_ext <<_ACEOF
9770 cat confdefs.h
>>conftest.
$ac_ext
9771 cat >>conftest.
$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 #include <sys/types.h>
9774 #include <sys/socket.h>
9775 #include <netinet/in.h>
9776 #include <arpa/inet.h>
9780 char src[4], dst[128];
9781 inet_ntop(AF_INET, src, dst, sizeof(dst));
9786 rm -f conftest.
$ac_objext conftest
$ac_exeext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9788 (eval $ac_link) 2>conftest.er1
9790 grep -v '^ *+' conftest.er1
>conftest.err
9792 cat conftest.err
>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try
='test -z "$ac_c_werror_flag"
9796 || test ! -s conftest.err'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try
='test -s conftest$ac_exeext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 echo "$as_me:$LINENO: result: yes" >&5
9809 echo "${ECHO_T}yes" >&6
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 echo "$as_me:$LINENO: result: no" >&5
9815 echo "${ECHO_T}no" >&6
9817 "inet_ntop.$ac_objext" | \
9818 *" inet_ntop.$ac_objext" | \
9819 "inet_ntop.$ac_objext "* | \
9820 *" inet_ntop.$ac_objext "* ) ;;
9821 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext" ;;
9825 rm -f conftest.err conftest.
$ac_objext \
9826 conftest
$ac_exeext conftest.
$ac_ext
9827 echo "$as_me:$LINENO: checking for inet_pton" >&5
9828 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
9829 cat >conftest.
$ac_ext <<_ACEOF
9832 cat confdefs.h
>>conftest.
$ac_ext
9833 cat >>conftest.
$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/socket.h>
9837 #include <netinet/in.h>
9838 #include <arpa/inet.h>
9842 char src[128], dst[4];
9843 inet_pton(AF_INET, src, dst);
9848 rm -f conftest.
$ac_objext conftest
$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>conftest.er1
9852 grep -v '^ *+' conftest.er1
>conftest.err
9854 cat conftest.err
>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try
='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try
='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 echo "$as_me:$LINENO: result: yes" >&5
9871 echo "${ECHO_T}yes" >&6
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.
$ac_ext >&5
9876 echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6
9879 "inet_pton.$ac_objext" | \
9880 *" inet_pton.$ac_objext" | \
9881 "inet_pton.$ac_objext "* | \
9882 *" inet_pton.$ac_objext "* ) ;;
9883 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext" ;;
9887 rm -f conftest.err conftest.
$ac_objext \
9888 conftest
$ac_exeext conftest.
$ac_ext
9889 echo "$as_me:$LINENO: checking for inet_aton" >&5
9890 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <sys/types.h>
9898 #include <netinet/in.h>
9899 #include <arpa/inet.h>
9905 inet_aton(src, &dst);
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>conftest.er1
9914 grep -v '^ *+' conftest.er1
>conftest.err
9916 cat conftest.err
>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try
='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try
='test -s conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 echo "$as_me:$LINENO: result: yes" >&5
9933 echo "${ECHO_T}yes" >&6
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.
$ac_ext >&5
9938 echo "$as_me:$LINENO: result: no" >&5
9939 echo "${ECHO_T}no" >&6
9941 "inet_aton.$ac_objext" | \
9942 *" inet_aton.$ac_objext" | \
9943 "inet_aton.$ac_objext "* | \
9944 *" inet_aton.$ac_objext "* ) ;;
9945 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext" ;;
9949 rm -f conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9953 # Check for these after AC_LBL_LIBPCAP, for the same reason.
9955 # You are in a twisty little maze of UN*Xes, all different.
9956 # Some might not have ether_ntohost().
9957 # Some might have it, but not declare it in any header file.
9958 # Some might have it, but declare it in <netinet/if_ether.h>.
9959 # Some might have it, but declare it in <netinet/ether.h>
9960 # (And some might have it but document it as something declared in
9961 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
9963 # Before you is a C compiler.
9966 for ac_func
in ether_ntohost
9968 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9969 echo "$as_me:$LINENO: checking for $ac_func" >&5
9970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9971 if eval "test \"\${$as_ac_var+set}\" = set"; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 cat >conftest.
$ac_ext <<_ACEOF
9977 cat confdefs.h
>>conftest.
$ac_ext
9978 cat >>conftest.
$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9982 #define $ac_func innocuous_$ac_func
9984 /* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char $ac_func (); below.
9986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987 <limits.h> exists even on freestanding compilers. */
9990 # include <limits.h>
9992 # include <assert.h>
9997 /* Override any gcc2 internal prototype to avoid an error. */
10002 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10005 /* The GNU C library defines this for functions which it implements
10006 to always fail with ENOSYS. Some functions are actually named
10007 something starting with __ and the normal name is an alias. */
10008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10011 char (*f) () = $ac_func;
10020 return f != $ac_func;
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 eval "$as_ac_var=yes"
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.
$ac_ext >&5
10052 eval "$as_ac_var=no"
10054 rm -f conftest.err conftest.
$ac_objext \
10055 conftest
$ac_exeext conftest.
$ac_ext
10057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10059 if test `eval echo '${'$as_ac_var'}'` = yes; then
10060 cat >>confdefs.h
<<_ACEOF
10061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10064 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10065 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10066 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 if test "$cross_compiling" = yes; then
10071 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10073 cat >conftest.
$ac_ext <<_ACEOF
10076 cat confdefs.h
>>conftest.
$ac_ext
10077 cat >>conftest.
$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10081 #include <sys/types.h>
10082 #include <sys/param.h>
10083 #include <sys/socket.h>
10086 main(int argc, char **argv)
10088 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10089 char name[MAXHOSTNAMELEN];
10091 ether_ntohost(name, (struct ether_addr *)ea);
10096 rm -f conftest
$ac_exeext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098 (eval $ac_link) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 ac_cv_buggy_ether_ntohost
=no
10109 echo "$as_me: program exited with status $ac_status" >&5
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.
$ac_ext >&5
10113 ( exit $ac_status )
10114 ac_cv_buggy_ether_ntohost
=yes
10116 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10119 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10120 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10121 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10122 cat >>confdefs.h
<<\_ACEOF
10123 #define USE_ETHER_NTOHOST 1
10131 if test "$ac_cv_func_ether_ntohost" = yes -a \
10132 "$ac_cv_buggy_ether_ntohost" = "no"; then
10134 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10136 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10138 # Yes. Does it declare ether_ntohost()?
10140 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10141 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10142 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.
$ac_ext <<_ACEOF
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 #include <sys/types.h>
10153 #include <sys/socket.h>
10154 #include <netinet/in.h>
10155 #include <arpa/inet.h>
10158 #include <net/if.h>
10159 #include <netinet/if_ether.h>
10165 #ifndef ether_ntohost
10166 char *p = (char *) ether_ntohost;
10173 rm -f conftest.
$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>conftest.er1
10177 grep -v '^ *+' conftest.er1
>conftest.err
10179 cat conftest.err
>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try
='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try
='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_have_decl_ether_ntohost
=yes
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.
$ac_ext >&5
10200 ac_cv_have_decl_ether_ntohost
=no
10202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10205 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10206 if test $ac_cv_have_decl_ether_ntohost = yes; then
10209 cat >>confdefs.h
<<\_ACEOF
10210 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10218 # Did that succeed?
10220 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10222 # No, how about <netinet/ether.h>, as on Linux?
10225 for ac_header
in netinet
/ether.h
10227 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229 echo "$as_me:$LINENO: checking for $ac_header" >&5
10230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10237 # Is the header compilable?
10238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10240 cat >conftest.
$ac_ext <<_ACEOF
10243 cat confdefs.h
>>conftest.
$ac_ext
10244 cat >>conftest.
$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 $ac_includes_default
10247 #include <$ac_header>
10249 rm -f conftest.
$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>conftest.er1
10253 grep -v '^ *+' conftest.er1
>conftest.err
10255 cat conftest.err
>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try
='test -z "$ac_c_werror_flag"
10259 || test ! -s conftest.err'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; } &&
10265 { ac_try
='test -s conftest.$ac_objext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_header_compiler
=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.
$ac_ext >&5
10276 ac_header_compiler
=no
10278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10280 echo "${ECHO_T}$ac_header_compiler" >&6
10282 # Is the header present?
10283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10285 cat >conftest.
$ac_ext <<_ACEOF
10288 cat confdefs.h
>>conftest.
$ac_ext
10289 cat >>conftest.
$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10291 #include <$ac_header>
10293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10294 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1
>conftest.err
10298 cat conftest.err
>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } >/dev
/null
; then
10301 if test -s conftest.err
; then
10302 ac_cpp_err
=$ac_c_preproc_warn_flag
10303 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10310 if test -z "$ac_cpp_err"; then
10311 ac_header_preproc
=yes
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.
$ac_ext >&5
10316 ac_header_preproc
=no
10318 rm -f conftest.err conftest.
$ac_ext
10319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10320 echo "${ECHO_T}$ac_header_preproc" >&6
10322 # So? What about this header?
10323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10329 ac_header_preproc
=yes
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10346 ## ------------------------------------------ ##
10347 ## Report this to the AC_PACKAGE_NAME lists. ##
10348 ## ------------------------------------------ ##
10351 sed "s/^/$as_me: WARNING: /" >&2
10354 echo "$as_me:$LINENO: checking for $ac_header" >&5
10355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 eval "$as_ac_Header=\$ac_header_preproc"
10361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10366 cat >>confdefs.h
<<_ACEOF
10367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10374 if test "$ac_cv_header_netinet_ether_h" = yes; then
10376 # We have it - does it declare ether_ntohost()?
10377 # Unset ac_cv_have_decl_ether_ntohost so we don't
10378 # treat the previous failure as a cached value and
10379 # suppress the next test.
10381 unset ac_cv_have_decl_ether_ntohost
10382 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10383 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10384 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 cat >conftest.
$ac_ext <<_ACEOF
10390 cat confdefs.h
>>conftest.
$ac_ext
10391 cat >>conftest.
$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10394 #include <netinet/ether.h>
10400 #ifndef ether_ntohost
10401 char *p = (char *) ether_ntohost;
10408 rm -f conftest.
$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410 (eval $ac_compile) 2>conftest.er1
10412 grep -v '^ *+' conftest.er1
>conftest.err
10414 cat conftest.err
>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try
='test -z "$ac_c_werror_flag"
10418 || test ! -s conftest.err'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try
='test -s conftest.$ac_objext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_have_decl_ether_ntohost
=yes
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.
$ac_ext >&5
10435 ac_cv_have_decl_ether_ntohost
=no
10437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10439 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10440 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10441 if test $ac_cv_have_decl_ether_ntohost = yes; then
10444 cat >>confdefs.h
<<\_ACEOF
10445 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10454 # Is ether_ntohost() declared?
10456 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10458 # No, we'll have to declare it ourselves.
10459 # Do we have "struct ether_addr"?
10461 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10462 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10463 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 cat >conftest.
$ac_ext <<_ACEOF
10469 cat confdefs.h
>>conftest.
$ac_ext
10470 cat >>conftest.
$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10473 #include <sys/types.h>
10474 #include <sys/socket.h>
10475 #include <netinet/in.h>
10476 #include <arpa/inet.h>
10479 #include <net/if.h>
10480 #include <netinet/if_ether.h>
10486 if ((struct ether_addr *) 0)
10488 if (sizeof (struct ether_addr))
10494 rm -f conftest.
$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10498 grep -v '^ *+' conftest.er1
>conftest.err
10500 cat conftest.err
>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try
='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try
='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 ac_cv_type_struct_ether_addr
=yes
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.
$ac_ext >&5
10521 ac_cv_type_struct_ether_addr
=no
10523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10525 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10526 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10527 if test $ac_cv_type_struct_ether_addr = yes; then
10529 cat >>confdefs.h
<<_ACEOF
10530 #define HAVE_STRUCT_ETHER_ADDR 1
10537 cat >>confdefs.h
<<\_ACEOF
10538 #define HAVE_DECL_ETHER_NTOHOST 0
10543 cat >>confdefs.h
<<\_ACEOF
10544 #define HAVE_DECL_ETHER_NTOHOST 1
10551 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10552 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10553 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 cat >conftest.
$ac_ext <<_ACEOF
10559 cat confdefs.h
>>conftest.
$ac_ext
10560 cat >>conftest.
$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10563 # include <sys/types.h>
10564 # include <sys/socket.h>
10568 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10573 rm -f conftest.
$ac_objext
10574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10575 (eval $ac_compile) 2>conftest.er1
10577 grep -v '^ *+' conftest.er1
>conftest.err
10579 cat conftest.err
>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try
='test -z "$ac_c_werror_flag"
10583 || test ! -s conftest.err'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; } &&
10589 { ac_try
='test -s conftest.$ac_objext'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 ac_cv_sockaddr_has_sa_len
=yes
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.
$ac_ext >&5
10600 ac_cv_sockaddr_has_sa_len
=no
10602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10605 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10606 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10607 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10608 cat >>confdefs.h
<<\_ACEOF
10609 #define HAVE_SOCKADDR_SA_LEN 1
10614 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
10615 missing_includes
=yes
10621 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
10623 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10624 echo "$as_me:$LINENO: checking for $ac_func" >&5
10625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10626 if eval "test \"\${$as_ac_var+set}\" = set"; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.
$ac_ext <<_ACEOF
10632 cat confdefs.h
>>conftest.
$ac_ext
10633 cat >>conftest.
$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10637 #define $ac_func innocuous_$ac_func
10639 /* System header to define __stub macros and hopefully few prototypes,
10640 which can conflict with char $ac_func (); below.
10641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 <limits.h> exists even on freestanding compilers. */
10645 # include <limits.h>
10647 # include <assert.h>
10652 /* Override any gcc2 internal prototype to avoid an error. */
10657 /* We use char because int might match the return type of a gcc2
10658 builtin and then its argument prototype would still apply. */
10660 /* The GNU C library defines this for functions which it implements
10661 to always fail with ENOSYS. Some functions are actually named
10662 something starting with __ and the normal name is an alias. */
10663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10666 char (*f) () = $ac_func;
10675 return f != $ac_func;
10680 rm -f conftest.
$ac_objext conftest
$ac_exeext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682 (eval $ac_link) 2>conftest.er1
10684 grep -v '^ *+' conftest.er1
>conftest.err
10686 cat conftest.err
>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try
='test -z "$ac_c_werror_flag"
10690 || test ! -s conftest.err'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try
='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 eval "$as_ac_var=yes"
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.
$ac_ext >&5
10707 eval "$as_ac_var=no"
10709 rm -f conftest.err conftest.
$ac_objext \
10710 conftest
$ac_exeext conftest.
$ac_ext
10712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10714 if test `eval echo '${'$as_ac_var'}'` = yes; then
10715 cat >>confdefs.h
<<_ACEOF
10716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10722 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10723 savedcflags
="$CFLAGS"
10724 CFLAGS
="$CFLAGS $V_INCLS"
10725 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10726 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
10727 if test "${ac_cv_type_pcap_if_t+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 cat >conftest.
$ac_ext <<_ACEOF
10733 cat confdefs.h
>>conftest.
$ac_ext
10734 cat >>conftest.
$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10741 if ((pcap_if_t *) 0)
10743 if (sizeof (pcap_if_t))
10749 rm -f conftest.
$ac_objext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>conftest.er1
10753 grep -v '^ *+' conftest.er1
>conftest.err
10755 cat conftest.err
>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try
='test -z "$ac_c_werror_flag"
10759 || test ! -s conftest.err'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try
='test -s conftest.$ac_objext'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }; then
10771 ac_cv_type_pcap_if_t
=yes
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.
$ac_ext >&5
10776 ac_cv_type_pcap_if_t
=no
10778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10780 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
10781 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
10782 if test $ac_cv_type_pcap_if_t = yes; then
10784 cat >>confdefs.h
<<_ACEOF
10785 #define HAVE_PCAP_IF_T 1
10791 CFLAGS
="$savedcflags"
10794 if test $ac_cv_func_pcap_lib_version = "no" ; then
10795 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
10796 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
10797 cat >conftest.
$ac_ext <<_ACEOF
10800 cat confdefs.h
>>conftest.
$ac_ext
10801 cat >>conftest.
$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10808 extern char pcap_version[];
10810 return (int)pcap_version;
10816 rm -f conftest.
$ac_objext conftest
$ac_exeext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>conftest.er1
10820 grep -v '^ *+' conftest.er1
>conftest.err
10822 cat conftest.err
>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try
='test -z "$ac_c_werror_flag"
10826 || test ! -s conftest.err'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try
='test -s conftest$ac_exeext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_lbl_cv_pcap_version_defined
=yes
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.
$ac_ext >&5
10843 ac_lbl_cv_pcap_version_defined
=no
10845 rm -f conftest.err conftest.
$ac_objext \
10846 conftest
$ac_exeext conftest.
$ac_ext
10847 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
10848 echo "$as_me:$LINENO: result: yes" >&5
10849 echo "${ECHO_T}yes" >&6
10850 cat >>confdefs.h
<<\_ACEOF
10851 #define HAVE_PCAP_VERSION 1
10855 echo "$as_me:$LINENO: result: no" >&5
10856 echo "${ECHO_T}no" >&6
10859 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
10860 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
10861 cat >conftest.
$ac_ext <<_ACEOF
10864 cat confdefs.h
>>conftest.
$ac_ext
10865 cat >>conftest.
$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10872 extern int pcap_debug;
10880 rm -f conftest.
$ac_objext conftest
$ac_exeext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882 (eval $ac_link) 2>conftest.er1
10884 grep -v '^ *+' conftest.er1
>conftest.err
10886 cat conftest.err
>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try
='test -z "$ac_c_werror_flag"
10890 || test ! -s conftest.err'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try
='test -s conftest$ac_exeext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 ac_lbl_cv_pcap_debug_defined
=yes
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.
$ac_ext >&5
10907 ac_lbl_cv_pcap_debug_defined
=no
10909 rm -f conftest.err conftest.
$ac_objext \
10910 conftest
$ac_exeext conftest.
$ac_ext
10911 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
10912 echo "$as_me:$LINENO: result: yes" >&5
10913 echo "${ECHO_T}yes" >&6
10914 cat >>confdefs.h
<<\_ACEOF
10915 #define HAVE_PCAP_DEBUG 1
10919 echo "$as_me:$LINENO: result: no" >&5
10920 echo "${ECHO_T}no" >&6
10922 # OK, what about "yydebug"?
10924 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
10925 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
10926 cat >conftest.
$ac_ext <<_ACEOF
10929 cat confdefs.h
>>conftest.
$ac_ext
10930 cat >>conftest.
$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10937 extern int yydebug;
10945 rm -f conftest.
$ac_objext conftest
$ac_exeext
10946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947 (eval $ac_link) 2>conftest.er1
10949 grep -v '^ *+' conftest.er1
>conftest.err
10951 cat conftest.err
>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try
='test -z "$ac_c_werror_flag"
10955 || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try
='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_lbl_cv_yydebug_defined
=yes
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.
$ac_ext >&5
10972 ac_lbl_cv_yydebug_defined
=no
10974 rm -f conftest.err conftest.
$ac_objext \
10975 conftest
$ac_exeext conftest.
$ac_ext
10976 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
10977 echo "$as_me:$LINENO: result: yes" >&5
10978 echo "${ECHO_T}yes" >&6
10979 cat >>confdefs.h
<<\_ACEOF
10980 #define HAVE_YYDEBUG 1
10984 echo "$as_me:$LINENO: result: no" >&5
10985 echo "${ECHO_T}no" >&6
10989 for ac_func
in bpf_dump
10991 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992 echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10994 if eval "test \"\${$as_ac_var+set}\" = set"; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.
$ac_ext <<_ACEOF
11000 cat confdefs.h
>>conftest.
$ac_ext
11001 cat >>conftest.
$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define $ac_func innocuous_$ac_func
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11013 # include <limits.h>
11015 # include <assert.h>
11020 /* Override any gcc2 internal prototype to avoid an error. */
11025 /* We use char because int might match the return type of a gcc2
11026 builtin and then its argument prototype would still apply. */
11028 /* The GNU C library defines this for functions which it implements
11029 to always fail with ENOSYS. Some functions are actually named
11030 something starting with __ and the normal name is an alias. */
11031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11034 char (*f) () = $ac_func;
11043 return f != $ac_func;
11048 rm -f conftest.
$ac_objext conftest
$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>conftest.er1
11052 grep -v '^ *+' conftest.er1
>conftest.err
11054 cat conftest.err
>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try
='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try
='test -s conftest$ac_exeext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.
$ac_ext >&5
11075 eval "$as_ac_var=no"
11077 rm -f conftest.err conftest.
$ac_objext \
11078 conftest
$ac_exeext conftest.
$ac_ext
11080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11082 if test `eval echo '${'$as_ac_var'}'` = yes; then
11083 cat >>confdefs.h
<<_ACEOF
11084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11089 "$ac_func.$ac_objext" | \
11090 *" $ac_func.$ac_objext" | \
11091 "$ac_func.$ac_objext "* | \
11092 *" $ac_func.$ac_objext "* ) ;;
11093 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
11101 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11107 cat >>confdefs.h
<<\_ACEOF
11126 if test -f /dev
/bpf0
; then
11131 for ac_header
in sys
/bitypes.h
11133 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11135 echo "$as_me:$LINENO: checking for $ac_header" >&5
11136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11143 # Is the header compilable?
11144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11146 cat >conftest.
$ac_ext <<_ACEOF
11149 cat confdefs.h
>>conftest.
$ac_ext
11150 cat >>conftest.
$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 $ac_includes_default
11153 #include <$ac_header>
11155 rm -f conftest.
$ac_objext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11157 (eval $ac_compile) 2>conftest.er1
11159 grep -v '^ *+' conftest.er1
>conftest.err
11161 cat conftest.err
>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try
='test -z "$ac_c_werror_flag"
11165 || test ! -s conftest.err'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; } &&
11171 { ac_try
='test -s conftest.$ac_objext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 ac_header_compiler
=yes
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.
$ac_ext >&5
11182 ac_header_compiler
=no
11184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11186 echo "${ECHO_T}$ac_header_compiler" >&6
11188 # Is the header present?
11189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11191 cat >conftest.
$ac_ext <<_ACEOF
11194 cat confdefs.h
>>conftest.
$ac_ext
11195 cat >>conftest.
$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 #include <$ac_header>
11199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11202 grep -v '^ *+' conftest.er1
>conftest.err
11204 cat conftest.err
>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } >/dev
/null
; then
11207 if test -s conftest.err
; then
11208 ac_cpp_err
=$ac_c_preproc_warn_flag
11209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11216 if test -z "$ac_cpp_err"; then
11217 ac_header_preproc
=yes
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.
$ac_ext >&5
11222 ac_header_preproc
=no
11224 rm -f conftest.err conftest.
$ac_ext
11225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11226 echo "${ECHO_T}$ac_header_preproc" >&6
11228 # So? What about this header?
11229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11235 ac_header_preproc
=yes
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11252 ## ------------------------------------------ ##
11253 ## Report this to the AC_PACKAGE_NAME lists. ##
11254 ## ------------------------------------------ ##
11257 sed "s/^/$as_me: WARNING: /" >&2
11260 echo "$as_me:$LINENO: checking for $ac_header" >&5
11261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 eval "$as_ac_Header=\$ac_header_preproc"
11267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11272 cat >>confdefs.h
<<_ACEOF
11273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11281 echo "$as_me:$LINENO: checking for int8_t" >&5
11282 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11283 if test "${ac_cv_type_int8_t+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 cat >conftest.
$ac_ext <<_ACEOF
11289 cat confdefs.h
>>conftest.
$ac_ext
11290 cat >>conftest.
$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 $ac_includes_default
11298 if (sizeof (int8_t))
11304 rm -f conftest.
$ac_objext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>conftest.er1
11308 grep -v '^ *+' conftest.er1
>conftest.err
11310 cat conftest.err
>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try
='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
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); }; } &&
11320 { ac_try
='test -s conftest.$ac_objext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 ac_cv_type_int8_t
=yes
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.
$ac_ext >&5
11331 ac_cv_type_int8_t
=no
11333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11335 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11336 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11337 if test $ac_cv_type_int8_t = yes; then
11341 cat >>confdefs.h
<<\_ACEOF
11342 #define int8_t signed char
11347 echo "$as_me:$LINENO: checking for u_int8_t" >&5
11348 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11349 if test "${ac_cv_type_u_int8_t+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.
$ac_ext <<_ACEOF
11355 cat confdefs.h
>>conftest.
$ac_ext
11356 cat >>conftest.
$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 #ifdef HAVE_SYS_BITYPES_H
11360 #include <sys/bitypes.h>
11366 if ((u_int8_t *) 0)
11368 if (sizeof (u_int8_t))
11374 rm -f conftest.
$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11378 grep -v '^ *+' conftest.er1
>conftest.err
11380 cat conftest.err
>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try
='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try
='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_type_u_int8_t
=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.
$ac_ext >&5
11401 ac_cv_type_u_int8_t
=no
11403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11405 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11406 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11407 if test $ac_cv_type_u_int8_t = yes; then
11411 cat >>confdefs.h
<<\_ACEOF
11412 #define u_int8_t unsigned char
11417 echo "$as_me:$LINENO: checking for int16_t" >&5
11418 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11419 if test "${ac_cv_type_int16_t+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 cat >conftest.
$ac_ext <<_ACEOF
11425 cat confdefs.h
>>conftest.
$ac_ext
11426 cat >>conftest.
$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11434 if (sizeof (int16_t))
11440 rm -f conftest.
$ac_objext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442 (eval $ac_compile) 2>conftest.er1
11444 grep -v '^ *+' conftest.er1
>conftest.err
11446 cat conftest.err
>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try
='test -z "$ac_c_werror_flag"
11450 || test ! -s conftest.err'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try
='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_cv_type_int16_t
=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.
$ac_ext >&5
11467 ac_cv_type_int16_t
=no
11469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11471 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11472 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11473 if test $ac_cv_type_int16_t = yes; then
11477 cat >>confdefs.h
<<\_ACEOF
11478 #define int16_t short
11483 echo "$as_me:$LINENO: checking for u_int16_t" >&5
11484 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11485 if test "${ac_cv_type_u_int16_t+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 cat >conftest.
$ac_ext <<_ACEOF
11491 cat confdefs.h
>>conftest.
$ac_ext
11492 cat >>conftest.
$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 $ac_includes_default
11495 #ifdef HAVE_SYS_BITYPES_H
11496 #include <sys/bitypes.h>
11502 if ((u_int16_t *) 0)
11504 if (sizeof (u_int16_t))
11510 rm -f conftest.
$ac_objext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>conftest.er1
11514 grep -v '^ *+' conftest.er1
>conftest.err
11516 cat conftest.err
>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try
='test -z "$ac_c_werror_flag"
11520 || test ! -s conftest.err'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try
='test -s conftest.$ac_objext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_cv_type_u_int16_t
=yes
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.
$ac_ext >&5
11537 ac_cv_type_u_int16_t
=no
11539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11541 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11542 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11543 if test $ac_cv_type_u_int16_t = yes; then
11547 cat >>confdefs.h
<<\_ACEOF
11548 #define u_int16_t unsigned short
11553 echo "$as_me:$LINENO: checking for int32_t" >&5
11554 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11555 if test "${ac_cv_type_int32_t+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 cat >conftest.
$ac_ext <<_ACEOF
11561 cat confdefs.h
>>conftest.
$ac_ext
11562 cat >>conftest.
$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 $ac_includes_default
11570 if (sizeof (int32_t))
11576 rm -f conftest.
$ac_objext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11578 (eval $ac_compile) 2>conftest.er1
11580 grep -v '^ *+' conftest.er1
>conftest.err
11582 cat conftest.err
>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
11585 { ac_try
='test -z "$ac_c_werror_flag"
11586 || test ! -s conftest.err'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try
='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_type_int32_t
=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.
$ac_ext >&5
11603 ac_cv_type_int32_t
=no
11605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11608 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11609 if test $ac_cv_type_int32_t = yes; then
11613 cat >>confdefs.h
<<\_ACEOF
11614 #define int32_t int
11619 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11620 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11621 if test "${ac_cv_type_u_int32_t+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 cat >conftest.
$ac_ext <<_ACEOF
11627 cat confdefs.h
>>conftest.
$ac_ext
11628 cat >>conftest.
$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 $ac_includes_default
11631 #ifdef HAVE_SYS_BITYPES_H
11632 #include <sys/bitypes.h>
11638 if ((u_int32_t *) 0)
11640 if (sizeof (u_int32_t))
11646 rm -f conftest.
$ac_objext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1
>conftest.err
11652 cat conftest.err
>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try
='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try
='test -s conftest.$ac_objext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_type_u_int32_t
=yes
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.
$ac_ext >&5
11673 ac_cv_type_u_int32_t
=no
11675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11677 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11678 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11679 if test $ac_cv_type_u_int32_t = yes; then
11683 cat >>confdefs.h
<<\_ACEOF
11684 #define u_int32_t unsigned int
11689 echo "$as_me:$LINENO: checking for int64_t" >&5
11690 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
11691 if test "${ac_cv_type_int64_t+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.
$ac_ext <<_ACEOF
11697 cat confdefs.h
>>conftest.
$ac_ext
11698 cat >>conftest.
$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11706 if (sizeof (int64_t))
11712 rm -f conftest.
$ac_objext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11714 (eval $ac_compile) 2>conftest.er1
11716 grep -v '^ *+' conftest.er1
>conftest.err
11718 cat conftest.err
>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
11721 { ac_try
='test -z "$ac_c_werror_flag"
11722 || test ! -s conftest.err'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try
='test -s conftest.$ac_objext'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 ac_cv_type_int64_t
=yes
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.
$ac_ext >&5
11739 ac_cv_type_int64_t
=no
11741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11743 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11744 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
11745 if test $ac_cv_type_int64_t = yes; then
11749 cat >>confdefs.h
<<\_ACEOF
11750 #define int64_t long long
11755 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11756 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11757 if test "${ac_cv_type_u_int64_t+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 cat >conftest.
$ac_ext <<_ACEOF
11763 cat confdefs.h
>>conftest.
$ac_ext
11764 cat >>conftest.
$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 $ac_includes_default
11767 #ifdef HAVE_SYS_BITYPES_H
11768 #include <sys/bitypes.h>
11774 if ((u_int64_t *) 0)
11776 if (sizeof (u_int64_t))
11782 rm -f conftest.
$ac_objext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784 (eval $ac_compile) 2>conftest.er1
11786 grep -v '^ *+' conftest.er1
>conftest.err
11788 cat conftest.err
>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try
='test -z "$ac_c_werror_flag"
11792 || test ! -s conftest.err'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try
='test -s conftest.$ac_objext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_type_u_int64_t
=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.
$ac_ext >&5
11809 ac_cv_type_u_int64_t
=no
11811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11815 if test $ac_cv_type_u_int64_t = yes; then
11819 cat >>confdefs.h
<<\_ACEOF
11820 #define u_int64_t unsigned long long
11827 # We can't just check for <inttypes.h> - some systems have one that
11828 # doesn't define all the PRI[doxu]64 macros.
11831 for ac_header
in inttypes.h
11833 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11835 echo "$as_me:$LINENO: checking for $ac_header" >&5
11836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11843 # Is the header compilable?
11844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11846 cat >conftest.
$ac_ext <<_ACEOF
11849 cat confdefs.h
>>conftest.
$ac_ext
11850 cat >>conftest.
$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 #include <$ac_header>
11855 rm -f conftest.
$ac_objext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857 (eval $ac_compile) 2>conftest.er1
11859 grep -v '^ *+' conftest.er1
>conftest.err
11861 cat conftest.err
>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try
='test -z "$ac_c_werror_flag"
11865 || test ! -s conftest.err'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; } &&
11871 { ac_try
='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_header_compiler
=yes
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.
$ac_ext >&5
11882 ac_header_compiler
=no
11884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11886 echo "${ECHO_T}$ac_header_compiler" >&6
11888 # Is the header present?
11889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11891 cat >conftest.
$ac_ext <<_ACEOF
11894 cat confdefs.h
>>conftest.
$ac_ext
11895 cat >>conftest.
$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 #include <$ac_header>
11899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11902 grep -v '^ *+' conftest.er1
>conftest.err
11904 cat conftest.err
>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev
/null
; then
11907 if test -s conftest.err
; then
11908 ac_cpp_err
=$ac_c_preproc_warn_flag
11909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11916 if test -z "$ac_cpp_err"; then
11917 ac_header_preproc
=yes
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.
$ac_ext >&5
11922 ac_header_preproc
=no
11924 rm -f conftest.err conftest.
$ac_ext
11925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11926 echo "${ECHO_T}$ac_header_preproc" >&6
11928 # So? What about this header?
11929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11935 ac_header_preproc
=yes
11938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11952 ## ------------------------------------------ ##
11953 ## Report this to the AC_PACKAGE_NAME lists. ##
11954 ## ------------------------------------------ ##
11957 sed "s/^/$as_me: WARNING: /" >&2
11960 echo "$as_me:$LINENO: checking for $ac_header" >&5
11961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 eval "$as_ac_Header=\$ac_header_preproc"
11967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11972 cat >>confdefs.h
<<_ACEOF
11973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 # OK, we have inttypes.h, but does it define those macros?
11979 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
11980 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
11981 cat >conftest.
$ac_ext <<_ACEOF
11985 cat confdefs.h
>>conftest.
$ac_ext
11986 cat >>conftest.
$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11989 #include <inttypes.h>
11991 #include <sys/types.h>
11992 #ifdef HAVE_SYS_BITYPES_H
11993 #include <sys/bitypes.h>
11998 printf("%" PRId64 "\n", (u_int64_t)1);
11999 printf("%" PRIo64 "\n", (u_int64_t)1);
12000 printf("%" PRIx64 "\n", (u_int64_t)1);
12001 printf("%" PRIu64 "\n", (u_int64_t)1);
12006 rm -f conftest.
$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>conftest.er1
12010 grep -v '^ *+' conftest.er1
>conftest.err
12012 cat conftest.err
>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try
='test -z "$ac_c_werror_flag"
12016 || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try
='test -s conftest.$ac_objext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12029 echo "$as_me:$LINENO: result: yes" >&5
12030 echo "${ECHO_T}yes" >&6
12031 ac_lbl_inttypes_h_defines_formats
=yes
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.
$ac_ext >&5
12038 echo "$as_me:$LINENO: result: no" >&5
12039 echo "${ECHO_T}no" >&6
12040 ac_lbl_inttypes_h_defines_formats
=no
12043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12048 # We don't have inttypes.h, so it obviously can't define those
12051 ac_lbl_inttypes_h_defines_formats
=no
12057 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
12059 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12060 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12061 if test "$cross_compiling" = yes; then
12062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12063 See \`config.log' for more details." >&5
12064 echo "$as_me: error: cannot run test program while cross compiling
12065 See \`config.log' for more details." >&2;}
12066 { (exit 1); exit 1; }; }
12068 cat >conftest.
$ac_ext <<_ACEOF
12072 cat confdefs.h
>>conftest.
$ac_ext
12073 cat >>conftest.
$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12076 # ifdef HAVE_INTTYPES_H
12077 #include <inttypes.h>
12079 # ifdef HAVE_SYS_BITYPES_H
12080 #include <sys/bitypes.h>
12083 #include <sys/types.h>
12089 sprintf(strbuf, "%016lx", t << 32);
12090 if (strcmp(strbuf, "0000000100000000") == 0)
12098 rm -f conftest
$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100 (eval $ac_link) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12110 cat >>confdefs.h
<<\_ACEOF
12111 #define PRId64 "ld"
12114 cat >>confdefs.h
<<\_ACEOF
12115 #define PRIo64 "lo"
12118 cat >>confdefs.h
<<\_ACEOF
12119 #define PRIx64 "lx"
12122 cat >>confdefs.h
<<\_ACEOF
12123 #define PRIu64 "lu"
12126 echo "$as_me:$LINENO: result: yes" >&5
12127 echo "${ECHO_T}yes" >&6
12130 echo "$as_me: program exited with status $ac_status" >&5
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.
$ac_ext >&5
12134 ( exit $ac_status )
12136 echo "$as_me:$LINENO: result: no" >&5
12137 echo "${ECHO_T}no" >&6
12140 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12141 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12142 if test "$cross_compiling" = yes; then
12143 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12144 See \`config.log' for more details." >&5
12145 echo "$as_me: error: cannot run test program while cross compiling
12146 See \`config.log' for more details." >&2;}
12147 { (exit 1); exit 1; }; }
12149 cat >conftest.
$ac_ext <<_ACEOF
12153 cat confdefs.h
>>conftest.
$ac_ext
12154 cat >>conftest.
$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 # ifdef HAVE_INTTYPES_H
12158 #include <inttypes.h>
12160 # ifdef HAVE_SYS_BITYPES_H
12161 #include <sys/bitypes.h>
12164 #include <sys/types.h>
12170 sprintf(strbuf, "%016llx", t << 32);
12171 if (strcmp(strbuf, "0000000100000000") == 0)
12179 rm -f conftest
$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12191 cat >>confdefs.h
<<\_ACEOF
12192 #define PRId64 "lld"
12195 cat >>confdefs.h
<<\_ACEOF
12196 #define PRIo64 "llo"
12199 cat >>confdefs.h
<<\_ACEOF
12200 #define PRIx64 "llx"
12203 cat >>confdefs.h
<<\_ACEOF
12204 #define PRIu64 "llu"
12207 echo "$as_me:$LINENO: result: yes" >&5
12208 echo "${ECHO_T}yes" >&6
12211 echo "$as_me: program exited with status $ac_status" >&5
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.
$ac_ext >&5
12215 ( exit $ac_status )
12217 echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6
12221 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12222 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12223 if test "$cross_compiling" = yes; then
12224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12225 See \`config.log' for more details." >&5
12226 echo "$as_me: error: cannot run test program while cross compiling
12227 See \`config.log' for more details." >&2;}
12228 { (exit 1); exit 1; }; }
12230 cat >conftest.
$ac_ext <<_ACEOF
12234 cat confdefs.h
>>conftest.
$ac_ext
12235 cat >>conftest.
$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12238 # ifdef HAVE_INTTYPES_H
12239 #include <inttypes.h>
12241 # ifdef HAVE_SYS_BITYPES_H
12242 #include <sys/bitypes.h>
12245 #include <sys/types.h>
12251 sprintf(strbuf, "%016Lx", t << 32);
12252 if (strcmp(strbuf, "0000000100000000") == 0)
12260 rm -f conftest
$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12272 cat >>confdefs.h
<<\_ACEOF
12273 #define PRId64 "Ld"
12276 cat >>confdefs.h
<<\_ACEOF
12277 #define PRIo64 "Lo"
12280 cat >>confdefs.h
<<\_ACEOF
12281 #define PRIx64 "Lx"
12284 cat >>confdefs.h
<<\_ACEOF
12285 #define PRIu64 "Lu"
12288 echo "$as_me:$LINENO: result: yes" >&5
12289 echo "${ECHO_T}yes" >&6
12292 echo "$as_me: program exited with status $ac_status" >&5
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.
$ac_ext >&5
12296 ( exit $ac_status )
12298 echo "$as_me:$LINENO: result: no" >&5
12299 echo "${ECHO_T}no" >&6
12302 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12303 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12304 if test "$cross_compiling" = yes; then
12305 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12306 See \`config.log' for more details." >&5
12307 echo "$as_me: error: cannot run test program while cross compiling
12308 See \`config.log' for more details." >&2;}
12309 { (exit 1); exit 1; }; }
12311 cat >conftest.
$ac_ext <<_ACEOF
12315 cat confdefs.h
>>conftest.
$ac_ext
12316 cat >>conftest.
$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 # ifdef HAVE_INTTYPES_H
12320 #include <inttypes.h>
12322 # ifdef HAVE_SYS_BITYPES_H
12323 #include <sys/bitypes.h>
12326 #include <sys/types.h>
12332 sprintf(strbuf, "%016qx", t << 32);
12333 if (strcmp(strbuf, "0000000100000000") == 0)
12341 rm -f conftest
$ac_exeext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343 (eval $ac_link) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12353 cat >>confdefs.h
<<\_ACEOF
12354 #define PRId64 "qd"
12357 cat >>confdefs.h
<<\_ACEOF
12358 #define PRIo64 "qo"
12361 cat >>confdefs.h
<<\_ACEOF
12362 #define PRIx64 "qx"
12365 cat >>confdefs.h
<<\_ACEOF
12366 #define PRIu64 "qu"
12369 echo "$as_me:$LINENO: result: yes" >&5
12370 echo "${ECHO_T}yes" >&6
12373 echo "$as_me: program exited with status $ac_status" >&5
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.
$ac_ext >&5
12377 ( exit $ac_status )
12379 echo "$as_me:$LINENO: result: no" >&5
12380 echo "${ECHO_T}no" >&6
12382 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12383 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12384 { (exit 1); exit 1; }; }
12388 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12394 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12400 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12406 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12412 if test "${LBL_CFLAGS+set}" = set; then
12413 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
12415 if test -f .devel
; then
12416 if test "$GCC" = yes ; then
12417 if test "${LBL_CFLAGS+set}" != set; then
12418 if test "$ac_cv_prog_cc_g" = yes ; then
12419 V_CCOPT
="-g $V_CCOPT"
12421 V_CCOPT
="$V_CCOPT -Wall"
12422 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12423 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
12430 V_CCOPT
="$V_CCOPT -n32"
12437 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12438 name
="lbl/os-$os.h"
12439 if test -f $name ; then
12440 ln -s $name os-proto.h
12441 cat >>confdefs.h
<<\_ACEOF
12442 #define HAVE_OS_PROTO_H 1
12446 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12447 echo "$as_me: WARNING: can't find $name" >&2;}
12451 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12452 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12453 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 cat >conftest.
$ac_ext <<_ACEOF
12459 cat confdefs.h
>>conftest.
$ac_ext
12460 cat >>conftest.
$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12463 # include <sys/types.h>
12464 # include <sys/socket.h>
12468 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12473 rm -f conftest.
$ac_objext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>conftest.er1
12477 grep -v '^ *+' conftest.er1
>conftest.err
12479 cat conftest.err
>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try
='test -z "$ac_c_werror_flag"
12483 || test ! -s conftest.err'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try
='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_lbl_sockaddr_has_sa_len
=yes
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.
$ac_ext >&5
12500 ac_cv_lbl_sockaddr_has_sa_len
=no
12502 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12505 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12506 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12507 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12508 cat >>confdefs.h
<<\_ACEOF
12509 #define HAVE_SOCKADDR_SA_LEN 1
12514 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12515 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
12516 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 case "$host_cpu" in
12522 # These are CPU types where:
12524 # the CPU faults on an unaligned access, but at least some
12525 # OSes that support that CPU catch the fault and simulate
12526 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12527 # the simulation is slow, so we don't want to use it;
12529 # the CPU, I infer (from the old
12531 # XXX: should also check that they don't do weird things (like on arm)
12533 # comment) doesn't fault on unaligned accesses, but doesn't
12534 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12536 # for whatever reason, the test program doesn't work
12537 # (this has been claimed to be the case for several of those
12538 # CPUs - I don't know what the problem is; the problem
12539 # was reported as "the test program dumps core" for SuperH,
12540 # but that's what the test program is *supposed* to do -
12541 # it dumps core before it writes anything, so the test
12542 # for an empty output file should find an empty output
12543 # file and conclude that unaligned accesses don't work).
12545 # This run-time test won't work if you're cross-compiling, so
12546 # in order to support cross-compiling for a particular CPU,
12547 # we have to wire in the list of CPU types anyway, as far as
12548 # I know, so perhaps we should just have a set of CPUs on
12549 # which we know it doesn't work, a set of CPUs on which we
12550 # know it does work, and have the script just fail on other
12551 # cpu types and update it when such a failure occurs.
12553 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
12554 ac_cv_lbl_unaligned_fail
=yes
12558 cat >conftest.c
<<EOF
12559 # include <sys/types.h>
12560 # include <sys/wait.h>
12561 # include <stdio.h>
12562 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12567 /* avoid "core dumped" message */
12573 pid = waitpid(pid, &status, 0);
12576 exit(!WIFEXITED(status));
12579 i = *(unsigned int *)&a[1];
12584 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
12585 conftest.c
$LIBS >/dev
/null
2>&1
12586 if test ! -x conftest
; then
12587 ac_cv_lbl_unaligned_fail
=yes
12589 .
/conftest
>conftest.out
12590 if test ! -s conftest.out
; then
12591 ac_cv_lbl_unaligned_fail
=yes
12593 ac_cv_lbl_unaligned_fail
=no
12596 rm -f conftest
* core core.conftest
12601 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12602 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
12603 if test $ac_cv_lbl_unaligned_fail = yes ; then
12604 cat >>confdefs.h
<<\_ACEOF
12605 #define LBL_ALIGN 1
12611 echo "$as_me:$LINENO: checking for h_errno" >&5
12612 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
12613 if test "${ac_cv_var_h_errno+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 cat >conftest.
$ac_ext <<_ACEOF
12619 cat confdefs.h
>>conftest.
$ac_ext
12620 cat >>conftest.
$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12623 # include <sys/types.h>
12624 # include <netdb.h>
12633 rm -f conftest.
$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12637 grep -v '^ *+' conftest.er1
>conftest.err
12639 cat conftest.err
>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try
='test -z "$ac_c_werror_flag"
12643 || test ! -s conftest.err'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try
='test -s conftest.$ac_objext'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 ac_cv_var_h_errno
=yes
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.
$ac_ext >&5
12660 ac_cv_var_h_errno
=no
12662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12666 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
12667 if test "$ac_cv_var_h_errno" = "yes"; then
12668 cat >>confdefs.h
<<\_ACEOF
12669 #define HAVE_H_ERRNO 1
12676 # Check whether --with-crypto or --without-crypto was given.
12677 if test "${with_crypto+set}" = set; then
12678 withval
="$with_crypto"
12682 echo "$as_me:$LINENO: checking for SSLeay" >&5
12683 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
12684 ac_cv_ssleay_path
=no
12687 Xprefix
=`eval echo $prefix`
12689 for dir
in $Xprefix /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
12691 # XXX - is there a better way to check if a given library is
12692 # in a given directory than checking each of the possible
12693 # shared library suffixes?
12695 # Are there any other suffixes we need to look for? Do we have to
12696 # worry about ".so.{version}"?
12698 # Or should we just look for "libcrypto.*"?
12700 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
12701 -f $dir/lib
/libcrypto.so
-o \
12702 -f $dir/lib
/libcrypto.sl
-o \
12703 -f $dir/lib
/libcrypto.dylib \
); then
12704 ac_cv_ssleay_path
=$dir
12706 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
12707 incdir
="-I$dir/include"
12709 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
12712 ac_cv_ssleay_path
=no
12716 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
12717 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
12718 if test "$ac_cv_ssleay_path" != no
; then
12719 V_INCLS
="$V_INCLS $incdir"
12720 LDFLAGS
="-L$dir/lib $LDFLAGS"
12721 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
12722 LIBS
="$LIBS -lRSAglue"
12724 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
12725 LIBS
="$LIBS -lrsaref"
12728 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12729 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12730 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 ac_check_lib_save_LIBS
=$LIBS
12734 LIBS
="-lcrypto $LIBS"
12735 cat >conftest.
$ac_ext <<_ACEOF
12738 cat confdefs.h
>>conftest.
$ac_ext
12739 cat >>conftest.
$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12742 /* Override any gcc2 internal prototype to avoid an error. */
12746 /* We use char because int might match the return type of a gcc2
12747 builtin and then its argument prototype would still apply. */
12748 char DES_cbc_encrypt ();
12752 DES_cbc_encrypt ();
12757 rm -f conftest.
$ac_objext conftest
$ac_exeext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12759 (eval $ac_link) 2>conftest.er1
12761 grep -v '^ *+' conftest.er1
>conftest.err
12763 cat conftest.err
>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try
='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try
='test -s conftest$ac_exeext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.
$ac_ext >&5
12784 ac_cv_lib_crypto_DES_cbc_encrypt
=no
12786 rm -f conftest.err conftest.
$ac_objext \
12787 conftest
$ac_exeext conftest.
$ac_ext
12788 LIBS
=$ac_check_lib_save_LIBS
12790 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12791 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
12792 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12793 cat >>confdefs.h
<<_ACEOF
12794 #define HAVE_LIBCRYPTO 1
12797 LIBS
="-lcrypto $LIBS"
12802 CPPFLAGS
="$CPPFLAGS $V_INCLS"
12804 for ac_header
in openssl
/evp.h
12806 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12808 echo "$as_me:$LINENO: checking for $ac_header" >&5
12809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12816 # Is the header compilable?
12817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12819 cat >conftest.
$ac_ext <<_ACEOF
12822 cat confdefs.h
>>conftest.
$ac_ext
12823 cat >>conftest.
$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825 $ac_includes_default
12826 #include <$ac_header>
12828 rm -f conftest.
$ac_objext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12832 grep -v '^ *+' conftest.er1
>conftest.err
12834 cat conftest.err
>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try
='test -z "$ac_c_werror_flag"
12838 || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try
='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_header_compiler
=yes
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.
$ac_ext >&5
12855 ac_header_compiler
=no
12857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859 echo "${ECHO_T}$ac_header_compiler" >&6
12861 # Is the header present?
12862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12864 cat >conftest.
$ac_ext <<_ACEOF
12867 cat confdefs.h
>>conftest.
$ac_ext
12868 cat >>conftest.
$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 #include <$ac_header>
12872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12873 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12875 grep -v '^ *+' conftest.er1
>conftest.err
12877 cat conftest.err
>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } >/dev
/null
; then
12880 if test -s conftest.err
; then
12881 ac_cpp_err
=$ac_c_preproc_warn_flag
12882 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12889 if test -z "$ac_cpp_err"; then
12890 ac_header_preproc
=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.
$ac_ext >&5
12895 ac_header_preproc
=no
12897 rm -f conftest.err conftest.
$ac_ext
12898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12899 echo "${ECHO_T}$ac_header_preproc" >&6
12901 # So? What about this header?
12902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12908 ac_header_preproc
=yes
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12925 ## ------------------------------------------ ##
12926 ## Report this to the AC_PACKAGE_NAME lists. ##
12927 ## ------------------------------------------ ##
12930 sed "s/^/$as_me: WARNING: /" >&2
12933 echo "$as_me:$LINENO: checking for $ac_header" >&5
12934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 eval "$as_ac_Header=\$ac_header_preproc"
12940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12945 cat >>confdefs.h
<<_ACEOF
12946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12957 if test "$missing_includes" = "yes"; then
12958 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
12959 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
12969 # Find a good install program. We prefer a C program (faster),
12970 # so one script is as good as another. But avoid the broken or
12971 # incompatible versions:
12972 # SysV /etc/install, /usr/sbin/install
12973 # SunOS /usr/etc/install
12974 # IRIX /sbin/install
12976 # AmigaOS /C/install, which installs bootblocks on floppy discs
12977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12980 # OS/2's system install, which has a completely different semantic
12981 # ./install, which can be erroneously created by make from ./install.sh.
12982 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12984 if test -z "$INSTALL"; then
12985 if test "${ac_cv_path_install+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12989 for as_dir
in $PATH
12992 test -z "$as_dir" && as_dir
=.
12993 # Account for people who put trailing slashes in PATH elements.
12995 .
/ | .
// |
/cC
/* | \
12996 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
12997 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
13000 # OSF1 and SCO ODT 3.0 have their own names for install.
13001 # Don't use installbsd from OSF since it installs stuff as root
13003 for ac_prog
in ginstall scoinst
install; do
13004 for ac_exec_ext
in '' $ac_executable_extensions; do
13005 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13006 if test $ac_prog = install &&
13007 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13008 # AIX install. It has an incompatible calling convention.
13010 elif test $ac_prog = install &&
13011 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13012 # program-specific install script used by HP pwplus--don't use.
13015 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
13027 if test "${ac_cv_path_install+set}" = set; then
13028 INSTALL
=$ac_cv_path_install
13030 # As a last resort, use the slow shell script. We don't cache a
13031 # path for INSTALL within a source directory, because that will
13032 # break other packages using the cache if that directory is
13033 # removed, or if the path is relative.
13034 INSTALL
=$ac_install_sh
13037 echo "$as_me:$LINENO: result: $INSTALL" >&5
13038 echo "${ECHO_T}$INSTALL" >&6
13040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13041 # It thinks the first close brace ends the variable substitution.
13042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
13044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
13046 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
13049 ac_config_headers
="$ac_config_headers config.h"
13052 ac_config_commands
="$ac_config_commands default-1"
13054 ac_config_files
="$ac_config_files Makefile"
13055 cat >confcache
<<\_ACEOF
13056 # This file is a shell script that caches the results of configure
13057 # tests run on this system so they can be shared between configure
13058 # scripts and configure runs, see configure's option --config-cache.
13059 # It is not useful on other systems. If it contains results you don't
13060 # want to keep, you may remove or edit it.
13062 # config.status only pays attention to the cache file if you give it
13063 # the --recheck option to rerun configure.
13065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13067 # following values.
13071 # The following way of writing the cache mishandles newlines in values,
13072 # but we know of no workaround that is simple, portable, and efficient.
13073 # So, don't put newlines in cache variables' values.
13074 # Ultrix sh set writes to stderr and can't be redirected directly,
13075 # and sets the high bit in the cache file unless we assign to the vars.
13078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13080 # `set' does not quote correctly, so add quotes (double-quote
13081 # substitution turns \\\\ into \\, and sed turns \\ into \).
13084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13087 # `set' quotes correctly as required by POSIX, so do not add quotes.
13089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13100 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
13101 if test -w $cache_file; then
13102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13103 cat confcache
>$cache_file
13105 echo "not updating unwritable cache $cache_file"
13110 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13111 # Let make expand exec_prefix.
13112 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13116 # trailing colons and then remove the whole line if VPATH becomes empty
13117 # (actually we leave an empty line to preserve line numbers).
13118 if test "x$srcdir" = x.
; then
13119 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13120 s/:*\$(srcdir):*/:/;
13121 s/:*\${srcdir}:*/:/;
13123 s/^\([^=]*=[ ]*\):*/\1/;
13129 DEFS
=-DHAVE_CONFIG_H
13133 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13134 # 1. Remove the extension, and $U if already installed.
13135 ac_i
=`echo "$ac_i" |
13136 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13138 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
13139 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
13141 LIBOBJS
=$ac_libobjs
13143 LTLIBOBJS
=$ac_ltlibobjs
13147 : ${CONFIG_STATUS=./config.status}
13148 ac_clean_files_save
=$ac_clean_files
13149 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13150 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13151 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13152 cat >$CONFIG_STATUS <<_ACEOF
13154 # Generated by $as_me.
13155 # Run this file to recreate the current configuration.
13156 # Compiler output produced by configure, useful for debugging
13157 # configure, is in config.log if it exists.
13160 ac_cs_recheck=false
13162 SHELL=\${CONFIG_SHELL-$SHELL}
13165 cat >>$CONFIG_STATUS <<\_ACEOF
13166 ## --------------------- ##
13167 ## M4sh Initialization. ##
13168 ## --------------------- ##
13170 # Be Bourne compatible
13171 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
13174 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13175 # is contrary to our usage. Disable this feature.
13176 alias -g '${1+"$@"}'='"$@"'
13177 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
13180 DUALCASE
=1; export DUALCASE
# for MKS sh
13182 # Support unset when possible.
13183 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13190 # Work around bugs in pre-3.0 UWIN ksh.
13191 $as_unset ENV MAIL MAILPATH
13198 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13199 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13200 LC_TELEPHONE LC_TIME
13202 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13203 eval $as_var=C
; export $as_var
13209 # Required to use basename.
13210 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13216 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
13217 as_basename
=basename
13223 # Name of the executable.
13224 as_me
=`$as_basename "$0" ||
13225 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13226 X"$0" : 'X\(//\)$' \| \
13227 X"$0" : 'X\(/\)$' \| \
13228 . : '\(.\)' 2>/dev/null ||
13230 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13231 /^X\/\(\/\/\)$/{ s//\1/; q; }
13232 /^X\/\(\/\).*/{ s//\1/; q; }
13236 # PATH needs CR, and LINENO needs CR and PATH.
13237 # Avoid depending upon Character Ranges.
13238 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13239 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13240 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13241 as_cr_digits
='0123456789'
13242 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13244 # The user is always right.
13245 if test "${PATH_SEPARATOR+set}" != set; then
13246 echo "#! /bin/sh" >conf$$.sh
13247 echo "exit 0" >>conf$$.sh
13249 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13258 as_lineno_1
=$LINENO
13259 as_lineno_2
=$LINENO
13260 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
13261 test "x$as_lineno_1" != "x$as_lineno_2" &&
13262 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
13263 # Find who we are. Look in the path if we contain no path at all
13266 *[\\/]* ) as_myself
=$0 ;;
13267 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13268 for as_dir
in $PATH
13271 test -z "$as_dir" && as_dir
=.
13272 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13277 # We did not find ourselves, most probably we were run as `sh COMMAND'
13278 # in which case we are not to be found in the path.
13279 if test "x$as_myself" = x
; then
13282 if test ! -f "$as_myself"; then
13283 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13284 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13285 { (exit 1); exit 1; }; }
13287 case $CONFIG_SHELL in
13289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13290 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
13293 test -z "$as_dir" && as_dir
=.
13294 for as_base
in sh bash ksh sh5
; do
13297 if ("$as_dir/$as_base" -c '
13298 as_lineno_1=$LINENO
13299 as_lineno_2=$LINENO
13300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13301 test "x$as_lineno_1" != "x$as_lineno_2" &&
13302 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
13303 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
13304 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
13305 CONFIG_SHELL
=$as_dir/$as_base
13306 export CONFIG_SHELL
13307 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13315 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13316 # uniformly replaced by the line number. The first 'sed' inserts a
13317 # line-number line before each line; the second 'sed' does the real
13318 # work. The second script uses 'N' to pair each line-number line
13319 # with the numbered line, and appends trailing '-' during
13320 # substitution so that $LINENO is not a special case at line end.
13321 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13322 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13323 sed '=' <$as_myself |
13328 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13331 s,^['$as_cr_digits']*\n,,
13332 ' >$as_me.lineno
&&
13333 chmod +x
$as_me.lineno ||
13334 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13335 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13336 { (exit 1); exit 1; }; }
13338 # Don't try to exec as it changes $[0], causing all sort of problems
13339 # (the dirname of $[0] is not the place where we might find the
13340 # original and so on. Autoconf is especially sensible to this).
13342 # Exit status is that of the last command.
13347 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13348 *c
*,-n*) ECHO_N
= ECHO_C
='
13350 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
13351 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
13354 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13360 rm -f conf$$ conf$$.exe conf$$.
file
13362 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13363 # We could just check for DJGPP; but this test a) works b) is more generic
13364 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13365 if test -f conf$$.exe
; then
13366 # Don't use ln at all; we don't have any links
13371 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13376 rm -f conf$$ conf$$.exe conf$$.
file
13378 if mkdir
-p .
2>/dev
/null
; then
13381 test -d .
/-p && rmdir .
/-p
13385 as_executable_p
="test -f"
13387 # Sed expression to map a string onto a valid CPP name.
13388 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13390 # Sed expression to map a string onto a valid variable name.
13391 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13395 # We need space, tab and new line, in precisely that order.
13405 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13406 # report actual input values of CONFIG_FILES etc. instead of their
13407 # values after options handling. Logging --version etc. is OK.
13411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13412 ## Running $as_me. ##
13417 This file was extended by $as_me, which was
13418 generated by GNU Autoconf 2.59. Invocation command line was
13420 CONFIG_FILES = $CONFIG_FILES
13421 CONFIG_HEADERS = $CONFIG_HEADERS
13422 CONFIG_LINKS = $CONFIG_LINKS
13423 CONFIG_COMMANDS = $CONFIG_COMMANDS
13427 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13431 # Files that config.status was made for.
13432 if test -n "$ac_config_files"; then
13433 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13436 if test -n "$ac_config_headers"; then
13437 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13440 if test -n "$ac_config_links"; then
13441 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13444 if test -n "$ac_config_commands"; then
13445 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13448 cat >>$CONFIG_STATUS <<\_ACEOF
13451 \`$as_me' instantiates files from templates according to the
13452 current configuration.
13454 Usage: $0 [OPTIONS] [FILE]...
13456 -h, --help print this help, then exit
13457 -V, --version print version number, then exit
13458 -q, --quiet do not print progress messages
13459 -d, --debug don't remove temporary files
13460 --recheck update $as_me by reconfiguring in the same conditions
13461 --file=FILE[:TEMPLATE]
13462 instantiate the configuration file FILE
13463 --header=FILE[:TEMPLATE]
13464 instantiate the configuration header FILE
13466 Configuration files:
13469 Configuration headers:
13472 Configuration commands:
13475 Report bugs to <bug-autoconf@gnu.org>."
13478 cat >>$CONFIG_STATUS <<_ACEOF
13481 configured by $0, generated by GNU Autoconf 2.59,
13482 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13484 Copyright (C) 2003 Free Software Foundation, Inc.
13485 This config.status script is free software; the Free Software Foundation
13486 gives unlimited permission to copy, distribute and modify it."
13491 cat >>$CONFIG_STATUS <<\_ACEOF
13492 # If no file are specified by the user, then we need to provide default
13493 # value. By we need to know if files were specified by the user.
13499 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13500 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13508 *) # This is not an option, so the user has probably given explicit
13511 ac_need_defaults
=false
;;
13515 # Handling of the options.
13517 cat >>$CONFIG_STATUS <<\_ACEOF
13518 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13520 --version |
--vers* |
-V )
13521 echo "$ac_cs_version"; exit 0 ;;
13523 # Conflict between --help and --header
13524 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13525 Try \`$0 --help' for more information." >&5
13526 echo "$as_me: error: ambiguous option: $1
13527 Try \`$0 --help' for more information." >&2;}
13528 { (exit 1); exit 1; }; };;
13529 --help |
--hel |
-h )
13530 echo "$ac_cs_usage"; exit 0 ;;
13531 --debug |
--d* |
-d )
13533 --file |
--fil |
--fi |
--f )
13535 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13536 ac_need_defaults
=false
;;
13537 --header |
--heade |
--head |
--hea )
13539 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13540 ac_need_defaults
=false
;;
13541 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13542 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13545 # This is an error.
13546 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13547 Try \`$0 --help' for more information." >&5
13548 echo "$as_me: error: unrecognized option: $1
13549 Try \`$0 --help' for more information." >&2;}
13550 { (exit 1); exit 1; }; } ;;
13552 *) ac_config_targets
="$ac_config_targets $1" ;;
13558 ac_configure_extra_args
=
13560 if $ac_cs_silent; then
13562 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13566 cat >>$CONFIG_STATUS <<_ACEOF
13567 if \$ac_cs_recheck; then
13568 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13569 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13574 cat >>$CONFIG_STATUS <<_ACEOF
13576 # INIT-COMMANDS section.
13585 cat >>$CONFIG_STATUS <<\_ACEOF
13586 for ac_config_target
in $ac_config_targets
13588 case "$ac_config_target" in
13589 # Handling of arguments.
13590 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13591 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
13592 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13593 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13595 { (exit 1); exit 1; }; };;
13599 # If the user did not use the arguments to specify the items to instantiate,
13600 # then the envvar interface is used. Set only those that are not.
13601 # We use the long form for the default assignment because of an extremely
13602 # bizarre bug on SunOS 4.1.3.
13603 if $ac_need_defaults; then
13604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13609 # Have a temporary directory for convenience. Make it in the build tree
13610 # simply because there is no reason to put it here, and in addition,
13611 # creating and moving files from /tmp can sometimes cause problems.
13612 # Create a temporary directory, and hook for its removal unless debugging.
13615 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13616 trap '{ (exit 1); exit 1; }' 1 2 13 15
13619 # Create a (secure) tmp directory for tmp files.
13622 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13623 test -n "$tmp" && test -d "$tmp"
13626 tmp
=.
/confstat$$
-$RANDOM
13627 (umask 077 && mkdir
$tmp)
13630 echo "$me: cannot create a temporary directory in ." >&2
13631 { (exit 1); exit 1; }
13636 cat >>$CONFIG_STATUS <<_ACEOF
13639 # CONFIG_FILES section.
13642 # No need to generate the scripts if there are no CONFIG_FILES.
13643 # This happens for instance when ./config.status config.h
13644 if test -n "\$CONFIG_FILES"; then
13645 # Protect against being on the right side of a sed subst in config.status.
13646 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13647 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13648 s,@SHELL@,$SHELL,;t t
13649 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13655 s,@exec_prefix@,$exec_prefix,;t t
13656 s,@prefix@,$prefix,;t t
13657 s,@program_transform_name@,$program_transform_name,;t t
13658 s,@bindir@,$bindir,;t t
13659 s,@sbindir@,$sbindir,;t t
13660 s,@libexecdir@,$libexecdir,;t t
13661 s,@datadir@,$datadir,;t t
13662 s,@sysconfdir@,$sysconfdir,;t t
13663 s,@sharedstatedir@,$sharedstatedir,;t t
13664 s,@localstatedir@,$localstatedir,;t t
13665 s,@libdir@,$libdir,;t t
13666 s,@includedir@,$includedir,;t t
13667 s,@oldincludedir@,$oldincludedir,;t t
13668 s,@infodir@,$infodir,;t t
13669 s,@mandir@,$mandir,;t t
13670 s,@build_alias@,$build_alias,;t t
13671 s,@host_alias@,$host_alias,;t t
13672 s,@target_alias@,$target_alias,;t t
13673 s,@DEFS@,$DEFS,;t t
13674 s,@ECHO_C@,$ECHO_C,;t t
13675 s,@ECHO_N@,$ECHO_N,;t t
13676 s,@ECHO_T@,$ECHO_T,;t t
13677 s,@LIBS@,$LIBS,;t t
13678 s,@build@,$build,;t t
13679 s,@build_cpu@,$build_cpu,;t t
13680 s,@build_vendor@,$build_vendor,;t t
13681 s,@build_os@,$build_os,;t t
13682 s,@host@,$host,;t t
13683 s,@host_cpu@,$host_cpu,;t t
13684 s,@host_vendor@,$host_vendor,;t t
13685 s,@host_os@,$host_os,;t t
13686 s,@SHLICC2@,$SHLICC2,;t t
13688 s,@CFLAGS@,$CFLAGS,;t t
13689 s,@LDFLAGS@,$LDFLAGS,;t t
13690 s,@CPPFLAGS@,$CPPFLAGS,;t t
13691 s,@ac_ct_CC@,$ac_ct_CC,;t t
13692 s,@EXEEXT@,$EXEEXT,;t t
13693 s,@OBJEXT@,$OBJEXT,;t t
13695 s,@EGREP@,$EGREP,;t t
13696 s,@LIBOBJS@,$LIBOBJS,;t t
13697 s,@V_CCOPT@,$V_CCOPT,;t t
13698 s,@V_DEFS@,$V_DEFS,;t t
13699 s,@V_GROUP@,$V_GROUP,;t t
13700 s,@V_INCLS@,$V_INCLS,;t t
13701 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
13702 s,@LOCALSRC@,$LOCALSRC,;t t
13703 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13704 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13705 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13706 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13711 cat >>$CONFIG_STATUS <<\_ACEOF
13712 # Split the substitutions into bite-sized pieces for seds with
13713 # small command number limits, like on Digital OSF/1 and HP-UX.
13714 ac_max_sed_lines
=48
13715 ac_sed_frag
=1 # Number of current file.
13716 ac_beg
=1 # First line for current file.
13717 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13720 while $ac_more_lines; do
13721 if test $ac_beg -gt 1; then
13722 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13724 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13726 if test ! -s $tmp/subs.frag
; then
13727 ac_more_lines
=false
13729 # The purpose of the label and of the branching condition is to
13730 # speed up the sed processing (if there are no `@' at all, there
13731 # is no need to browse any of the substitutions).
13732 # These are the two extra sed commands mentioned above.
13734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13735 if test -z "$ac_sed_cmds"; then
13736 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13738 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13740 ac_sed_frag
=`expr $ac_sed_frag + 1`
13742 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13745 if test -z "$ac_sed_cmds"; then
13748 fi # test -n "$CONFIG_FILES"
13751 cat >>$CONFIG_STATUS <<\_ACEOF
13752 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13755 - |
*:- |
*:-:* ) # input from stdin
13757 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13758 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13759 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13760 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13761 * ) ac_file_in
=$ac_file.
in ;;
13764 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13765 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13767 X"$ac_file" : 'X\(//\)[^/]' \| \
13768 X"$ac_file" : 'X\(//\)$' \| \
13769 X"$ac_file" : 'X\(/\)' \| \
13770 . : '\(.\)' 2>/dev/null ||
13772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13774 /^X\(\/\/\)$/{ s//\1/; q; }
13775 /^X\(\/\).*/{ s//\1/; q; }
13777 { if $as_mkdir_p; then
13782 while test ! -d "$as_dir"; do
13783 as_dirs
="$as_dir $as_dirs"
13784 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13786 X"$as_dir" : 'X\(//\)[^/]' \| \
13787 X"$as_dir" : 'X\(//\)$' \| \
13788 X"$as_dir" : 'X\(/\)' \| \
13789 . : '\(.\)' 2>/dev/null ||
13791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13793 /^X\(\/\/\)$/{ s//\1/; q; }
13794 /^X\(\/\).*/{ s//\1/; q; }
13797 test ! -n "$as_dirs" || mkdir
$as_dirs
13798 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13799 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13800 { (exit 1); exit 1; }; }; }
13804 if test "$ac_dir" != .
; then
13805 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13806 # A "../" for each directory in $ac_dir_suffix.
13807 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13809 ac_dir_suffix
= ac_top_builddir
=
13813 .
) # No --srcdir option. We are building in place.
13815 if test -z "$ac_top_builddir"; then
13818 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13820 [\\/]* | ?
:[\\/]* ) # Absolute path.
13821 ac_srcdir
=$srcdir$ac_dir_suffix;
13822 ac_top_srcdir
=$srcdir ;;
13823 *) # Relative path.
13824 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13825 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13828 # Do not use `cd foo && pwd` to compute absolute paths, because
13829 # the directories may not exist.
13831 .
) ac_abs_builddir
="$ac_dir";;
13834 .
) ac_abs_builddir
=`pwd`;;
13835 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13836 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13839 case $ac_abs_builddir in
13840 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13842 case ${ac_top_builddir}.
in
13843 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13844 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13845 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13848 case $ac_abs_builddir in
13849 .
) ac_abs_srcdir
=$ac_srcdir;;
13852 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13853 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13854 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13857 case $ac_abs_builddir in
13858 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13860 case $ac_top_srcdir in
13861 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13862 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13863 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13869 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13870 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
13873 if test x
"$ac_file" != x-
; then
13874 { echo "$as_me:$LINENO: creating $ac_file" >&5
13875 echo "$as_me: creating $ac_file" >&6;}
13878 # Let's still pretend it is `configure' which instantiates (i.e., don't
13879 # use $as_me), people would be surprised to read:
13880 # /* config.h. Generated by config.status. */
13881 if test x
"$ac_file" = x-
; then
13884 configure_input
="$ac_file. "
13886 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13887 sed 's,.*/,,'` by configure."
13889 # First look for the input files in the build tree, otherwise in the
13891 ac_file_inputs
=`IFS=:
13892 for f in $ac_file_in; do
13894 -) echo $tmp/stdin ;;
13896 # Absolute (can't be DOS-style, as IFS=:)
13897 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13898 echo "$as_me: error: cannot find input file: $f" >&2;}
13899 { (exit 1); exit 1; }; }
13902 if test -f "$f"; then
13905 elif test -f "$srcdir/$f"; then
13910 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13911 echo "$as_me: error: cannot find input file: $f" >&2;}
13912 { (exit 1); exit 1; }; }
13915 done` ||
{ (exit 1); exit 1; }
13917 cat >>$CONFIG_STATUS <<_ACEOF
13921 cat >>$CONFIG_STATUS <<\_ACEOF
13923 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13924 s
,@configure_input@
,$configure_input,;t t
13925 s
,@srcdir@
,$ac_srcdir,;t t
13926 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13927 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13928 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13929 s
,@builddir@
,$ac_builddir,;t t
13930 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13931 s
,@top_builddir@
,$ac_top_builddir,;t t
13932 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13933 s
,@INSTALL@
,$ac_INSTALL,;t t
13934 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13936 if test x"$ac_file" != x-; then
13937 mv $tmp/out $ac_file
13945 cat >>$CONFIG_STATUS <<\_ACEOF
13948 # CONFIG_HEADER section.
13951 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13952 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13954 # ac_d sets the value in "#define NAME VALUE" lines.
13955 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13956 ac_dB
='[ ].*$,\1#\2'
13959 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13960 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13961 ac_uB
='$,\1#\2define\3'
13965 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13966 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13968 - |
*:- |
*:-:* ) # input from stdin
13970 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13971 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13972 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13973 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13974 * ) ac_file_in
=$ac_file.
in ;;
13977 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13978 echo "$as_me: creating $ac_file" >&6;}
13980 # First look for the input files in the build tree, otherwise in the
13982 ac_file_inputs
=`IFS=:
13983 for f in $ac_file_in; do
13985 -) echo $tmp/stdin ;;
13987 # Absolute (can't be DOS-style, as IFS=:)
13988 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13989 echo "$as_me: error: cannot find input file: $f" >&2;}
13990 { (exit 1); exit 1; }; }
13991 # Do quote $f, to prevent DOS paths from being IFS'd.
13994 if test -f "$f"; then
13997 elif test -f "$srcdir/$f"; then
14002 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14003 echo "$as_me: error: cannot find input file: $f" >&2;}
14004 { (exit 1); exit 1; }; }
14007 done` ||
{ (exit 1); exit 1; }
14008 # Remove the trailing spaces.
14009 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14013 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14014 # `conftest.undefs', that substitutes the proper values into
14015 # config.h.in to produce config.h. The first handles `#define'
14016 # templates, and the second `#undef' templates.
14017 # And first: Protect against being on the right side of a sed subst in
14018 # config.status. Protect against being in an unquoted here document
14019 # in config.status.
14020 rm -f conftest.defines conftest.undefs
14021 # Using a here document instead of a string reduces the quoting nightmare.
14022 # Putting comments in sed scripts is not portable.
14024 # `end' is used to avoid that the second main sed command (meant for
14025 # 0-ary CPP macros) applies to n-ary macro definitions.
14026 # See the Autoconf documentation for `clear'.
14027 cat >confdef2sed.
sed <<\_ACEOF
14032 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14034 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14037 # If some macros were called several times there might be several times
14038 # the same #defines, which is useless. Nevertheless, we may not want to
14039 # sort them, since we want the *last* AC-DEFINE to be honored.
14040 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14041 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14042 rm -f confdef2sed.sed
14044 # This sed command replaces #undef with comments. This is necessary, for
14045 # example, in the case of _POSIX_SOURCE, which is predefined and required
14046 # on some systems where configure will not decide to define it.
14047 cat >>conftest.undefs <<\_ACEOF
14048 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14051 # Break up conftest.defines because some shells have a limit on the size
14052 # of here documents, and old seds have small limits too (100 cmds).
14053 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14054 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14055 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14056 echo ' :' >>$CONFIG_STATUS
14057 rm -f conftest.tail
14058 while grep . conftest.defines >/dev/null
14060 # Write a limited-size here document to $tmp/defines.sed.
14061 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14062 # Speed up: don't consider the non `#define' lines.
14063 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14064 # Work around the forget-to-reset-the-flag bug.
14065 echo 't clr' >>$CONFIG_STATUS
14066 echo ': clr' >>$CONFIG_STATUS
14067 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
14069 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14071 mv $tmp/out $tmp/in
14073 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
14074 rm -f conftest.defines
14075 mv conftest.
tail conftest.defines
14077 rm -f conftest.defines
14078 echo ' fi # grep' >>$CONFIG_STATUS
14079 echo >>$CONFIG_STATUS
14081 # Break up conftest.undefs because some shells have a limit on the size
14082 # of here documents, and old seds have small limits too (100 cmds).
14083 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14084 rm -f conftest.
tail
14085 while grep . conftest.undefs
>/dev
/null
14087 # Write a limited-size here document to $tmp/undefs.sed.
14088 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14089 # Speed up: don't consider the non
`#undef'
14090 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14091 # Work around the forget-to-reset-the-flag bug.
14092 echo 't clr' >>$CONFIG_STATUS
14093 echo ': clr' >>$CONFIG_STATUS
14094 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14096 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14098 mv $tmp/out $tmp/in
14100 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14101 rm -f conftest.undefs
14102 mv conftest.tail conftest.undefs
14104 rm -f conftest.undefs
14106 cat >>$CONFIG_STATUS <<\_ACEOF
14107 # Let's still pretend it is `configure
' which instantiates (i.e., don't
14108 # use $as_me), people would be surprised to read:
14109 # /* config.h. Generated by config.status. */
14110 if test x
"$ac_file" = x-
; then
14111 echo "/* Generated by configure. */" >$tmp/config.h
14113 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14115 cat $tmp/in >>$tmp/config.h
14117 if test x
"$ac_file" != x-
; then
14118 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
14119 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14120 echo "$as_me: $ac_file is unchanged" >&6;}
14122 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14124 X"$ac_file" : 'X\(//\)[^/]' \| \
14125 X"$ac_file" : 'X\(//\)$' \| \
14126 X"$ac_file" : 'X\(/\)' \| \
14127 . : '\(.\)' 2>/dev/null ||
14129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14131 /^X\(\/\/\)$/{ s//\1/; q; }
14132 /^X\(\/\).*/{ s//\1/; q; }
14134 { if $as_mkdir_p; then
14139 while test ! -d "$as_dir"; do
14140 as_dirs
="$as_dir $as_dirs"
14141 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14143 X"$as_dir" : 'X\(//\)[^/]' \| \
14144 X"$as_dir" : 'X\(//\)$' \| \
14145 X"$as_dir" : 'X\(/\)' \| \
14146 . : '\(.\)' 2>/dev/null ||
14148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14150 /^X\(\/\/\)$/{ s//\1/; q; }
14151 /^X\(\/\).*/{ s//\1/; q; }
14154 test ! -n "$as_dirs" || mkdir
$as_dirs
14155 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14157 { (exit 1); exit 1; }; }; }
14160 mv $tmp/config.h
$ac_file
14164 rm -f $tmp/config.h
14168 cat >>$CONFIG_STATUS <<\_ACEOF
14171 # CONFIG_COMMANDS section.
14173 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
14174 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
14175 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14176 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
14177 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14178 X"$ac_dest" : 'X\(//\)[^/]' \| \
14179 X"$ac_dest" : 'X\(//\)$' \| \
14180 X"$ac_dest" : 'X\(/\)' \| \
14181 . : '\(.\)' 2>/dev/null ||
14183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14185 /^X\(\/\/\)$/{ s//\1/; q; }
14186 /^X\(\/\).*/{ s//\1/; q; }
14188 { if $as_mkdir_p; then
14193 while test ! -d "$as_dir"; do
14194 as_dirs
="$as_dir $as_dirs"
14195 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14197 X"$as_dir" : 'X\(//\)[^/]' \| \
14198 X"$as_dir" : 'X\(//\)$' \| \
14199 X"$as_dir" : 'X\(/\)' \| \
14200 . : '\(.\)' 2>/dev/null ||
14202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14204 /^X\(\/\/\)$/{ s//\1/; q; }
14205 /^X\(\/\).*/{ s//\1/; q; }
14208 test ! -n "$as_dirs" || mkdir
$as_dirs
14209 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14210 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14211 { (exit 1); exit 1; }; }; }
14215 if test "$ac_dir" != .
; then
14216 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14217 # A "../" for each directory in $ac_dir_suffix.
14218 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14220 ac_dir_suffix
= ac_top_builddir
=
14224 .
) # No --srcdir option. We are building in place.
14226 if test -z "$ac_top_builddir"; then
14229 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14231 [\\/]* | ?
:[\\/]* ) # Absolute path.
14232 ac_srcdir
=$srcdir$ac_dir_suffix;
14233 ac_top_srcdir
=$srcdir ;;
14234 *) # Relative path.
14235 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14236 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14239 # Do not use `cd foo && pwd` to compute absolute paths, because
14240 # the directories may not exist.
14242 .
) ac_abs_builddir
="$ac_dir";;
14245 .
) ac_abs_builddir
=`pwd`;;
14246 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14247 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14250 case $ac_abs_builddir in
14251 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14253 case ${ac_top_builddir}.
in
14254 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14255 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14256 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14259 case $ac_abs_builddir in
14260 .
) ac_abs_srcdir
=$ac_srcdir;;
14263 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14264 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14265 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14268 case $ac_abs_builddir in
14269 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14271 case $ac_top_srcdir in
14272 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14273 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14274 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14279 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14280 echo "$as_me: executing $ac_dest commands" >&6;}
14282 default-1
) if test -f .devel
; then
14283 echo timestamp
> stamp-h
14284 cat Makefile-devel-adds
>> Makefile
14291 cat >>$CONFIG_STATUS <<\_ACEOF
14293 { (exit 0); exit 0; }
14295 chmod +x
$CONFIG_STATUS
14296 ac_clean_files
=$ac_clean_files_save
14299 # configure is writing to config.log, and then calls config.status.
14300 # config.status does its own redirection, appending to config.log.
14301 # Unfortunately, on DOS this fails, as config.log is still kept open
14302 # by configure, so config.status won't be able to write to it; its
14303 # output is simply discarded. So we exec the FD to /dev/null,
14304 # effectively closing config.log, so it can be properly (re)opened and
14305 # appended to by config.status. When coming back to configure, we
14306 # need to make the FD available again.
14307 if test "$no_create" != yes; then
14309 ac_config_status_args
=
14310 test "$silent" = yes &&
14311 ac_config_status_args
="$ac_config_status_args --quiet"
14313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14316 # would make configure fail if this is the last instruction.
14317 $ac_cs_success ||
{ (exit 1); exit 1; }