2 # From configure.in Revision: 1.188 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 # Support unset when possible.
26 if (FOO
=FOO
; unset FOO
) >/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 -n "`(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
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-smb enable possibly-buggy SMB printer default
=yes
848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6
(with ipv4
) support
850 --disable-ipv6 disable ipv6 support
853 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
854 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
855 --without-gcc don
't use gcc
856 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
869 Use these variables to override the choices made by `configure' or to
help
870 it to
find libraries and programs with nonstandard names
/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
879 test -d $ac_dir ||
continue
882 if test "$ac_dir" != .
; then
883 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix
= ac_top_builddir
=
891 .
) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?
:[\\/]* ) # Absolute path.
899 ac_srcdir
=$srcdir$ac_dir_suffix;
900 ac_top_srcdir
=$srcdir ;;
902 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu
; then
916 $SHELL $ac_srcdir/configure.gnu
--help=recursive
917 elif test -f $ac_srcdir/configure
; then
919 $SHELL $ac_srcdir/configure
--help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.
in; then
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
935 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation
, Inc.
937 This configure
script is free software
; the Free Software Foundation
938 gives unlimited permission to copy
, distribute and modify it.
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
982 test -z "$as_dir" && as_dir
=.
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1007 ac_must_keep_next
=false
1013 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1014 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1015 |
-silent |
--silent |
--silen |
--sile |
--sil)
1017 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1023 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true
; then
1025 ac_must_keep_next
=false
# Got value, back to normal.
1028 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1029 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1030 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1031 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 -* ) ac_must_keep_next
=true
;;
1039 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1046 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1047 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1088 for ac_var in $ac_subst_vars
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1095 if test -n "$ac_subst_files"; then
1102 for ac_var in $ac_subst_files
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1110 if test -s confdefs.h; then
1117 sed "/^$/d" confdefs.h | sort
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 for ac_signal
in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest
* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 # Predefined preprocessor variables.
1140 cat >>confdefs.h
<<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1145 cat >>confdefs.h
<<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1150 cat >>confdefs.h
<<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1155 cat >>confdefs.h
<<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1160 cat >>confdefs.h
<<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE
; then
1169 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1171 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 for ac_site_file
in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1190 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1191 *) . .
/$cache_file;;
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1200 # Check that the precious variables saved in the cache have kept the same
1202 ac_cache_corrupted
=false
1203 for ac_var
in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1206 eval ac_new_set
=\
$ac_env_${ac_var}_set
1207 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val
="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted
=: ;;
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted
=: ;;
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted
=:
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1233 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg
=$ac_var=$ac_new_val ;;
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1252 ac_cpp
='$CPP $CPPFLAGS'
1253 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1277 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1278 if test -f $ac_dir/install-sh
; then
1280 ac_install_sh
="$ac_aux_dir/install-sh -c"
1282 elif test -f $ac_dir/install.sh
; then
1284 ac_install_sh
="$ac_aux_dir/install.sh -c"
1286 elif test -f $ac_dir/shtool
; then
1288 ac_install_sh
="$ac_aux_dir/shtool install -c"
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1297 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 ac_cv_build_alias
=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias
=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1328 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 ac_cv_host_alias
=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias
=$ac_cv_build_alias
1341 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1350 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS
="-I\$(srcdir)"
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS
="$CFLAGS"
1374 if test -z "$CC" ; then
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2
; ac_word
=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1392 test -z "$as_dir" && as_dir
=.
1393 for ac_exec_ext
in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2
="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1405 SHLICC2
=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1414 if test $SHLICC2 = yes ; then
1421 if test -z "$CC" -a "$with_gcc" = no
; then
1426 ac_cpp
='$CPP $CPPFLAGS'
1427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC
="$CC" # Let the user override the test.
1441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir
=.
1446 for ac_exec_ext
in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1467 if test -z "$ac_cv_prog_CC"; then
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc
; ac_word
=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir
=.
1484 for ac_exec_ext
in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC
="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC
="$CC" # Let the user override the test.
1521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir
=.
1526 for ac_exec_ext
in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1547 if test -z "$ac_cv_prog_CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc
; ac_word
=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir
=.
1564 for ac_exec_ext
in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC
="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc
; ac_word
=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC
="$CC" # Let the user override the test.
1602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir
=.
1607 for ac_exec_ext
in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected
=yes
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy
$ac_cv_prog_CC
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1629 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC
="$CC" # Let the user override the test.
1658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir
=.
1663 for ac_exec_ext
in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$CC" && break
1686 if test -z "$CC"; then
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy
$ac_prog; ac_word
=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir
=.
1705 for ac_exec_ext
in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC
="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$ac_ct_CC" && break
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler
=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1760 cat >conftest.
$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1764 cat confdefs.h
>>conftest.
$ac_ext
1765 cat >>conftest.
$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1776 ac_clean_files_save
=$ac_clean_files
1777 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 # b.out is created by i960 compilers.
1797 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1799 test -f "$ac_file" ||
continue
1801 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1804 # This is the source file.
1807 # We found the default executable, but exeext='' is most
1811 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.
$ac_ext >&5
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1832 ac_exeext
=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try
='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1851 if test "$cross_compiling" = maybe
; then
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1867 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1868 ac_clean_files
=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1887 for ac_file
in conftest.exe conftest conftest.
*; do
1888 test -f "$ac_file" ||
continue
1890 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1891 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1905 rm -f conftest
$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1909 rm -f conftest.
$ac_ext
1910 EXEEXT
=$ac_cv_exeext
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.
$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1921 cat confdefs.h
>>conftest.
$ac_ext
1922 cat >>conftest.
$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1942 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.
$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1957 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT
=$ac_cv_objext
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 cat >conftest.
$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1972 cat confdefs.h
>>conftest.
$ac_ext
1973 cat >>conftest.
$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1987 rm -f conftest.
$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try
='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.
$ac_ext >&5
2006 rm -f conftest.
$ac_objext conftest.
$ac_ext
2007 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS
=${CFLAGS+set}
2014 ac_save_CFLAGS
=$CFLAGS
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.
$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2025 cat confdefs.h
>>conftest.
$ac_ext
2026 cat >>conftest.
$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2037 rm -f conftest.
$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try
='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.
$ac_ext >&5
2056 rm -f conftest.
$ac_objext conftest.
$ac_ext
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS
=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2069 if test "$GCC" = yes; then
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 ac_cv_prog_cc_stdc
=no
2082 cat >conftest.
$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2086 cat confdefs.h
>>conftest.
$ac_ext
2087 cat >>conftest.
$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2107 s = g (p, va_arg (v,int));
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2134 CC
="$ac_save_CC $ac_arg"
2135 rm -f conftest.
$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try
='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc
=$ac_arg
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.
$ac_ext >&5
2154 rm -f conftest.
$ac_objext
2156 rm -f conftest.
$ac_ext conftest.
$ac_objext
2161 case "x$ac_cv_prog_cc_stdc" in
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.
$ac_ext <<_ACEOF
2180 rm -f conftest.
$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try
='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration
in \
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2201 cat >conftest.
$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2205 cat confdefs.h
>>conftest.
$ac_ext
2206 cat >>conftest.
$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2218 rm -f conftest.
$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try
='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.
$ac_ext >&5
2237 rm -f conftest.
$ac_objext conftest.
$ac_ext
2238 cat >conftest.
$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2242 cat confdefs.h
>>conftest.
$ac_ext
2243 cat >>conftest.
$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2254 rm -f conftest.
$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try
='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.
$ac_ext >&5
2272 rm -f conftest.
$ac_objext conftest.
$ac_ext
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.
$ac_ext >&5
2286 rm -f conftest.
$ac_objext conftest.
$ac_ext
2288 ac_cpp
='$CPP $CPPFLAGS'
2289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers
=2
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.
$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2327 cat confdefs.h
>>conftest.
$ac_ext
2328 cat >>conftest.
$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2334 int frob(int, char *)
2339 rm -f conftest.
$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try
='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes
=yes
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.
$ac_ext >&5
2356 ac_cv_lbl_cc_ansi_prototypes
=no
2358 rm -f conftest.
$ac_objext conftest.
$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags
="$CFLAGS"
2370 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2378 cat confdefs.h
>>conftest.
$ac_ext
2379 cat >>conftest.
$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2385 int frob(int, char *)
2390 rm -f conftest.
$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try
='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa
=yes
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2407 ac_cv_lbl_cc_hpux_cc_aa
=no
2409 rm -f conftest.
$ac_objext conftest.
$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2419 CFLAGS
="$savedcflags"
2420 V_CCOPT
="-Aa $V_CCOPT"
2421 cat >>confdefs.h
<<\_ACEOF
2422 #define _HPUX_SOURCE 1
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2434 V_INCLS
="$V_INCLS -I/usr/local/include"
2435 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2440 V_CCOPT
="$V_CCOPT -xansi -signed -O"
2444 V_CCOPT
="$V_CCOPT -std1 -O"
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.
$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2457 cat confdefs.h
>>conftest.
$ac_ext
2458 cat >>conftest.
$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2464 struct a { int b; };
2465 void c(const struct a *)
2470 rm -f conftest.
$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try
='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto
=yes
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.
$ac_ext >&5
2487 ac_cv_lbl_cc_const_proto
=no
2489 rm -f conftest.
$ac_objext conftest.
$ac_ext
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no
; then
2495 cat >>confdefs.h
<<\_ACEOF
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 save_CFLAGS
="$CFLAGS"
2508 if test "${ac_cv_lbl_inline+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 for ac_lbl_inline
in inline __inline__ __inline
2516 cat >conftest.
$ac_ext <<_ACEOF
2517 #line $LINENO "configure"
2520 cat confdefs.h
>>conftest.
$ac_ext
2521 cat >>conftest.
$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #define inline $ac_lbl_inline
2524 static inline struct iltest *foo(void);
2530 static inline struct iltest *
2533 static struct iltest xxx;
2545 rm -f conftest.
$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try
='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_lbl_cc_inline
=yes
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.
$ac_ext >&5
2563 rm -f conftest.
$ac_objext conftest.
$ac_ext
2564 if test "$ac_lbl_cc_inline" = yes ; then
2568 if test "$ac_lbl_cc_inline" = yes ; then
2569 ac_cv_lbl_inline
=$ac_lbl_inline
2573 CFLAGS
="$save_CFLAGS"
2574 if test ! -z "$ac_cv_lbl_inline" ; then
2575 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2576 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2582 cat >>confdefs.h
<<_ACEOF
2583 #define inline $ac_cv_lbl_inline
2587 echo "$as_me:$LINENO: checking for __attribute__" >&5
2588 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2589 if test "${ac_cv___attribute__+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 cat >conftest.
$ac_ext <<_ACEOF
2594 #line $LINENO "configure"
2597 cat confdefs.h
>>conftest.
$ac_ext
2598 cat >>conftest.
$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2607 static void foo(void) __attribute__ ((noreturn));
2619 rm -f conftest.
$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try
='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv___attribute__
=yes
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.
$ac_ext >&5
2636 ac_cv___attribute__
=no
2638 rm -f conftest.
$ac_objext conftest.
$ac_ext
2641 if test "$ac_cv___attribute__" = "yes"; then
2643 cat >>confdefs.h
<<\_ACEOF
2644 #define HAVE___ATTRIBUTE__ 1
2647 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2649 V_DEFS
="$V_DEFS -D_U_=\"\""
2651 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2652 echo "${ECHO_T}$ac_cv___attribute__" >&6
2655 ac_cpp
='$CPP $CPPFLAGS'
2656 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661 # On Suns, sometimes $CPP names a directory.
2662 if test -n "$CPP" && test -d "$CPP"; then
2665 if test -z "$CPP"; then
2666 if test "${ac_cv_prog_CPP+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 # Double quotes because CPP needs to be expanded
2670 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2673 for ac_c_preproc_warn_flag
in '' yes
2675 # Use a header file that comes with gcc, so configuring glibc
2676 # with a fresh cross-compiler works.
2677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2678 # <limits.h> exists even on freestanding compilers.
2679 # On the NeXT, cc -E runs the code through the compiler's parser,
2680 # not just through cpp. "Syntax error" is here to catch this case.
2681 cat >conftest.
$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2685 cat confdefs.h
>>conftest.
$ac_ext
2686 cat >>conftest.
$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2689 # include <limits.h>
2691 # include <assert.h>
2695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2698 grep -v '^ *+' conftest.er1
>conftest.err
2700 cat conftest.err
>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } >/dev
/null
; then
2703 if test -s conftest.err
; then
2704 ac_cpp_err
=$ac_c_preproc_warn_flag
2711 if test -z "$ac_cpp_err"; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.
$ac_ext >&5
2717 # Broken: fails on valid input.
2720 rm -f conftest.err conftest.
$ac_ext
2722 # OK, works on sane cases. Now check whether non-existent headers
2723 # can be detected and how.
2724 cat >conftest.
$ac_ext <<_ACEOF
2725 #line $LINENO "configure"
2728 cat confdefs.h
>>conftest.
$ac_ext
2729 cat >>conftest.
$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2731 #include <ac_nonexistent.h>
2733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2734 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2736 grep -v '^ *+' conftest.er1
>conftest.err
2738 cat conftest.err
>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } >/dev
/null
; then
2741 if test -s conftest.err
; then
2742 ac_cpp_err
=$ac_c_preproc_warn_flag
2749 if test -z "$ac_cpp_err"; then
2750 # Broken: success on invalid input.
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.
$ac_ext >&5
2756 # Passes both tests.
2760 rm -f conftest.err conftest.
$ac_ext
2763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764 rm -f conftest.err conftest.
$ac_ext
2765 if $ac_preproc_ok; then
2777 echo "$as_me:$LINENO: result: $CPP" >&5
2778 echo "${ECHO_T}$CPP" >&6
2780 for ac_c_preproc_warn_flag
in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.
$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2796 # include <limits.h>
2798 # include <assert.h>
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2805 grep -v '^ *+' conftest.er1
>conftest.err
2807 cat conftest.err
>&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev
/null
; then
2810 if test -s conftest.err
; then
2811 ac_cpp_err
=$ac_c_preproc_warn_flag
2818 if test -z "$ac_cpp_err"; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.
$ac_ext >&5
2824 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.
$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.
$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2835 cat confdefs.h
>>conftest.
$ac_ext
2836 cat >>conftest.
$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1
>conftest.err
2845 cat conftest.err
>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev
/null
; then
2848 if test -s conftest.err
; then
2849 ac_cpp_err
=$ac_c_preproc_warn_flag
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2863 # Passes both tests.
2867 rm -f conftest.err conftest.
$ac_ext
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.
$ac_ext
2872 if $ac_preproc_ok; then
2875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2883 ac_cpp
='$CPP $CPPFLAGS'
2884 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking for egrep" >&5
2890 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2891 if test "${ac_cv_prog_egrep+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2895 then ac_cv_prog_egrep
='grep -E'
2896 else ac_cv_prog_egrep
='egrep'
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2900 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2901 EGREP
=$ac_cv_prog_egrep
2904 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2906 if test "${ac_cv_header_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.
$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2913 cat confdefs.h
>>conftest.
$ac_ext
2914 cat >>conftest.
$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2929 rm -f conftest.
$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try
='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_header_stdc
=yes
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2946 ac_cv_header_stdc
=no
2948 rm -f conftest.
$ac_objext conftest.
$ac_ext
2950 if test $ac_cv_header_stdc = yes; then
2951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2952 cat >conftest.
$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2956 cat confdefs.h
>>conftest.
$ac_ext
2957 cat >>conftest.
$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2963 $EGREP "memchr" >/dev
/null
2>&1; then
2966 ac_cv_header_stdc
=no
2972 if test $ac_cv_header_stdc = yes; then
2973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2974 cat >conftest.
$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2978 cat confdefs.h
>>conftest.
$ac_ext
2979 cat >>conftest.
$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 $EGREP "free" >/dev
/null
2>&1; then
2988 ac_cv_header_stdc
=no
2994 if test $ac_cv_header_stdc = yes; then
2995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2996 if test "$cross_compiling" = yes; then
2999 cat >conftest.
$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3003 cat confdefs.h
>>conftest.
$ac_ext
3004 cat >>conftest.
$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3007 #if ((' ' & 0x0FF) == 0x020)
3008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3011 # define ISLOWER(c) \
3012 (('a' <= (c) && (c) <= 'i') \
3013 || ('j' <= (c) && (c) <= 'r') \
3014 || ('s' <= (c) && (c) <= 'z'))
3015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3023 for (i = 0; i < 256; i++)
3024 if (XOR (islower (i), ISLOWER (i))
3025 || toupper (i) != TOUPPER (i))
3030 rm -f conftest
$ac_exeext
3031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3032 (eval $ac_link) 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3043 echo "$as_me: program exited with status $ac_status" >&5
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.
$ac_ext >&5
3048 ac_cv_header_stdc
=no
3050 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3054 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3056 if test $ac_cv_header_stdc = yes; then
3058 cat >>confdefs.h
<<\_ACEOF
3059 #define STDC_HEADERS 1
3064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3074 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3075 inttypes.h stdint.h unistd.h
3077 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3078 echo "$as_me:$LINENO: checking for $ac_header" >&5
3079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 cat >conftest.
$ac_ext <<_ACEOF
3084 #line $LINENO "configure"
3087 cat confdefs.h
>>conftest.
$ac_ext
3088 cat >>conftest.
$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 $ac_includes_default
3092 #include <$ac_header>
3094 rm -f conftest.
$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try
='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 eval "$as_ac_Header=yes"
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.
$ac_ext >&5
3111 eval "$as_ac_Header=no"
3113 rm -f conftest.
$ac_objext conftest.
$ac_ext
3115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3118 cat >>confdefs.h
<<_ACEOF
3119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3130 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3132 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134 echo "$as_me:$LINENO: checking for $ac_header" >&5
3135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3142 # Is the header compilable?
3143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3145 cat >conftest.
$ac_ext <<_ACEOF
3146 #line $LINENO "configure"
3149 cat confdefs.h
>>conftest.
$ac_ext
3150 cat >>conftest.
$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 $ac_includes_default
3153 #include <$ac_header>
3155 rm -f conftest.
$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try
='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_header_compiler
=yes
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.
$ac_ext >&5
3172 ac_header_compiler
=no
3174 rm -f conftest.
$ac_objext conftest.
$ac_ext
3175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3176 echo "${ECHO_T}$ac_header_compiler" >&6
3178 # Is the header present?
3179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3181 cat >conftest.
$ac_ext <<_ACEOF
3182 #line $LINENO "configure"
3185 cat confdefs.h
>>conftest.
$ac_ext
3186 cat >>conftest.
$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <$ac_header>
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1
>conftest.err
3195 cat conftest.err
>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev
/null
; then
3198 if test -s conftest.err
; then
3199 ac_cpp_err
=$ac_c_preproc_warn_flag
3206 if test -z "$ac_cpp_err"; then
3207 ac_header_preproc
=yes
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.
$ac_ext >&5
3212 ac_header_preproc
=no
3214 rm -f conftest.err conftest.
$ac_ext
3215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3216 echo "${ECHO_T}$ac_header_preproc" >&6
3218 # So? What about this header?
3219 case $ac_header_compiler:$ac_header_preproc in
3221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3227 ## ------------------------------------ ##
3228 ## Report this to bug-autoconf@gnu.org. ##
3229 ## ------------------------------------ ##
3232 sed "s/^/$as_me: WARNING: /" >&2
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3243 ## ------------------------------------ ##
3244 ## Report this to bug-autoconf@gnu.org. ##
3245 ## ------------------------------------ ##
3248 sed "s/^/$as_me: WARNING: /" >&2
3251 echo "$as_me:$LINENO: checking for $ac_header" >&5
3252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 eval "$as_ac_Header=$ac_header_preproc"
3258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3263 cat >>confdefs.h
<<_ACEOF
3264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3272 for ac_header
in netinet
/if_ether.h
3274 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3275 echo "$as_me:$LINENO: checking for $ac_header" >&5
3276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 cat >conftest.
$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3284 cat confdefs.h
>>conftest.
$ac_ext
3285 cat >>conftest.
$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <sys/types.h>
3288 #include <sys/socket.h>
3290 #include <$ac_header>
3292 rm -f conftest.
$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try
='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 eval "$as_ac_Header=yes"
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.
$ac_ext >&5
3309 eval "$as_ac_Header=no"
3311 rm -f conftest.
$ac_objext conftest.
$ac_ext
3313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3316 cat >>confdefs.h
<<_ACEOF
3317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3324 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3326 # The simple test didn't work.
3327 # Do we need to include <net/if.h> first?
3328 # Unset ac_cv_header_netinet_if_ether_h so we don't
3329 # treat the previous failure as a cached value and
3330 # suppress the next test.
3332 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3333 echo "$as_me: Rechecking with some additional includes" >&6;}
3334 unset ac_cv_header_netinet_if_ether_h
3336 for ac_header
in netinet
/if_ether.h
3338 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3339 echo "$as_me:$LINENO: checking for $ac_header" >&5
3340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 cat >conftest.
$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3348 cat confdefs.h
>>conftest.
$ac_ext
3349 cat >>conftest.
$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351 #include <sys/types.h>
3352 #include <sys/socket.h>
3353 #include <netinet/in.h>
3358 #include <$ac_header>
3360 rm -f conftest.
$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try
='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 eval "$as_ac_Header=yes"
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.
$ac_ext >&5
3377 eval "$as_ac_Header=no"
3379 rm -f conftest.
$ac_objext conftest.
$ac_ext
3381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3384 cat >>confdefs.h
<<_ACEOF
3385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3394 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3396 if test "${ac_cv_header_time+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 cat >conftest.
$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3403 cat confdefs.h
>>conftest.
$ac_ext
3404 cat >>conftest.
$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <sys/types.h>
3407 #include <sys/time.h>
3413 if ((struct tm *) 0)
3419 rm -f conftest.
$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try
='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_header_time
=yes
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.
$ac_ext >&5
3436 ac_cv_header_time
=no
3438 rm -f conftest.
$ac_objext conftest.
$ac_ext
3440 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3441 echo "${ECHO_T}$ac_cv_header_time" >&6
3442 if test $ac_cv_header_time = yes; then
3444 cat >>confdefs.h
<<\_ACEOF
3445 #define TIME_WITH_SYS_TIME 1
3454 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3455 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3456 if test "$cross_compiling" = yes; then
3457 if test "${ac_cv_linux_vers+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 ac_cv_linux_vers
=unknown
3464 if test "${ac_cv_linux_vers+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_linux_vers
=`uname -r 2>&1 | \
3468 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3472 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3473 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3474 if test $ac_cv_linux_vers = unknown
; then
3475 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3476 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3477 { (exit 1); exit 1; }; }
3479 if test $ac_cv_linux_vers -lt 2 ; then
3480 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3481 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3482 { (exit 1); exit 1; }; }
3492 for ac_header
in smi.h
3494 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3504 # Is the header compilable?
3505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3507 cat >conftest.
$ac_ext <<_ACEOF
3508 #line $LINENO "configure"
3511 cat confdefs.h
>>conftest.
$ac_ext
3512 cat >>conftest.
$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 $ac_includes_default
3515 #include <$ac_header>
3517 rm -f conftest.
$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try
='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler
=yes
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.
$ac_ext >&5
3534 ac_header_compiler
=no
3536 rm -f conftest.
$ac_objext conftest.
$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.
$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3547 cat confdefs.h
>>conftest.
$ac_ext
3548 cat >>conftest.
$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 #include <$ac_header>
3552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3555 grep -v '^ *+' conftest.er1
>conftest.err
3557 cat conftest.err
>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev
/null
; then
3560 if test -s conftest.err
; then
3561 ac_cpp_err
=$ac_c_preproc_warn_flag
3568 if test -z "$ac_cpp_err"; then
3569 ac_header_preproc
=yes
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.
$ac_ext >&5
3574 ac_header_preproc
=no
3576 rm -f conftest.err conftest.
$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578 echo "${ECHO_T}$ac_header_preproc" >&6
3580 # So? What about this header?
3581 case $ac_header_compiler:$ac_header_preproc in
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3589 ## ------------------------------------ ##
3590 ## Report this to bug-autoconf@gnu.org. ##
3591 ## ------------------------------------ ##
3594 sed "s/^/$as_me: WARNING: /" >&2
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3605 ## ------------------------------------ ##
3606 ## Report this to bug-autoconf@gnu.org. ##
3607 ## ------------------------------------ ##
3610 sed "s/^/$as_me: WARNING: /" >&2
3613 echo "$as_me:$LINENO: checking for $ac_header" >&5
3614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 eval "$as_ac_Header=$ac_header_preproc"
3620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3625 cat >>confdefs.h
<<_ACEOF
3626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3634 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3635 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3636 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 ac_check_lib_save_LIBS
=$LIBS
3641 cat >conftest.
$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3645 cat confdefs.h
>>conftest.
$ac_ext
3646 cat >>conftest.
$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3649 /* Override any gcc2 internal prototype to avoid an error. */
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3664 rm -f conftest.
$ac_objext conftest
$ac_exeext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666 (eval $ac_link) 2>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try
='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_lib_smi_smiInit
=yes
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.
$ac_ext >&5
3681 ac_cv_lib_smi_smiInit
=no
3683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3684 LIBS
=$ac_check_lib_save_LIBS
3686 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3687 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3688 if test $ac_cv_lib_smi_smiInit = yes; then
3689 cat >>confdefs.h
<<_ACEOF
3690 #define HAVE_LIBSMI 1
3697 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3699 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3700 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3701 if test "$cross_compiling" = yes; then
3702 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3703 echo "${ECHO_T}not when cross-compiling" >&6
3707 cat >conftest.
$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3711 cat confdefs.h
>>conftest.
$ac_ext
3712 cat >>conftest.
$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 /* libsmi available check */
3718 int current, revision, age, n;
3719 const int required = 2;
3722 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3724 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3727 if (required < current - age || required > current)
3733 rm -f conftest
$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6
3746 cat >>confdefs.h
<<\_ACEOF
3752 echo "$as_me: program exited with status $ac_status" >&5
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.
$ac_ext >&5
3758 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3759 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3760 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3761 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3762 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3763 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3764 4) echo "$as_me:$LINENO: result: no - too old" >&5
3765 echo "${ECHO_T}no - too old" >&6 ;;
3766 *) echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6 ;;
3771 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3775 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3776 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3777 # Check whether --enable-smb or --disable-smb was given.
3778 if test "${enable_smb+set}" = set; then
3779 enableval
="$enable_smb"
3784 case "$enableval" in
3785 yes) echo "$as_me:$LINENO: result: yes" >&5
3786 echo "${ECHO_T}yes" >&6
3787 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3788 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3789 cat >>confdefs.h
<<\_ACEOF
3790 #define TCPDUMP_DO_SMB 1
3793 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
3795 *) echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3801 # Check whether --with-user or --without-user was given.
3802 if test "${with_user+set}" = set; then
3803 withval
="$with_user"
3806 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3807 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3808 if test ! -z "$with_user" ; then
3809 cat >>confdefs.h
<<_ACEOF
3810 #define WITH_USER "$withval"
3813 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3814 echo "${ECHO_T}to \"$withval\"" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3821 # Check whether --with-chroot or --without-chroot was given.
3822 if test "${with_chroot+set}" = set; then
3823 withval
="$with_chroot"
3826 echo "$as_me:$LINENO: checking whether to chroot" >&5
3827 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3828 if test ! -z "$with_chroot" ; then
3829 cat >>confdefs.h
<<_ACEOF
3830 #define WITH_CHROOT "$withval"
3833 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3834 echo "${ECHO_T}to \"$withval\"" >&6
3836 echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3840 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3841 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3842 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3843 if test "${enable_ipv6+set}" = set; then
3844 enableval
="$enable_ipv6"
3845 case "$enableval" in
3846 yes) echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6
3848 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"
3849 cat >>confdefs.h
<<\_ACEOF
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3862 if test "$cross_compiling" = yes; then
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3868 cat >conftest.
$ac_ext <<_ACEOF
3869 #line $LINENO "configure"
3872 cat confdefs.h
>>conftest.
$ac_ext
3873 cat >>conftest.
$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 /* AF_INET6 available check */
3876 #include <sys/types.h>
3877 #include <sys/socket.h>
3880 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3887 rm -f conftest
$ac_exeext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889 (eval $ac_link) 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 echo "$as_me:$LINENO: result: yes" >&5
3899 echo "${ECHO_T}yes" >&6
3900 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"
3901 cat >>confdefs.h
<<\_ACEOF
3907 echo "$as_me: program exited with status $ac_status" >&5
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.
$ac_ext >&5
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3924 if test "$ipv6" = "yes"; then
3925 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3926 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3927 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
3930 cat >conftest.
$ac_ext <<_ACEOF
3931 #line $LINENO "configure"
3934 cat confdefs.h
>>conftest.
$ac_ext
3935 cat >>conftest.
$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <netinet/in.h>
3938 #ifdef IPV6_INRIA_VERSION
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "yes" >/dev
/null
2>&1; then
3945 CFLAGS
="-DINET6 $CFLAGS"
3951 cat >conftest.
$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3955 cat confdefs.h
>>conftest.
$ac_ext
3956 cat >>conftest.
$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <netinet/in.h>
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "yes" >/dev
/null
2>&1; then
3967 ipv6libdir
=/usr
/local
/v
6/lib
;
3969 CFLAGS
="-DINET6 $CFLAGS"
3975 cat >conftest.
$ac_ext <<_ACEOF
3976 #line $LINENO "configure"
3979 cat confdefs.h
>>conftest.
$ac_ext
3980 cat >>conftest.
$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <features.h>
3983 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 $EGREP "yes" >/dev
/null
2>&1; then
3990 CFLAGS
="-DINET6 $CFLAGS"
3996 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
3999 ipv6libdir
=/usr
/inet
6/lib
4001 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
4005 cat >conftest.
$ac_ext <<_ACEOF
4006 #line $LINENO "configure"
4009 cat confdefs.h
>>conftest.
$ac_ext
4010 cat >>conftest.
$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <sys/param.h>
4013 #ifdef _TOSHIBA_INET6
4017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018 $EGREP "yes" >/dev
/null
2>&1; then
4021 ipv6libdir
=/usr
/local
/v
6/lib
;
4022 CFLAGS
="-DINET6 $CFLAGS"
4028 cat >conftest.
$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4032 cat confdefs.h
>>conftest.
$ac_ext
4033 cat >>conftest.
$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 #include </usr/local/v6/include/sys/v6config.h>
4040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041 $EGREP "yes" >/dev
/null
2>&1; then
4044 ipv6libdir
=/usr
/local
/v
6/lib
;
4045 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
4051 cat >conftest.
$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <sys/param.h>
4059 #ifdef _ZETA_MINAMI_INET6
4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064 $EGREP "yes" >/dev
/null
2>&1; then
4067 ipv6libdir
=/usr
/local
/v
6/lib
;
4068 CFLAGS
="-DINET6 $CFLAGS"
4074 if test "$ipv6type" != "unknown"; then
4078 echo "$as_me:$LINENO: result: $ipv6type" >&5
4079 echo "${ECHO_T}$ipv6type" >&6
4082 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4083 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4084 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4085 echo "You have $ipv6lib library, using it"
4087 if test "$ipv6trylibc" = "yes"; then
4088 echo "You do not have $ipv6lib library, using libc"
4090 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4091 echo "You need to fetch lib$ipv6lib.a from appropriate"
4092 echo 'ipv6 kit and compile beforehand.'
4099 if test "$ipv6" = "yes"; then
4101 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4102 # function in libc; there are "ngetaddrinfo()" and
4103 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4104 # "getaddrinfo" to be either "ngetaddrinfo" or
4105 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4106 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4108 # So this test doesn't work on Tru64 5.1, and possibly
4109 # on other 5.x releases. This causes the configure
4110 # script to become confused, and results in libpcap
4111 # being unbuildable.
4113 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4114 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4115 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_func_search_save_LIBS
=$LIBS
4119 ac_cv_search_getaddrinfo
=no
4120 cat >conftest.
$ac_ext <<_ACEOF
4121 #line $LINENO "configure"
4124 cat confdefs.h
>>conftest.
$ac_ext
4125 cat >>conftest.
$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4128 /* Override any gcc2 internal prototype to avoid an error. */
4132 /* We use char because int might match the return type of a gcc2
4133 builtin and then its argument prototype would still apply. */
4134 char getaddrinfo ();
4143 rm -f conftest.
$ac_objext conftest
$ac_exeext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4145 (eval $ac_link) 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try
='test -s conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_search_getaddrinfo
="none required"
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.
$ac_ext >&5
4161 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4162 if test "$ac_cv_search_getaddrinfo" = no
; then
4163 for ac_lib
in socket
; do
4164 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4165 cat >conftest.
$ac_ext <<_ACEOF
4166 #line $LINENO "configure"
4169 cat confdefs.h
>>conftest.
$ac_ext
4170 cat >>conftest.
$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4179 char getaddrinfo ();
4188 rm -f conftest.
$ac_objext conftest
$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try
='test -s conftest$ac_exeext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_search_getaddrinfo
="-l$ac_lib"
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4210 LIBS
=$ac_func_search_save_LIBS
4212 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4213 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4214 if test "$ac_cv_search_getaddrinfo" != no
; then
4215 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4216 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4217 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4218 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test "$cross_compiling" = yes; then
4222 td_cv_buggygetaddrinfo
=yes
4224 cat >conftest.
$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4228 cat confdefs.h
>>conftest.
$ac_ext
4229 cat >>conftest.
$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4232 #include <sys/types.h>
4235 #include <sys/socket.h>
4236 #include <netinet/in.h>
4240 int passive, gaierr, inet4 = 0, inet6 = 0;
4241 struct addrinfo hints, *ai, *aitop;
4242 char straddr[INET6_ADDRSTRLEN], strport[16];
4244 for (passive = 0; passive <= 1; passive++) {
4245 memset(&hints, 0, sizeof(hints));
4246 hints.ai_family = AF_UNSPEC;
4247 hints.ai_flags = passive ? AI_PASSIVE : 0;
4248 hints.ai_socktype = SOCK_STREAM;
4249 hints.ai_protocol = IPPROTO_TCP;
4250 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4251 (void)gai_strerror(gaierr);
4254 for (ai = aitop; ai; ai = ai->ai_next) {
4255 if (ai->ai_addr == NULL ||
4256 ai->ai_addrlen == 0 ||
4257 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4258 straddr, sizeof(straddr), strport, sizeof(strport),
4259 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4262 switch (ai->ai_family) {
4264 if (strcmp(strport, "54321") != 0) {
4268 if (strcmp(straddr, "0.0.0.0") != 0) {
4272 if (strcmp(straddr, "127.0.0.1") != 0) {
4279 if (strcmp(strport, "54321") != 0) {
4283 if (strcmp(straddr, "::") != 0) {
4287 if (strcmp(straddr, "::1") != 0) {
4304 /* another family support? */
4310 /* supported family should be 2, unsupported family should be 0 */
4311 if (!(inet4 == 0 || inet4 == 2))
4313 if (!(inet6 == 0 || inet6 == 2))
4317 freeaddrinfo(aitop);
4322 freeaddrinfo(aitop);
4327 rm -f conftest
$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 td_cv_buggygetaddrinfo
=no
4340 echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.
$ac_ext >&5
4345 td_cv_buggygetaddrinfo
=yes
4347 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4351 if test "$td_cv_buggygetaddrinfo" = no
; then
4352 echo "$as_me:$LINENO: result: good" >&5
4353 echo "${ECHO_T}good" >&6
4355 echo "$as_me:$LINENO: result: buggy" >&5
4356 echo "${ECHO_T}buggy" >&6
4359 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4361 # XXX - it doesn't appear that "ipv6type" can ever be
4362 # set to "linux". Should this be testing for
4363 # "linux-glibc", or for that *or* "linux-libinet6"?
4364 # If the latter, note that "linux-libinet6" is also
4365 # the type given to some non-Linux OSes.
4367 if test "$ipv6type" != "linux"; then
4368 echo 'Fatal: You must get working getaddrinfo() function.'
4369 echo ' or you can specify "--disable-ipv6"'.
4372 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4373 echo ' Better upgrade your system library to newest version'
4374 echo ' of GNU C library (aka glibc).'
4382 for ac_func
in getaddrinfo getnameinfo
4384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4385 echo "$as_me:$LINENO: checking for $ac_func" >&5
4386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4387 if eval "test \"\${$as_ac_var+set}\" = set"; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 cat >conftest.
$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func (); below.
4399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4400 <limits.h> exists even on freestanding compilers. */
4402 # include <limits.h>
4404 # include <assert.h>
4406 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4414 /* The GNU C library defines this for functions which it implements
4415 to always fail with ENOSYS. Some functions are actually named
4416 something starting with __ and the normal name is an alias. */
4417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4420 char (*f) () = $ac_func;
4429 return f != $ac_func;
4434 rm -f conftest.
$ac_objext conftest
$ac_exeext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436 (eval $ac_link) 2>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try
='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 eval "$as_ac_var=yes"
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.
$ac_ext >&5
4451 eval "$as_ac_var=no"
4453 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4457 if test `eval echo '${'$as_ac_var'}'` = yes; then
4458 cat >>confdefs.h
<<_ACEOF
4459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4463 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4470 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4471 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4472 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 cat >conftest.
$ac_ext <<_ACEOF
4476 #line $LINENO "configure"
4479 cat confdefs.h
>>conftest.
$ac_ext
4480 cat >>conftest.
$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <netdnet/dnetdb.h>
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4487 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4489 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4494 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4495 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4496 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4497 cat >>confdefs.h
<<\_ACEOF
4498 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4503 echo "$as_me:$LINENO: checking for char" >&5
4504 echo $ECHO_N "checking for char... $ECHO_C" >&6
4505 if test "${ac_cv_type_char+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 cat >conftest.
$ac_ext <<_ACEOF
4509 #line $LINENO "configure"
4512 cat confdefs.h
>>conftest.
$ac_ext
4513 cat >>conftest.
$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4527 rm -f conftest.
$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try
='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.
$ac_ext >&5
4546 rm -f conftest.
$ac_objext conftest.
$ac_ext
4548 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4549 echo "${ECHO_T}$ac_cv_type_char" >&6
4551 echo "$as_me:$LINENO: checking size of char" >&5
4552 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4553 if test "${ac_cv_sizeof_char+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 if test "$ac_cv_type_char" = yes; then
4557 # The cast to unsigned long works around a bug in the HP C Compiler
4558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4560 # This bug is HP SR number 8606223364.
4561 if test "$cross_compiling" = yes; then
4562 # Depending upon the size, compute the lo and hi bounds.
4563 cat >conftest.
$ac_ext <<_ACEOF
4564 #line $LINENO "configure"
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 $ac_includes_default
4574 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4581 rm -f conftest.
$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try
='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 cat >conftest.
$ac_ext <<_ACEOF
4596 #line $LINENO "configure"
4599 cat confdefs.h
>>conftest.
$ac_ext
4600 cat >>conftest.
$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4606 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4613 rm -f conftest.
$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try
='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 ac_hi
=$ac_mid; break
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.
$ac_ext >&5
4630 ac_lo
=`expr $ac_mid + 1`
4631 if test $ac_lo -le $ac_mid; then
4635 ac_mid
=`expr 2 '*' $ac_mid + 1`
4637 rm -f conftest.
$ac_objext conftest.
$ac_ext
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.
$ac_ext >&5
4643 cat >conftest.
$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4647 cat confdefs.h
>>conftest.
$ac_ext
4648 cat >>conftest.
$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 $ac_includes_default
4654 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4661 rm -f conftest.
$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try
='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4675 cat >conftest.
$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4679 cat confdefs.h
>>conftest.
$ac_ext
4680 cat >>conftest.
$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 $ac_includes_default
4686 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4693 rm -f conftest.
$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try
='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_lo
=$ac_mid; break
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.
$ac_ext >&5
4710 ac_hi
=`expr '(' $ac_mid ')' - 1`
4711 if test $ac_mid -le $ac_hi; then
4715 ac_mid
=`expr 2 '*' $ac_mid`
4717 rm -f conftest.
$ac_objext conftest.
$ac_ext
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.
$ac_ext >&5
4725 rm -f conftest.
$ac_objext conftest.
$ac_ext
4727 rm -f conftest.
$ac_objext conftest.
$ac_ext
4728 # Binary search between lo and hi bounds.
4729 while test "x$ac_lo" != "x$ac_hi"; do
4730 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4731 cat >conftest.
$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4742 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4749 rm -f conftest.
$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try
='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.
$ac_ext >&5
4766 ac_lo
=`expr '(' $ac_mid ')' + 1`
4768 rm -f conftest.
$ac_objext conftest.
$ac_ext
4771 ?
*) ac_cv_sizeof_char
=$ac_lo;;
4772 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: cannot compute sizeof (char), 77
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; } ;;
4779 if test "$cross_compiling" = yes; then
4780 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: cannot run test program while cross compiling
4783 See \`config.log' for more details." >&2;}
4784 { (exit 1); exit 1; }; }
4786 cat >conftest.
$ac_ext <<_ACEOF
4787 #line $LINENO "configure"
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 long longval () { return (long) (sizeof (char)); }
4795 unsigned long ulongval () { return (long) (sizeof (char)); }
4802 FILE *f = fopen ("conftest.val", "w");
4805 if (((long) (sizeof (char))) < 0)
4807 long i = longval ();
4808 if (i != ((long) (sizeof (char))))
4810 fprintf (f, "%ld\n", i);
4814 unsigned long i = ulongval ();
4815 if (i != ((long) (sizeof (char))))
4817 fprintf (f, "%lu\n", i);
4819 exit (ferror (f) || fclose (f) != 0);
4825 rm -f conftest
$ac_exeext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827 (eval $ac_link) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_cv_sizeof_char
=`cat conftest.val`
4838 echo "$as_me: program exited with status $ac_status" >&5
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.
$ac_ext >&5
4843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4844 See \`config.log' for more details." >&5
4845 echo "$as_me: error: cannot compute sizeof (char), 77
4846 See \`config.log' for more details." >&2;}
4847 { (exit 1); exit 1; }; }
4849 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4858 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4859 cat >>confdefs.h
<<_ACEOF
4860 #define SIZEOF_CHAR $ac_cv_sizeof_char
4864 echo "$as_me:$LINENO: checking for short" >&5
4865 echo $ECHO_N "checking for short... $ECHO_C" >&6
4866 if test "${ac_cv_type_short+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 cat >conftest.
$ac_ext <<_ACEOF
4870 #line $LINENO "configure"
4873 cat confdefs.h
>>conftest.
$ac_ext
4874 cat >>conftest.
$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4888 rm -f conftest.
$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try
='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_type_short
=yes
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4907 rm -f conftest.
$ac_objext conftest.
$ac_ext
4909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4910 echo "${ECHO_T}$ac_cv_type_short" >&6
4912 echo "$as_me:$LINENO: checking size of short" >&5
4913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4914 if test "${ac_cv_sizeof_short+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test "$ac_cv_type_short" = yes; then
4918 # The cast to unsigned long works around a bug in the HP C Compiler
4919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4921 # This bug is HP SR number 8606223364.
4922 if test "$cross_compiling" = yes; then
4923 # Depending upon the size, compute the lo and hi bounds.
4924 cat >conftest.
$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4928 cat confdefs.h
>>conftest.
$ac_ext
4929 cat >>conftest.
$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4935 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4942 rm -f conftest.
$ac_objext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try
='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4956 cat >conftest.
$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4960 cat confdefs.h
>>conftest.
$ac_ext
4961 cat >>conftest.
$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4967 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4974 rm -f conftest.
$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try
='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_hi
=$ac_mid; break
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.
$ac_ext >&5
4991 ac_lo
=`expr $ac_mid + 1`
4992 if test $ac_lo -le $ac_mid; then
4996 ac_mid
=`expr 2 '*' $ac_mid + 1`
4998 rm -f conftest.
$ac_objext conftest.
$ac_ext
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.
$ac_ext >&5
5004 cat >conftest.
$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5008 cat confdefs.h
>>conftest.
$ac_ext
5009 cat >>conftest.
$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5015 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5022 rm -f conftest.
$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try
='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5036 cat >conftest.
$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5040 cat confdefs.h
>>conftest.
$ac_ext
5041 cat >>conftest.
$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5054 rm -f conftest.
$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try
='test -s conftest.$ac_objext'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 ac_lo
=$ac_mid; break
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.
$ac_ext >&5
5071 ac_hi
=`expr '(' $ac_mid ')' - 1`
5072 if test $ac_mid -le $ac_hi; then
5076 ac_mid
=`expr 2 '*' $ac_mid`
5078 rm -f conftest.
$ac_objext conftest.
$ac_ext
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.
$ac_ext >&5
5086 rm -f conftest.
$ac_objext conftest.
$ac_ext
5088 rm -f conftest.
$ac_objext conftest.
$ac_ext
5089 # Binary search between lo and hi bounds.
5090 while test "x$ac_lo" != "x$ac_hi"; do
5091 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5092 cat >conftest.
$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5096 cat confdefs.h
>>conftest.
$ac_ext
5097 cat >>conftest.
$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 $ac_includes_default
5103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5110 rm -f conftest.
$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try
='test -s conftest.$ac_objext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.
$ac_ext >&5
5127 ac_lo
=`expr '(' $ac_mid ')' + 1`
5129 rm -f conftest.
$ac_objext conftest.
$ac_ext
5132 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5134 See \`config.log' for more details." >&5
5135 echo "$as_me: error: cannot compute sizeof (short), 77
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 if test "$cross_compiling" = yes; then
5141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot run test program while cross compiling
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5147 cat >conftest.
$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5151 cat confdefs.h
>>conftest.
$ac_ext
5152 cat >>conftest.
$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155 long longval () { return (long) (sizeof (short)); }
5156 unsigned long ulongval () { return (long) (sizeof (short)); }
5163 FILE *f = fopen ("conftest.val", "w");
5166 if (((long) (sizeof (short))) < 0)
5168 long i = longval ();
5169 if (i != ((long) (sizeof (short))))
5171 fprintf (f, "%ld\n", i);
5175 unsigned long i = ulongval ();
5176 if (i != ((long) (sizeof (short))))
5178 fprintf (f, "%lu\n", i);
5180 exit (ferror (f) || fclose (f) != 0);
5186 rm -f conftest
$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_sizeof_short
=`cat conftest.val`
5199 echo "$as_me: program exited with status $ac_status" >&5
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.
$ac_ext >&5
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: cannot compute sizeof (short), 77
5207 See \`config.log' for more details." >&2;}
5208 { (exit 1); exit 1; }; }
5210 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5215 ac_cv_sizeof_short
=0
5218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5219 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5220 cat >>confdefs.h
<<_ACEOF
5221 #define SIZEOF_SHORT $ac_cv_sizeof_short
5225 echo "$as_me:$LINENO: checking for int" >&5
5226 echo $ECHO_N "checking for int... $ECHO_C" >&6
5227 if test "${ac_cv_type_int+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 cat >conftest.
$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5234 cat confdefs.h
>>conftest.
$ac_ext
5235 cat >>conftest.
$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5249 rm -f conftest.
$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try
='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.
$ac_ext >&5
5268 rm -f conftest.
$ac_objext conftest.
$ac_ext
5270 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5271 echo "${ECHO_T}$ac_cv_type_int" >&6
5273 echo "$as_me:$LINENO: checking size of int" >&5
5274 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5275 if test "${ac_cv_sizeof_int+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 if test "$ac_cv_type_int" = yes; then
5279 # The cast to unsigned long works around a bug in the HP C Compiler
5280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5282 # This bug is HP SR number 8606223364.
5283 if test "$cross_compiling" = yes; then
5284 # Depending upon the size, compute the lo and hi bounds.
5285 cat >conftest.
$ac_ext <<_ACEOF
5286 #line $LINENO "configure"
5289 cat confdefs.h
>>conftest.
$ac_ext
5290 cat >>conftest.
$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 $ac_includes_default
5296 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5303 rm -f conftest.
$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try
='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5317 cat >conftest.
$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5321 cat confdefs.h
>>conftest.
$ac_ext
5322 cat >>conftest.
$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5328 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5335 rm -f conftest.
$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try
='test -s conftest.$ac_objext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_hi
=$ac_mid; break
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.
$ac_ext >&5
5352 ac_lo
=`expr $ac_mid + 1`
5353 if test $ac_lo -le $ac_mid; then
5357 ac_mid
=`expr 2 '*' $ac_mid + 1`
5359 rm -f conftest.
$ac_objext conftest.
$ac_ext
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.
$ac_ext >&5
5365 cat >conftest.
$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5369 cat confdefs.h
>>conftest.
$ac_ext
5370 cat >>conftest.
$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 $ac_includes_default
5376 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5383 rm -f conftest.
$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try
='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5397 cat >conftest.
$ac_ext <<_ACEOF
5398 #line $LINENO "configure"
5401 cat confdefs.h
>>conftest.
$ac_ext
5402 cat >>conftest.
$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 $ac_includes_default
5408 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5415 rm -f conftest.
$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try
='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_lo
=$ac_mid; break
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.
$ac_ext >&5
5432 ac_hi
=`expr '(' $ac_mid ')' - 1`
5433 if test $ac_mid -le $ac_hi; then
5437 ac_mid
=`expr 2 '*' $ac_mid`
5439 rm -f conftest.
$ac_objext conftest.
$ac_ext
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.
$ac_ext >&5
5447 rm -f conftest.
$ac_objext conftest.
$ac_ext
5449 rm -f conftest.
$ac_objext conftest.
$ac_ext
5450 # Binary search between lo and hi bounds.
5451 while test "x$ac_lo" != "x$ac_hi"; do
5452 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5453 cat >conftest.
$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5457 cat confdefs.h
>>conftest.
$ac_ext
5458 cat >>conftest.
$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5464 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5471 rm -f conftest.
$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try
='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.
$ac_ext >&5
5488 ac_lo
=`expr '(' $ac_mid ')' + 1`
5490 rm -f conftest.
$ac_objext conftest.
$ac_ext
5493 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot compute sizeof (int), 77
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; } ;;
5501 if test "$cross_compiling" = yes; then
5502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: cannot run test program while cross compiling
5505 See \`config.log' for more details." >&2;}
5506 { (exit 1); exit 1; }; }
5508 cat >conftest.
$ac_ext <<_ACEOF
5509 #line $LINENO "configure"
5512 cat confdefs.h
>>conftest.
$ac_ext
5513 cat >>conftest.
$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 $ac_includes_default
5516 long longval () { return (long) (sizeof (int)); }
5517 unsigned long ulongval () { return (long) (sizeof (int)); }
5524 FILE *f = fopen ("conftest.val", "w");
5527 if (((long) (sizeof (int))) < 0)
5529 long i = longval ();
5530 if (i != ((long) (sizeof (int))))
5532 fprintf (f, "%ld\n", i);
5536 unsigned long i = ulongval ();
5537 if (i != ((long) (sizeof (int))))
5539 fprintf (f, "%lu\n", i);
5541 exit (ferror (f) || fclose (f) != 0);
5547 rm -f conftest
$ac_exeext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_sizeof_int
=`cat conftest.val`
5560 echo "$as_me: program exited with status $ac_status" >&5
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.
$ac_ext >&5
5565 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5566 See \`config.log' for more details." >&5
5567 echo "$as_me: error: cannot compute sizeof (int), 77
5568 See \`config.log' for more details." >&2;}
5569 { (exit 1); exit 1; }; }
5571 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5579 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5580 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5581 cat >>confdefs.h
<<_ACEOF
5582 #define SIZEOF_INT $ac_cv_sizeof_int
5586 echo "$as_me:$LINENO: checking for long" >&5
5587 echo $ECHO_N "checking for long... $ECHO_C" >&6
5588 if test "${ac_cv_type_long+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 cat >conftest.
$ac_ext <<_ACEOF
5592 #line $LINENO "configure"
5595 cat confdefs.h
>>conftest.
$ac_ext
5596 cat >>conftest.
$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 $ac_includes_default
5610 rm -f conftest.
$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try
='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5629 rm -f conftest.
$ac_objext conftest.
$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5632 echo "${ECHO_T}$ac_cv_type_long" >&6
5634 echo "$as_me:$LINENO: checking size of long" >&5
5635 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5636 if test "${ac_cv_sizeof_long+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 if test "$ac_cv_type_long" = yes; then
5640 # The cast to unsigned long works around a bug in the HP C Compiler
5641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5643 # This bug is HP SR number 8606223364.
5644 if test "$cross_compiling" = yes; then
5645 # Depending upon the size, compute the lo and hi bounds.
5646 cat >conftest.
$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5650 cat confdefs.h
>>conftest.
$ac_ext
5651 cat >>conftest.
$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 $ac_includes_default
5657 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5664 rm -f conftest.
$ac_objext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try
='test -s conftest.$ac_objext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5678 cat >conftest.
$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5682 cat confdefs.h
>>conftest.
$ac_ext
5683 cat >>conftest.
$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 $ac_includes_default
5689 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5696 rm -f conftest.
$ac_objext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698 (eval $ac_compile) 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try
='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_hi
=$ac_mid; break
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.
$ac_ext >&5
5713 ac_lo
=`expr $ac_mid + 1`
5714 if test $ac_lo -le $ac_mid; then
5718 ac_mid
=`expr 2 '*' $ac_mid + 1`
5720 rm -f conftest.
$ac_objext conftest.
$ac_ext
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.
$ac_ext >&5
5726 cat >conftest.
$ac_ext <<_ACEOF
5727 #line $LINENO "configure"
5730 cat confdefs.h
>>conftest.
$ac_ext
5731 cat >>conftest.
$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 $ac_includes_default
5737 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5744 rm -f conftest.
$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try
='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5758 cat >conftest.
$ac_ext <<_ACEOF
5759 #line $LINENO "configure"
5762 cat confdefs.h
>>conftest.
$ac_ext
5763 cat >>conftest.
$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 $ac_includes_default
5769 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5776 rm -f conftest.
$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try
='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_lo
=$ac_mid; break
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.
$ac_ext >&5
5793 ac_hi
=`expr '(' $ac_mid ')' - 1`
5794 if test $ac_mid -le $ac_hi; then
5798 ac_mid
=`expr 2 '*' $ac_mid`
5800 rm -f conftest.
$ac_objext conftest.
$ac_ext
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.
$ac_ext >&5
5808 rm -f conftest.
$ac_objext conftest.
$ac_ext
5810 rm -f conftest.
$ac_objext conftest.
$ac_ext
5811 # Binary search between lo and hi bounds.
5812 while test "x$ac_lo" != "x$ac_hi"; do
5813 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5814 cat >conftest.
$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5818 cat confdefs.h
>>conftest.
$ac_ext
5819 cat >>conftest.
$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5825 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5832 rm -f conftest.
$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try
='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.
$ac_ext >&5
5849 ac_lo
=`expr '(' $ac_mid ')' + 1`
5851 rm -f conftest.
$ac_objext conftest.
$ac_ext
5854 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5856 See \`config.log' for more details." >&5
5857 echo "$as_me: error: cannot compute sizeof (long), 77
5858 See \`config.log' for more details." >&2;}
5859 { (exit 1); exit 1; }; } ;;
5862 if test "$cross_compiling" = yes; then
5863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5864 See \`config.log' for more details." >&5
5865 echo "$as_me: error: cannot run test program while cross compiling
5866 See \`config.log' for more details." >&2;}
5867 { (exit 1); exit 1; }; }
5869 cat >conftest.
$ac_ext <<_ACEOF
5870 #line $LINENO "configure"
5873 cat confdefs.h
>>conftest.
$ac_ext
5874 cat >>conftest.
$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 $ac_includes_default
5877 long longval () { return (long) (sizeof (long)); }
5878 unsigned long ulongval () { return (long) (sizeof (long)); }
5885 FILE *f = fopen ("conftest.val", "w");
5888 if (((long) (sizeof (long))) < 0)
5890 long i = longval ();
5891 if (i != ((long) (sizeof (long))))
5893 fprintf (f, "%ld\n", i);
5897 unsigned long i = ulongval ();
5898 if (i != ((long) (sizeof (long))))
5900 fprintf (f, "%lu\n", i);
5902 exit (ferror (f) || fclose (f) != 0);
5908 rm -f conftest
$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_cv_sizeof_long
=`cat conftest.val`
5921 echo "$as_me: program exited with status $ac_status" >&5
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.
$ac_ext >&5
5926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5927 See \`config.log' for more details." >&5
5928 echo "$as_me: error: cannot compute sizeof (long), 77
5929 See \`config.log' for more details." >&2;}
5930 { (exit 1); exit 1; }; }
5932 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5941 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5942 cat >>confdefs.h
<<_ACEOF
5943 #define SIZEOF_LONG $ac_cv_sizeof_long
5947 echo "$as_me:$LINENO: checking for long long" >&5
5948 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5949 if test "${ac_cv_type_long_long+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 cat >conftest.
$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5956 cat confdefs.h
>>conftest.
$ac_ext
5957 cat >>conftest.
$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5963 if ((long long *) 0)
5965 if (sizeof (long long))
5971 rm -f conftest.
$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try
='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_type_long_long
=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5988 ac_cv_type_long_long
=no
5990 rm -f conftest.
$ac_objext conftest.
$ac_ext
5992 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5993 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5995 echo "$as_me:$LINENO: checking size of long long" >&5
5996 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5997 if test "${ac_cv_sizeof_long_long+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if test "$ac_cv_type_long_long" = yes; then
6001 # The cast to unsigned long works around a bug in the HP C Compiler
6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6004 # This bug is HP SR number 8606223364.
6005 if test "$cross_compiling" = yes; then
6006 # Depending upon the size, compute the lo and hi bounds.
6007 cat >conftest.
$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6011 cat confdefs.h
>>conftest.
$ac_ext
6012 cat >>conftest.
$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 $ac_includes_default
6018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6025 rm -f conftest.
$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try
='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6039 cat >conftest.
$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6043 cat confdefs.h
>>conftest.
$ac_ext
6044 cat >>conftest.
$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6050 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try
='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_hi
=$ac_mid; break
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.
$ac_ext >&5
6074 ac_lo
=`expr $ac_mid + 1`
6075 if test $ac_lo -le $ac_mid; then
6079 ac_mid
=`expr 2 '*' $ac_mid + 1`
6081 rm -f conftest.
$ac_objext conftest.
$ac_ext
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.
$ac_ext >&5
6087 cat >conftest.
$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6091 cat confdefs.h
>>conftest.
$ac_ext
6092 cat >>conftest.
$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6098 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6105 rm -f conftest.
$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try
='test -s conftest.$ac_objext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6119 cat >conftest.
$ac_ext <<_ACEOF
6120 #line $LINENO "configure"
6123 cat confdefs.h
>>conftest.
$ac_ext
6124 cat >>conftest.
$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6130 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6137 rm -f conftest.
$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try
='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_lo
=$ac_mid; break
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.
$ac_ext >&5
6154 ac_hi
=`expr '(' $ac_mid ')' - 1`
6155 if test $ac_mid -le $ac_hi; then
6159 ac_mid
=`expr 2 '*' $ac_mid`
6161 rm -f conftest.
$ac_objext conftest.
$ac_ext
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6169 rm -f conftest.
$ac_objext conftest.
$ac_ext
6171 rm -f conftest.
$ac_objext conftest.
$ac_ext
6172 # Binary search between lo and hi bounds.
6173 while test "x$ac_lo" != "x$ac_hi"; do
6174 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6175 cat >conftest.
$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6179 cat confdefs.h
>>conftest.
$ac_ext
6180 cat >>conftest.
$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 $ac_includes_default
6186 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6193 rm -f conftest.
$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try
='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.
$ac_ext >&5
6210 ac_lo
=`expr '(' $ac_mid ')' + 1`
6212 rm -f conftest.
$ac_objext conftest.
$ac_ext
6215 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6216 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6217 See \`config.log' for more details." >&5
6218 echo "$as_me: error: cannot compute sizeof (long long), 77
6219 See \`config.log' for more details." >&2;}
6220 { (exit 1); exit 1; }; } ;;
6223 if test "$cross_compiling" = yes; then
6224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6225 See \`config.log' for more details." >&5
6226 echo "$as_me: error: cannot run test program while cross compiling
6227 See \`config.log' for more details." >&2;}
6228 { (exit 1); exit 1; }; }
6230 cat >conftest.
$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 $ac_includes_default
6238 long longval () { return (long) (sizeof (long long)); }
6239 unsigned long ulongval () { return (long) (sizeof (long long)); }
6246 FILE *f = fopen ("conftest.val", "w");
6249 if (((long) (sizeof (long long))) < 0)
6251 long i = longval ();
6252 if (i != ((long) (sizeof (long long))))
6254 fprintf (f, "%ld\n", i);
6258 unsigned long i = ulongval ();
6259 if (i != ((long) (sizeof (long long))))
6261 fprintf (f, "%lu\n", i);
6263 exit (ferror (f) || fclose (f) != 0);
6269 rm -f conftest
$ac_exeext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_sizeof_long_long
=`cat conftest.val`
6282 echo "$as_me: program exited with status $ac_status" >&5
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.
$ac_ext >&5
6287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6288 See \`config.log' for more details." >&5
6289 echo "$as_me: error: cannot compute sizeof (long long), 77
6290 See \`config.log' for more details." >&2;}
6291 { (exit 1); exit 1; }; }
6293 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6298 ac_cv_sizeof_long_long
=0
6301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6302 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6303 cat >>confdefs.h
<<_ACEOF
6304 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6311 echo "$as_me:$LINENO: checking for addrinfo" >&5
6312 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6313 if test "${ac_cv_addrinfo+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 cat >conftest.
$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6333 rm -f conftest.
$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try
='test -s conftest.$ac_objext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.
$ac_ext >&5
6352 rm -f conftest.
$ac_objext conftest.
$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6356 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6357 if test $ac_cv_addrinfo = yes; then
6358 cat >>confdefs.h
<<\_ACEOF
6359 #define HAVE_ADDRINFO 1
6363 cat >>confdefs.h
<<\_ACEOF
6364 #define NEED_ADDRINFO_H 1
6369 if test "$ac_cv_addrinfo" = no
; then
6370 missing_includes
=yes
6374 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6375 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6376 if test "${ac_cv_maxserv+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 cat >conftest.
$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6383 cat confdefs.h
>>conftest.
$ac_ext
6384 cat >>conftest.
$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392 $EGREP "yes" >/dev
/null
2>&1; then
6401 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6402 echo "${ECHO_T}$ac_cv_maxserv" >&6
6403 if test $ac_cv_maxserv != yes; then
6404 cat >>confdefs.h
<<\_ACEOF
6405 #define NEED_ADDRINFO_H 1
6410 if test "$ac_cv_maxserv" = no
; then
6411 missing_includes
=yes
6415 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6416 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6417 if test "${ac_cv_namereqd+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 cat >conftest.
$ac_ext <<_ACEOF
6421 #line $LINENO "configure"
6424 cat confdefs.h
>>conftest.
$ac_ext
6425 cat >>conftest.
$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433 $EGREP "yes" >/dev
/null
2>&1; then
6442 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6443 echo "${ECHO_T}$ac_cv_namereqd" >&6
6444 if test $ac_cv_namereqd != yes; then
6445 cat >>confdefs.h
<<\_ACEOF
6446 #define NEED_ADDRINFO_H 1
6451 if test "$ac_cv_namereqd" = no
; then
6452 missing_includes
=yes
6456 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6457 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6458 if test "${ac_cv_sa_storage+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.
$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6465 cat confdefs.h
>>conftest.
$ac_ext
6466 cat >>conftest.
$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6469 # include <sys/types.h>
6470 # include <sys/socket.h>
6474 struct sockaddr_storage s
6479 rm -f conftest.
$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try
='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_sa_storage
=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6498 rm -f conftest.
$ac_objext conftest.
$ac_ext
6501 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6502 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6503 if test $ac_cv_sa_storage = yes; then
6504 cat >>confdefs.h
<<\_ACEOF
6505 #define HAVE_SOCKADDR_STORAGE 1
6510 if test "$ac_cv_sa_storage" = no
; then
6511 missing_includes
=yes
6516 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6517 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6518 if test "${ac_cv_inaddrsz+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.
$ac_ext <<_ACEOF
6522 #line $LINENO "configure"
6525 cat confdefs.h
>>conftest.
$ac_ext
6526 cat >>conftest.
$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6529 # include <arpa/nameser.h>
6538 rm -f conftest.
$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try
='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.
$ac_ext >&5
6557 rm -f conftest.
$ac_objext conftest.
$ac_ext
6560 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6561 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6562 if test $ac_cv_inaddrsz = yes; then
6563 cat >>confdefs.h
<<\_ACEOF
6564 #define HAVE_INADDRSZ 1
6570 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6571 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6572 if test "${ac_cv_in6addrsz+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 cat >conftest.
$ac_ext <<_ACEOF
6576 #line $LINENO "configure"
6579 cat confdefs.h
>>conftest.
$ac_ext
6580 cat >>conftest.
$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6583 # include <arpa/nameser.h>
6592 rm -f conftest.
$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>&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 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.
$ac_ext >&5
6611 rm -f conftest.
$ac_objext conftest.
$ac_ext
6614 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6615 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6616 if test $ac_cv_in6addrsz = yes; then
6617 cat >>confdefs.h
<<\_ACEOF
6618 #define HAVE_IN6ADDRSZ 1
6625 if test "$ac_cv_addrsz" = no
; then
6626 missing_includes
=yes
6630 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6631 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6632 if test "${ac_cv_res_inet6+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 cat >conftest.
$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6639 cat confdefs.h
>>conftest.
$ac_ext
6640 cat >>conftest.
$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6643 # include <sys/types.h>
6644 # include <netinet/in.h>
6645 # include <resolv.h>
6649 int a = RES_USE_INET6
6654 rm -f conftest.
$ac_objext
6655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656 (eval $ac_compile) 2>&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try
='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.
$ac_ext >&5
6673 rm -f conftest.
$ac_objext conftest.
$ac_ext
6676 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6677 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6678 if test $ac_cv_res_inet6 = yes; then
6679 cat >>confdefs.h
<<\_ACEOF
6680 #define HAVE_RES_USE_INET6 1
6685 if test "$ac_cv_res_inet6" = no
; then
6686 missing_includes
=yes
6690 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6691 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6692 if test "${ac_cv_res_state_ext+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 cat >conftest.
$ac_ext <<_ACEOF
6696 #line $LINENO "configure"
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6703 # include <sys/types.h>
6704 # include <netinet/in.h>
6705 # include <netinet6/in6.h>
6706 # include <resolv.h>
6710 struct __res_state_ext e
6715 rm -f conftest.
$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try
='test -s conftest.$ac_objext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 ac_cv_res_state_ext
=yes
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.
$ac_ext >&5
6732 ac_cv_res_state_ext
=no
6734 rm -f conftest.
$ac_objext conftest.
$ac_ext
6737 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6738 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6739 if test $ac_cv_res_state_ext = yes; then
6740 cat >>confdefs.h
<<\_ACEOF
6741 #define HAVE_RES_STATE_EXT 1
6746 if test "$ac_cv_res_state_ext" = no
; then
6747 missing_includes
=yes
6751 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6752 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6753 if test "${ac_cv_res_state+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 cat >conftest.
$ac_ext <<_ACEOF
6757 #line $LINENO "configure"
6760 cat confdefs.h
>>conftest.
$ac_ext
6761 cat >>conftest.
$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6764 # include <sys/types.h>
6765 # include <netinet/in.h>
6766 # include <netinet6/in6.h>
6767 # include <resolv.h>
6771 struct __res_state e; e.nsort = 0
6776 rm -f conftest.
$ac_objext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6778 (eval $ac_compile) 2>&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try
='test -s conftest.$ac_objext'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; }; then
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.
$ac_ext >&5
6795 rm -f conftest.
$ac_objext conftest.
$ac_ext
6798 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6799 echo "${ECHO_T}$ac_cv_res_state" >&6
6800 if test $ac_cv_res_state = yes; then
6801 cat >>confdefs.h
<<\_ACEOF
6802 #define HAVE_NEW_RES_STATE 1
6815 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6817 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6818 echo "$as_me:$LINENO: checking for $ac_func" >&5
6819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6820 if eval "test \"\${$as_ac_var+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.
$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6827 cat confdefs.h
>>conftest.
$ac_ext
6828 cat >>conftest.
$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 /* System header to define __stub macros and hopefully few prototypes,
6831 which can conflict with char $ac_func (); below.
6832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 <limits.h> exists even on freestanding compilers. */
6835 # include <limits.h>
6837 # include <assert.h>
6839 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6847 /* The GNU C library defines this for functions which it implements
6848 to always fail with ENOSYS. Some functions are actually named
6849 something starting with __ and the normal name is an alias. */
6850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853 char (*f) () = $ac_func;
6862 return f != $ac_func;
6867 rm -f conftest.
$ac_objext conftest
$ac_exeext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869 (eval $ac_link) 2>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try
='test -s conftest$ac_exeext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 eval "$as_ac_var=yes"
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.
$ac_ext >&5
6884 eval "$as_ac_var=no"
6886 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6890 if test `eval echo '${'$as_ac_var'}'` = yes; then
6891 cat >>confdefs.h
<<_ACEOF
6892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6896 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6902 for ac_func
in strftime
6904 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6905 echo "$as_me:$LINENO: checking for $ac_func" >&5
6906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6907 if eval "test \"\${$as_ac_var+set}\" = set"; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 cat >conftest.
$ac_ext <<_ACEOF
6911 #line $LINENO "configure"
6914 cat confdefs.h
>>conftest.
$ac_ext
6915 cat >>conftest.
$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func (); below.
6919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6920 <limits.h> exists even on freestanding compilers. */
6922 # include <limits.h>
6924 # include <assert.h>
6926 /* Override any gcc2 internal prototype to avoid an error. */
6931 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */
6934 /* The GNU C library defines this for functions which it implements
6935 to always fail with ENOSYS. Some functions are actually named
6936 something starting with __ and the normal name is an alias. */
6937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6940 char (*f) () = $ac_func;
6949 return f != $ac_func;
6954 rm -f conftest.
$ac_objext conftest
$ac_exeext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try
='test -s conftest$ac_exeext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 eval "$as_ac_var=yes"
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.
$ac_ext >&5
6971 eval "$as_ac_var=no"
6973 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6977 if test `eval echo '${'$as_ac_var'}'` = yes; then
6978 cat >>confdefs.h
<<_ACEOF
6979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6987 for ac_func
in setlinebuf alarm
6989 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6990 echo "$as_me:$LINENO: checking for $ac_func" >&5
6991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6992 if eval "test \"\${$as_ac_var+set}\" = set"; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 cat >conftest.
$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6999 cat confdefs.h
>>conftest.
$ac_ext
7000 cat >>conftest.
$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 /* System header to define __stub macros and hopefully few prototypes,
7003 which can conflict with char $ac_func (); below.
7004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005 <limits.h> exists even on freestanding compilers. */
7007 # include <limits.h>
7009 # include <assert.h>
7011 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7025 char (*f) () = $ac_func;
7034 return f != $ac_func;
7039 rm -f conftest.
$ac_objext conftest
$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try
='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 eval "$as_ac_var=yes"
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.
$ac_ext >&5
7056 eval "$as_ac_var=no"
7058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7062 if test `eval echo '${'$as_ac_var'}'` = yes; then
7063 cat >>confdefs.h
<<_ACEOF
7064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7074 for ac_func
in vsnprintf snprintf
7076 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7077 echo "$as_me:$LINENO: checking for $ac_func" >&5
7078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7079 if eval "test \"\${$as_ac_var+set}\" = set"; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat >conftest.
$ac_ext <<_ACEOF
7083 #line $LINENO "configure"
7086 cat confdefs.h
>>conftest.
$ac_ext
7087 cat >>conftest.
$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 /* System header to define __stub macros and hopefully few prototypes,
7090 which can conflict with char $ac_func (); below.
7091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092 <limits.h> exists even on freestanding compilers. */
7094 # include <limits.h>
7096 # include <assert.h>
7098 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7106 /* The GNU C library defines this for functions which it implements
7107 to always fail with ENOSYS. Some functions are actually named
7108 something starting with __ and the normal name is an alias. */
7109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7112 char (*f) () = $ac_func;
7121 return f != $ac_func;
7126 rm -f conftest.
$ac_objext conftest
$ac_exeext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try
='test -s conftest$ac_exeext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 eval "$as_ac_var=yes"
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.
$ac_ext >&5
7143 eval "$as_ac_var=no"
7145 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7149 if test `eval echo '${'$as_ac_var'}'` = yes; then
7150 cat >>confdefs.h
<<_ACEOF
7151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7159 if test $needsnprintf = yes; then
7160 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
7164 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7165 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7166 if test "${ac_cv_type_signal+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 cat >conftest.
$ac_ext <<_ACEOF
7170 #line $LINENO "configure"
7173 cat confdefs.h
>>conftest.
$ac_ext
7174 cat >>conftest.
$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 #include <sys/types.h>
7182 extern "C" void (*signal (int, void (*)(int)))(int);
7184 void (*signal ()) ();
7195 rm -f conftest.
$ac_objext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197 (eval $ac_compile) 2>&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try
='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_type_signal
=void
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.
$ac_ext >&5
7212 ac_cv_type_signal
=int
7214 rm -f conftest.
$ac_objext conftest.
$ac_ext
7216 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7217 echo "${ECHO_T}$ac_cv_type_signal" >&6
7219 cat >>confdefs.h
<<_ACEOF
7220 #define RETSIGTYPE $ac_cv_type_signal
7224 if test "$ac_cv_type_signal" = void
; then
7225 cat >>confdefs.h
<<\_ACEOF
7230 cat >>confdefs.h
<<\_ACEOF
7231 #define RETSIGVAL (0)
7238 cat >>confdefs.h
<<\_ACEOF
7239 #define _BSD_SIGNALS 1
7246 for ac_func
in sigaction
7248 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7249 echo "$as_me:$LINENO: checking for $ac_func" >&5
7250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7251 if eval "test \"\${$as_ac_var+set}\" = set"; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 cat >conftest.
$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7258 cat confdefs.h
>>conftest.
$ac_ext
7259 cat >>conftest.
$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 /* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char $ac_func (); below.
7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 <limits.h> exists even on freestanding compilers. */
7266 # include <limits.h>
7268 # include <assert.h>
7270 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7278 /* The GNU C library defines this for functions which it implements
7279 to always fail with ENOSYS. Some functions are actually named
7280 something starting with __ and the normal name is an alias. */
7281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7284 char (*f) () = $ac_func;
7293 return f != $ac_func;
7298 rm -f conftest.
$ac_objext conftest
$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300 (eval $ac_link) 2>&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try
='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 eval "$as_ac_var=yes"
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.
$ac_ext >&5
7315 eval "$as_ac_var=no"
7317 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7321 if test `eval echo '${'$as_ac_var'}'` = yes; then
7322 cat >>confdefs.h
<<_ACEOF
7323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7329 if test $ac_cv_func_sigaction = no
; then
7331 for ac_func
in sigset
7333 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7334 echo "$as_me:$LINENO: checking for $ac_func" >&5
7335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_var+set}\" = set"; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 cat >conftest.
$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7343 cat confdefs.h
>>conftest.
$ac_ext
7344 cat >>conftest.
$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 /* System header to define __stub macros and hopefully few prototypes,
7347 which can conflict with char $ac_func (); below.
7348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7349 <limits.h> exists even on freestanding compilers. */
7351 # include <limits.h>
7353 # include <assert.h>
7355 /* Override any gcc2 internal prototype to avoid an error. */
7360 /* We use char because int might match the return type of a gcc2
7361 builtin and then its argument prototype would still apply. */
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7369 char (*f) () = $ac_func;
7378 return f != $ac_func;
7383 rm -f conftest.
$ac_objext conftest
$ac_exeext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } &&
7389 { ac_try
='test -s conftest$ac_exeext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 eval "$as_ac_var=yes"
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.
$ac_ext >&5
7400 eval "$as_ac_var=no"
7402 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7406 if test `eval echo '${'$as_ac_var'}'` = yes; then
7407 cat >>confdefs.h
<<_ACEOF
7408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7418 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7419 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7420 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 ac_func_search_save_LIBS
=$LIBS
7424 ac_cv_search_dnet_htoa
=no
7425 cat >conftest.
$ac_ext <<_ACEOF
7426 #line $LINENO "configure"
7429 cat confdefs.h
>>conftest.
$ac_ext
7430 cat >>conftest.
$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7433 /* Override any gcc2 internal prototype to avoid an error. */
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7448 rm -f conftest.
$ac_objext conftest
$ac_exeext
7449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450 (eval $ac_link) 2>&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try
='test -s conftest$ac_exeext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_cv_search_dnet_htoa
="none required"
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.
$ac_ext >&5
7466 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7467 if test "$ac_cv_search_dnet_htoa" = no
; then
7468 for ac_lib
in dnet
; do
7469 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7470 cat >conftest.
$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7474 cat confdefs.h
>>conftest.
$ac_ext
7475 cat >>conftest.
$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7493 rm -f conftest.
$ac_objext conftest
$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try
='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_search_dnet_htoa
="-l$ac_lib"
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.
$ac_ext >&5
7512 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7515 LIBS
=$ac_func_search_save_LIBS
7517 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7518 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7519 if test "$ac_cv_search_dnet_htoa" != no
; then
7520 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
7521 cat >>confdefs.h
<<\_ACEOF
7522 #define HAVE_DNET_HTOA 1
7529 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7530 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7531 if test "${ac_cv_lib_rpc_main+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 ac_check_lib_save_LIBS
=$LIBS
7536 cat >conftest.
$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7553 rm -f conftest.
$ac_objext conftest
$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try
='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_lib_rpc_main
=yes
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.
$ac_ext >&5
7570 ac_cv_lib_rpc_main
=no
7572 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7573 LIBS
=$ac_check_lib_save_LIBS
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7576 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7577 if test $ac_cv_lib_rpc_main = yes; then
7578 cat >>confdefs.h
<<_ACEOF
7579 #define HAVE_LIBRPC 1
7586 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7587 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7588 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_func_search_save_LIBS
=$LIBS
7592 ac_cv_search_getrpcbynumber
=no
7593 cat >conftest.
$ac_ext <<_ACEOF
7594 #line $LINENO "configure"
7597 cat confdefs.h
>>conftest.
$ac_ext
7598 cat >>conftest.
$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7601 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char getrpcbynumber ();
7616 rm -f conftest.
$ac_objext conftest
$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try
='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_search_getrpcbynumber
="none required"
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.
$ac_ext >&5
7634 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7635 if test "$ac_cv_search_getrpcbynumber" = no
; then
7636 for ac_lib
in nsl
; do
7637 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7638 cat >conftest.
$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7642 cat confdefs.h
>>conftest.
$ac_ext
7643 cat >>conftest.
$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7646 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7652 char getrpcbynumber ();
7661 rm -f conftest.
$ac_objext conftest
$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try
='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_search_getrpcbynumber
="-l$ac_lib"
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.
$ac_ext >&5
7680 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7683 LIBS
=$ac_func_search_save_LIBS
7685 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7686 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7687 if test "$ac_cv_search_getrpcbynumber" != no
; then
7688 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
7689 cat >>confdefs.h
<<\_ACEOF
7690 #define HAVE_GETRPCBYNUMBER 1
7698 # Most operating systems have gethostbyname() in the default searched
7699 # libraries (i.e. libc):
7700 # Some OSes (eg. Solaris) place it in libnsl
7701 # Some strange OSes (SINIX) have it in libsocket:
7702 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7703 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7704 if test "${ac_cv_search_gethostbyname+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 ac_func_search_save_LIBS
=$LIBS
7708 ac_cv_search_gethostbyname
=no
7709 cat >conftest.
$ac_ext <<_ACEOF
7710 #line $LINENO "configure"
7713 cat confdefs.h
>>conftest.
$ac_ext
7714 cat >>conftest.
$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7717 /* Override any gcc2 internal prototype to avoid an error. */
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7723 char gethostbyname ();
7732 rm -f conftest.
$ac_objext conftest
$ac_exeext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7734 (eval $ac_link) 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try
='test -s conftest$ac_exeext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_cv_search_gethostbyname
="none required"
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7750 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7751 if test "$ac_cv_search_gethostbyname" = no
; then
7752 for ac_lib
in nsl socket resolv
; do
7753 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7754 cat >conftest.
$ac_ext <<_ACEOF
7755 #line $LINENO "configure"
7758 cat confdefs.h
>>conftest.
$ac_ext
7759 cat >>conftest.
$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char gethostbyname ();
7777 rm -f conftest.
$ac_objext conftest
$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try
='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_search_gethostbyname
="-l$ac_lib"
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.
$ac_ext >&5
7796 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7799 LIBS
=$ac_func_search_save_LIBS
7801 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7802 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7803 if test "$ac_cv_search_gethostbyname" != no
; then
7804 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
7808 # Unfortunately libsocket sometimes depends on libnsl and
7809 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7810 if test "$ac_cv_search_gethostbyname" = "no"
7812 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7813 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7814 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_check_lib_save_LIBS
=$LIBS
7818 LIBS
="-lsocket -lnsl $LIBS"
7819 cat >conftest.
$ac_ext <<_ACEOF
7820 #line $LINENO "configure"
7823 cat confdefs.h
>>conftest.
$ac_ext
7824 cat >>conftest.
$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7827 /* Override any gcc2 internal prototype to avoid an error. */
7831 /* We use char because int might match the return type of a gcc2
7832 builtin and then its argument prototype would still apply. */
7833 char gethostbyname ();
7842 rm -f conftest.
$ac_objext conftest
$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844 (eval $ac_link) 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
7848 { ac_try
='test -s conftest$ac_exeext'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 ac_cv_lib_socket_gethostbyname
=yes
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.
$ac_ext >&5
7859 ac_cv_lib_socket_gethostbyname
=no
7861 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7862 LIBS
=$ac_check_lib_save_LIBS
7864 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7866 if test $ac_cv_lib_socket_gethostbyname = yes; then
7867 LIBS
="-lsocket -lnsl $LIBS"
7871 echo "$as_me:$LINENO: checking for library containing socket" >&5
7872 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7873 if test "${ac_cv_search_socket+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 ac_func_search_save_LIBS
=$LIBS
7877 ac_cv_search_socket
=no
7878 cat >conftest.
$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7882 cat confdefs.h
>>conftest.
$ac_ext
7883 cat >>conftest.
$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try
='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_search_socket
="none required"
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7919 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7920 if test "$ac_cv_search_socket" = no
; then
7921 for ac_lib
in socket
; do
7922 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7923 cat >conftest.
$ac_ext <<_ACEOF
7924 #line $LINENO "configure"
7927 cat confdefs.h
>>conftest.
$ac_ext
7928 cat >>conftest.
$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7931 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7946 rm -f conftest.
$ac_objext conftest
$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try
='test -s conftest$ac_exeext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 ac_cv_search_socket
="-l$ac_lib"
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.
$ac_ext >&5
7965 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7968 LIBS
=$ac_func_search_save_LIBS
7970 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7971 echo "${ECHO_T}$ac_cv_search_socket" >&6
7972 if test "$ac_cv_search_socket" != no
; then
7973 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
7976 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7977 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7978 if test "${ac_cv_lib_socket_socket+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 ac_check_lib_save_LIBS
=$LIBS
7982 LIBS
="-lsocket -lnsl $LIBS"
7983 cat >conftest.
$ac_ext <<_ACEOF
7984 #line $LINENO "configure"
7987 cat confdefs.h
>>conftest.
$ac_ext
7988 cat >>conftest.
$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 /* Override any gcc2 internal prototype to avoid an error. */
7995 /* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
8006 rm -f conftest.
$ac_objext conftest
$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try
='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_lib_socket_socket
=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.
$ac_ext >&5
8023 ac_cv_lib_socket_socket
=no
8025 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8026 LIBS
=$ac_check_lib_save_LIBS
8028 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8029 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8030 if test $ac_cv_lib_socket_socket = yes; then
8031 LIBS
="-lsocket -lnsl $LIBS"
8036 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8037 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8038 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8039 if test "${ac_cv_search_putmsg+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 ac_func_search_save_LIBS
=$LIBS
8043 ac_cv_search_putmsg
=no
8044 cat >conftest.
$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8048 cat confdefs.h
>>conftest.
$ac_ext
8049 cat >>conftest.
$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8052 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8067 rm -f conftest.
$ac_objext conftest
$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069 (eval $ac_link) 2>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try
='test -s conftest$ac_exeext'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_cv_search_putmsg
="none required"
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.
$ac_ext >&5
8085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8086 if test "$ac_cv_search_putmsg" = no
; then
8087 for ac_lib
in str
; do
8088 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8089 cat >conftest.
$ac_ext <<_ACEOF
8090 #line $LINENO "configure"
8093 cat confdefs.h
>>conftest.
$ac_ext
8094 cat >>conftest.
$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8097 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8112 rm -f conftest.
$ac_objext conftest
$ac_exeext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try
='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_search_putmsg
="-l$ac_lib"
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.
$ac_ext >&5
8131 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8134 LIBS
=$ac_func_search_save_LIBS
8136 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8137 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8138 if test "$ac_cv_search_putmsg" != no
; then
8139 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
8146 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
8147 if test -f $pfopen ; then
8149 for ac_func
in pfopen
8151 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8152 echo "$as_me:$LINENO: checking for $ac_func" >&5
8153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8154 if eval "test \"\${$as_ac_var+set}\" = set"; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.
$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8161 cat confdefs.h
>>conftest.
$ac_ext
8162 cat >>conftest.
$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 /* System header to define __stub macros and hopefully few prototypes,
8165 which can conflict with char $ac_func (); below.
8166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8167 <limits.h> exists even on freestanding compilers. */
8169 # include <limits.h>
8171 # include <assert.h>
8173 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8181 /* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8187 char (*f) () = $ac_func;
8196 return f != $ac_func;
8201 rm -f conftest.
$ac_objext conftest
$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try
='test -s conftest$ac_exeext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 eval "$as_ac_var=yes"
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.
$ac_ext >&5
8218 eval "$as_ac_var=no"
8220 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8224 if test `eval echo '${'$as_ac_var'}'` = yes; then
8225 cat >>confdefs.h
<<_ACEOF
8226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8232 if test $ac_cv_func_pfopen = "no" ; then
8233 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8234 echo "${ECHO_T}Using $pfopen" >&6
8235 LIBS
="$LIBS $pfopen"
8238 echo "$as_me:$LINENO: checking for local pcap library" >&5
8239 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8242 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8243 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8244 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
8245 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8246 if test $lastdir = $basedir ; then
8250 if test -r $dir/libpcap.a
; then
8251 libpcap
=$dir/libpcap.a
8255 if test $libpcap = FAIL
; then
8256 echo "$as_me:$LINENO: result: not found" >&5
8257 echo "${ECHO_T}not found" >&6
8258 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8259 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8260 if test "${ac_cv_lib_pcap_main+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_check_lib_save_LIBS
=$LIBS
8265 cat >conftest.
$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8269 cat confdefs.h
>>conftest.
$ac_ext
8270 cat >>conftest.
$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8282 rm -f conftest.
$ac_objext conftest
$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try
='test -s conftest$ac_exeext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_cv_lib_pcap_main
=yes
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.
$ac_ext >&5
8299 ac_cv_lib_pcap_main
=no
8301 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8302 LIBS
=$ac_check_lib_save_LIBS
8304 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8305 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8306 if test $ac_cv_lib_pcap_main = yes; then
8310 if test $libpcap = FAIL
; then
8311 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8312 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8313 { (exit 1); exit 1; }; }
8315 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8316 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8317 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
8318 \
( ! -r /usr
/include
/pcap.h \
); then
8319 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
8320 d
="/usr/local/include/pcap"
8321 elif test -r /usr
/include
/pcap
/pcap.h
; then
8322 d
="/usr/include/pcap"
8325 if test -z "$d" ; then
8326 echo "$as_me:$LINENO: result: not found" >&5
8327 echo "${ECHO_T}not found" >&6
8329 V_INCLS
="-I$d $V_INCLS"
8330 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8331 echo "${ECHO_T}found -- -I$d added" >&6
8335 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8336 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8337 if test -r $d/pcap.h
; then
8338 V_INCLS
="-I$d $V_INCLS"
8339 elif test -r $places/pcap.h
; then
8340 V_INCLS
="-I$places $V_INCLS"
8342 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8343 echo "$as_me: error: cannot find pcap.h" >&2;}
8344 { (exit see INSTALL
); exit see INSTALL
; }; }
8346 echo "$as_me:$LINENO: result: $libpcap" >&5
8347 echo "${ECHO_T}$libpcap" >&6
8349 LIBS
="$libpcap $LIBS"
8353 pseexe
="/lib/pse.exp"
8354 echo "$as_me:$LINENO: checking for $pseexe" >&5
8355 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8356 if test -f $pseexe ; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358 echo "${ECHO_T}yes" >&6
8359 LIBS
="$LIBS -I:$pseexe"
8362 # We need "-lodm" and "-lcfg", as libpcap requires them on
8363 # AIX, and we just build a static libpcap.a and thus can't
8364 # arrange that when you link with libpcap you automatically
8365 # link with those libraries.
8367 LIBS
="$LIBS -lodm -lcfg"
8371 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8372 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8373 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 cat >conftest.
$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8380 cat confdefs.h
>>conftest.
$ac_ext
8381 cat >>conftest.
$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 /* System header to define __stub macros and hopefully few prototypes,
8384 which can conflict with char pcap_list_datalinks (); below.
8385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8386 <limits.h> exists even on freestanding compilers. */
8388 # include <limits.h>
8390 # include <assert.h>
8392 /* Override any gcc2 internal prototype to avoid an error. */
8397 /* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8399 char pcap_list_datalinks ();
8400 /* The GNU C library defines this for functions which it implements
8401 to always fail with ENOSYS. Some functions are actually named
8402 something starting with __ and the normal name is an alias. */
8403 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8406 char (*f) () = pcap_list_datalinks;
8415 return f != pcap_list_datalinks;
8420 rm -f conftest.
$ac_objext conftest
$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try
='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_func_pcap_list_datalinks
=yes
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.
$ac_ext >&5
8437 ac_cv_func_pcap_list_datalinks
=no
8439 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8441 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8442 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8443 if test $ac_cv_func_pcap_list_datalinks = yes; then
8444 cat >>confdefs.h
<<\_ACEOF
8445 #define HAVE_PCAP_LIST_DATALINKS 1
8449 LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
8452 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8453 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8454 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 cat >conftest.
$ac_ext <<_ACEOF
8458 #line $LINENO "configure"
8461 cat confdefs.h
>>conftest.
$ac_ext
8462 cat >>conftest.
$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char pcap_set_datalink (); below.
8466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467 <limits.h> exists even on freestanding compilers. */
8469 # include <limits.h>
8471 # include <assert.h>
8473 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480 char pcap_set_datalink ();
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8487 char (*f) () = pcap_set_datalink;
8496 return f != pcap_set_datalink;
8501 rm -f conftest.
$ac_objext conftest
$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try
='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_func_pcap_set_datalink
=yes
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.
$ac_ext >&5
8518 ac_cv_func_pcap_set_datalink
=no
8520 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8523 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8524 if test $ac_cv_func_pcap_set_datalink = yes; then
8525 cat >>confdefs.h
<<\_ACEOF
8526 #define HAVE_PCAP_SET_DATALINK 1
8531 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8532 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8533 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 cat >conftest.
$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8540 cat confdefs.h
>>conftest.
$ac_ext
8541 cat >>conftest.
$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char pcap_datalink_name_to_val (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. */
8548 # include <limits.h>
8550 # include <assert.h>
8552 /* Override any gcc2 internal prototype to avoid an error. */
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8559 char pcap_datalink_name_to_val ();
8560 /* The GNU C library defines this for functions which it implements
8561 to always fail with ENOSYS. Some functions are actually named
8562 something starting with __ and the normal name is an alias. */
8563 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8566 char (*f) () = pcap_datalink_name_to_val;
8575 return f != pcap_datalink_name_to_val;
8580 rm -f conftest.
$ac_objext conftest
$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try
='test -s conftest$ac_exeext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 ac_cv_func_pcap_datalink_name_to_val
=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.
$ac_ext >&5
8597 ac_cv_func_pcap_datalink_name_to_val
=no
8599 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8601 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8602 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8603 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8605 cat >>confdefs.h
<<\_ACEOF
8606 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8609 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8610 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8611 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 cat >conftest.
$ac_ext <<_ACEOF
8615 #line $LINENO "configure"
8618 cat confdefs.h
>>conftest.
$ac_ext
8619 cat >>conftest.
$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 /* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char pcap_datalink_val_to_description (); below.
8623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624 <limits.h> exists even on freestanding compilers. */
8626 # include <limits.h>
8628 # include <assert.h>
8630 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637 char pcap_datalink_val_to_description ();
8638 /* The GNU C library defines this for functions which it implements
8639 to always fail with ENOSYS. Some functions are actually named
8640 something starting with __ and the normal name is an alias. */
8641 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8644 char (*f) () = pcap_datalink_val_to_description;
8653 return f != pcap_datalink_val_to_description;
8658 rm -f conftest.
$ac_objext conftest
$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try
='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_func_pcap_datalink_val_to_description
=yes
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.
$ac_ext >&5
8675 ac_cv_func_pcap_datalink_val_to_description
=no
8677 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8680 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8681 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8682 cat >>confdefs.h
<<\_ACEOF
8683 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8687 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8692 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8697 for ac_func
in pcap_breakloop
8699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700 echo "$as_me:$LINENO: checking for $ac_func" >&5
8701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_var+set}\" = set"; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 cat >conftest.
$ac_ext <<_ACEOF
8706 #line $LINENO "configure"
8709 cat confdefs.h
>>conftest.
$ac_ext
8710 cat >>conftest.
$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* System header to define __stub macros and hopefully few prototypes,
8713 which can conflict with char $ac_func (); below.
8714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8715 <limits.h> exists even on freestanding compilers. */
8717 # include <limits.h>
8719 # include <assert.h>
8721 /* Override any gcc2 internal prototype to avoid an error. */
8726 /* We use char because int might match the return type of a gcc2
8727 builtin and then its argument prototype would still apply. */
8729 /* The GNU C library defines this for functions which it implements
8730 to always fail with ENOSYS. Some functions are actually named
8731 something starting with __ and the normal name is an alias. */
8732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735 char (*f) () = $ac_func;
8744 return f != $ac_func;
8749 rm -f conftest.
$ac_objext conftest
$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try
='test -s conftest$ac_exeext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 eval "$as_ac_var=yes"
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.
$ac_ext >&5
8766 eval "$as_ac_var=no"
8768 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8772 if test `eval echo '${'$as_ac_var'}'` = yes; then
8773 cat >>confdefs.h
<<_ACEOF
8774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8783 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8784 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8786 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8787 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8788 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8789 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8790 # it does not ship with a libc symbol "inet_ntop()", it ships with
8791 # "_inet_ntop()", and has a #define macro in one of the system headers
8794 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8795 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8796 cat >conftest.
$ac_ext <<_ACEOF
8797 #line $LINENO "configure"
8800 cat confdefs.h
>>conftest.
$ac_ext
8801 cat >>conftest.
$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 #include <sys/types.h>
8804 #include <sys/socket.h>
8805 #include <netinet/in.h>
8806 #include <arpa/inet.h>
8810 char src[4], dst[128];
8811 inet_ntop(AF_INET, src, dst, sizeof(dst));
8816 rm -f conftest.
$ac_objext conftest
$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try
='test -s conftest$ac_exeext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 echo "$as_me:$LINENO: result: yes" >&5
8829 echo "${ECHO_T}yes" >&6
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.
$ac_ext >&5
8834 echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8836 LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8838 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8839 echo "$as_me:$LINENO: checking for inet_pton" >&5
8840 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8841 cat >conftest.
$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8845 cat confdefs.h
>>conftest.
$ac_ext
8846 cat >>conftest.
$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 #include <sys/types.h>
8849 #include <sys/socket.h>
8850 #include <netinet/in.h>
8851 #include <arpa/inet.h>
8855 char src[128], dst[4];
8856 inet_pton(AF_INET, src, dst);
8861 rm -f conftest.
$ac_objext conftest
$ac_exeext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try
='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 echo "$as_me:$LINENO: result: yes" >&5
8874 echo "${ECHO_T}yes" >&6
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.
$ac_ext >&5
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881 LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
8883 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8884 echo "$as_me:$LINENO: checking for inet_aton" >&5
8885 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8886 cat >conftest.
$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8890 cat confdefs.h
>>conftest.
$ac_ext
8891 cat >>conftest.
$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 #include <sys/types.h>
8894 #include <netinet/in.h>
8895 #include <arpa/inet.h>
8901 inet_aton(src, &dst);
8906 rm -f conftest.
$ac_objext conftest
$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try
='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 echo "$as_me:$LINENO: result: yes" >&5
8919 echo "${ECHO_T}yes" >&6
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.
$ac_ext >&5
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8926 LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
8928 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8931 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8933 # You are in a twisty little maze of UN*Xes, all different.
8934 # Some might not have ether_ntohost().
8935 # Some might have it, but not declare it in any header file.
8936 # Some might have it, but declare it in <netinet/if_ether.h>.
8937 # Some might have it, but declare it in <netinet/ether.h>
8938 # (And some might have it but document it as something declared in
8939 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8941 # Before you is a C compiler.
8944 for ac_func
in ether_ntohost
8946 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8947 echo "$as_me:$LINENO: checking for $ac_func" >&5
8948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8949 if eval "test \"\${$as_ac_var+set}\" = set"; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 cat >conftest.
$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8956 cat confdefs.h
>>conftest.
$ac_ext
8957 cat >>conftest.
$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 /* System header to define __stub macros and hopefully few prototypes,
8960 which can conflict with char $ac_func (); below.
8961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962 <limits.h> exists even on freestanding compilers. */
8964 # include <limits.h>
8966 # include <assert.h>
8968 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8982 char (*f) () = $ac_func;
8991 return f != $ac_func;
8996 rm -f conftest.
$ac_objext conftest
$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try
='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 eval "$as_ac_var=yes"
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.
$ac_ext >&5
9013 eval "$as_ac_var=no"
9015 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9019 if test `eval echo '${'$as_ac_var'}'` = yes; then
9020 cat >>confdefs.h
<<_ACEOF
9021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9024 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9025 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9026 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 if test "$cross_compiling" = yes; then
9031 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
9033 cat >conftest.
$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9037 cat confdefs.h
>>conftest.
$ac_ext
9038 cat >>conftest.
$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/param.h>
9044 #include <sys/socket.h>
9047 main(int argc, char **argv)
9049 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9050 char name[MAXHOSTNAMELEN];
9052 ether_ntohost(name, (struct ether_addr *)ea);
9057 rm -f conftest
$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_buggy_ether_ntohost
=no
9070 echo "$as_me: program exited with status $ac_status" >&5
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.
$ac_ext >&5
9075 ac_cv_buggy_ether_ntohost
=yes
9077 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9080 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9081 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9082 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9083 cat >>confdefs.h
<<\_ACEOF
9084 #define USE_ETHER_NTOHOST 1
9092 if test "$ac_cv_func_ether_ntohost" = yes -a \
9093 "$ac_cv_buggy_ether_ntohost" = "no"; then
9095 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9097 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9099 # Yes. Does it declare ether_ntohost()?
9101 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9102 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9103 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 cat >conftest.
$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9110 cat confdefs.h
>>conftest.
$ac_ext
9111 cat >>conftest.
$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9114 #include <sys/types.h>
9115 #include <sys/socket.h>
9116 #include <netinet/in.h>
9120 #include <netinet/if_ether.h>
9126 #ifndef ether_ntohost
9127 char *p = (char *) ether_ntohost;
9134 rm -f conftest.
$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try
='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_have_decl_ether_ntohost
=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.
$ac_ext >&5
9151 ac_cv_have_decl_ether_ntohost
=no
9153 rm -f conftest.
$ac_objext conftest.
$ac_ext
9155 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9156 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9157 if test $ac_cv_have_decl_ether_ntohost = yes; then
9159 cat >>confdefs.h
<<_ACEOF
9160 #define HAVE_DECL_ETHER_NTOHOST 1
9165 cat >>confdefs.h
<<\_ACEOF
9166 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9171 cat >>confdefs.h
<<_ACEOF
9172 #define HAVE_DECL_ETHER_NTOHOST 0
9183 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9185 # No, how about <netinet/ether.h>, as on Linux?
9188 for ac_header
in netinet
/ether.h
9190 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo "$as_me:$LINENO: checking for $ac_header" >&5
9193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9200 # Is the header compilable?
9201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9203 cat >conftest.
$ac_ext <<_ACEOF
9204 #line $LINENO "configure"
9207 cat confdefs.h
>>conftest.
$ac_ext
9208 cat >>conftest.
$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 $ac_includes_default
9211 #include <$ac_header>
9213 rm -f conftest.
$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try
='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_header_compiler
=yes
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.
$ac_ext >&5
9230 ac_header_compiler
=no
9232 rm -f conftest.
$ac_objext conftest.
$ac_ext
9233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9234 echo "${ECHO_T}$ac_header_compiler" >&6
9236 # Is the header present?
9237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239 cat >conftest.
$ac_ext <<_ACEOF
9240 #line $LINENO "configure"
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 #include <$ac_header>
9248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9249 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9251 grep -v '^ *+' conftest.er1
>conftest.err
9253 cat conftest.err
>&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } >/dev
/null
; then
9256 if test -s conftest.err
; then
9257 ac_cpp_err
=$ac_c_preproc_warn_flag
9264 if test -z "$ac_cpp_err"; then
9265 ac_header_preproc
=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.
$ac_ext >&5
9270 ac_header_preproc
=no
9272 rm -f conftest.err conftest.
$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9274 echo "${ECHO_T}$ac_header_preproc" >&6
9276 # So? What about this header?
9277 case $ac_header_compiler:$ac_header_preproc in
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9285 ## ------------------------------------ ##
9286 ## Report this to bug-autoconf@gnu.org. ##
9287 ## ------------------------------------ ##
9290 sed "s/^/$as_me: WARNING: /" >&2
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9301 ## ------------------------------------ ##
9302 ## Report this to bug-autoconf@gnu.org. ##
9303 ## ------------------------------------ ##
9306 sed "s/^/$as_me: WARNING: /" >&2
9309 echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 eval "$as_ac_Header=$ac_header_preproc"
9316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9321 cat >>confdefs.h
<<_ACEOF
9322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9329 if test "$ac_cv_header_netinet_ether_h" = yes; then
9331 # We have it - does it declare ether_ntohost()?
9332 # Unset ac_cv_have_decl_ether_ntohost so we don't
9333 # treat the previous failure as a cached value and
9334 # suppress the next test.
9336 unset ac_cv_have_decl_ether_ntohost
9337 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9338 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9339 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 cat >conftest.
$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9346 cat confdefs.h
>>conftest.
$ac_ext
9347 cat >>conftest.
$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9350 #include <netinet/ether.h>
9356 #ifndef ether_ntohost
9357 char *p = (char *) ether_ntohost;
9364 rm -f conftest.
$ac_objext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9366 (eval $ac_compile) 2>&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try
='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_cv_have_decl_ether_ntohost
=yes
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.
$ac_ext >&5
9381 ac_cv_have_decl_ether_ntohost
=no
9383 rm -f conftest.
$ac_objext conftest.
$ac_ext
9385 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9386 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9387 if test $ac_cv_have_decl_ether_ntohost = yes; then
9389 cat >>confdefs.h
<<_ACEOF
9390 #define HAVE_DECL_ETHER_NTOHOST 1
9395 cat >>confdefs.h
<<\_ACEOF
9396 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9401 cat >>confdefs.h
<<_ACEOF
9402 #define HAVE_DECL_ETHER_NTOHOST 0
9414 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9415 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9416 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cat >conftest.
$ac_ext <<_ACEOF
9420 #line $LINENO "configure"
9423 cat confdefs.h
>>conftest.
$ac_ext
9424 cat >>conftest.
$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9427 # include <sys/types.h>
9428 # include <sys/socket.h>
9432 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9437 rm -f conftest.
$ac_objext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9439 (eval $ac_compile) 2>&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try
='test -s conftest.$ac_objext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_sockaddr_has_sa_len
=yes
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.
$ac_ext >&5
9454 ac_cv_sockaddr_has_sa_len
=no
9456 rm -f conftest.
$ac_objext conftest.
$ac_ext
9459 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9460 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9461 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9462 cat >>confdefs.h
<<\_ACEOF
9463 #define HAVE_SOCKADDR_SA_LEN 1
9468 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9469 missing_includes
=yes
9475 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9477 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9478 echo "$as_me:$LINENO: checking for $ac_func" >&5
9479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9480 if eval "test \"\${$as_ac_var+set}\" = set"; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 cat >conftest.
$ac_ext <<_ACEOF
9484 #line $LINENO "configure"
9487 cat confdefs.h
>>conftest.
$ac_ext
9488 cat >>conftest.
$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 /* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char $ac_func (); below.
9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493 <limits.h> exists even on freestanding compilers. */
9495 # include <limits.h>
9497 # include <assert.h>
9499 /* Override any gcc2 internal prototype to avoid an error. */
9504 /* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9513 char (*f) () = $ac_func;
9522 return f != $ac_func;
9527 rm -f conftest.
$ac_objext conftest
$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try
='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 eval "$as_ac_var=yes"
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.
$ac_ext >&5
9544 eval "$as_ac_var=no"
9546 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9550 if test `eval echo '${'$as_ac_var'}'` = yes; then
9551 cat >>confdefs.h
<<_ACEOF
9552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9558 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9559 savedcflags
="$CFLAGS"
9560 CFLAGS
="$CFLAGS $V_INCLS"
9561 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9562 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9563 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.
$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9570 cat confdefs.h
>>conftest.
$ac_ext
9571 cat >>conftest.
$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9578 if ((pcap_if_t *) 0)
9580 if (sizeof (pcap_if_t))
9586 rm -f conftest.
$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try
='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_type_pcap_if_t
=yes
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.
$ac_ext >&5
9603 ac_cv_type_pcap_if_t
=no
9605 rm -f conftest.
$ac_objext conftest.
$ac_ext
9607 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9608 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9609 if test $ac_cv_type_pcap_if_t = yes; then
9611 cat >>confdefs.h
<<_ACEOF
9612 #define HAVE_PCAP_IF_T 1
9618 CFLAGS
="$savedcflags"
9621 if test $ac_cv_func_pcap_lib_version = "no" ; then
9622 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9623 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9624 cat >conftest.
$ac_ext <<_ACEOF
9625 #line $LINENO "configure"
9628 cat confdefs.h
>>conftest.
$ac_ext
9629 cat >>conftest.
$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9636 extern char pcap_version[];
9638 return (int)pcap_version;
9644 rm -f conftest.
$ac_objext conftest
$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try
='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_lbl_cv_pcap_version_defined
=yes
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.
$ac_ext >&5
9661 ac_lbl_cv_pcap_version_defined
=no
9663 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9664 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9667 cat >>confdefs.h
<<\_ACEOF
9668 #define HAVE_PCAP_VERSION 1
9672 echo "$as_me:$LINENO: result: no" >&5
9673 echo "${ECHO_T}no" >&6
9676 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9677 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9678 cat >conftest.
$ac_ext <<_ACEOF
9679 #line $LINENO "configure"
9682 cat confdefs.h
>>conftest.
$ac_ext
9683 cat >>conftest.
$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9690 extern int pcap_debug;
9698 rm -f conftest.
$ac_objext conftest
$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try
='test -s conftest$ac_exeext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 ac_lbl_cv_pcap_debug_defined
=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.
$ac_ext >&5
9715 ac_lbl_cv_pcap_debug_defined
=no
9717 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9718 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9719 echo "$as_me:$LINENO: result: yes" >&5
9720 echo "${ECHO_T}yes" >&6
9721 cat >>confdefs.h
<<\_ACEOF
9722 #define HAVE_PCAP_DEBUG 1
9726 echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9729 # OK, what about "yydebug"?
9731 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9732 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9733 cat >conftest.
$ac_ext <<_ACEOF
9734 #line $LINENO "configure"
9737 cat confdefs.h
>>conftest.
$ac_ext
9738 cat >>conftest.
$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9753 rm -f conftest.
$ac_objext conftest
$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try
='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_lbl_cv_yydebug_defined
=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.
$ac_ext >&5
9770 ac_lbl_cv_yydebug_defined
=no
9772 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9773 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9774 echo "$as_me:$LINENO: result: yes" >&5
9775 echo "${ECHO_T}yes" >&6
9776 cat >>confdefs.h
<<\_ACEOF
9777 #define HAVE_YYDEBUG 1
9781 echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6
9786 for ac_func
in bpf_dump
9788 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789 echo "$as_me:$LINENO: checking for $ac_func" >&5
9790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9791 if eval "test \"\${$as_ac_var+set}\" = set"; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 cat >conftest.
$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9798 cat confdefs.h
>>conftest.
$ac_ext
9799 cat >>conftest.
$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 /* System header to define __stub macros and hopefully few prototypes,
9802 which can conflict with char $ac_func (); below.
9803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9804 <limits.h> exists even on freestanding compilers. */
9806 # include <limits.h>
9808 # include <assert.h>
9810 /* Override any gcc2 internal prototype to avoid an error. */
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9824 char (*f) () = $ac_func;
9833 return f != $ac_func;
9838 rm -f conftest.
$ac_objext conftest
$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try
='test -s conftest$ac_exeext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 eval "$as_ac_var=yes"
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.
$ac_ext >&5
9855 eval "$as_ac_var=no"
9857 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9861 if test `eval echo '${'$as_ac_var'}'` = yes; then
9862 cat >>confdefs.h
<<_ACEOF
9863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9867 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9873 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9879 cat >>confdefs.h
<<\_ACEOF
9898 if test -f /dev
/bpf0
; then
9902 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9903 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9904 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 cat >conftest.
$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9911 cat confdefs.h
>>conftest.
$ac_ext
9912 cat >>conftest.
$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 # include "confdefs.h"
9916 # include <sys/types.h>
9918 # include <stdlib.h>
9919 # include <stddef.h>
9929 rm -f conftest.
$ac_objext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931 (eval $ac_compile) 2>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try
='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_lbl_have_int8_t
=yes
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.
$ac_ext >&5
9946 ac_cv_lbl_have_int8_t
=no
9948 rm -f conftest.
$ac_objext conftest.
$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9952 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9953 if test $ac_cv_lbl_have_int8_t = no
; then
9954 cat >>confdefs.h
<<\_ACEOF
9955 #define int8_t signed char
9959 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9960 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9961 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.
$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9968 cat confdefs.h
>>conftest.
$ac_ext
9969 cat >>conftest.
$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 # include "confdefs.h"
9973 # include <sys/types.h>
9975 # include <stdlib.h>
9976 # include <stddef.h>
9986 rm -f conftest.
$ac_objext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try
='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_lbl_have_u_int8_t
=yes
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.
$ac_ext >&5
10003 ac_cv_lbl_have_u_int8_t
=no
10005 rm -f conftest.
$ac_objext conftest.
$ac_ext
10008 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
10009 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
10010 if test $ac_cv_lbl_have_u_int8_t = no
; then
10011 cat >>confdefs.h
<<\_ACEOF
10012 #define u_int8_t u_char
10016 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
10017 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
10018 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 cat >conftest.
$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10025 cat confdefs.h
>>conftest.
$ac_ext
10026 cat >>conftest.
$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 # include "confdefs.h"
10030 # include <sys/types.h>
10032 # include <stdlib.h>
10033 # include <stddef.h>
10043 rm -f conftest.
$ac_objext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10045 (eval $ac_compile) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try
='test -s conftest.$ac_objext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_lbl_have_int16_t
=yes
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.
$ac_ext >&5
10060 ac_cv_lbl_have_int16_t
=no
10062 rm -f conftest.
$ac_objext conftest.
$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
10066 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
10067 if test $ac_cv_lbl_have_int16_t = no
; then
10068 cat >>confdefs.h
<<\_ACEOF
10069 #define int16_t short
10073 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
10074 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
10075 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 cat >conftest.
$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10086 # include "confdefs.h"
10087 # include <sys/types.h>
10089 # include <stdlib.h>
10090 # include <stddef.h>
10100 rm -f conftest.
$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102 (eval $ac_compile) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try
='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_lbl_have_u_int16_t
=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.
$ac_ext >&5
10117 ac_cv_lbl_have_u_int16_t
=no
10119 rm -f conftest.
$ac_objext conftest.
$ac_ext
10122 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
10123 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
10124 if test $ac_cv_lbl_have_u_int16_t = no
; then
10125 cat >>confdefs.h
<<\_ACEOF
10126 #define u_int16_t u_short
10130 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
10131 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
10132 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 cat >conftest.
$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10139 cat confdefs.h
>>conftest.
$ac_ext
10140 cat >>conftest.
$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 # include "confdefs.h"
10144 # include <sys/types.h>
10146 # include <stdlib.h>
10147 # include <stddef.h>
10157 rm -f conftest.
$ac_objext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try
='test -s conftest.$ac_objext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_lbl_have_int32_t
=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.
$ac_ext >&5
10174 ac_cv_lbl_have_int32_t
=no
10176 rm -f conftest.
$ac_objext conftest.
$ac_ext
10179 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
10180 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
10181 if test $ac_cv_lbl_have_int32_t = no
; then
10182 cat >>confdefs.h
<<\_ACEOF
10183 #define int32_t int
10187 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
10188 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
10189 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.
$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10196 cat confdefs.h
>>conftest.
$ac_ext
10197 cat >>conftest.
$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10200 # include "confdefs.h"
10201 # include <sys/types.h>
10203 # include <stdlib.h>
10204 # include <stddef.h>
10214 rm -f conftest.
$ac_objext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try
='test -s conftest.$ac_objext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ac_cv_lbl_have_u_int32_t
=yes
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.
$ac_ext >&5
10231 ac_cv_lbl_have_u_int32_t
=no
10233 rm -f conftest.
$ac_objext conftest.
$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
10237 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
10238 if test $ac_cv_lbl_have_u_int32_t = no
; then
10239 cat >>confdefs.h
<<\_ACEOF
10240 #define u_int32_t u_int
10244 echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
10245 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
10246 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 cat >conftest.
$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
10253 cat confdefs.h
>>conftest.
$ac_ext
10254 cat >>conftest.
$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10257 # include "confdefs.h"
10258 # include <sys/types.h>
10260 # include <stdlib.h>
10261 # include <stddef.h>
10271 rm -f conftest.
$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try
='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_lbl_have_int64_t
=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.
$ac_ext >&5
10288 ac_cv_lbl_have_int64_t
=no
10290 rm -f conftest.
$ac_objext conftest.
$ac_ext
10293 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
10294 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
10295 if test $ac_cv_lbl_have_int64_t = no
; then
10296 cat >>confdefs.h
<<\_ACEOF
10297 #define int64_t long long
10301 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
10302 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
10303 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 cat >conftest.
$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10310 cat confdefs.h
>>conftest.
$ac_ext
10311 cat >>conftest.
$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10314 # include "confdefs.h"
10315 # include <sys/types.h>
10317 # include <stdlib.h>
10318 # include <stddef.h>
10328 rm -f conftest.
$ac_objext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10330 (eval $ac_compile) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try
='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lbl_have_u_int64_t
=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.
$ac_ext >&5
10345 ac_cv_lbl_have_u_int64_t
=no
10347 rm -f conftest.
$ac_objext conftest.
$ac_ext
10350 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
10351 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
10352 if test $ac_cv_lbl_have_u_int64_t = no
; then
10353 cat >>confdefs.h
<<\_ACEOF
10354 #define u_int64_t unsigned long long
10360 # We can't just check for <inttypes.h> - some systems have one that
10361 # doesn't define all the PRI[doxu]64 macros.
10364 for ac_header
in inttypes.h
10366 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo "$as_me:$LINENO: checking for $ac_header" >&5
10369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10376 # Is the header compilable?
10377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10379 cat >conftest.
$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10383 cat confdefs.h
>>conftest.
$ac_ext
10384 cat >>conftest.
$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 $ac_includes_default
10387 #include <$ac_header>
10389 rm -f conftest.
$ac_objext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try
='test -s conftest.$ac_objext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_header_compiler
=yes
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.
$ac_ext >&5
10406 ac_header_compiler
=no
10408 rm -f conftest.
$ac_objext conftest.
$ac_ext
10409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10410 echo "${ECHO_T}$ac_header_compiler" >&6
10412 # Is the header present?
10413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10415 cat >conftest.
$ac_ext <<_ACEOF
10416 #line $LINENO "configure"
10419 cat confdefs.h
>>conftest.
$ac_ext
10420 cat >>conftest.
$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 #include <$ac_header>
10424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10425 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10427 grep -v '^ *+' conftest.er1
>conftest.err
10429 cat conftest.err
>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } >/dev
/null
; then
10432 if test -s conftest.err
; then
10433 ac_cpp_err
=$ac_c_preproc_warn_flag
10440 if test -z "$ac_cpp_err"; then
10441 ac_header_preproc
=yes
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.
$ac_ext >&5
10446 ac_header_preproc
=no
10448 rm -f conftest.err conftest.
$ac_ext
10449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10450 echo "${ECHO_T}$ac_header_preproc" >&6
10452 # So? What about this header?
10453 case $ac_header_compiler:$ac_header_preproc in
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10461 ## ------------------------------------ ##
10462 ## Report this to bug-autoconf@gnu.org. ##
10463 ## ------------------------------------ ##
10466 sed "s/^/$as_me: WARNING: /" >&2
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10477 ## ------------------------------------ ##
10478 ## Report this to bug-autoconf@gnu.org. ##
10479 ## ------------------------------------ ##
10482 sed "s/^/$as_me: WARNING: /" >&2
10485 echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 eval "$as_ac_Header=$ac_header_preproc"
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10497 cat >>confdefs.h
<<_ACEOF
10498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10502 # OK, we have inttypes.h, but does it define those macros?
10504 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10505 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10506 cat >conftest.
$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10511 cat confdefs.h
>>conftest.
$ac_ext
10512 cat >>conftest.
$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 #include <inttypes.h>
10517 #include <sys/types.h>
10521 printf("%" PRId64 "\n", (u_int64_t)1);
10522 printf("%" PRIo64 "\n", (u_int64_t)1);
10523 printf("%" PRIx64 "\n", (u_int64_t)1);
10524 printf("%" PRIu64 "\n", (u_int64_t)1);
10529 rm -f conftest.
$ac_objext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try
='test -s conftest.$ac_objext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10542 echo "$as_me:$LINENO: result: yes" >&5
10543 echo "${ECHO_T}yes" >&6
10544 ac_lbl_inttypes_h_defines_formats
=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10551 echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6
10553 ac_lbl_inttypes_h_defines_formats
=no
10556 rm -f conftest.
$ac_objext conftest.
$ac_ext
10561 # We don't have inttypes.h, so it obviously can't define those
10564 ac_lbl_inttypes_h_defines_formats
=no
10570 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10571 cat >>confdefs.h
<<\_ACEOF
10572 #define INTTYPES_H_DEFINES_FORMATS 1
10577 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10578 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10579 if test "$cross_compiling" = yes; then
10580 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10581 See \`config.log' for more details." >&5
10582 echo "$as_me: error: cannot run test program while cross compiling
10583 See \`config.log' for more details." >&2;}
10584 { (exit 1); exit 1; }; }
10586 cat >conftest.
$ac_ext <<_ACEOF
10588 #line $LINENO "configure"
10591 cat confdefs.h
>>conftest.
$ac_ext
10592 cat >>conftest.
$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10595 # ifdef HAVE_INTTYPES_H
10596 #include <inttypes.h>
10599 #include <sys/types.h>
10605 sprintf(strbuf, "%016llx", t << 32);
10606 if (strcmp(strbuf, "0000000100000000") == 0)
10614 rm -f conftest
$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10626 cat >>confdefs.h
<<\_ACEOF
10627 #define PRId64 "lld"
10630 cat >>confdefs.h
<<\_ACEOF
10631 #define PRIo64 "llo"
10634 cat >>confdefs.h
<<\_ACEOF
10635 #define PRIx64 "llx"
10638 cat >>confdefs.h
<<\_ACEOF
10639 #define PRIu64 "llu"
10642 echo "$as_me:$LINENO: result: yes" >&5
10643 echo "${ECHO_T}yes" >&6
10646 echo "$as_me: program exited with status $ac_status" >&5
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.
$ac_ext >&5
10650 ( exit $ac_status )
10652 echo "$as_me:$LINENO: result: no" >&5
10653 echo "${ECHO_T}no" >&6
10656 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10657 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10658 if test "$cross_compiling" = yes; then
10659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10660 See \`config.log' for more details." >&5
10661 echo "$as_me: error: cannot run test program while cross compiling
10662 See \`config.log' for more details." >&2;}
10663 { (exit 1); exit 1; }; }
10665 cat >conftest.
$ac_ext <<_ACEOF
10667 #line $LINENO "configure"
10670 cat confdefs.h
>>conftest.
$ac_ext
10671 cat >>conftest.
$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10674 # ifdef HAVE_INTTYPES_H
10675 #include <inttypes.h>
10678 #include <sys/types.h>
10684 sprintf(strbuf, "%016Lx", t << 32);
10685 if (strcmp(strbuf, "0000000100000000") == 0)
10693 rm -f conftest
$ac_exeext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10705 cat >>confdefs.h
<<\_ACEOF
10706 #define PRId64 "Ld"
10709 cat >>confdefs.h
<<\_ACEOF
10710 #define PRIo64 "Lo"
10713 cat >>confdefs.h
<<\_ACEOF
10714 #define PRIx64 "Lx"
10717 cat >>confdefs.h
<<\_ACEOF
10718 #define PRIu64 "Lu"
10721 echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6
10725 echo "$as_me: program exited with status $ac_status" >&5
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.
$ac_ext >&5
10729 ( exit $ac_status )
10731 echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6
10735 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10736 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10737 if test "$cross_compiling" = yes; then
10738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10739 See \`config.log' for more details." >&5
10740 echo "$as_me: error: cannot run test program while cross compiling
10741 See \`config.log' for more details." >&2;}
10742 { (exit 1); exit 1; }; }
10744 cat >conftest.
$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10749 cat confdefs.h
>>conftest.
$ac_ext
10750 cat >>conftest.
$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10753 # ifdef HAVE_INTTYPES_H
10754 #include <inttypes.h>
10757 #include <sys/types.h>
10763 sprintf(strbuf, "%016qx", t << 32);
10764 if (strcmp(strbuf, "0000000100000000") == 0)
10772 rm -f conftest
$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10784 cat >>confdefs.h
<<\_ACEOF
10785 #define PRId64 "qd"
10788 cat >>confdefs.h
<<\_ACEOF
10789 #define PRIo64 "qo"
10792 cat >>confdefs.h
<<\_ACEOF
10793 #define PRIx64 "qx"
10796 cat >>confdefs.h
<<\_ACEOF
10797 #define PRIu64 "qu"
10800 echo "$as_me:$LINENO: result: yes" >&5
10801 echo "${ECHO_T}yes" >&6
10804 echo "$as_me: program exited with status $ac_status" >&5
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.
$ac_ext >&5
10808 ( exit $ac_status )
10810 echo "$as_me:$LINENO: result: no" >&5
10811 echo "${ECHO_T}no" >&6
10813 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10814 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10815 { (exit 1); exit 1; }; }
10819 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10825 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10831 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10837 if test "${LBL_CFLAGS+set}" = set; then
10838 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
10840 if test -f .devel
; then
10841 if test "$GCC" = yes ; then
10842 if test "${LBL_CFLAGS+set}" != set; then
10843 if test "$ac_cv_prog_cc_g" = yes ; then
10844 V_CCOPT
="-g $V_CCOPT"
10846 V_CCOPT
="$V_CCOPT -Wall"
10847 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10848 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
10855 V_CCOPT
="$V_CCOPT -n32"
10862 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10863 name
="lbl/os-$os.h"
10864 if test -f $name ; then
10865 ln -s $name os-proto.h
10866 cat >>confdefs.h
<<\_ACEOF
10867 #define HAVE_OS_PROTO_H 1
10871 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10872 echo "$as_me: WARNING: can't find $name" >&2;}
10876 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10877 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10878 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.
$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10885 cat confdefs.h
>>conftest.
$ac_ext
10886 cat >>conftest.
$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10889 # include <sys/types.h>
10890 # include <sys/socket.h>
10894 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10899 rm -f conftest.
$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try
='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_lbl_sockaddr_has_sa_len
=yes
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.
$ac_ext >&5
10916 ac_cv_lbl_sockaddr_has_sa_len
=no
10918 rm -f conftest.
$ac_objext conftest.
$ac_ext
10921 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10922 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
10923 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10924 cat >>confdefs.h
<<\_ACEOF
10925 #define HAVE_SOCKADDR_SA_LEN 1
10930 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10931 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
10932 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 case "$host_cpu" in
10938 # These are CPU types where:
10940 # the CPU faults on an unaligned access, but at least some
10941 # OSes that support that CPU catch the fault and simulate
10942 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10943 # the simulation is slow, so we don't want to use it;
10945 # the CPU, I infer (from the old
10947 # XXX: should also check that they don't do weird things (like on arm)
10949 # comment) doesn't fault on unaligned accesses, but doesn't
10950 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10952 # for whatever reason, the test program doesn't work
10953 # (this has been claimed to be the case for several of those
10954 # CPUs - I don't know what the problem is; the problem
10955 # was reported as "the test program dumps core" for SuperH,
10956 # but that's what the test program is *supposed* to do -
10957 # it dumps core before it writes anything, so the test
10958 # for an empty output file should find an empty output
10959 # file and conclude that unaligned accesses don't work).
10961 # This run-time test won't work if you're cross-compiling, so
10962 # in order to support cross-compiling for a particular CPU,
10963 # we have to wire in the list of CPU types anyway, as far as
10964 # I know, so perhaps we should just have a set of CPUs on
10965 # which we know it doesn't work, a set of CPUs on which we
10966 # know it does work, and have the script just fail on other
10967 # cpu types and update it when such a failure occurs.
10969 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
10970 ac_cv_lbl_unaligned_fail
=yes
10974 cat >conftest.c
<<EOF
10975 # include <sys/types.h>
10976 # include <sys/wait.h>
10977 # include <stdio.h>
10978 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10983 /* avoid "core dumped" message */
10989 pid = waitpid(pid, &status, 0);
10992 exit(!WIFEXITED(status));
10995 i = *(unsigned int *)&a[1];
11000 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
11001 conftest.c
$LIBS >/dev
/null
2>&1
11002 if test ! -x conftest
; then
11003 ac_cv_lbl_unaligned_fail
=yes
11005 .
/conftest
>conftest.out
11006 if test ! -s conftest.out
; then
11007 ac_cv_lbl_unaligned_fail
=yes
11009 ac_cv_lbl_unaligned_fail
=no
11012 rm -f conftest
* core core.conftest
11017 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11018 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11019 if test $ac_cv_lbl_unaligned_fail = yes ; then
11020 cat >>confdefs.h
<<\_ACEOF
11021 #define LBL_ALIGN 1
11027 echo "$as_me:$LINENO: checking for h_errno" >&5
11028 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11029 if test "${ac_cv_var_h_errno+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 cat >conftest.
$ac_ext <<_ACEOF
11033 #line $LINENO "configure"
11036 cat confdefs.h
>>conftest.
$ac_ext
11037 cat >>conftest.
$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11040 # include <sys/types.h>
11041 # include <netdb.h>
11050 rm -f conftest.
$ac_objext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052 (eval $ac_compile) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try
='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_var_h_errno
=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 ac_cv_var_h_errno
=no
11069 rm -f conftest.
$ac_objext conftest.
$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11073 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11074 if test "$ac_cv_var_h_errno" = "yes"; then
11075 cat >>confdefs.h
<<\_ACEOF
11076 #define HAVE_H_ERRNO 1
11083 # Check whether --with-crypto or --without-crypto was given.
11084 if test "${with_crypto+set}" = set; then
11085 withval
="$with_crypto"
11089 echo "$as_me:$LINENO: checking for SSLeay" >&5
11090 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11091 ac_cv_ssleay_path
=no
11094 Xprefix
=`eval echo $prefix`
11096 for dir
in $Xprefix /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
11098 # XXX - is there a better way to check if a given library is
11099 # in a given directory than checking each of the possible
11100 # shared library suffixes?
11102 # Are there any other suffixes we need to look for? Do we have to
11103 # worry about ".so.{version}"?
11105 # Or should we just look for "libcrypto.*"?
11107 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
11108 -f $dir/lib
/libcrypto.so
-o \
11109 -f $dir/lib
/libcrypto.sl
-o \
11110 -f $dir/lib
/libcrypto.dylib \
); then
11111 ac_cv_ssleay_path
=$dir
11113 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
11114 incdir
="-I$dir/include"
11116 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11119 ac_cv_ssleay_path
=no
11123 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11124 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11125 if test "$ac_cv_ssleay_path" != no
; then
11126 V_INCLS
="$V_INCLS $incdir"
11127 LDFLAGS
="-L$dir/lib $LDFLAGS"
11128 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
11129 LIBS
="$LIBS -lRSAglue"
11131 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
11132 LIBS
="$LIBS -lrsaref"
11135 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11136 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11137 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 ac_check_lib_save_LIBS
=$LIBS
11141 LIBS
="-lcrypto $LIBS"
11142 cat >conftest.
$ac_ext <<_ACEOF
11143 #line $LINENO "configure"
11146 cat confdefs.h
>>conftest.
$ac_ext
11147 cat >>conftest.
$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11150 /* Override any gcc2 internal prototype to avoid an error. */
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char DES_cbc_encrypt ();
11160 DES_cbc_encrypt ();
11165 rm -f conftest.
$ac_objext conftest
$ac_exeext
11166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167 (eval $ac_link) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try
='test -s conftest$ac_exeext'
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_cv_lib_crypto_DES_cbc_encrypt
=yes
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.
$ac_ext >&5
11182 ac_cv_lib_crypto_DES_cbc_encrypt
=no
11184 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11185 LIBS
=$ac_check_lib_save_LIBS
11187 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11188 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11189 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11190 cat >>confdefs.h
<<_ACEOF
11191 #define HAVE_LIBCRYPTO 1
11194 LIBS
="-lcrypto $LIBS"
11199 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11201 for ac_header
in openssl
/evp.h
11203 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11205 echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11213 # Is the header compilable?
11214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11216 cat >conftest.
$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11220 cat confdefs.h
>>conftest.
$ac_ext
11221 cat >>conftest.
$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 $ac_includes_default
11224 #include <$ac_header>
11226 rm -f conftest.
$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228 (eval $ac_compile) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try
='test -s conftest.$ac_objext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_header_compiler
=yes
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.
$ac_ext >&5
11243 ac_header_compiler
=no
11245 rm -f conftest.
$ac_objext conftest.
$ac_ext
11246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11247 echo "${ECHO_T}$ac_header_compiler" >&6
11249 # Is the header present?
11250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11252 cat >conftest.
$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11256 cat confdefs.h
>>conftest.
$ac_ext
11257 cat >>conftest.
$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <$ac_header>
11261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11262 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11264 grep -v '^ *+' conftest.er1
>conftest.err
11266 cat conftest.err
>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev
/null
; then
11269 if test -s conftest.err
; then
11270 ac_cpp_err
=$ac_c_preproc_warn_flag
11277 if test -z "$ac_cpp_err"; then
11278 ac_header_preproc
=yes
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.
$ac_ext >&5
11283 ac_header_preproc
=no
11285 rm -f conftest.err conftest.
$ac_ext
11286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287 echo "${ECHO_T}$ac_header_preproc" >&6
11289 # So? What about this header?
11290 case $ac_header_compiler:$ac_header_preproc in
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298 ## ------------------------------------ ##
11299 ## Report this to bug-autoconf@gnu.org. ##
11300 ## ------------------------------------ ##
11303 sed "s/^/$as_me: WARNING: /" >&2
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11314 ## ------------------------------------ ##
11315 ## Report this to bug-autoconf@gnu.org. ##
11316 ## ------------------------------------ ##
11319 sed "s/^/$as_me: WARNING: /" >&2
11322 echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 eval "$as_ac_Header=$ac_header_preproc"
11329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h
<<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11346 if test "$missing_includes" = "yes"; then
11347 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
11348 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
11358 # Find a good install program. We prefer a C program (faster),
11359 # so one script is as good as another. But avoid the broken or
11360 # incompatible versions:
11361 # SysV /etc/install, /usr/sbin/install
11362 # SunOS /usr/etc/install
11363 # IRIX /sbin/install
11365 # AmigaOS /C/install, which installs bootblocks on floppy discs
11366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11369 # ./install, which can be erroneously created by make from ./install.sh.
11370 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11371 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11372 if test -z "$INSTALL"; then
11373 if test "${ac_cv_path_install+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11377 for as_dir
in $PATH
11380 test -z "$as_dir" && as_dir
=.
11381 # Account for people who put trailing slashes in PATH elements.
11383 .
/ | .
// |
/cC
/* | \
11384 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11387 # OSF1 and SCO ODT 3.0 have their own names for install.
11388 # Don't use installbsd from OSF since it installs stuff as root
11390 for ac_prog
in ginstall scoinst
install; do
11391 for ac_exec_ext
in '' $ac_executable_extensions; do
11392 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11393 if test $ac_prog = install &&
11394 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11395 # AIX install. It has an incompatible calling convention.
11397 elif test $ac_prog = install &&
11398 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11399 # program-specific install script used by HP pwplus--don't use.
11402 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11414 if test "${ac_cv_path_install+set}" = set; then
11415 INSTALL
=$ac_cv_path_install
11417 # As a last resort, use the slow shell script. We don't cache a
11418 # path for INSTALL within a source directory, because that will
11419 # break other packages using the cache if that directory is
11420 # removed, or if the path is relative.
11421 INSTALL
=$ac_install_sh
11424 echo "$as_me:$LINENO: result: $INSTALL" >&5
11425 echo "${ECHO_T}$INSTALL" >&6
11427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11428 # It thinks the first close brace ends the variable substitution.
11429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11433 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11436 ac_config_headers
="$ac_config_headers config.h"
11439 ac_config_commands
="$ac_config_commands default-1"
11441 ac_config_files
="$ac_config_files Makefile"
11442 cat >confcache
<<\_ACEOF
11443 # This file is a shell script that caches the results of configure
11444 # tests run on this system so they can be shared between configure
11445 # scripts and configure runs, see configure's option --config-cache.
11446 # It is not useful on other systems. If it contains results you don't
11447 # want to keep, you may remove or edit it.
11449 # config.status only pays attention to the cache file if you give it
11450 # the --recheck option to rerun configure.
11452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11454 # following values.
11458 # The following way of writing the cache mishandles newlines in values,
11459 # but we know of no workaround that is simple, portable, and efficient.
11460 # So, don't put newlines in cache variables' values.
11461 # Ultrix sh set writes to stderr and can't be redirected directly,
11462 # and sets the high bit in the cache file unless we assign to the vars.
11465 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11467 # `set' does not quote correctly, so add quotes (double-quote
11468 # substitution turns \\\\ into \\, and sed turns \\ into \).
11471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11474 # `set' quotes correctly as required by POSIX, so do not add quotes.
11476 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11485 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11487 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11488 if test -w $cache_file; then
11489 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11490 cat confcache
>$cache_file
11492 echo "not updating unwritable cache $cache_file"
11497 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11498 # Let make expand exec_prefix.
11499 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11501 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11502 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11503 # trailing colons and then remove the whole line if VPATH becomes empty
11504 # (actually we leave an empty line to preserve line numbers).
11505 if test "x$srcdir" = x.
; then
11506 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11507 s/:*\$(srcdir):*/:/;
11508 s/:*\${srcdir}:*/:/;
11510 s/^\([^=]*=[ ]*\):*/\1/;
11516 DEFS
=-DHAVE_CONFIG_H
11520 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11521 # 1. Remove the extension, and $U if already installed.
11522 ac_i
=`echo "$ac_i" |
11523 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11525 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11526 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11528 LIBOBJS
=$ac_libobjs
11530 LTLIBOBJS
=$ac_ltlibobjs
11534 : ${CONFIG_STATUS=./config.status}
11535 ac_clean_files_save
=$ac_clean_files
11536 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11537 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11538 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11539 cat >$CONFIG_STATUS <<_ACEOF
11541 # Generated by $as_me.
11542 # Run this file to recreate the current configuration.
11543 # Compiler output produced by configure, useful for debugging
11544 # configure, is in config.log if it exists.
11547 ac_cs_recheck=false
11549 SHELL=\${CONFIG_SHELL-$SHELL}
11552 cat >>$CONFIG_STATUS <<\_ACEOF
11553 ## --------------------- ##
11554 ## M4sh Initialization. ##
11555 ## --------------------- ##
11557 # Be Bourne compatible
11558 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11562 # is contrary to our usage. Disable this feature.
11563 alias -g '${1+"$@"}'='"$@"'
11564 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11568 # Support unset when possible.
11569 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11576 # Work around bugs in pre-3.0 UWIN ksh.
11577 $as_unset ENV MAIL MAILPATH
11584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11586 LC_TELEPHONE LC_TIME
11588 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11589 eval $as_var=C
; export $as_var
11595 # Required to use basename.
11596 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11602 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11603 as_basename
=basename
11609 # Name of the executable.
11610 as_me
=`$as_basename "$0" ||
11611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11612 X"$0" : 'X\(//\)$' \| \
11613 X"$0" : 'X\(/\)$' \| \
11614 . : '\(.\)' 2>/dev/null ||
11616 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11617 /^X\/\(\/\/\)$/{ s//\1/; q; }
11618 /^X\/\(\/\).*/{ s//\1/; q; }
11622 # PATH needs CR, and LINENO needs CR and PATH.
11623 # Avoid depending upon Character Ranges.
11624 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11625 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11626 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11627 as_cr_digits
='0123456789'
11628 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11630 # The user is always right.
11631 if test "${PATH_SEPARATOR+set}" != set; then
11632 echo "#! /bin/sh" >conf$$.sh
11633 echo "exit 0" >>conf$$.sh
11635 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11644 as_lineno_1
=$LINENO
11645 as_lineno_2
=$LINENO
11646 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11647 test "x$as_lineno_1" != "x$as_lineno_2" &&
11648 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11649 # Find who we are. Look in the path if we contain no path at all
11652 *[\\/]* ) as_myself
=$0 ;;
11653 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11654 for as_dir
in $PATH
11657 test -z "$as_dir" && as_dir
=.
11658 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11663 # We did not find ourselves, most probably we were run as `sh COMMAND'
11664 # in which case we are not to be found in the path.
11665 if test "x$as_myself" = x
; then
11668 if test ! -f "$as_myself"; then
11669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11670 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11671 { (exit 1); exit 1; }; }
11673 case $CONFIG_SHELL in
11675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11676 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
11679 test -z "$as_dir" && as_dir
=.
11680 for as_base
in sh bash ksh sh5
; do
11683 if ("$as_dir/$as_base" -c '
11684 as_lineno_1=$LINENO
11685 as_lineno_2=$LINENO
11686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11687 test "x$as_lineno_1" != "x$as_lineno_2" &&
11688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
11689 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
11690 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
11691 CONFIG_SHELL
=$as_dir/$as_base
11692 export CONFIG_SHELL
11693 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11702 # uniformly replaced by the line number. The first 'sed' inserts a
11703 # line-number line before each line; the second 'sed' does the real
11704 # work. The second script uses 'N' to pair each line-number line
11705 # with the numbered line, and appends trailing '-' during
11706 # substitution so that $LINENO is not a special case at line end.
11707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11708 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11709 sed '=' <$as_myself |
11714 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11717 s,^['$as_cr_digits']*\n,,
11718 ' >$as_me.lineno
&&
11719 chmod +x
$as_me.lineno ||
11720 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11721 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11722 { (exit 1); exit 1; }; }
11724 # Don't try to exec as it changes $[0], causing all sort of problems
11725 # (the dirname of $[0] is not the place where we might find the
11726 # original and so on. Autoconf is especially sensible to this).
11728 # Exit status is that of the last command.
11733 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11734 *c
*,-n*) ECHO_N
= ECHO_C
='
11736 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
11737 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
11740 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11746 rm -f conf$$ conf$$.exe conf$$.
file
11748 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11749 # We could just check for DJGPP; but this test a) works b) is more generic
11750 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11751 if test -f conf$$.exe
; then
11752 # Don't use ln at all; we don't have any links
11757 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11762 rm -f conf$$ conf$$.exe conf$$.
file
11764 if mkdir
-p .
2>/dev
/null
; then
11770 as_executable_p
="test -f"
11772 # Sed expression to map a string onto a valid CPP name.
11773 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11775 # Sed expression to map a string onto a valid variable name.
11776 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11780 # We need space, tab and new line, in precisely that order.
11790 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11791 # report actual input values of CONFIG_FILES etc. instead of their
11792 # values after options handling. Logging --version etc. is OK.
11796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11797 ## Running $as_me. ##
11802 This file was extended by $as_me, which was
11803 generated by GNU Autoconf 2.57. Invocation command line was
11805 CONFIG_FILES = $CONFIG_FILES
11806 CONFIG_HEADERS = $CONFIG_HEADERS
11807 CONFIG_LINKS = $CONFIG_LINKS
11808 CONFIG_COMMANDS = $CONFIG_COMMANDS
11812 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11816 # Files that config.status was made for.
11817 if test -n "$ac_config_files"; then
11818 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11821 if test -n "$ac_config_headers"; then
11822 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11825 if test -n "$ac_config_links"; then
11826 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11829 if test -n "$ac_config_commands"; then
11830 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11833 cat >>$CONFIG_STATUS <<\_ACEOF
11836 \`$as_me' instantiates files from templates according to the
11837 current configuration.
11839 Usage: $0 [OPTIONS] [FILE]...
11841 -h, --help print this help, then exit
11842 -V, --version print version number, then exit
11843 -q, --quiet do not print progress messages
11844 -d, --debug don't remove temporary files
11845 --recheck update $as_me by reconfiguring in the same conditions
11846 --file=FILE[:TEMPLATE]
11847 instantiate the configuration file FILE
11848 --header=FILE[:TEMPLATE]
11849 instantiate the configuration header FILE
11851 Configuration files:
11854 Configuration headers:
11857 Configuration commands:
11860 Report bugs to <bug-autoconf@gnu.org>."
11863 cat >>$CONFIG_STATUS <<_ACEOF
11866 configured by $0, generated by GNU Autoconf 2.57,
11867 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11869 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11870 Free Software Foundation, Inc.
11871 This config.status script is free software; the Free Software Foundation
11872 gives unlimited permission to copy, distribute and modify it."
11877 cat >>$CONFIG_STATUS <<\_ACEOF
11878 # If no file are specified by the user, then we need to provide default
11879 # value. By we need to know if files were specified by the user.
11885 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
11886 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
11894 *) # This is not an option, so the user has probably given explicit
11897 ac_need_defaults
=false
;;
11901 # Handling of the options.
11903 cat >>$CONFIG_STATUS <<\_ACEOF
11904 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11906 --version |
--vers* |
-V )
11907 echo "$ac_cs_version"; exit 0 ;;
11909 # Conflict between --help and --header
11910 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11911 Try \`$0 --help' for more information." >&5
11912 echo "$as_me: error: ambiguous option: $1
11913 Try \`$0 --help' for more information." >&2;}
11914 { (exit 1); exit 1; }; };;
11915 --help |
--hel |
-h )
11916 echo "$ac_cs_usage"; exit 0 ;;
11917 --debug |
--d* |
-d )
11919 --file |
--fil |
--fi |
--f )
11921 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11922 ac_need_defaults
=false
;;
11923 --header |
--heade |
--head |
--hea )
11925 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11926 ac_need_defaults
=false
;;
11927 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11928 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11931 # This is an error.
11932 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11933 Try \`$0 --help' for more information." >&5
11934 echo "$as_me: error: unrecognized option: $1
11935 Try \`$0 --help' for more information." >&2;}
11936 { (exit 1); exit 1; }; } ;;
11938 *) ac_config_targets
="$ac_config_targets $1" ;;
11944 ac_configure_extra_args
=
11946 if $ac_cs_silent; then
11948 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11952 cat >>$CONFIG_STATUS <<_ACEOF
11953 if \$ac_cs_recheck; then
11954 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11955 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11960 cat >>$CONFIG_STATUS <<_ACEOF
11962 # INIT-COMMANDS section.
11971 cat >>$CONFIG_STATUS <<\_ACEOF
11972 for ac_config_target
in $ac_config_targets
11974 case "$ac_config_target" in
11975 # Handling of arguments.
11976 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11977 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11978 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11979 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11980 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11981 { (exit 1); exit 1; }; };;
11985 # If the user did not use the arguments to specify the items to instantiate,
11986 # then the envvar interface is used. Set only those that are not.
11987 # We use the long form for the default assignment because of an extremely
11988 # bizarre bug on SunOS 4.1.3.
11989 if $ac_need_defaults; then
11990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11992 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11995 # Have a temporary directory for convenience. Make it in the build tree
11996 # simply because there is no reason to put it here, and in addition,
11997 # creating and moving files from /tmp can sometimes cause problems.
11998 # Create a temporary directory, and hook for its removal unless debugging.
12001 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12002 trap '{ (exit 1); exit 1; }' 1 2 13 15
12005 # Create a (secure) tmp directory for tmp files.
12008 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12009 test -n "$tmp" && test -d "$tmp"
12012 tmp
=.
/confstat$$
-$RANDOM
12013 (umask 077 && mkdir
$tmp)
12016 echo "$me: cannot create a temporary directory in ." >&2
12017 { (exit 1); exit 1; }
12022 cat >>$CONFIG_STATUS <<_ACEOF
12025 # CONFIG_FILES section.
12028 # No need to generate the scripts if there are no CONFIG_FILES.
12029 # This happens for instance when ./config.status config.h
12030 if test -n "\$CONFIG_FILES"; then
12031 # Protect against being on the right side of a sed subst in config.status.
12032 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12033 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12034 s,@SHELL@,$SHELL,;t t
12035 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12036 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12037 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12038 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12039 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12040 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12041 s,@exec_prefix@,$exec_prefix,;t t
12042 s,@prefix@,$prefix,;t t
12043 s,@program_transform_name@,$program_transform_name,;t t
12044 s,@bindir@,$bindir,;t t
12045 s,@sbindir@,$sbindir,;t t
12046 s,@libexecdir@,$libexecdir,;t t
12047 s,@datadir@,$datadir,;t t
12048 s,@sysconfdir@,$sysconfdir,;t t
12049 s,@sharedstatedir@,$sharedstatedir,;t t
12050 s,@localstatedir@,$localstatedir,;t t
12051 s,@libdir@,$libdir,;t t
12052 s,@includedir@,$includedir,;t t
12053 s,@oldincludedir@,$oldincludedir,;t t
12054 s,@infodir@,$infodir,;t t
12055 s,@mandir@,$mandir,;t t
12056 s,@build_alias@,$build_alias,;t t
12057 s,@host_alias@,$host_alias,;t t
12058 s,@target_alias@,$target_alias,;t t
12059 s,@DEFS@,$DEFS,;t t
12060 s,@ECHO_C@,$ECHO_C,;t t
12061 s,@ECHO_N@,$ECHO_N,;t t
12062 s,@ECHO_T@,$ECHO_T,;t t
12063 s,@LIBS@,$LIBS,;t t
12064 s,@build@,$build,;t t
12065 s,@build_cpu@,$build_cpu,;t t
12066 s,@build_vendor@,$build_vendor,;t t
12067 s,@build_os@,$build_os,;t t
12068 s,@host@,$host,;t t
12069 s,@host_cpu@,$host_cpu,;t t
12070 s,@host_vendor@,$host_vendor,;t t
12071 s,@host_os@,$host_os,;t t
12072 s,@SHLICC2@,$SHLICC2,;t t
12074 s,@CFLAGS@,$CFLAGS,;t t
12075 s,@LDFLAGS@,$LDFLAGS,;t t
12076 s,@CPPFLAGS@,$CPPFLAGS,;t t
12077 s,@ac_ct_CC@,$ac_ct_CC,;t t
12078 s,@EXEEXT@,$EXEEXT,;t t
12079 s,@OBJEXT@,$OBJEXT,;t t
12081 s,@EGREP@,$EGREP,;t t
12082 s,@LIBOBJS@,$LIBOBJS,;t t
12083 s,@V_CCOPT@,$V_CCOPT,;t t
12084 s,@V_DEFS@,$V_DEFS,;t t
12085 s,@V_GROUP@,$V_GROUP,;t t
12086 s,@V_INCLS@,$V_INCLS,;t t
12087 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12088 s,@LOCALSRC@,$LOCALSRC,;t t
12089 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12090 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12091 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12092 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12097 cat >>$CONFIG_STATUS <<\_ACEOF
12098 # Split the substitutions into bite-sized pieces for seds with
12099 # small command number limits, like on Digital OSF/1 and HP-UX.
12100 ac_max_sed_lines
=48
12101 ac_sed_frag
=1 # Number of current file.
12102 ac_beg
=1 # First line for current file.
12103 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12106 while $ac_more_lines; do
12107 if test $ac_beg -gt 1; then
12108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12110 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12112 if test ! -s $tmp/subs.frag
; then
12113 ac_more_lines
=false
12115 # The purpose of the label and of the branching condition is to
12116 # speed up the sed processing (if there are no `@' at all, there
12117 # is no need to browse any of the substitutions).
12118 # These are the two extra sed commands mentioned above.
12120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12121 if test -z "$ac_sed_cmds"; then
12122 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12124 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12126 ac_sed_frag
=`expr $ac_sed_frag + 1`
12128 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12131 if test -z "$ac_sed_cmds"; then
12134 fi # test -n "$CONFIG_FILES"
12137 cat >>$CONFIG_STATUS <<\_ACEOF
12138 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12141 - |
*:- |
*:-:* ) # input from stdin
12143 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12144 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12145 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12146 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12147 * ) ac_file_in
=$ac_file.
in ;;
12150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12151 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$ac_file" : 'X\(//\)[^/]' \| \
12154 X"$ac_file" : 'X\(//\)$' \| \
12155 X"$ac_file" : 'X\(/\)' \| \
12156 . : '\(.\)' 2>/dev/null ||
12158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12160 /^X\(\/\/\)$/{ s//\1/; q; }
12161 /^X\(\/\).*/{ s//\1/; q; }
12163 { if $as_mkdir_p; then
12168 while test ! -d "$as_dir"; do
12169 as_dirs
="$as_dir $as_dirs"
12170 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172 X"$as_dir" : 'X\(//\)[^/]' \| \
12173 X"$as_dir" : 'X\(//\)$' \| \
12174 X"$as_dir" : 'X\(/\)' \| \
12175 . : '\(.\)' 2>/dev/null ||
12177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12179 /^X\(\/\/\)$/{ s//\1/; q; }
12180 /^X\(\/\).*/{ s//\1/; q; }
12183 test ! -n "$as_dirs" || mkdir
$as_dirs
12184 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12186 { (exit 1); exit 1; }; }; }
12190 if test "$ac_dir" != .
; then
12191 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12192 # A "../" for each directory in $ac_dir_suffix.
12193 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12195 ac_dir_suffix
= ac_top_builddir
=
12199 .
) # No --srcdir option. We are building in place.
12201 if test -z "$ac_top_builddir"; then
12204 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12206 [\\/]* | ?
:[\\/]* ) # Absolute path.
12207 ac_srcdir
=$srcdir$ac_dir_suffix;
12208 ac_top_srcdir
=$srcdir ;;
12209 *) # Relative path.
12210 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12211 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12213 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12215 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12216 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12217 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12218 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12222 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12223 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
12226 if test x
"$ac_file" != x-
; then
12227 { echo "$as_me:$LINENO: creating $ac_file" >&5
12228 echo "$as_me: creating $ac_file" >&6;}
12231 # Let's still pretend it is `configure' which instantiates (i.e., don't
12232 # use $as_me), people would be surprised to read:
12233 # /* config.h. Generated by config.status. */
12234 if test x
"$ac_file" = x-
; then
12237 configure_input
="$ac_file. "
12239 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12240 sed 's,.*/,,'` by configure."
12242 # First look for the input files in the build tree, otherwise in the
12244 ac_file_inputs
=`IFS=:
12245 for f in $ac_file_in; do
12247 -) echo $tmp/stdin ;;
12249 # Absolute (can't be DOS-style, as IFS=:)
12250 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12251 echo "$as_me: error: cannot find input file: $f" >&2;}
12252 { (exit 1); exit 1; }; }
12255 if test -f "$f"; then
12258 elif test -f "$srcdir/$f"; then
12263 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12264 echo "$as_me: error: cannot find input file: $f" >&2;}
12265 { (exit 1); exit 1; }; }
12268 done` ||
{ (exit 1); exit 1; }
12270 cat >>$CONFIG_STATUS <<_ACEOF
12274 cat >>$CONFIG_STATUS <<\_ACEOF
12276 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12277 s
,@configure_input@
,$configure_input,;t t
12278 s
,@srcdir@
,$ac_srcdir,;t t
12279 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12280 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12281 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12282 s
,@builddir@
,$ac_builddir,;t t
12283 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12284 s
,@top_builddir@
,$ac_top_builddir,;t t
12285 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12286 s
,@INSTALL@
,$ac_INSTALL,;t t
12287 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12289 if test x"$ac_file" != x-; then
12290 mv $tmp/out $ac_file
12298 cat >>$CONFIG_STATUS <<\_ACEOF
12301 # CONFIG_HEADER section.
12304 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12305 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12307 # ac_d sets the value in "#define NAME VALUE" lines.
12308 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12309 ac_dB
='[ ].*$,\1#\2'
12312 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12313 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12314 ac_uB
='$,\1#\2define\3'
12318 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12321 - |
*:- |
*:-:* ) # input from stdin
12323 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12324 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12325 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12326 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12327 * ) ac_file_in
=$ac_file.
in ;;
12330 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12331 echo "$as_me: creating $ac_file" >&6;}
12333 # First look for the input files in the build tree, otherwise in the
12335 ac_file_inputs
=`IFS=:
12336 for f in $ac_file_in; do
12338 -) echo $tmp/stdin ;;
12340 # Absolute (can't be DOS-style, as IFS=:)
12341 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12342 echo "$as_me: error: cannot find input file: $f" >&2;}
12343 { (exit 1); exit 1; }; }
12346 if test -f "$f"; then
12349 elif test -f "$srcdir/$f"; then
12354 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12355 echo "$as_me: error: cannot find input file: $f" >&2;}
12356 { (exit 1); exit 1; }; }
12359 done` ||
{ (exit 1); exit 1; }
12360 # Remove the trailing spaces.
12361 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12365 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12366 # `conftest.undefs', that substitutes the proper values into
12367 # config.h.in to produce config.h. The first handles `#define'
12368 # templates, and the second `#undef' templates.
12369 # And first: Protect against being on the right side of a sed subst in
12370 # config.status. Protect against being in an unquoted here document
12371 # in config.status.
12372 rm -f conftest.defines conftest.undefs
12373 # Using a here document instead of a string reduces the quoting nightmare.
12374 # Putting comments in sed scripts is not portable.
12376 # `end' is used to avoid that the second main sed command (meant for
12377 # 0-ary CPP macros) applies to n-ary macro definitions.
12378 # See the Autoconf documentation for `clear'.
12379 cat >confdef2sed.
sed <<\_ACEOF
12384 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12386 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12389 # If some macros were called several times there might be several times
12390 # the same #defines, which is useless. Nevertheless, we may not want to
12391 # sort them, since we want the *last* AC-DEFINE to be honored.
12392 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12393 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12394 rm -f confdef2sed.sed
12396 # This sed command replaces #undef with comments. This is necessary, for
12397 # example, in the case of _POSIX_SOURCE, which is predefined and required
12398 # on some systems where configure will not decide to define it.
12399 cat >>conftest.undefs <<\_ACEOF
12400 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12403 # Break up conftest.defines because some shells have a limit on the size
12404 # of here documents, and old seds have small limits too (100 cmds).
12405 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12406 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12407 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12408 echo ' :' >>$CONFIG_STATUS
12409 rm -f conftest.tail
12410 while grep . conftest.defines >/dev/null
12412 # Write a limited-size here document to $tmp/defines.sed.
12413 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12414 # Speed up: don't consider the non `#define' lines.
12415 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12416 # Work around the forget-to-reset-the-flag bug.
12417 echo 't clr' >>$CONFIG_STATUS
12418 echo ': clr' >>$CONFIG_STATUS
12419 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12421 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12423 mv $tmp/out $tmp/in
12425 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12426 rm -f conftest.defines
12427 mv conftest.
tail conftest.defines
12429 rm -f conftest.defines
12430 echo ' fi # grep' >>$CONFIG_STATUS
12431 echo >>$CONFIG_STATUS
12433 # Break up conftest.undefs because some shells have a limit on the size
12434 # of here documents, and old seds have small limits too (100 cmds).
12435 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12436 rm -f conftest.
tail
12437 while grep . conftest.undefs
>/dev
/null
12439 # Write a limited-size here document to $tmp/undefs.sed.
12440 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12441 # Speed up: don't consider the non
`#undef'
12442 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12443 # Work around the forget-to-reset-the-flag bug.
12444 echo 't clr' >>$CONFIG_STATUS
12445 echo ': clr' >>$CONFIG_STATUS
12446 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12448 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12450 mv $tmp/out $tmp/in
12452 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12453 rm -f conftest.undefs
12454 mv conftest.tail conftest.undefs
12456 rm -f conftest.undefs
12458 cat >>$CONFIG_STATUS <<\_ACEOF
12459 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12460 # use $as_me), people would be surprised to read:
12461 # /* config.h. Generated by config.status. */
12462 if test x
"$ac_file" = x-
; then
12463 echo "/* Generated by configure. */" >$tmp/config.h
12465 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12467 cat $tmp/in >>$tmp/config.h
12469 if test x
"$ac_file" != x-
; then
12470 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12472 echo "$as_me: $ac_file is unchanged" >&6;}
12474 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12476 X"$ac_file" : 'X\(//\)[^/]' \| \
12477 X"$ac_file" : 'X\(//\)$' \| \
12478 X"$ac_file" : 'X\(/\)' \| \
12479 . : '\(.\)' 2>/dev/null ||
12481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12483 /^X\(\/\/\)$/{ s//\1/; q; }
12484 /^X\(\/\).*/{ s//\1/; q; }
12486 { if $as_mkdir_p; then
12491 while test ! -d "$as_dir"; do
12492 as_dirs
="$as_dir $as_dirs"
12493 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12495 X"$as_dir" : 'X\(//\)[^/]' \| \
12496 X"$as_dir" : 'X\(//\)$' \| \
12497 X"$as_dir" : 'X\(/\)' \| \
12498 . : '\(.\)' 2>/dev/null ||
12500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12502 /^X\(\/\/\)$/{ s//\1/; q; }
12503 /^X\(\/\).*/{ s//\1/; q; }
12506 test ! -n "$as_dirs" || mkdir
$as_dirs
12507 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12508 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12509 { (exit 1); exit 1; }; }; }
12512 mv $tmp/config.h
$ac_file
12516 rm -f $tmp/config.h
12520 cat >>$CONFIG_STATUS <<\_ACEOF
12523 # CONFIG_COMMANDS section.
12525 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12526 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12527 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12528 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12529 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12530 X"$ac_dest" : 'X\(//\)[^/]' \| \
12531 X"$ac_dest" : 'X\(//\)$' \| \
12532 X"$ac_dest" : 'X\(/\)' \| \
12533 . : '\(.\)' 2>/dev/null ||
12535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12537 /^X\(\/\/\)$/{ s//\1/; q; }
12538 /^X\(\/\).*/{ s//\1/; q; }
12542 if test "$ac_dir" != .
; then
12543 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12544 # A "../" for each directory in $ac_dir_suffix.
12545 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12547 ac_dir_suffix
= ac_top_builddir
=
12551 .
) # No --srcdir option. We are building in place.
12553 if test -z "$ac_top_builddir"; then
12556 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12558 [\\/]* | ?
:[\\/]* ) # Absolute path.
12559 ac_srcdir
=$srcdir$ac_dir_suffix;
12560 ac_top_srcdir
=$srcdir ;;
12561 *) # Relative path.
12562 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12563 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12565 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12567 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12568 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12569 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12570 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12574 echo "$as_me: executing $ac_dest commands" >&6;}
12576 default-1
) if test -f .devel
; then
12577 echo timestamp
> stamp-h
12578 cat Makefile-devel-adds
>> Makefile
12585 cat >>$CONFIG_STATUS <<\_ACEOF
12587 { (exit 0); exit 0; }
12589 chmod +x
$CONFIG_STATUS
12590 ac_clean_files
=$ac_clean_files_save
12593 # configure is writing to config.log, and then calls config.status.
12594 # config.status does its own redirection, appending to config.log.
12595 # Unfortunately, on DOS this fails, as config.log is still kept open
12596 # by configure, so config.status won't be able to write to it; its
12597 # output is simply discarded. So we exec the FD to /dev/null,
12598 # effectively closing config.log, so it can be properly (re)opened and
12599 # appended to by config.status. When coming back to configure, we
12600 # need to make the FD available again.
12601 if test "$no_create" != yes; then
12603 ac_config_status_args
=
12604 test "$silent" = yes &&
12605 ac_config_status_args
="$ac_config_status_args --quiet"
12607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12610 # would make configure fail if this is the last instruction.
12611 $ac_cs_success ||
{ (exit 1); exit 1; }