2 # From configure.in Revision: 1.184 .
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
3131 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h netinet
/ether.h
3133 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135 echo "$as_me:$LINENO: checking for $ac_header" >&5
3136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3143 # Is the header compilable?
3144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3146 cat >conftest.
$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3150 cat confdefs.h
>>conftest.
$ac_ext
3151 cat >>conftest.
$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 $ac_includes_default
3154 #include <$ac_header>
3156 rm -f conftest.
$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try
='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 ac_header_compiler
=yes
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.
$ac_ext >&5
3173 ac_header_compiler
=no
3175 rm -f conftest.
$ac_objext conftest.
$ac_ext
3176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3177 echo "${ECHO_T}$ac_header_compiler" >&6
3179 # Is the header present?
3180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3182 cat >conftest.
$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <$ac_header>
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3194 grep -v '^ *+' conftest.er1
>conftest.err
3196 cat conftest.err
>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev
/null
; then
3199 if test -s conftest.err
; then
3200 ac_cpp_err
=$ac_c_preproc_warn_flag
3207 if test -z "$ac_cpp_err"; then
3208 ac_header_preproc
=yes
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.
$ac_ext >&5
3213 ac_header_preproc
=no
3215 rm -f conftest.err conftest.
$ac_ext
3216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3217 echo "${ECHO_T}$ac_header_preproc" >&6
3219 # So? What about this header?
3220 case $ac_header_compiler:$ac_header_preproc in
3222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3228 ## ------------------------------------ ##
3229 ## Report this to bug-autoconf@gnu.org. ##
3230 ## ------------------------------------ ##
3233 sed "s/^/$as_me: WARNING: /" >&2
3236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3244 ## ------------------------------------ ##
3245 ## Report this to bug-autoconf@gnu.org. ##
3246 ## ------------------------------------ ##
3249 sed "s/^/$as_me: WARNING: /" >&2
3252 echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 eval "$as_ac_Header=$ac_header_preproc"
3259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3264 cat >>confdefs.h
<<_ACEOF
3265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3273 for ac_header
in netinet
/if_ether.h
3275 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3276 echo "$as_me:$LINENO: checking for $ac_header" >&5
3277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 cat >conftest.
$ac_ext <<_ACEOF
3282 #line $LINENO "configure"
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <sys/types.h>
3289 #include <sys/socket.h>
3291 #include <$ac_header>
3293 rm -f conftest.
$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try
='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 eval "$as_ac_Header=yes"
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.
$ac_ext >&5
3310 eval "$as_ac_Header=no"
3312 rm -f conftest.
$ac_objext conftest.
$ac_ext
3314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3317 cat >>confdefs.h
<<_ACEOF
3318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3325 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3327 # The simple test didn't work.
3328 # Do we need to include <net/if.h> first?
3329 # Unset ac_cv_header_netinet_if_ether_h so we don't
3330 # treat the previous failure as a cached value and
3331 # suppress the next test.
3333 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3334 echo "$as_me: Rechecking with some additional includes" >&6;}
3335 unset ac_cv_header_netinet_if_ether_h
3337 for ac_header
in netinet
/if_ether.h
3339 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3340 echo "$as_me:$LINENO: checking for $ac_header" >&5
3341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 cat >conftest.
$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3349 cat confdefs.h
>>conftest.
$ac_ext
3350 cat >>conftest.
$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include <sys/types.h>
3353 #include <sys/socket.h>
3354 #include <netinet/in.h>
3359 #include <$ac_header>
3361 rm -f conftest.
$ac_objext
3362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3363 (eval $ac_compile) 2>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try
='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 eval "$as_ac_Header=yes"
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.
$ac_ext >&5
3378 eval "$as_ac_Header=no"
3380 rm -f conftest.
$ac_objext conftest.
$ac_ext
3382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3385 cat >>confdefs.h
<<_ACEOF
3386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3395 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3396 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3397 if test "${ac_cv_header_time+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 cat >conftest.
$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3404 cat confdefs.h
>>conftest.
$ac_ext
3405 cat >>conftest.
$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <sys/types.h>
3408 #include <sys/time.h>
3414 if ((struct tm *) 0)
3420 rm -f conftest.
$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try
='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_header_time
=yes
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.
$ac_ext >&5
3437 ac_cv_header_time
=no
3439 rm -f conftest.
$ac_objext conftest.
$ac_ext
3441 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3442 echo "${ECHO_T}$ac_cv_header_time" >&6
3443 if test $ac_cv_header_time = yes; then
3445 cat >>confdefs.h
<<\_ACEOF
3446 #define TIME_WITH_SYS_TIME 1
3455 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3456 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3457 if test "$cross_compiling" = yes; then
3458 if test "${ac_cv_linux_vers+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_cv_linux_vers
=unknown
3465 if test "${ac_cv_linux_vers+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_cv_linux_vers
=`uname -r 2>&1 | \
3469 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3473 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3474 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3475 if test $ac_cv_linux_vers = unknown
; then
3476 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3477 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3478 { (exit 1); exit 1; }; }
3480 if test $ac_cv_linux_vers -lt 2 ; then
3481 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3482 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3483 { (exit 1); exit 1; }; }
3493 for ac_header
in smi.h
3495 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3497 echo "$as_me:$LINENO: checking for $ac_header" >&5
3498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3505 # Is the header compilable?
3506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3508 cat >conftest.
$ac_ext <<_ACEOF
3509 #line $LINENO "configure"
3512 cat confdefs.h
>>conftest.
$ac_ext
3513 cat >>conftest.
$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 $ac_includes_default
3516 #include <$ac_header>
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_header_compiler
=yes
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.
$ac_ext >&5
3535 ac_header_compiler
=no
3537 rm -f conftest.
$ac_objext conftest.
$ac_ext
3538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3539 echo "${ECHO_T}$ac_header_compiler" >&6
3541 # Is the header present?
3542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3544 cat >conftest.
$ac_ext <<_ACEOF
3545 #line $LINENO "configure"
3548 cat confdefs.h
>>conftest.
$ac_ext
3549 cat >>conftest.
$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include <$ac_header>
3553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3554 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3556 grep -v '^ *+' conftest.er1
>conftest.err
3558 cat conftest.err
>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } >/dev
/null
; then
3561 if test -s conftest.err
; then
3562 ac_cpp_err
=$ac_c_preproc_warn_flag
3569 if test -z "$ac_cpp_err"; then
3570 ac_header_preproc
=yes
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.
$ac_ext >&5
3575 ac_header_preproc
=no
3577 rm -f conftest.err conftest.
$ac_ext
3578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3579 echo "${ECHO_T}$ac_header_preproc" >&6
3581 # So? What about this header?
3582 case $ac_header_compiler:$ac_header_preproc in
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3590 ## ------------------------------------ ##
3591 ## Report this to bug-autoconf@gnu.org. ##
3592 ## ------------------------------------ ##
3595 sed "s/^/$as_me: WARNING: /" >&2
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3606 ## ------------------------------------ ##
3607 ## Report this to bug-autoconf@gnu.org. ##
3608 ## ------------------------------------ ##
3611 sed "s/^/$as_me: WARNING: /" >&2
3614 echo "$as_me:$LINENO: checking for $ac_header" >&5
3615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 eval "$as_ac_Header=$ac_header_preproc"
3621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3626 cat >>confdefs.h
<<_ACEOF
3627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3635 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3636 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3637 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 ac_check_lib_save_LIBS
=$LIBS
3642 cat >conftest.
$ac_ext <<_ACEOF
3643 #line $LINENO "configure"
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3650 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3665 rm -f conftest.
$ac_objext conftest
$ac_exeext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3667 (eval $ac_link) 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try
='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_lib_smi_smiInit
=yes
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.
$ac_ext >&5
3682 ac_cv_lib_smi_smiInit
=no
3684 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3685 LIBS
=$ac_check_lib_save_LIBS
3687 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3688 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3689 if test $ac_cv_lib_smi_smiInit = yes; then
3690 cat >>confdefs.h
<<_ACEOF
3691 #define HAVE_LIBSMI 1
3698 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3700 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3701 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3702 if test "$cross_compiling" = yes; then
3703 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3704 echo "${ECHO_T}not when cross-compiling" >&6
3708 cat >conftest.
$ac_ext <<_ACEOF
3709 #line $LINENO "configure"
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 /* libsmi available check */
3719 int current, revision, age, n;
3720 const int required = 2;
3723 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3725 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3728 if (required < current - age || required > current)
3734 rm -f conftest
$ac_exeext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3736 (eval $ac_link) 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6
3747 cat >>confdefs.h
<<\_ACEOF
3753 echo "$as_me: program exited with status $ac_status" >&5
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.
$ac_ext >&5
3759 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3760 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3761 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3762 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3763 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3764 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3765 4) echo "$as_me:$LINENO: result: no - too old" >&5
3766 echo "${ECHO_T}no - too old" >&6 ;;
3767 *) echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6 ;;
3772 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3776 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3777 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3778 # Check whether --enable-smb or --disable-smb was given.
3779 if test "${enable_smb+set}" = set; then
3780 enableval
="$enable_smb"
3785 case "$enableval" in
3786 yes) echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6
3788 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3789 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3790 cat >>confdefs.h
<<\_ACEOF
3791 #define TCPDUMP_DO_SMB 1
3794 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
3796 *) echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3802 # Check whether --with-user or --without-user was given.
3803 if test "${with_user+set}" = set; then
3804 withval
="$with_user"
3807 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3808 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3809 if test ! -z "$with_user" ; then
3810 cat >>confdefs.h
<<_ACEOF
3811 #define WITH_USER "$withval"
3814 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3815 echo "${ECHO_T}to \"$withval\"" >&6
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3822 # Check whether --with-chroot or --without-chroot was given.
3823 if test "${with_chroot+set}" = set; then
3824 withval
="$with_chroot"
3827 echo "$as_me:$LINENO: checking whether to chroot" >&5
3828 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3829 if test ! -z "$with_chroot" ; then
3830 cat >>confdefs.h
<<_ACEOF
3831 #define WITH_CHROOT "$withval"
3834 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3835 echo "${ECHO_T}to \"$withval\"" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3842 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3843 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3844 if test "${enable_ipv6+set}" = set; then
3845 enableval
="$enable_ipv6"
3846 case "$enableval" in
3847 yes) echo "$as_me:$LINENO: result: yes" >&5
3848 echo "${ECHO_T}yes" >&6
3849 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"
3850 cat >>confdefs.h
<<\_ACEOF
3857 echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3863 if test "$cross_compiling" = yes; then
3864 echo "$as_me:$LINENO: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3869 cat >conftest.
$ac_ext <<_ACEOF
3870 #line $LINENO "configure"
3873 cat confdefs.h
>>conftest.
$ac_ext
3874 cat >>conftest.
$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 /* AF_INET6 available check */
3877 #include <sys/types.h>
3878 #include <sys/socket.h>
3881 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3888 rm -f conftest
$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 echo "$as_me:$LINENO: result: yes" >&5
3900 echo "${ECHO_T}yes" >&6
3901 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"
3902 cat >>confdefs.h
<<\_ACEOF
3908 echo "$as_me: program exited with status $ac_status" >&5
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.
$ac_ext >&5
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3925 if test "$ipv6" = "yes"; then
3926 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3927 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3928 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
3931 cat >conftest.
$ac_ext <<_ACEOF
3932 #line $LINENO "configure"
3935 cat confdefs.h
>>conftest.
$ac_ext
3936 cat >>conftest.
$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 #include <netinet/in.h>
3939 #ifdef IPV6_INRIA_VERSION
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 $EGREP "yes" >/dev
/null
2>&1; then
3946 CFLAGS
="-DINET6 $CFLAGS"
3952 cat >conftest.
$ac_ext <<_ACEOF
3953 #line $LINENO "configure"
3956 cat confdefs.h
>>conftest.
$ac_ext
3957 cat >>conftest.
$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <netinet/in.h>
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 $EGREP "yes" >/dev
/null
2>&1; then
3968 ipv6libdir
=/usr
/local
/v
6/lib
;
3970 CFLAGS
="-DINET6 $CFLAGS"
3976 cat >conftest.
$ac_ext <<_ACEOF
3977 #line $LINENO "configure"
3980 cat confdefs.h
>>conftest.
$ac_ext
3981 cat >>conftest.
$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 #include <features.h>
3984 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3989 $EGREP "yes" >/dev
/null
2>&1; then
3991 CFLAGS
="-DINET6 $CFLAGS"
3997 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
4000 ipv6libdir
=/usr
/inet
6/lib
4002 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
4006 cat >conftest.
$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4010 cat confdefs.h
>>conftest.
$ac_ext
4011 cat >>conftest.
$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 #include <sys/param.h>
4014 #ifdef _TOSHIBA_INET6
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "yes" >/dev
/null
2>&1; then
4022 ipv6libdir
=/usr
/local
/v
6/lib
;
4023 CFLAGS
="-DINET6 $CFLAGS"
4029 cat >conftest.
$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4033 cat confdefs.h
>>conftest.
$ac_ext
4034 cat >>conftest.
$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #include </usr/local/v6/include/sys/v6config.h>
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "yes" >/dev
/null
2>&1; then
4045 ipv6libdir
=/usr
/local
/v
6/lib
;
4046 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
4052 cat >conftest.
$ac_ext <<_ACEOF
4053 #line $LINENO "configure"
4056 cat confdefs.h
>>conftest.
$ac_ext
4057 cat >>conftest.
$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 #include <sys/param.h>
4060 #ifdef _ZETA_MINAMI_INET6
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 $EGREP "yes" >/dev
/null
2>&1; then
4068 ipv6libdir
=/usr
/local
/v
6/lib
;
4069 CFLAGS
="-DINET6 $CFLAGS"
4075 if test "$ipv6type" != "unknown"; then
4079 echo "$as_me:$LINENO: result: $ipv6type" >&5
4080 echo "${ECHO_T}$ipv6type" >&6
4083 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4084 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4085 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4086 echo "You have $ipv6lib library, using it"
4088 if test "$ipv6trylibc" = "yes"; then
4089 echo "You do not have $ipv6lib library, using libc"
4091 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4092 echo "You need to fetch lib$ipv6lib.a from appropriate"
4093 echo 'ipv6 kit and compile beforehand.'
4100 if test "$ipv6" = "yes"; then
4102 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4103 # function in libc; there are "ngetaddrinfo()" and
4104 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4105 # "getaddrinfo" to be either "ngetaddrinfo" or
4106 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4107 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4109 # So this test doesn't work on Tru64 5.1, and possibly
4110 # on other 5.x releases. This causes the configure
4111 # script to become confused, and results in libpcap
4112 # being unbuildable.
4114 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4115 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4116 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 ac_func_search_save_LIBS
=$LIBS
4120 ac_cv_search_getaddrinfo
=no
4121 cat >conftest.
$ac_ext <<_ACEOF
4122 #line $LINENO "configure"
4125 cat confdefs.h
>>conftest.
$ac_ext
4126 cat >>conftest.
$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4129 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135 char getaddrinfo ();
4144 rm -f conftest.
$ac_objext conftest
$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try
='test -s conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_search_getaddrinfo
="none required"
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.
$ac_ext >&5
4162 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4163 if test "$ac_cv_search_getaddrinfo" = no
; then
4164 for ac_lib
in socket
; do
4165 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4166 cat >conftest.
$ac_ext <<_ACEOF
4167 #line $LINENO "configure"
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4180 char getaddrinfo ();
4189 rm -f conftest.
$ac_objext conftest
$ac_exeext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4191 (eval $ac_link) 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try
='test -s conftest$ac_exeext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_search_getaddrinfo
="-l$ac_lib"
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.
$ac_ext >&5
4208 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4211 LIBS
=$ac_func_search_save_LIBS
4213 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4214 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4215 if test "$ac_cv_search_getaddrinfo" != no
; then
4216 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4217 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4218 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4219 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 if test "$cross_compiling" = yes; then
4223 td_cv_buggygetaddrinfo
=yes
4225 cat >conftest.
$ac_ext <<_ACEOF
4226 #line $LINENO "configure"
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4233 #include <sys/types.h>
4236 #include <sys/socket.h>
4237 #include <netinet/in.h>
4241 int passive, gaierr, inet4 = 0, inet6 = 0;
4242 struct addrinfo hints, *ai, *aitop;
4243 char straddr[INET6_ADDRSTRLEN], strport[16];
4245 for (passive = 0; passive <= 1; passive++) {
4246 memset(&hints, 0, sizeof(hints));
4247 hints.ai_family = AF_UNSPEC;
4248 hints.ai_flags = passive ? AI_PASSIVE : 0;
4249 hints.ai_socktype = SOCK_STREAM;
4250 hints.ai_protocol = IPPROTO_TCP;
4251 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4252 (void)gai_strerror(gaierr);
4255 for (ai = aitop; ai; ai = ai->ai_next) {
4256 if (ai->ai_addr == NULL ||
4257 ai->ai_addrlen == 0 ||
4258 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4259 straddr, sizeof(straddr), strport, sizeof(strport),
4260 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4263 switch (ai->ai_family) {
4265 if (strcmp(strport, "54321") != 0) {
4269 if (strcmp(straddr, "0.0.0.0") != 0) {
4273 if (strcmp(straddr, "127.0.0.1") != 0) {
4280 if (strcmp(strport, "54321") != 0) {
4284 if (strcmp(straddr, "::") != 0) {
4288 if (strcmp(straddr, "::1") != 0) {
4305 /* another family support? */
4311 /* supported family should be 2, unsupported family should be 0 */
4312 if (!(inet4 == 0 || inet4 == 2))
4314 if (!(inet6 == 0 || inet6 == 2))
4318 freeaddrinfo(aitop);
4323 freeaddrinfo(aitop);
4328 rm -f conftest
$ac_exeext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4330 (eval $ac_link) 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 td_cv_buggygetaddrinfo
=no
4341 echo "$as_me: program exited with status $ac_status" >&5
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.
$ac_ext >&5
4346 td_cv_buggygetaddrinfo
=yes
4348 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4352 if test "$td_cv_buggygetaddrinfo" = no
; then
4353 echo "$as_me:$LINENO: result: good" >&5
4354 echo "${ECHO_T}good" >&6
4356 echo "$as_me:$LINENO: result: buggy" >&5
4357 echo "${ECHO_T}buggy" >&6
4360 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4362 # XXX - it doesn't appear that "ipv6type" can ever be
4363 # set to "linux". Should this be testing for
4364 # "linux-glibc", or for that *or* "linux-libinet6"?
4365 # If the latter, note that "linux-libinet6" is also
4366 # the type given to some non-Linux OSes.
4368 if test "$ipv6type" != "linux"; then
4369 echo 'Fatal: You must get working getaddrinfo() function.'
4370 echo ' or you can specify "--disable-ipv6"'.
4373 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4374 echo ' Better upgrade your system library to newest version'
4375 echo ' of GNU C library (aka glibc).'
4383 for ac_func
in getaddrinfo getnameinfo
4385 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4386 echo "$as_me:$LINENO: checking for $ac_func" >&5
4387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4388 if eval "test \"\${$as_ac_var+set}\" = set"; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 cat >conftest.
$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4395 cat confdefs.h
>>conftest.
$ac_ext
4396 cat >>conftest.
$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 /* System header to define __stub macros and hopefully few prototypes,
4399 which can conflict with char $ac_func (); below.
4400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 <limits.h> exists even on freestanding compilers. */
4403 # include <limits.h>
4405 # include <assert.h>
4407 /* Override any gcc2 internal prototype to avoid an error. */
4412 /* We use char because int might match the return type of a gcc2
4413 builtin and then its argument prototype would still apply. */
4415 /* The GNU C library defines this for functions which it implements
4416 to always fail with ENOSYS. Some functions are actually named
4417 something starting with __ and the normal name is an alias. */
4418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4421 char (*f) () = $ac_func;
4430 return f != $ac_func;
4435 rm -f conftest.
$ac_objext conftest
$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437 (eval $ac_link) 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try
='test -s conftest$ac_exeext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 eval "$as_ac_var=yes"
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.
$ac_ext >&5
4452 eval "$as_ac_var=no"
4454 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4458 if test `eval echo '${'$as_ac_var'}'` = yes; then
4459 cat >>confdefs.h
<<_ACEOF
4460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4464 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4471 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4472 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4473 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 cat >conftest.
$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4480 cat confdefs.h
>>conftest.
$ac_ext
4481 cat >>conftest.
$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <netdnet/dnetdb.h>
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4488 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4490 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4495 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4496 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4497 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4498 cat >>confdefs.h
<<\_ACEOF
4499 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4504 echo "$as_me:$LINENO: checking for char" >&5
4505 echo $ECHO_N "checking for char... $ECHO_C" >&6
4506 if test "${ac_cv_type_char+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 cat >conftest.
$ac_ext <<_ACEOF
4510 #line $LINENO "configure"
4513 cat confdefs.h
>>conftest.
$ac_ext
4514 cat >>conftest.
$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4528 rm -f conftest.
$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try
='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.
$ac_ext >&5
4547 rm -f conftest.
$ac_objext conftest.
$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4550 echo "${ECHO_T}$ac_cv_type_char" >&6
4552 echo "$as_me:$LINENO: checking size of char" >&5
4553 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4554 if test "${ac_cv_sizeof_char+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test "$ac_cv_type_char" = yes; then
4558 # The cast to unsigned long works around a bug in the HP C Compiler
4559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4561 # This bug is HP SR number 8606223364.
4562 if test "$cross_compiling" = yes; then
4563 # Depending upon the size, compute the lo and hi bounds.
4564 cat >conftest.
$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4568 cat confdefs.h
>>conftest.
$ac_ext
4569 cat >>conftest.
$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4575 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4582 rm -f conftest.
$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try
='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4596 cat >conftest.
$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4600 cat confdefs.h
>>conftest.
$ac_ext
4601 cat >>conftest.
$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4607 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4614 rm -f conftest.
$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try
='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_hi
=$ac_mid; break
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.
$ac_ext >&5
4631 ac_lo
=`expr $ac_mid + 1`
4632 if test $ac_lo -le $ac_mid; then
4636 ac_mid
=`expr 2 '*' $ac_mid + 1`
4638 rm -f conftest.
$ac_objext conftest.
$ac_ext
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.
$ac_ext >&5
4644 cat >conftest.
$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4648 cat confdefs.h
>>conftest.
$ac_ext
4649 cat >>conftest.
$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4655 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4662 rm -f conftest.
$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try
='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4676 cat >conftest.
$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4680 cat confdefs.h
>>conftest.
$ac_ext
4681 cat >>conftest.
$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 $ac_includes_default
4687 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4694 rm -f conftest.
$ac_objext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try
='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_lo
=$ac_mid; break
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.
$ac_ext >&5
4711 ac_hi
=`expr '(' $ac_mid ')' - 1`
4712 if test $ac_mid -le $ac_hi; then
4716 ac_mid
=`expr 2 '*' $ac_mid`
4718 rm -f conftest.
$ac_objext conftest.
$ac_ext
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.
$ac_ext >&5
4726 rm -f conftest.
$ac_objext conftest.
$ac_ext
4728 rm -f conftest.
$ac_objext conftest.
$ac_ext
4729 # Binary search between lo and hi bounds.
4730 while test "x$ac_lo" != "x$ac_hi"; do
4731 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4732 cat >conftest.
$ac_ext <<_ACEOF
4733 #line $LINENO "configure"
4736 cat confdefs.h
>>conftest.
$ac_ext
4737 cat >>conftest.
$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 $ac_includes_default
4743 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4750 rm -f conftest.
$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try
='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.
$ac_ext >&5
4767 ac_lo
=`expr '(' $ac_mid ')' + 1`
4769 rm -f conftest.
$ac_objext conftest.
$ac_ext
4772 ?
*) ac_cv_sizeof_char
=$ac_lo;;
4773 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4774 See \`config.log' for more details." >&5
4775 echo "$as_me: error: cannot compute sizeof (char), 77
4776 See \`config.log' for more details." >&2;}
4777 { (exit 1); exit 1; }; } ;;
4780 if test "$cross_compiling" = yes; then
4781 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4782 See \`config.log' for more details." >&5
4783 echo "$as_me: error: cannot run test program while cross compiling
4784 See \`config.log' for more details." >&2;}
4785 { (exit 1); exit 1; }; }
4787 cat >conftest.
$ac_ext <<_ACEOF
4788 #line $LINENO "configure"
4791 cat confdefs.h
>>conftest.
$ac_ext
4792 cat >>conftest.
$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 $ac_includes_default
4795 long longval () { return (long) (sizeof (char)); }
4796 unsigned long ulongval () { return (long) (sizeof (char)); }
4803 FILE *f = fopen ("conftest.val", "w");
4806 if (((long) (sizeof (char))) < 0)
4808 long i = longval ();
4809 if (i != ((long) (sizeof (char))))
4811 fprintf (f, "%ld\n", i);
4815 unsigned long i = ulongval ();
4816 if (i != ((long) (sizeof (char))))
4818 fprintf (f, "%lu\n", i);
4820 exit (ferror (f) || fclose (f) != 0);
4826 rm -f conftest
$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_sizeof_char
=`cat conftest.val`
4839 echo "$as_me: program exited with status $ac_status" >&5
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.
$ac_ext >&5
4844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4845 See \`config.log' for more details." >&5
4846 echo "$as_me: error: cannot compute sizeof (char), 77
4847 See \`config.log' for more details." >&2;}
4848 { (exit 1); exit 1; }; }
4850 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4858 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4859 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4860 cat >>confdefs.h
<<_ACEOF
4861 #define SIZEOF_CHAR $ac_cv_sizeof_char
4865 echo "$as_me:$LINENO: checking for short" >&5
4866 echo $ECHO_N "checking for short... $ECHO_C" >&6
4867 if test "${ac_cv_type_short+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 cat >conftest.
$ac_ext <<_ACEOF
4871 #line $LINENO "configure"
4874 cat confdefs.h
>>conftest.
$ac_ext
4875 cat >>conftest.
$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 $ac_includes_default
4889 rm -f conftest.
$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try
='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_type_short
=yes
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.
$ac_ext >&5
4908 rm -f conftest.
$ac_objext conftest.
$ac_ext
4910 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4911 echo "${ECHO_T}$ac_cv_type_short" >&6
4913 echo "$as_me:$LINENO: checking size of short" >&5
4914 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4915 if test "${ac_cv_sizeof_short+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 if test "$ac_cv_type_short" = yes; then
4919 # The cast to unsigned long works around a bug in the HP C Compiler
4920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4922 # This bug is HP SR number 8606223364.
4923 if test "$cross_compiling" = yes; then
4924 # Depending upon the size, compute the lo and hi bounds.
4925 cat >conftest.
$ac_ext <<_ACEOF
4926 #line $LINENO "configure"
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4936 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4943 rm -f conftest.
$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try
='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 cat >conftest.
$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4961 cat confdefs.h
>>conftest.
$ac_ext
4962 cat >>conftest.
$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4968 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4975 rm -f conftest.
$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try
='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_hi
=$ac_mid; break
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.
$ac_ext >&5
4992 ac_lo
=`expr $ac_mid + 1`
4993 if test $ac_lo -le $ac_mid; then
4997 ac_mid
=`expr 2 '*' $ac_mid + 1`
4999 rm -f conftest.
$ac_objext conftest.
$ac_ext
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.
$ac_ext >&5
5005 cat >conftest.
$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5009 cat confdefs.h
>>conftest.
$ac_ext
5010 cat >>conftest.
$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 $ac_includes_default
5016 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5023 rm -f conftest.
$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try
='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5037 cat >conftest.
$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5041 cat confdefs.h
>>conftest.
$ac_ext
5042 cat >>conftest.
$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_includes_default
5048 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5055 rm -f conftest.
$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try
='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_lo
=$ac_mid; break
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.
$ac_ext >&5
5072 ac_hi
=`expr '(' $ac_mid ')' - 1`
5073 if test $ac_mid -le $ac_hi; then
5077 ac_mid
=`expr 2 '*' $ac_mid`
5079 rm -f conftest.
$ac_objext conftest.
$ac_ext
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.
$ac_ext >&5
5087 rm -f conftest.
$ac_objext conftest.
$ac_ext
5089 rm -f conftest.
$ac_objext conftest.
$ac_ext
5090 # Binary search between lo and hi bounds.
5091 while test "x$ac_lo" != "x$ac_hi"; do
5092 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5093 cat >conftest.
$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5097 cat confdefs.h
>>conftest.
$ac_ext
5098 cat >>conftest.
$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 $ac_includes_default
5104 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5111 rm -f conftest.
$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try
='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.
$ac_ext >&5
5128 ac_lo
=`expr '(' $ac_mid ')' + 1`
5130 rm -f conftest.
$ac_objext conftest.
$ac_ext
5133 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (short), 77
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 if test "$cross_compiling" = yes; then
5142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5148 cat >conftest.
$ac_ext <<_ACEOF
5149 #line $LINENO "configure"
5152 cat confdefs.h
>>conftest.
$ac_ext
5153 cat >>conftest.
$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 $ac_includes_default
5156 long longval () { return (long) (sizeof (short)); }
5157 unsigned long ulongval () { return (long) (sizeof (short)); }
5164 FILE *f = fopen ("conftest.val", "w");
5167 if (((long) (sizeof (short))) < 0)
5169 long i = longval ();
5170 if (i != ((long) (sizeof (short))))
5172 fprintf (f, "%ld\n", i);
5176 unsigned long i = ulongval ();
5177 if (i != ((long) (sizeof (short))))
5179 fprintf (f, "%lu\n", i);
5181 exit (ferror (f) || fclose (f) != 0);
5187 rm -f conftest
$ac_exeext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5198 ac_cv_sizeof_short
=`cat conftest.val`
5200 echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.
$ac_ext >&5
5205 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5206 See \`config.log' for more details." >&5
5207 echo "$as_me: error: cannot compute sizeof (short), 77
5208 See \`config.log' for more details." >&2;}
5209 { (exit 1); exit 1; }; }
5211 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5216 ac_cv_sizeof_short
=0
5219 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5220 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5221 cat >>confdefs.h
<<_ACEOF
5222 #define SIZEOF_SHORT $ac_cv_sizeof_short
5226 echo "$as_me:$LINENO: checking for int" >&5
5227 echo $ECHO_N "checking for int... $ECHO_C" >&6
5228 if test "${ac_cv_type_int+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 cat >conftest.
$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5235 cat confdefs.h
>>conftest.
$ac_ext
5236 cat >>conftest.
$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5250 rm -f conftest.
$ac_objext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5252 (eval $ac_compile) 2>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try
='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.
$ac_ext >&5
5269 rm -f conftest.
$ac_objext conftest.
$ac_ext
5271 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5272 echo "${ECHO_T}$ac_cv_type_int" >&6
5274 echo "$as_me:$LINENO: checking size of int" >&5
5275 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5276 if test "${ac_cv_sizeof_int+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test "$ac_cv_type_int" = yes; then
5280 # The cast to unsigned long works around a bug in the HP C Compiler
5281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283 # This bug is HP SR number 8606223364.
5284 if test "$cross_compiling" = yes; then
5285 # Depending upon the size, compute the lo and hi bounds.
5286 cat >conftest.
$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5290 cat confdefs.h
>>conftest.
$ac_ext
5291 cat >>conftest.
$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5297 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5304 rm -f conftest.
$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try
='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 cat >conftest.
$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5322 cat confdefs.h
>>conftest.
$ac_ext
5323 cat >>conftest.
$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5329 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5336 rm -f conftest.
$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try
='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_hi
=$ac_mid; break
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.
$ac_ext >&5
5353 ac_lo
=`expr $ac_mid + 1`
5354 if test $ac_lo -le $ac_mid; then
5358 ac_mid
=`expr 2 '*' $ac_mid + 1`
5360 rm -f conftest.
$ac_objext conftest.
$ac_ext
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.
$ac_ext >&5
5366 cat >conftest.
$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5370 cat confdefs.h
>>conftest.
$ac_ext
5371 cat >>conftest.
$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5377 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5384 rm -f conftest.
$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try
='test -s conftest.$ac_objext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5398 cat >conftest.
$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5402 cat confdefs.h
>>conftest.
$ac_ext
5403 cat >>conftest.
$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 $ac_includes_default
5409 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5416 rm -f conftest.
$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try
='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_lo
=$ac_mid; break
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.
$ac_ext >&5
5433 ac_hi
=`expr '(' $ac_mid ')' - 1`
5434 if test $ac_mid -le $ac_hi; then
5438 ac_mid
=`expr 2 '*' $ac_mid`
5440 rm -f conftest.
$ac_objext conftest.
$ac_ext
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.
$ac_ext >&5
5448 rm -f conftest.
$ac_objext conftest.
$ac_ext
5450 rm -f conftest.
$ac_objext conftest.
$ac_ext
5451 # Binary search between lo and hi bounds.
5452 while test "x$ac_lo" != "x$ac_hi"; do
5453 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5454 cat >conftest.
$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5465 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5472 rm -f conftest.
$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try
='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5489 ac_lo
=`expr '(' $ac_mid ')' + 1`
5491 rm -f conftest.
$ac_objext conftest.
$ac_ext
5494 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5495 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5496 See \`config.log' for more details." >&5
5497 echo "$as_me: error: cannot compute sizeof (int), 77
5498 See \`config.log' for more details." >&2;}
5499 { (exit 1); exit 1; }; } ;;
5502 if test "$cross_compiling" = yes; then
5503 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5504 See \`config.log' for more details." >&5
5505 echo "$as_me: error: cannot run test program while cross compiling
5506 See \`config.log' for more details." >&2;}
5507 { (exit 1); exit 1; }; }
5509 cat >conftest.
$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5513 cat confdefs.h
>>conftest.
$ac_ext
5514 cat >>conftest.
$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 $ac_includes_default
5517 long longval () { return (long) (sizeof (int)); }
5518 unsigned long ulongval () { return (long) (sizeof (int)); }
5525 FILE *f = fopen ("conftest.val", "w");
5528 if (((long) (sizeof (int))) < 0)
5530 long i = longval ();
5531 if (i != ((long) (sizeof (int))))
5533 fprintf (f, "%ld\n", i);
5537 unsigned long i = ulongval ();
5538 if (i != ((long) (sizeof (int))))
5540 fprintf (f, "%lu\n", i);
5542 exit (ferror (f) || fclose (f) != 0);
5548 rm -f conftest
$ac_exeext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550 (eval $ac_link) 2>&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_sizeof_int
=`cat conftest.val`
5561 echo "$as_me: program exited with status $ac_status" >&5
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.
$ac_ext >&5
5566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5567 See \`config.log' for more details." >&5
5568 echo "$as_me: error: cannot compute sizeof (int), 77
5569 See \`config.log' for more details." >&2;}
5570 { (exit 1); exit 1; }; }
5572 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5581 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5582 cat >>confdefs.h
<<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5587 echo "$as_me:$LINENO: checking for long" >&5
5588 echo $ECHO_N "checking for long... $ECHO_C" >&6
5589 if test "${ac_cv_type_long+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 cat >conftest.
$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5596 cat confdefs.h
>>conftest.
$ac_ext
5597 cat >>conftest.
$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 $ac_includes_default
5611 rm -f conftest.
$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try
='test -s conftest.$ac_objext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.
$ac_ext >&5
5630 rm -f conftest.
$ac_objext conftest.
$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5633 echo "${ECHO_T}$ac_cv_type_long" >&6
5635 echo "$as_me:$LINENO: checking size of long" >&5
5636 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5637 if test "${ac_cv_sizeof_long+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 if test "$ac_cv_type_long" = yes; then
5641 # The cast to unsigned long works around a bug in the HP C Compiler
5642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5644 # This bug is HP SR number 8606223364.
5645 if test "$cross_compiling" = yes; then
5646 # Depending upon the size, compute the lo and hi bounds.
5647 cat >conftest.
$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5651 cat confdefs.h
>>conftest.
$ac_ext
5652 cat >>conftest.
$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 $ac_includes_default
5658 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5665 rm -f conftest.
$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try
='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5679 cat >conftest.
$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5690 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5697 rm -f conftest.
$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try
='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_hi
=$ac_mid; break
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.
$ac_ext >&5
5714 ac_lo
=`expr $ac_mid + 1`
5715 if test $ac_lo -le $ac_mid; then
5719 ac_mid
=`expr 2 '*' $ac_mid + 1`
5721 rm -f conftest.
$ac_objext conftest.
$ac_ext
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.
$ac_ext >&5
5727 cat >conftest.
$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5731 cat confdefs.h
>>conftest.
$ac_ext
5732 cat >>conftest.
$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 $ac_includes_default
5738 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5745 rm -f conftest.
$ac_objext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747 (eval $ac_compile) 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try
='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5759 cat >conftest.
$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5763 cat confdefs.h
>>conftest.
$ac_ext
5764 cat >>conftest.
$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5770 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5777 rm -f conftest.
$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try
='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_lo
=$ac_mid; break
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.
$ac_ext >&5
5794 ac_hi
=`expr '(' $ac_mid ')' - 1`
5795 if test $ac_mid -le $ac_hi; then
5799 ac_mid
=`expr 2 '*' $ac_mid`
5801 rm -f conftest.
$ac_objext conftest.
$ac_ext
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.
$ac_ext >&5
5809 rm -f conftest.
$ac_objext conftest.
$ac_ext
5811 rm -f conftest.
$ac_objext conftest.
$ac_ext
5812 # Binary search between lo and hi bounds.
5813 while test "x$ac_lo" != "x$ac_hi"; do
5814 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5815 cat >conftest.
$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5826 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5833 rm -f conftest.
$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try
='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.
$ac_ext >&5
5850 ac_lo
=`expr '(' $ac_mid ')' + 1`
5852 rm -f conftest.
$ac_objext conftest.
$ac_ext
5855 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5857 See \`config.log' for more details." >&5
5858 echo "$as_me: error: cannot compute sizeof (long), 77
5859 See \`config.log' for more details." >&2;}
5860 { (exit 1); exit 1; }; } ;;
5863 if test "$cross_compiling" = yes; then
5864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5865 See \`config.log' for more details." >&5
5866 echo "$as_me: error: cannot run test program while cross compiling
5867 See \`config.log' for more details." >&2;}
5868 { (exit 1); exit 1; }; }
5870 cat >conftest.
$ac_ext <<_ACEOF
5871 #line $LINENO "configure"
5874 cat confdefs.h
>>conftest.
$ac_ext
5875 cat >>conftest.
$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5878 long longval () { return (long) (sizeof (long)); }
5879 unsigned long ulongval () { return (long) (sizeof (long)); }
5886 FILE *f = fopen ("conftest.val", "w");
5889 if (((long) (sizeof (long))) < 0)
5891 long i = longval ();
5892 if (i != ((long) (sizeof (long))))
5894 fprintf (f, "%ld\n", i);
5898 unsigned long i = ulongval ();
5899 if (i != ((long) (sizeof (long))))
5901 fprintf (f, "%lu\n", i);
5903 exit (ferror (f) || fclose (f) != 0);
5909 rm -f conftest
$ac_exeext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5911 (eval $ac_link) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_sizeof_long
=`cat conftest.val`
5922 echo "$as_me: program exited with status $ac_status" >&5
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.
$ac_ext >&5
5927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5928 See \`config.log' for more details." >&5
5929 echo "$as_me: error: cannot compute sizeof (long), 77
5930 See \`config.log' for more details." >&2;}
5931 { (exit 1); exit 1; }; }
5933 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5941 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5942 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5943 cat >>confdefs.h
<<_ACEOF
5944 #define SIZEOF_LONG $ac_cv_sizeof_long
5948 echo "$as_me:$LINENO: checking for long long" >&5
5949 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5950 if test "${ac_cv_type_long_long+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 cat >conftest.
$ac_ext <<_ACEOF
5954 #line $LINENO "configure"
5957 cat confdefs.h
>>conftest.
$ac_ext
5958 cat >>conftest.
$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5964 if ((long long *) 0)
5966 if (sizeof (long long))
5972 rm -f conftest.
$ac_objext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try
='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_type_long_long
=yes
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.
$ac_ext >&5
5989 ac_cv_type_long_long
=no
5991 rm -f conftest.
$ac_objext conftest.
$ac_ext
5993 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5994 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5996 echo "$as_me:$LINENO: checking size of long long" >&5
5997 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5998 if test "${ac_cv_sizeof_long_long+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 if test "$ac_cv_type_long_long" = yes; then
6002 # The cast to unsigned long works around a bug in the HP C Compiler
6003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6005 # This bug is HP SR number 8606223364.
6006 if test "$cross_compiling" = yes; then
6007 # Depending upon the size, compute the lo and hi bounds.
6008 cat >conftest.
$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6012 cat confdefs.h
>>conftest.
$ac_ext
6013 cat >>conftest.
$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 $ac_includes_default
6019 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6026 rm -f conftest.
$ac_objext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028 (eval $ac_compile) 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try
='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6040 cat >conftest.
$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6044 cat confdefs.h
>>conftest.
$ac_ext
6045 cat >>conftest.
$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6051 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6058 rm -f conftest.
$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try
='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_hi
=$ac_mid; break
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.
$ac_ext >&5
6075 ac_lo
=`expr $ac_mid + 1`
6076 if test $ac_lo -le $ac_mid; then
6080 ac_mid
=`expr 2 '*' $ac_mid + 1`
6082 rm -f conftest.
$ac_objext conftest.
$ac_ext
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.
$ac_ext >&5
6088 cat >conftest.
$ac_ext <<_ACEOF
6089 #line $LINENO "configure"
6092 cat confdefs.h
>>conftest.
$ac_ext
6093 cat >>conftest.
$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6099 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6106 rm -f conftest.
$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try
='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6120 cat >conftest.
$ac_ext <<_ACEOF
6121 #line $LINENO "configure"
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6131 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6138 rm -f conftest.
$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try
='test -s conftest.$ac_objext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_lo
=$ac_mid; break
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.
$ac_ext >&5
6155 ac_hi
=`expr '(' $ac_mid ')' - 1`
6156 if test $ac_mid -le $ac_hi; then
6160 ac_mid
=`expr 2 '*' $ac_mid`
6162 rm -f conftest.
$ac_objext conftest.
$ac_ext
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6170 rm -f conftest.
$ac_objext conftest.
$ac_ext
6172 rm -f conftest.
$ac_objext conftest.
$ac_ext
6173 # Binary search between lo and hi bounds.
6174 while test "x$ac_lo" != "x$ac_hi"; do
6175 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6176 cat >conftest.
$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6180 cat confdefs.h
>>conftest.
$ac_ext
6181 cat >>conftest.
$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try
='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 ac_lo
=`expr '(' $ac_mid ')' + 1`
6213 rm -f conftest.
$ac_objext conftest.
$ac_ext
6216 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6218 See \`config.log' for more details." >&5
6219 echo "$as_me: error: cannot compute sizeof (long long), 77
6220 See \`config.log' for more details." >&2;}
6221 { (exit 1); exit 1; }; } ;;
6224 if test "$cross_compiling" = yes; then
6225 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6226 See \`config.log' for more details." >&5
6227 echo "$as_me: error: cannot run test program while cross compiling
6228 See \`config.log' for more details." >&2;}
6229 { (exit 1); exit 1; }; }
6231 cat >conftest.
$ac_ext <<_ACEOF
6232 #line $LINENO "configure"
6235 cat confdefs.h
>>conftest.
$ac_ext
6236 cat >>conftest.
$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6239 long longval () { return (long) (sizeof (long long)); }
6240 unsigned long ulongval () { return (long) (sizeof (long long)); }
6247 FILE *f = fopen ("conftest.val", "w");
6250 if (((long) (sizeof (long long))) < 0)
6252 long i = longval ();
6253 if (i != ((long) (sizeof (long long))))
6255 fprintf (f, "%ld\n", i);
6259 unsigned long i = ulongval ();
6260 if (i != ((long) (sizeof (long long))))
6262 fprintf (f, "%lu\n", i);
6264 exit (ferror (f) || fclose (f) != 0);
6270 rm -f conftest
$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_sizeof_long_long
=`cat conftest.val`
6283 echo "$as_me: program exited with status $ac_status" >&5
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.
$ac_ext >&5
6288 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6289 See \`config.log' for more details." >&5
6290 echo "$as_me: error: cannot compute sizeof (long long), 77
6291 See \`config.log' for more details." >&2;}
6292 { (exit 1); exit 1; }; }
6294 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6299 ac_cv_sizeof_long_long
=0
6302 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6303 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6304 cat >>confdefs.h
<<_ACEOF
6305 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6312 echo "$as_me:$LINENO: checking for addrinfo" >&5
6313 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6314 if test "${ac_cv_addrinfo+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.
$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6321 cat confdefs.h
>>conftest.
$ac_ext
6322 cat >>conftest.
$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6334 rm -f conftest.
$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try
='test -s conftest.$ac_objext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.
$ac_ext >&5
6353 rm -f conftest.
$ac_objext conftest.
$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6357 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6358 if test $ac_cv_addrinfo = yes; then
6359 cat >>confdefs.h
<<\_ACEOF
6360 #define HAVE_ADDRINFO 1
6364 cat >>confdefs.h
<<\_ACEOF
6365 #define NEED_ADDRINFO_H 1
6370 if test "$ac_cv_addrinfo" = no
; then
6371 missing_includes
=yes
6375 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6376 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6377 if test "${ac_cv_maxserv+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.
$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6384 cat confdefs.h
>>conftest.
$ac_ext
6385 cat >>conftest.
$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6393 $EGREP "yes" >/dev
/null
2>&1; then
6402 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6403 echo "${ECHO_T}$ac_cv_maxserv" >&6
6404 if test $ac_cv_maxserv != yes; then
6405 cat >>confdefs.h
<<\_ACEOF
6406 #define NEED_ADDRINFO_H 1
6411 if test "$ac_cv_maxserv" = no
; then
6412 missing_includes
=yes
6416 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6417 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6418 if test "${ac_cv_namereqd+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 cat >conftest.
$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6425 cat confdefs.h
>>conftest.
$ac_ext
6426 cat >>conftest.
$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6434 $EGREP "yes" >/dev
/null
2>&1; then
6443 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6444 echo "${ECHO_T}$ac_cv_namereqd" >&6
6445 if test $ac_cv_namereqd != yes; then
6446 cat >>confdefs.h
<<\_ACEOF
6447 #define NEED_ADDRINFO_H 1
6452 if test "$ac_cv_namereqd" = no
; then
6453 missing_includes
=yes
6457 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6458 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6459 if test "${ac_cv_sa_storage+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 cat >conftest.
$ac_ext <<_ACEOF
6463 #line $LINENO "configure"
6466 cat confdefs.h
>>conftest.
$ac_ext
6467 cat >>conftest.
$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6470 # include <sys/types.h>
6471 # include <sys/socket.h>
6475 struct sockaddr_storage s
6480 rm -f conftest.
$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try
='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_sa_storage
=yes
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.
$ac_ext >&5
6499 rm -f conftest.
$ac_objext conftest.
$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6503 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6504 if test $ac_cv_sa_storage = yes; then
6505 cat >>confdefs.h
<<\_ACEOF
6506 #define HAVE_SOCKADDR_STORAGE 1
6511 if test "$ac_cv_sa_storage" = no
; then
6512 missing_includes
=yes
6517 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6518 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6519 if test "${ac_cv_inaddrsz+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.
$ac_ext <<_ACEOF
6523 #line $LINENO "configure"
6526 cat confdefs.h
>>conftest.
$ac_ext
6527 cat >>conftest.
$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6530 # include <arpa/nameser.h>
6539 rm -f conftest.
$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try
='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.
$ac_ext >&5
6558 rm -f conftest.
$ac_objext conftest.
$ac_ext
6561 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6562 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6563 if test $ac_cv_inaddrsz = yes; then
6564 cat >>confdefs.h
<<\_ACEOF
6565 #define HAVE_INADDRSZ 1
6571 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6572 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6573 if test "${ac_cv_in6addrsz+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.
$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6580 cat confdefs.h
>>conftest.
$ac_ext
6581 cat >>conftest.
$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6584 # include <arpa/nameser.h>
6593 rm -f conftest.
$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try
='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.
$ac_ext >&5
6612 rm -f conftest.
$ac_objext conftest.
$ac_ext
6615 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6616 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6617 if test $ac_cv_in6addrsz = yes; then
6618 cat >>confdefs.h
<<\_ACEOF
6619 #define HAVE_IN6ADDRSZ 1
6626 if test "$ac_cv_addrsz" = no
; then
6627 missing_includes
=yes
6631 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6632 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6633 if test "${ac_cv_res_inet6+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 cat >conftest.
$ac_ext <<_ACEOF
6637 #line $LINENO "configure"
6640 cat confdefs.h
>>conftest.
$ac_ext
6641 cat >>conftest.
$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6644 # include <sys/types.h>
6645 # include <netinet/in.h>
6646 # include <resolv.h>
6650 int a = RES_USE_INET6
6655 rm -f conftest.
$ac_objext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657 (eval $ac_compile) 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try
='test -s conftest.$ac_objext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.
$ac_ext >&5
6674 rm -f conftest.
$ac_objext conftest.
$ac_ext
6677 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6678 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6679 if test $ac_cv_res_inet6 = yes; then
6680 cat >>confdefs.h
<<\_ACEOF
6681 #define HAVE_RES_USE_INET6 1
6686 if test "$ac_cv_res_inet6" = no
; then
6687 missing_includes
=yes
6691 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6692 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6693 if test "${ac_cv_res_state_ext+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.
$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6700 cat confdefs.h
>>conftest.
$ac_ext
6701 cat >>conftest.
$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6704 # include <sys/types.h>
6705 # include <netinet/in.h>
6706 # include <netinet6/in6.h>
6707 # include <resolv.h>
6711 struct __res_state_ext e
6716 rm -f conftest.
$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try
='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_res_state_ext
=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.
$ac_ext >&5
6733 ac_cv_res_state_ext
=no
6735 rm -f conftest.
$ac_objext conftest.
$ac_ext
6738 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6739 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6740 if test $ac_cv_res_state_ext = yes; then
6741 cat >>confdefs.h
<<\_ACEOF
6742 #define HAVE_RES_STATE_EXT 1
6747 if test "$ac_cv_res_state_ext" = no
; then
6748 missing_includes
=yes
6752 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6753 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6754 if test "${ac_cv_res_state+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 cat >conftest.
$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6761 cat confdefs.h
>>conftest.
$ac_ext
6762 cat >>conftest.
$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6765 # include <sys/types.h>
6766 # include <netinet/in.h>
6767 # include <netinet6/in6.h>
6768 # include <resolv.h>
6772 struct __res_state e; e.nsort = 0
6777 rm -f conftest.
$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try
='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.
$ac_ext >&5
6796 rm -f conftest.
$ac_objext conftest.
$ac_ext
6799 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6800 echo "${ECHO_T}$ac_cv_res_state" >&6
6801 if test $ac_cv_res_state = yes; then
6802 cat >>confdefs.h
<<\_ACEOF
6803 #define HAVE_NEW_RES_STATE 1
6816 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6818 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6819 echo "$as_me:$LINENO: checking for $ac_func" >&5
6820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6821 if eval "test \"\${$as_ac_var+set}\" = set"; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 cat >conftest.
$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6828 cat confdefs.h
>>conftest.
$ac_ext
6829 cat >>conftest.
$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func (); below.
6833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 <limits.h> exists even on freestanding compilers. */
6836 # include <limits.h>
6838 # include <assert.h>
6840 /* Override any gcc2 internal prototype to avoid an error. */
6845 /* We use char because int might match the return type of a gcc2
6846 builtin and then its argument prototype would still apply. */
6848 /* The GNU C library defines this for functions which it implements
6849 to always fail with ENOSYS. Some functions are actually named
6850 something starting with __ and the normal name is an alias. */
6851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854 char (*f) () = $ac_func;
6863 return f != $ac_func;
6868 rm -f conftest.
$ac_objext conftest
$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try
='test -s conftest$ac_exeext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 eval "$as_ac_var=yes"
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.
$ac_ext >&5
6885 eval "$as_ac_var=no"
6887 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6891 if test `eval echo '${'$as_ac_var'}'` = yes; then
6892 cat >>confdefs.h
<<_ACEOF
6893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6897 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6903 for ac_func
in strftime
6905 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6906 echo "$as_me:$LINENO: checking for $ac_func" >&5
6907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_var+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 cat >conftest.
$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6915 cat confdefs.h
>>conftest.
$ac_ext
6916 cat >>conftest.
$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char $ac_func (); below.
6920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 <limits.h> exists even on freestanding compilers. */
6923 # include <limits.h>
6925 # include <assert.h>
6927 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6935 /* The GNU C library defines this for functions which it implements
6936 to always fail with ENOSYS. Some functions are actually named
6937 something starting with __ and the normal name is an alias. */
6938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6941 char (*f) () = $ac_func;
6950 return f != $ac_func;
6955 rm -f conftest.
$ac_objext conftest
$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try
='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 eval "$as_ac_var=yes"
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.
$ac_ext >&5
6972 eval "$as_ac_var=no"
6974 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6978 if test `eval echo '${'$as_ac_var'}'` = yes; then
6979 cat >>confdefs.h
<<_ACEOF
6980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6988 # You are in a twisty little maze of UN*Xes, all different.
6989 # Some might not have ether_ntohost().
6990 # Some might have it, but not declare it in any header file.
6991 # Some might have it, but declare it in <netinet/if_ether.h>.
6992 # Some might have it, but declare it in <netinet/ether.h>
6993 # (And some might have it but document it as something declared in
6994 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6996 # Before you is a C compiler.
6999 for ac_func
in ether_ntohost
7001 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7002 echo "$as_me:$LINENO: checking for $ac_func" >&5
7003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7004 if eval "test \"\${$as_ac_var+set}\" = set"; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 cat >conftest.
$ac_ext <<_ACEOF
7008 #line $LINENO "configure"
7011 cat confdefs.h
>>conftest.
$ac_ext
7012 cat >>conftest.
$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 /* System header to define __stub macros and hopefully few prototypes,
7015 which can conflict with char $ac_func (); below.
7016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017 <limits.h> exists even on freestanding compilers. */
7019 # include <limits.h>
7021 # include <assert.h>
7023 /* Override any gcc2 internal prototype to avoid an error. */
7028 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */
7031 /* The GNU C library defines this for functions which it implements
7032 to always fail with ENOSYS. Some functions are actually named
7033 something starting with __ and the normal name is an alias. */
7034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7037 char (*f) () = $ac_func;
7046 return f != $ac_func;
7051 rm -f conftest.
$ac_objext conftest
$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try
='test -s conftest$ac_exeext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 eval "$as_ac_var=yes"
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.
$ac_ext >&5
7068 eval "$as_ac_var=no"
7070 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7074 if test `eval echo '${'$as_ac_var'}'` = yes; then
7075 cat >>confdefs.h
<<_ACEOF
7076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7079 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
7080 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
7081 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 if test "$cross_compiling" = yes; then
7086 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
7088 cat >conftest.
$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7092 cat confdefs.h
>>conftest.
$ac_ext
7093 cat >>conftest.
$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 #include <sys/param.h>
7099 #include <sys/socket.h>
7102 main(int argc, char **argv)
7104 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
7105 char name[MAXHOSTNAMELEN];
7107 ether_ntohost(name, (struct ether_addr *)ea);
7112 rm -f conftest
$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_buggy_ether_ntohost
=no
7125 echo "$as_me: program exited with status $ac_status" >&5
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.
$ac_ext >&5
7130 ac_cv_buggy_ether_ntohost
=yes
7132 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
7136 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
7137 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
7138 cat >>confdefs.h
<<\_ACEOF
7139 #define USE_ETHER_NTOHOST 1
7147 if test "$ac_cv_func_ether_ntohost" = yes; then
7149 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
7151 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
7153 # Yes. Does it declare ether_ntohost()?
7155 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
7156 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
7157 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 cat >conftest.
$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7164 cat confdefs.h
>>conftest.
$ac_ext
7165 cat >>conftest.
$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7168 #include <sys/types.h>
7169 #include <sys/socket.h>
7170 #include <netinet/in.h>
7174 #include <netinet/if_ether.h>
7180 #ifndef ether_ntohost
7181 char *p = (char *) ether_ntohost;
7188 rm -f conftest.
$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try
='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_have_decl_ether_ntohost
=yes
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.
$ac_ext >&5
7205 ac_cv_have_decl_ether_ntohost
=no
7207 rm -f conftest.
$ac_objext conftest.
$ac_ext
7209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
7210 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
7211 if test $ac_cv_have_decl_ether_ntohost = yes; then
7213 cat >>confdefs.h
<<_ACEOF
7214 #define HAVE_DECL_ETHER_NTOHOST 1
7219 cat >>confdefs.h
<<\_ACEOF
7220 #define NETINET_IF_ETHER_H_DECLARES_ETHER_ntohost
7225 cat >>confdefs.h
<<_ACEOF
7226 #define HAVE_DECL_ETHER_NTOHOST 0
7237 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
7239 # No, how about <netinet/ether.h>, as on Linux?
7242 for ac_header
in netinet
/ether.h
7244 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254 # Is the header compilable?
7255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257 cat >conftest.
$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7261 cat confdefs.h
>>conftest.
$ac_ext
7262 cat >>conftest.
$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7265 #include <$ac_header>
7267 rm -f conftest.
$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try
='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_header_compiler
=yes
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.
$ac_ext >&5
7284 ac_header_compiler
=no
7286 rm -f conftest.
$ac_objext conftest.
$ac_ext
7287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7288 echo "${ECHO_T}$ac_header_compiler" >&6
7290 # Is the header present?
7291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7293 cat >conftest.
$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7297 cat confdefs.h
>>conftest.
$ac_ext
7298 cat >>conftest.
$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <$ac_header>
7302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7305 grep -v '^ *+' conftest.er1
>conftest.err
7307 cat conftest.err
>&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } >/dev
/null
; then
7310 if test -s conftest.err
; then
7311 ac_cpp_err
=$ac_c_preproc_warn_flag
7318 if test -z "$ac_cpp_err"; then
7319 ac_header_preproc
=yes
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.
$ac_ext >&5
7324 ac_header_preproc
=no
7326 rm -f conftest.err conftest.
$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7328 echo "${ECHO_T}$ac_header_preproc" >&6
7330 # So? What about this header?
7331 case $ac_header_compiler:$ac_header_preproc in
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7339 ## ------------------------------------ ##
7340 ## Report this to bug-autoconf@gnu.org. ##
7341 ## ------------------------------------ ##
7344 sed "s/^/$as_me: WARNING: /" >&2
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7355 ## ------------------------------------ ##
7356 ## Report this to bug-autoconf@gnu.org. ##
7357 ## ------------------------------------ ##
7360 sed "s/^/$as_me: WARNING: /" >&2
7363 echo "$as_me:$LINENO: checking for $ac_header" >&5
7364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 eval "$as_ac_Header=$ac_header_preproc"
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7375 cat >>confdefs.h
<<_ACEOF
7376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 if test "$ac_cv_header_netinet_ether_h" = yes; then
7385 # We have it - does it declare ether_ntohost()?
7386 # Unset ac_cv_have_decl_ether_ntohost so we don't
7387 # treat the previous failure as a cached value and
7388 # suppress the next test.
7390 unset ac_cv_have_decl_ether_ntohost
7391 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
7392 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
7393 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 cat >conftest.
$ac_ext <<_ACEOF
7397 #line $LINENO "configure"
7400 cat confdefs.h
>>conftest.
$ac_ext
7401 cat >>conftest.
$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7404 #include <netinet/ether.h>
7410 #ifndef ether_ntohost
7411 char *p = (char *) ether_ntohost;
7418 rm -f conftest.
$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try
='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_cv_have_decl_ether_ntohost
=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.
$ac_ext >&5
7435 ac_cv_have_decl_ether_ntohost
=no
7437 rm -f conftest.
$ac_objext conftest.
$ac_ext
7439 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
7440 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
7441 if test $ac_cv_have_decl_ether_ntohost = yes; then
7443 cat >>confdefs.h
<<_ACEOF
7444 #define HAVE_DECL_ETHER_NTOHOST 1
7449 cat >>confdefs.h
<<\_ACEOF
7450 #define NETINET_ETHER_H_DECLARES_ETHER_ntohost
7455 cat >>confdefs.h
<<_ACEOF
7456 #define HAVE_DECL_ETHER_NTOHOST 0
7469 for ac_func
in setlinebuf alarm
7471 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7472 echo "$as_me:$LINENO: checking for $ac_func" >&5
7473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7474 if eval "test \"\${$as_ac_var+set}\" = set"; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 cat >conftest.
$ac_ext <<_ACEOF
7478 #line $LINENO "configure"
7481 cat confdefs.h
>>conftest.
$ac_ext
7482 cat >>conftest.
$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func (); below.
7486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7487 <limits.h> exists even on freestanding compilers. */
7489 # include <limits.h>
7491 # include <assert.h>
7493 /* Override any gcc2 internal prototype to avoid an error. */
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7501 /* The GNU C library defines this for functions which it implements
7502 to always fail with ENOSYS. Some functions are actually named
7503 something starting with __ and the normal name is an alias. */
7504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7507 char (*f) () = $ac_func;
7516 return f != $ac_func;
7521 rm -f conftest.
$ac_objext conftest
$ac_exeext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7523 (eval $ac_link) 2>&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try
='test -s conftest$ac_exeext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 eval "$as_ac_var=yes"
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.
$ac_ext >&5
7538 eval "$as_ac_var=no"
7540 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7544 if test `eval echo '${'$as_ac_var'}'` = yes; then
7545 cat >>confdefs.h
<<_ACEOF
7546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7556 for ac_func
in vsnprintf snprintf
7558 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7559 echo "$as_me:$LINENO: checking for $ac_func" >&5
7560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7561 if eval "test \"\${$as_ac_var+set}\" = set"; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 cat >conftest.
$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7568 cat confdefs.h
>>conftest.
$ac_ext
7569 cat >>conftest.
$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 /* System header to define __stub macros and hopefully few prototypes,
7572 which can conflict with char $ac_func (); below.
7573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7574 <limits.h> exists even on freestanding compilers. */
7576 # include <limits.h>
7578 # include <assert.h>
7580 /* Override any gcc2 internal prototype to avoid an error. */
7585 /* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7588 /* The GNU C library defines this for functions which it implements
7589 to always fail with ENOSYS. Some functions are actually named
7590 something starting with __ and the normal name is an alias. */
7591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7594 char (*f) () = $ac_func;
7603 return f != $ac_func;
7608 rm -f conftest.
$ac_objext conftest
$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try
='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 eval "$as_ac_var=yes"
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.
$ac_ext >&5
7625 eval "$as_ac_var=no"
7627 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7631 if test `eval echo '${'$as_ac_var'}'` = yes; then
7632 cat >>confdefs.h
<<_ACEOF
7633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7641 if test $needsnprintf = yes; then
7642 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
7646 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7647 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7648 if test "${ac_cv_type_signal+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 cat >conftest.
$ac_ext <<_ACEOF
7652 #line $LINENO "configure"
7655 cat confdefs.h
>>conftest.
$ac_ext
7656 cat >>conftest.
$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <sys/types.h>
7664 extern "C" void (*signal (int, void (*)(int)))(int);
7666 void (*signal ()) ();
7677 rm -f conftest.
$ac_objext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try
='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_type_signal
=void
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.
$ac_ext >&5
7694 ac_cv_type_signal
=int
7696 rm -f conftest.
$ac_objext conftest.
$ac_ext
7698 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7699 echo "${ECHO_T}$ac_cv_type_signal" >&6
7701 cat >>confdefs.h
<<_ACEOF
7702 #define RETSIGTYPE $ac_cv_type_signal
7706 if test "$ac_cv_type_signal" = void
; then
7707 cat >>confdefs.h
<<\_ACEOF
7712 cat >>confdefs.h
<<\_ACEOF
7713 #define RETSIGVAL (0)
7720 cat >>confdefs.h
<<\_ACEOF
7721 #define _BSD_SIGNALS 1
7728 for ac_func
in sigaction
7730 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7731 echo "$as_me:$LINENO: checking for $ac_func" >&5
7732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7733 if eval "test \"\${$as_ac_var+set}\" = set"; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 cat >conftest.
$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7740 cat confdefs.h
>>conftest.
$ac_ext
7741 cat >>conftest.
$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 /* System header to define __stub macros and hopefully few prototypes,
7744 which can conflict with char $ac_func (); below.
7745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746 <limits.h> exists even on freestanding compilers. */
7748 # include <limits.h>
7750 # include <assert.h>
7752 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7766 char (*f) () = $ac_func;
7775 return f != $ac_func;
7780 rm -f conftest.
$ac_objext conftest
$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try
='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 eval "$as_ac_var=yes"
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.
$ac_ext >&5
7797 eval "$as_ac_var=no"
7799 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7803 if test `eval echo '${'$as_ac_var'}'` = yes; then
7804 cat >>confdefs.h
<<_ACEOF
7805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7811 if test $ac_cv_func_sigaction = no
; then
7813 for ac_func
in sigset
7815 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7816 echo "$as_me:$LINENO: checking for $ac_func" >&5
7817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7818 if eval "test \"\${$as_ac_var+set}\" = set"; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 cat >conftest.
$ac_ext <<_ACEOF
7822 #line $LINENO "configure"
7825 cat confdefs.h
>>conftest.
$ac_ext
7826 cat >>conftest.
$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 /* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char $ac_func (); below.
7830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7831 <limits.h> exists even on freestanding compilers. */
7833 # include <limits.h>
7835 # include <assert.h>
7837 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7845 /* The GNU C library defines this for functions which it implements
7846 to always fail with ENOSYS. Some functions are actually named
7847 something starting with __ and the normal name is an alias. */
7848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7851 char (*f) () = $ac_func;
7860 return f != $ac_func;
7865 rm -f conftest.
$ac_objext conftest
$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try
='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 eval "$as_ac_var=yes"
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.
$ac_ext >&5
7882 eval "$as_ac_var=no"
7884 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7888 if test `eval echo '${'$as_ac_var'}'` = yes; then
7889 cat >>confdefs.h
<<_ACEOF
7890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7900 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7901 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7902 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 ac_func_search_save_LIBS
=$LIBS
7906 ac_cv_search_dnet_htoa
=no
7907 cat >conftest.
$ac_ext <<_ACEOF
7908 #line $LINENO "configure"
7911 cat confdefs.h
>>conftest.
$ac_ext
7912 cat >>conftest.
$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7915 /* Override any gcc2 internal prototype to avoid an error. */
7919 /* We use char because int might match the return type of a gcc2
7920 builtin and then its argument prototype would still apply. */
7930 rm -f conftest.
$ac_objext conftest
$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932 (eval $ac_link) 2>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try
='test -s conftest$ac_exeext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_search_dnet_htoa
="none required"
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.
$ac_ext >&5
7948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7949 if test "$ac_cv_search_dnet_htoa" = no
; then
7950 for ac_lib
in dnet
; do
7951 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7952 cat >conftest.
$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7956 cat confdefs.h
>>conftest.
$ac_ext
7957 cat >>conftest.
$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7960 /* Override any gcc2 internal prototype to avoid an error. */
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7975 rm -f conftest.
$ac_objext conftest
$ac_exeext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977 (eval $ac_link) 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try
='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_search_dnet_htoa
="-l$ac_lib"
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.
$ac_ext >&5
7994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7997 LIBS
=$ac_func_search_save_LIBS
7999 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8000 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8001 if test "$ac_cv_search_dnet_htoa" != no
; then
8002 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
8003 cat >>confdefs.h
<<\_ACEOF
8004 #define HAVE_DNET_HTOA 1
8011 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8012 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8013 if test "${ac_cv_lib_rpc_main+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_check_lib_save_LIBS
=$LIBS
8018 cat >conftest.
$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8022 cat confdefs.h
>>conftest.
$ac_ext
8023 cat >>conftest.
$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8035 rm -f conftest.
$ac_objext conftest
$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try
='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_lib_rpc_main
=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8052 ac_cv_lib_rpc_main
=no
8054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8055 LIBS
=$ac_check_lib_save_LIBS
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8058 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8059 if test $ac_cv_lib_rpc_main = yes; then
8060 cat >>confdefs.h
<<_ACEOF
8061 #define HAVE_LIBRPC 1
8068 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8069 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8070 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 ac_func_search_save_LIBS
=$LIBS
8074 ac_cv_search_getrpcbynumber
=no
8075 cat >conftest.
$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8079 cat confdefs.h
>>conftest.
$ac_ext
8080 cat >>conftest.
$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8083 /* Override any gcc2 internal prototype to avoid an error. */
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8089 char getrpcbynumber ();
8098 rm -f conftest.
$ac_objext conftest
$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try
='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_search_getrpcbynumber
="none required"
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.
$ac_ext >&5
8116 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8117 if test "$ac_cv_search_getrpcbynumber" = no
; then
8118 for ac_lib
in nsl
; do
8119 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8120 cat >conftest.
$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8124 cat confdefs.h
>>conftest.
$ac_ext
8125 cat >>conftest.
$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8128 /* Override any gcc2 internal prototype to avoid an error. */
8132 /* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8134 char getrpcbynumber ();
8143 rm -f conftest.
$ac_objext conftest
$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try
='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_search_getrpcbynumber
="-l$ac_lib"
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.
$ac_ext >&5
8162 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8165 LIBS
=$ac_func_search_save_LIBS
8167 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8168 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8169 if test "$ac_cv_search_getrpcbynumber" != no
; then
8170 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
8171 cat >>confdefs.h
<<\_ACEOF
8172 #define HAVE_GETRPCBYNUMBER 1
8180 # Most operating systems have gethostbyname() in the default searched
8181 # libraries (i.e. libc):
8182 # Some OSes (eg. Solaris) place it in libnsl
8183 # Some strange OSes (SINIX) have it in libsocket:
8184 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8185 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8186 if test "${ac_cv_search_gethostbyname+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_func_search_save_LIBS
=$LIBS
8190 ac_cv_search_gethostbyname
=no
8191 cat >conftest.
$ac_ext <<_ACEOF
8192 #line $LINENO "configure"
8195 cat confdefs.h
>>conftest.
$ac_ext
8196 cat >>conftest.
$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8199 /* Override any gcc2 internal prototype to avoid an error. */
8203 /* We use char because int might match the return type of a gcc2
8204 builtin and then its argument prototype would still apply. */
8205 char gethostbyname ();
8214 rm -f conftest.
$ac_objext conftest
$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try
='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_search_gethostbyname
="none required"
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.
$ac_ext >&5
8232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8233 if test "$ac_cv_search_gethostbyname" = no
; then
8234 for ac_lib
in nsl socket resolv
; do
8235 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8236 cat >conftest.
$ac_ext <<_ACEOF
8237 #line $LINENO "configure"
8240 cat confdefs.h
>>conftest.
$ac_ext
8241 cat >>conftest.
$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8244 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8250 char gethostbyname ();
8259 rm -f conftest.
$ac_objext conftest
$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try
='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_search_gethostbyname
="-l$ac_lib"
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.
$ac_ext >&5
8278 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8281 LIBS
=$ac_func_search_save_LIBS
8283 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8284 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8285 if test "$ac_cv_search_gethostbyname" != no
; then
8286 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
8290 # Unfortunately libsocket sometimes depends on libnsl and
8291 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8292 if test "$ac_cv_search_gethostbyname" = "no"
8294 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8295 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8296 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 ac_check_lib_save_LIBS
=$LIBS
8300 LIBS
="-lsocket -lnsl $LIBS"
8301 cat >conftest.
$ac_ext <<_ACEOF
8302 #line $LINENO "configure"
8305 cat confdefs.h
>>conftest.
$ac_ext
8306 cat >>conftest.
$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8309 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8315 char gethostbyname ();
8324 rm -f conftest.
$ac_objext conftest
$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try
='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_cv_lib_socket_gethostbyname
=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.
$ac_ext >&5
8341 ac_cv_lib_socket_gethostbyname
=no
8343 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8344 LIBS
=$ac_check_lib_save_LIBS
8346 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8347 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8348 if test $ac_cv_lib_socket_gethostbyname = yes; then
8349 LIBS
="-lsocket -lnsl $LIBS"
8353 echo "$as_me:$LINENO: checking for library containing socket" >&5
8354 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8355 if test "${ac_cv_search_socket+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_func_search_save_LIBS
=$LIBS
8359 ac_cv_search_socket
=no
8360 cat >conftest.
$ac_ext <<_ACEOF
8361 #line $LINENO "configure"
8364 cat confdefs.h
>>conftest.
$ac_ext
8365 cat >>conftest.
$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8368 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8383 rm -f conftest.
$ac_objext conftest
$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try
='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_search_socket
="none required"
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.
$ac_ext >&5
8401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8402 if test "$ac_cv_search_socket" = no
; then
8403 for ac_lib
in socket
; do
8404 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8405 cat >conftest.
$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8409 cat confdefs.h
>>conftest.
$ac_ext
8410 cat >>conftest.
$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8413 /* Override any gcc2 internal prototype to avoid an error. */
8417 /* We use char because int might match the return type of a gcc2
8418 builtin and then its argument prototype would still apply. */
8428 rm -f conftest.
$ac_objext conftest
$ac_exeext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8430 (eval $ac_link) 2>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try
='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 ac_cv_search_socket
="-l$ac_lib"
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.
$ac_ext >&5
8447 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8450 LIBS
=$ac_func_search_save_LIBS
8452 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8453 echo "${ECHO_T}$ac_cv_search_socket" >&6
8454 if test "$ac_cv_search_socket" != no
; then
8455 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
8458 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8459 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8460 if test "${ac_cv_lib_socket_socket+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 ac_check_lib_save_LIBS
=$LIBS
8464 LIBS
="-lsocket -lnsl $LIBS"
8465 cat >conftest.
$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8469 cat confdefs.h
>>conftest.
$ac_ext
8470 cat >>conftest.
$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8488 rm -f conftest.
$ac_objext conftest
$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try
='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_lib_socket_socket
=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.
$ac_ext >&5
8505 ac_cv_lib_socket_socket
=no
8507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8508 LIBS
=$ac_check_lib_save_LIBS
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8511 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8512 if test $ac_cv_lib_socket_socket = yes; then
8513 LIBS
="-lsocket -lnsl $LIBS"
8518 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8519 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8520 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8521 if test "${ac_cv_search_putmsg+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_func_search_save_LIBS
=$LIBS
8525 ac_cv_search_putmsg
=no
8526 cat >conftest.
$ac_ext <<_ACEOF
8527 #line $LINENO "configure"
8530 cat confdefs.h
>>conftest.
$ac_ext
8531 cat >>conftest.
$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8534 /* Override any gcc2 internal prototype to avoid an error. */
8538 /* We use char because int might match the return type of a gcc2
8539 builtin and then its argument prototype would still apply. */
8549 rm -f conftest.
$ac_objext conftest
$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try
='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_search_putmsg
="none required"
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.
$ac_ext >&5
8567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8568 if test "$ac_cv_search_putmsg" = no
; then
8569 for ac_lib
in str
; do
8570 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8571 cat >conftest.
$ac_ext <<_ACEOF
8572 #line $LINENO "configure"
8575 cat confdefs.h
>>conftest.
$ac_ext
8576 cat >>conftest.
$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8594 rm -f conftest.
$ac_objext conftest
$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try
='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_search_putmsg
="-l$ac_lib"
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.
$ac_ext >&5
8613 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8616 LIBS
=$ac_func_search_save_LIBS
8618 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8619 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8620 if test "$ac_cv_search_putmsg" != no
; then
8621 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
8628 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
8629 if test -f $pfopen ; then
8631 for ac_func
in pfopen
8633 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8634 echo "$as_me:$LINENO: checking for $ac_func" >&5
8635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8636 if eval "test \"\${$as_ac_var+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 cat >conftest.
$ac_ext <<_ACEOF
8640 #line $LINENO "configure"
8643 cat confdefs.h
>>conftest.
$ac_ext
8644 cat >>conftest.
$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 /* System header to define __stub macros and hopefully few prototypes,
8647 which can conflict with char $ac_func (); below.
8648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8649 <limits.h> exists even on freestanding compilers. */
8651 # include <limits.h>
8653 # include <assert.h>
8655 /* Override any gcc2 internal prototype to avoid an error. */
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8663 /* The GNU C library defines this for functions which it implements
8664 to always fail with ENOSYS. Some functions are actually named
8665 something starting with __ and the normal name is an alias. */
8666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8669 char (*f) () = $ac_func;
8678 return f != $ac_func;
8683 rm -f conftest.
$ac_objext conftest
$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try
='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 eval "$as_ac_var=yes"
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.
$ac_ext >&5
8700 eval "$as_ac_var=no"
8702 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8706 if test `eval echo '${'$as_ac_var'}'` = yes; then
8707 cat >>confdefs.h
<<_ACEOF
8708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8714 if test $ac_cv_func_pfopen = "no" ; then
8715 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8716 echo "${ECHO_T}Using $pfopen" >&6
8717 LIBS
="$LIBS $pfopen"
8720 echo "$as_me:$LINENO: checking for local pcap library" >&5
8721 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8724 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8725 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8726 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
8727 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8728 if test $lastdir = $basedir ; then
8732 if test -r $dir/libpcap.a
; then
8733 libpcap
=$dir/libpcap.a
8737 if test $libpcap = FAIL
; then
8738 echo "$as_me:$LINENO: result: not found" >&5
8739 echo "${ECHO_T}not found" >&6
8740 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8741 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8742 if test "${ac_cv_lib_pcap_main+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 ac_check_lib_save_LIBS
=$LIBS
8747 cat >conftest.
$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8751 cat confdefs.h
>>conftest.
$ac_ext
8752 cat >>conftest.
$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8764 rm -f conftest.
$ac_objext conftest
$ac_exeext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766 (eval $ac_link) 2>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try
='test -s conftest$ac_exeext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_lib_pcap_main
=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.
$ac_ext >&5
8781 ac_cv_lib_pcap_main
=no
8783 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8784 LIBS
=$ac_check_lib_save_LIBS
8786 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8787 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8788 if test $ac_cv_lib_pcap_main = yes; then
8792 if test $libpcap = FAIL
; then
8793 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8794 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8795 { (exit 1); exit 1; }; }
8797 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8798 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8799 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
8800 \
( ! -r /usr
/include
/pcap.h \
); then
8801 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
8802 d
="/usr/local/include/pcap"
8803 elif test -r /usr
/include
/pcap
/pcap.h
; then
8804 d
="/usr/include/pcap"
8807 if test -z "$d" ; then
8808 echo "$as_me:$LINENO: result: not found" >&5
8809 echo "${ECHO_T}not found" >&6
8811 V_INCLS
="-I$d $V_INCLS"
8812 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8813 echo "${ECHO_T}found -- -I$d added" >&6
8817 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8818 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8819 if test -r $d/pcap.h
; then
8820 V_INCLS
="-I$d $V_INCLS"
8821 elif test -r $places/pcap.h
; then
8822 V_INCLS
="-I$places $V_INCLS"
8824 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8825 echo "$as_me: error: cannot find pcap.h" >&2;}
8826 { (exit see INSTALL
); exit see INSTALL
; }; }
8828 echo "$as_me:$LINENO: result: $libpcap" >&5
8829 echo "${ECHO_T}$libpcap" >&6
8831 LIBS
="$libpcap $LIBS"
8835 pseexe
="/lib/pse.exp"
8836 echo "$as_me:$LINENO: checking for $pseexe" >&5
8837 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8838 if test -f $pseexe ; then
8839 echo "$as_me:$LINENO: result: yes" >&5
8840 echo "${ECHO_T}yes" >&6
8841 LIBS
="$LIBS -I:$pseexe"
8844 # We need "-lodm" and "-lcfg", as libpcap requires them on
8845 # AIX, and we just build a static libpcap.a and thus can't
8846 # arrange that when you link with libpcap you automatically
8847 # link with those libraries.
8849 LIBS
="$LIBS -lodm -lcfg"
8853 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8854 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8855 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 cat >conftest.
$ac_ext <<_ACEOF
8859 #line $LINENO "configure"
8862 cat confdefs.h
>>conftest.
$ac_ext
8863 cat >>conftest.
$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 /* System header to define __stub macros and hopefully few prototypes,
8866 which can conflict with char pcap_list_datalinks (); below.
8867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8868 <limits.h> exists even on freestanding compilers. */
8870 # include <limits.h>
8872 # include <assert.h>
8874 /* Override any gcc2 internal prototype to avoid an error. */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char pcap_list_datalinks ();
8882 /* The GNU C library defines this for functions which it implements
8883 to always fail with ENOSYS. Some functions are actually named
8884 something starting with __ and the normal name is an alias. */
8885 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8888 char (*f) () = pcap_list_datalinks;
8897 return f != pcap_list_datalinks;
8902 rm -f conftest.
$ac_objext conftest
$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try
='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_func_pcap_list_datalinks
=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.
$ac_ext >&5
8919 ac_cv_func_pcap_list_datalinks
=no
8921 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8924 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8925 if test $ac_cv_func_pcap_list_datalinks = yes; then
8926 cat >>confdefs.h
<<\_ACEOF
8927 #define HAVE_PCAP_LIST_DATALINKS 1
8931 LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
8934 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8935 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8936 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 cat >conftest.
$ac_ext <<_ACEOF
8940 #line $LINENO "configure"
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 /* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char pcap_set_datalink (); below.
8948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8949 <limits.h> exists even on freestanding compilers. */
8951 # include <limits.h>
8953 # include <assert.h>
8955 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8962 char pcap_set_datalink ();
8963 /* The GNU C library defines this for functions which it implements
8964 to always fail with ENOSYS. Some functions are actually named
8965 something starting with __ and the normal name is an alias. */
8966 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8969 char (*f) () = pcap_set_datalink;
8978 return f != pcap_set_datalink;
8983 rm -f conftest.
$ac_objext conftest
$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try
='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_func_pcap_set_datalink
=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.
$ac_ext >&5
9000 ac_cv_func_pcap_set_datalink
=no
9002 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9004 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9005 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9006 if test $ac_cv_func_pcap_set_datalink = yes; then
9007 cat >>confdefs.h
<<\_ACEOF
9008 #define HAVE_PCAP_SET_DATALINK 1
9013 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9014 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9015 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 cat >conftest.
$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9022 cat confdefs.h
>>conftest.
$ac_ext
9023 cat >>conftest.
$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char pcap_datalink_name_to_val (); below.
9027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028 <limits.h> exists even on freestanding compilers. */
9030 # include <limits.h>
9032 # include <assert.h>
9034 /* Override any gcc2 internal prototype to avoid an error. */
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041 char pcap_datalink_name_to_val ();
9042 /* The GNU C library defines this for functions which it implements
9043 to always fail with ENOSYS. Some functions are actually named
9044 something starting with __ and the normal name is an alias. */
9045 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9048 char (*f) () = pcap_datalink_name_to_val;
9057 return f != pcap_datalink_name_to_val;
9062 rm -f conftest.
$ac_objext conftest
$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try
='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_func_pcap_datalink_name_to_val
=yes
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.
$ac_ext >&5
9079 ac_cv_func_pcap_datalink_name_to_val
=no
9081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9084 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9085 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9087 cat >>confdefs.h
<<\_ACEOF
9088 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9091 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9092 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9093 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 cat >conftest.
$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9100 cat confdefs.h
>>conftest.
$ac_ext
9101 cat >>conftest.
$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 /* System header to define __stub macros and hopefully few prototypes,
9104 which can conflict with char pcap_datalink_val_to_description (); below.
9105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106 <limits.h> exists even on freestanding compilers. */
9108 # include <limits.h>
9110 # include <assert.h>
9112 /* Override any gcc2 internal prototype to avoid an error. */
9117 /* We use char because int might match the return type of a gcc2
9118 builtin and then its argument prototype would still apply. */
9119 char pcap_datalink_val_to_description ();
9120 /* The GNU C library defines this for functions which it implements
9121 to always fail with ENOSYS. Some functions are actually named
9122 something starting with __ and the normal name is an alias. */
9123 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9126 char (*f) () = pcap_datalink_val_to_description;
9135 return f != pcap_datalink_val_to_description;
9140 rm -f conftest.
$ac_objext conftest
$ac_exeext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142 (eval $ac_link) 2>&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try
='test -s conftest$ac_exeext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_func_pcap_datalink_val_to_description
=yes
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.
$ac_ext >&5
9157 ac_cv_func_pcap_datalink_val_to_description
=no
9159 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9162 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9163 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9164 cat >>confdefs.h
<<\_ACEOF
9165 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9169 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
9174 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
9179 for ac_func
in pcap_breakloop
9181 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9182 echo "$as_me:$LINENO: checking for $ac_func" >&5
9183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9184 if eval "test \"\${$as_ac_var+set}\" = set"; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 cat >conftest.
$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9191 cat confdefs.h
>>conftest.
$ac_ext
9192 cat >>conftest.
$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9194 /* System header to define __stub macros and hopefully few prototypes,
9195 which can conflict with char $ac_func (); below.
9196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9197 <limits.h> exists even on freestanding compilers. */
9199 # include <limits.h>
9201 # include <assert.h>
9203 /* Override any gcc2 internal prototype to avoid an error. */
9208 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9211 /* The GNU C library defines this for functions which it implements
9212 to always fail with ENOSYS. Some functions are actually named
9213 something starting with __ and the normal name is an alias. */
9214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9217 char (*f) () = $ac_func;
9226 return f != $ac_func;
9231 rm -f conftest.
$ac_objext conftest
$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try
='test -s conftest$ac_exeext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 eval "$as_ac_var=yes"
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9248 eval "$as_ac_var=no"
9250 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9254 if test `eval echo '${'$as_ac_var'}'` = yes; then
9255 cat >>confdefs.h
<<_ACEOF
9256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9265 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9266 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9268 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9269 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9270 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9271 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9272 # it does not ship with a libc symbol "inet_ntop()", it ships with
9273 # "_inet_ntop()", and has a #define macro in one of the system headers
9276 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9277 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9278 cat >conftest.
$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9282 cat confdefs.h
>>conftest.
$ac_ext
9283 cat >>conftest.
$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <sys/types.h>
9286 #include <sys/socket.h>
9287 #include <netinet/in.h>
9288 #include <arpa/inet.h>
9292 char src[4], dst[128];
9293 inet_ntop(AF_INET, src, dst, sizeof(dst));
9298 rm -f conftest.
$ac_objext conftest
$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try
='test -s conftest$ac_exeext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 echo "$as_me:$LINENO: result: yes" >&5
9311 echo "${ECHO_T}yes" >&6
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.
$ac_ext >&5
9316 echo "$as_me:$LINENO: result: no" >&5
9317 echo "${ECHO_T}no" >&6
9318 LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
9320 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9321 echo "$as_me:$LINENO: checking for inet_pton" >&5
9322 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
9323 cat >conftest.
$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9327 cat confdefs.h
>>conftest.
$ac_ext
9328 cat >>conftest.
$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 #include <sys/types.h>
9331 #include <sys/socket.h>
9332 #include <netinet/in.h>
9333 #include <arpa/inet.h>
9337 char src[128], dst[4];
9338 inet_pton(AF_INET, src, dst);
9343 rm -f conftest.
$ac_objext conftest
$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try
='test -s conftest$ac_exeext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 echo "$as_me:$LINENO: result: yes" >&5
9356 echo "${ECHO_T}yes" >&6
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.
$ac_ext >&5
9361 echo "$as_me:$LINENO: result: no" >&5
9362 echo "${ECHO_T}no" >&6
9363 LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
9365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9366 echo "$as_me:$LINENO: checking for inet_aton" >&5
9367 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
9368 cat >conftest.
$ac_ext <<_ACEOF
9369 #line $LINENO "configure"
9372 cat confdefs.h
>>conftest.
$ac_ext
9373 cat >>conftest.
$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 #include <sys/types.h>
9376 #include <netinet/in.h>
9377 #include <arpa/inet.h>
9383 inet_aton(src, &dst);
9388 rm -f conftest.
$ac_objext conftest
$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try
='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 echo "$as_me:$LINENO: result: yes" >&5
9401 echo "${ECHO_T}yes" >&6
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.
$ac_ext >&5
9406 echo "$as_me:$LINENO: result: no" >&5
9407 echo "${ECHO_T}no" >&6
9408 LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
9410 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9413 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9414 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9415 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 cat >conftest.
$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9422 cat confdefs.h
>>conftest.
$ac_ext
9423 cat >>conftest.
$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9426 # include <sys/types.h>
9427 # include <sys/socket.h>
9431 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9436 rm -f conftest.
$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try
='test -s conftest.$ac_objext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_cv_sockaddr_has_sa_len
=yes
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.
$ac_ext >&5
9453 ac_cv_sockaddr_has_sa_len
=no
9455 rm -f conftest.
$ac_objext conftest.
$ac_ext
9458 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9459 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9460 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9461 cat >>confdefs.h
<<\_ACEOF
9462 #define HAVE_SOCKADDR_SA_LEN 1
9467 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9468 missing_includes
=yes
9474 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9476 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9477 echo "$as_me:$LINENO: checking for $ac_func" >&5
9478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_var+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 cat >conftest.
$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9486 cat confdefs.h
>>conftest.
$ac_ext
9487 cat >>conftest.
$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 /* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char $ac_func (); below.
9491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492 <limits.h> exists even on freestanding compilers. */
9494 # include <limits.h>
9496 # include <assert.h>
9498 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9512 char (*f) () = $ac_func;
9521 return f != $ac_func;
9526 rm -f conftest.
$ac_objext conftest
$ac_exeext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try
='test -s conftest$ac_exeext'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 eval "$as_ac_var=yes"
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.
$ac_ext >&5
9543 eval "$as_ac_var=no"
9545 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9549 if test `eval echo '${'$as_ac_var'}'` = yes; then
9550 cat >>confdefs.h
<<_ACEOF
9551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9558 savedcflags
="$CFLAGS"
9559 CFLAGS
="$CFLAGS $V_INCLS"
9560 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9561 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9562 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 cat >conftest.
$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9577 if ((pcap_if_t *) 0)
9579 if (sizeof (pcap_if_t))
9585 rm -f conftest.
$ac_objext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587 (eval $ac_compile) 2>&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try
='test -s conftest.$ac_objext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 ac_cv_type_pcap_if_t
=yes
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.
$ac_ext >&5
9602 ac_cv_type_pcap_if_t
=no
9604 rm -f conftest.
$ac_objext conftest.
$ac_ext
9606 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9607 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9608 if test $ac_cv_type_pcap_if_t = yes; then
9610 cat >>confdefs.h
<<_ACEOF
9611 #define HAVE_PCAP_IF_T 1
9617 CFLAGS
="$savedcflags"
9620 if test $ac_cv_func_pcap_lib_version = "no" ; then
9621 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9622 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9623 cat >conftest.
$ac_ext <<_ACEOF
9624 #line $LINENO "configure"
9627 cat confdefs.h
>>conftest.
$ac_ext
9628 cat >>conftest.
$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9635 extern char pcap_version[];
9637 return (int)pcap_version;
9643 rm -f conftest.
$ac_objext conftest
$ac_exeext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try
='test -s conftest$ac_exeext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_lbl_cv_pcap_version_defined
=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.
$ac_ext >&5
9660 ac_lbl_cv_pcap_version_defined
=no
9662 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9663 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9664 echo "$as_me:$LINENO: result: yes" >&5
9665 echo "${ECHO_T}yes" >&6
9666 cat >>confdefs.h
<<\_ACEOF
9667 #define HAVE_PCAP_VERSION 1
9671 echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9675 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9676 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9677 cat >conftest.
$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9681 cat confdefs.h
>>conftest.
$ac_ext
9682 cat >>conftest.
$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9689 extern int pcap_debug;
9697 rm -f conftest.
$ac_objext conftest
$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try
='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_lbl_cv_pcap_debug_defined
=yes
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.
$ac_ext >&5
9714 ac_lbl_cv_pcap_debug_defined
=no
9716 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9717 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9718 echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6
9720 cat >>confdefs.h
<<\_ACEOF
9721 #define HAVE_PCAP_DEBUG 1
9725 echo "$as_me:$LINENO: result: no" >&5
9726 echo "${ECHO_T}no" >&6
9728 # OK, what about "yydebug"?
9730 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9731 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9732 cat >conftest.
$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9736 cat confdefs.h
>>conftest.
$ac_ext
9737 cat >>conftest.
$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9752 rm -f conftest.
$ac_objext conftest
$ac_exeext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try
='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_lbl_cv_yydebug_defined
=yes
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.
$ac_ext >&5
9769 ac_lbl_cv_yydebug_defined
=no
9771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9772 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9773 echo "$as_me:$LINENO: result: yes" >&5
9774 echo "${ECHO_T}yes" >&6
9775 cat >>confdefs.h
<<\_ACEOF
9776 #define HAVE_YYDEBUG 1
9780 echo "$as_me:$LINENO: result: no" >&5
9781 echo "${ECHO_T}no" >&6
9785 for ac_func
in bpf_dump
9787 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9788 echo "$as_me:$LINENO: checking for $ac_func" >&5
9789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9790 if eval "test \"\${$as_ac_var+set}\" = set"; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 cat >conftest.
$ac_ext <<_ACEOF
9794 #line $LINENO "configure"
9797 cat confdefs.h
>>conftest.
$ac_ext
9798 cat >>conftest.
$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 /* System header to define __stub macros and hopefully few prototypes,
9801 which can conflict with char $ac_func (); below.
9802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9803 <limits.h> exists even on freestanding compilers. */
9805 # include <limits.h>
9807 # include <assert.h>
9809 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823 char (*f) () = $ac_func;
9832 return f != $ac_func;
9837 rm -f conftest.
$ac_objext conftest
$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try
='test -s conftest$ac_exeext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 eval "$as_ac_var=yes"
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.
$ac_ext >&5
9854 eval "$as_ac_var=no"
9856 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9860 if test `eval echo '${'$as_ac_var'}'` = yes; then
9861 cat >>confdefs.h
<<_ACEOF
9862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9866 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9872 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9878 cat >>confdefs.h
<<\_ACEOF
9897 if test -f /dev
/bpf0
; then
9901 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9902 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9903 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 cat >conftest.
$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9910 cat confdefs.h
>>conftest.
$ac_ext
9911 cat >>conftest.
$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9914 # include "confdefs.h"
9915 # include <sys/types.h>
9917 # include <stdlib.h>
9918 # include <stddef.h>
9928 rm -f conftest.
$ac_objext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930 (eval $ac_compile) 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try
='test -s conftest.$ac_objext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lbl_have_int8_t
=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.
$ac_ext >&5
9945 ac_cv_lbl_have_int8_t
=no
9947 rm -f conftest.
$ac_objext conftest.
$ac_ext
9950 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9951 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9952 if test $ac_cv_lbl_have_int8_t = no
; then
9953 cat >>confdefs.h
<<\_ACEOF
9954 #define int8_t signed char
9958 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9959 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9960 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.
$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9967 cat confdefs.h
>>conftest.
$ac_ext
9968 cat >>conftest.
$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9971 # include "confdefs.h"
9972 # include <sys/types.h>
9974 # include <stdlib.h>
9975 # include <stddef.h>
9985 rm -f conftest.
$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try
='test -s conftest.$ac_objext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_lbl_have_u_int8_t
=yes
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.
$ac_ext >&5
10002 ac_cv_lbl_have_u_int8_t
=no
10004 rm -f conftest.
$ac_objext conftest.
$ac_ext
10007 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
10008 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
10009 if test $ac_cv_lbl_have_u_int8_t = no
; then
10010 cat >>confdefs.h
<<\_ACEOF
10011 #define u_int8_t u_char
10015 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
10016 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
10017 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 cat >conftest.
$ac_ext <<_ACEOF
10021 #line $LINENO "configure"
10024 cat confdefs.h
>>conftest.
$ac_ext
10025 cat >>conftest.
$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10028 # include "confdefs.h"
10029 # include <sys/types.h>
10031 # include <stdlib.h>
10032 # include <stddef.h>
10042 rm -f conftest.
$ac_objext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044 (eval $ac_compile) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try
='test -s conftest.$ac_objext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lbl_have_int16_t
=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.
$ac_ext >&5
10059 ac_cv_lbl_have_int16_t
=no
10061 rm -f conftest.
$ac_objext conftest.
$ac_ext
10064 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
10065 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
10066 if test $ac_cv_lbl_have_int16_t = no
; then
10067 cat >>confdefs.h
<<\_ACEOF
10068 #define int16_t short
10072 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
10073 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
10074 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 cat >conftest.
$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10081 cat confdefs.h
>>conftest.
$ac_ext
10082 cat >>conftest.
$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 # include "confdefs.h"
10086 # include <sys/types.h>
10088 # include <stdlib.h>
10089 # include <stddef.h>
10099 rm -f conftest.
$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try
='test -s conftest.$ac_objext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lbl_have_u_int16_t
=yes
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.
$ac_ext >&5
10116 ac_cv_lbl_have_u_int16_t
=no
10118 rm -f conftest.
$ac_objext conftest.
$ac_ext
10121 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
10122 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
10123 if test $ac_cv_lbl_have_u_int16_t = no
; then
10124 cat >>confdefs.h
<<\_ACEOF
10125 #define u_int16_t u_short
10129 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
10130 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
10131 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 cat >conftest.
$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10138 cat confdefs.h
>>conftest.
$ac_ext
10139 cat >>conftest.
$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10142 # include "confdefs.h"
10143 # include <sys/types.h>
10145 # include <stdlib.h>
10146 # include <stddef.h>
10156 rm -f conftest.
$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try
='test -s conftest.$ac_objext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_lbl_have_int32_t
=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.
$ac_ext >&5
10173 ac_cv_lbl_have_int32_t
=no
10175 rm -f conftest.
$ac_objext conftest.
$ac_ext
10178 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
10179 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
10180 if test $ac_cv_lbl_have_int32_t = no
; then
10181 cat >>confdefs.h
<<\_ACEOF
10182 #define int32_t int
10186 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
10187 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
10188 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 cat >conftest.
$ac_ext <<_ACEOF
10192 #line $LINENO "configure"
10195 cat confdefs.h
>>conftest.
$ac_ext
10196 cat >>conftest.
$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10199 # include "confdefs.h"
10200 # include <sys/types.h>
10202 # include <stdlib.h>
10203 # include <stddef.h>
10213 rm -f conftest.
$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215 (eval $ac_compile) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try
='test -s conftest.$ac_objext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_lbl_have_u_int32_t
=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.
$ac_ext >&5
10230 ac_cv_lbl_have_u_int32_t
=no
10232 rm -f conftest.
$ac_objext conftest.
$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
10236 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
10237 if test $ac_cv_lbl_have_u_int32_t = no
; then
10238 cat >>confdefs.h
<<\_ACEOF
10239 #define u_int32_t u_int
10243 echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
10244 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
10245 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 cat >conftest.
$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10252 cat confdefs.h
>>conftest.
$ac_ext
10253 cat >>conftest.
$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10256 # include "confdefs.h"
10257 # include <sys/types.h>
10259 # include <stdlib.h>
10260 # include <stddef.h>
10270 rm -f conftest.
$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try
='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_lbl_have_int64_t
=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_cv_lbl_have_int64_t
=no
10289 rm -f conftest.
$ac_objext conftest.
$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
10293 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
10294 if test $ac_cv_lbl_have_int64_t = no
; then
10295 cat >>confdefs.h
<<\_ACEOF
10296 #define int64_t long long
10300 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
10301 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
10302 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 cat >conftest.
$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10309 cat confdefs.h
>>conftest.
$ac_ext
10310 cat >>conftest.
$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 # include "confdefs.h"
10314 # include <sys/types.h>
10316 # include <stdlib.h>
10317 # include <stddef.h>
10327 rm -f conftest.
$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_lbl_have_u_int64_t
=yes
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.
$ac_ext >&5
10344 ac_cv_lbl_have_u_int64_t
=no
10346 rm -f conftest.
$ac_objext conftest.
$ac_ext
10349 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
10350 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
10351 if test $ac_cv_lbl_have_u_int64_t = no
; then
10352 cat >>confdefs.h
<<\_ACEOF
10353 #define u_int64_t unsigned long long
10359 # We can't just check for <inttypes.h> - some systems have one that
10360 # doesn't define all the PRI[doxu]64 macros.
10363 for ac_header
in inttypes.h
10365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10367 echo "$as_me:$LINENO: checking for $ac_header" >&5
10368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10375 # Is the header compilable?
10376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10378 cat >conftest.
$ac_ext <<_ACEOF
10379 #line $LINENO "configure"
10382 cat confdefs.h
>>conftest.
$ac_ext
10383 cat >>conftest.
$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10386 #include <$ac_header>
10388 rm -f conftest.
$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try
='test -s conftest.$ac_objext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_header_compiler
=yes
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.
$ac_ext >&5
10405 ac_header_compiler
=no
10407 rm -f conftest.
$ac_objext conftest.
$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10409 echo "${ECHO_T}$ac_header_compiler" >&6
10411 # Is the header present?
10412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10414 cat >conftest.
$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10418 cat confdefs.h
>>conftest.
$ac_ext
10419 cat >>conftest.
$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 #include <$ac_header>
10423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10424 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10426 grep -v '^ *+' conftest.er1
>conftest.err
10428 cat conftest.err
>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } >/dev
/null
; then
10431 if test -s conftest.err
; then
10432 ac_cpp_err
=$ac_c_preproc_warn_flag
10439 if test -z "$ac_cpp_err"; then
10440 ac_header_preproc
=yes
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.
$ac_ext >&5
10445 ac_header_preproc
=no
10447 rm -f conftest.err conftest.
$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10449 echo "${ECHO_T}$ac_header_preproc" >&6
10451 # So? What about this header?
10452 case $ac_header_compiler:$ac_header_preproc in
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10460 ## ------------------------------------ ##
10461 ## Report this to bug-autoconf@gnu.org. ##
10462 ## ------------------------------------ ##
10465 sed "s/^/$as_me: WARNING: /" >&2
10468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10476 ## ------------------------------------ ##
10477 ## Report this to bug-autoconf@gnu.org. ##
10478 ## ------------------------------------ ##
10481 sed "s/^/$as_me: WARNING: /" >&2
10484 echo "$as_me:$LINENO: checking for $ac_header" >&5
10485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 eval "$as_ac_Header=$ac_header_preproc"
10491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10496 cat >>confdefs.h
<<_ACEOF
10497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10501 # OK, we have inttypes.h, but does it define those macros?
10503 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10504 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10505 cat >conftest.
$ac_ext <<_ACEOF
10507 #line $LINENO "configure"
10510 cat confdefs.h
>>conftest.
$ac_ext
10511 cat >>conftest.
$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10514 #include <inttypes.h>
10516 #include <sys/types.h>
10520 printf("%" PRId64 "\n", (u_int64_t)1);
10521 printf("%" PRIo64 "\n", (u_int64_t)1);
10522 printf("%" PRIx64 "\n", (u_int64_t)1);
10523 printf("%" PRIu64 "\n", (u_int64_t)1);
10528 rm -f conftest.
$ac_objext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try
='test -s conftest.$ac_objext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10541 echo "$as_me:$LINENO: result: yes" >&5
10542 echo "${ECHO_T}yes" >&6
10543 ac_lbl_inttypes_h_defines_formats
=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.
$ac_ext >&5
10550 echo "$as_me:$LINENO: result: no" >&5
10551 echo "${ECHO_T}no" >&6
10552 ac_lbl_inttypes_h_defines_formats
=no
10555 rm -f conftest.
$ac_objext conftest.
$ac_ext
10560 # We don't have inttypes.h, so it obviously can't define those
10563 ac_lbl_inttypes_h_defines_formats
=no
10569 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10570 cat >>confdefs.h
<<\_ACEOF
10571 #define INTTYPES_H_DEFINES_FORMATS 1
10576 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10577 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10578 if test "$cross_compiling" = yes; then
10579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10580 See \`config.log' for more details." >&5
10581 echo "$as_me: error: cannot run test program while cross compiling
10582 See \`config.log' for more details." >&2;}
10583 { (exit 1); exit 1; }; }
10585 cat >conftest.
$ac_ext <<_ACEOF
10587 #line $LINENO "configure"
10590 cat confdefs.h
>>conftest.
$ac_ext
10591 cat >>conftest.
$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10594 # ifdef HAVE_INTTYPES_H
10595 #include <inttypes.h>
10598 #include <sys/types.h>
10604 sprintf(strbuf, "%016llx", t << 32);
10605 if (strcmp(strbuf, "0000000100000000") == 0)
10613 rm -f conftest
$ac_exeext
10614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615 (eval $ac_link) 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10625 cat >>confdefs.h
<<\_ACEOF
10626 #define PRId64 "lld"
10629 cat >>confdefs.h
<<\_ACEOF
10630 #define PRIo64 "llo"
10633 cat >>confdefs.h
<<\_ACEOF
10634 #define PRIx64 "llx"
10637 cat >>confdefs.h
<<\_ACEOF
10638 #define PRIu64 "llu"
10641 echo "$as_me:$LINENO: result: yes" >&5
10642 echo "${ECHO_T}yes" >&6
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.
$ac_ext >&5
10649 ( exit $ac_status )
10651 echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6
10655 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10656 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10657 if test "$cross_compiling" = yes; then
10658 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10659 See \`config.log' for more details." >&5
10660 echo "$as_me: error: cannot run test program while cross compiling
10661 See \`config.log' for more details." >&2;}
10662 { (exit 1); exit 1; }; }
10664 cat >conftest.
$ac_ext <<_ACEOF
10666 #line $LINENO "configure"
10669 cat confdefs.h
>>conftest.
$ac_ext
10670 cat >>conftest.
$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10673 # ifdef HAVE_INTTYPES_H
10674 #include <inttypes.h>
10677 #include <sys/types.h>
10683 sprintf(strbuf, "%016Lx", t << 32);
10684 if (strcmp(strbuf, "0000000100000000") == 0)
10692 rm -f conftest
$ac_exeext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694 (eval $ac_link) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10704 cat >>confdefs.h
<<\_ACEOF
10705 #define PRId64 "Ld"
10708 cat >>confdefs.h
<<\_ACEOF
10709 #define PRIo64 "Lo"
10712 cat >>confdefs.h
<<\_ACEOF
10713 #define PRIx64 "Lx"
10716 cat >>confdefs.h
<<\_ACEOF
10717 #define PRIu64 "Lu"
10720 echo "$as_me:$LINENO: result: yes" >&5
10721 echo "${ECHO_T}yes" >&6
10724 echo "$as_me: program exited with status $ac_status" >&5
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.
$ac_ext >&5
10728 ( exit $ac_status )
10730 echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6
10734 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10735 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10736 if test "$cross_compiling" = yes; then
10737 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10738 See \`config.log' for more details." >&5
10739 echo "$as_me: error: cannot run test program while cross compiling
10740 See \`config.log' for more details." >&2;}
10741 { (exit 1); exit 1; }; }
10743 cat >conftest.
$ac_ext <<_ACEOF
10745 #line $LINENO "configure"
10748 cat confdefs.h
>>conftest.
$ac_ext
10749 cat >>conftest.
$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10752 # ifdef HAVE_INTTYPES_H
10753 #include <inttypes.h>
10756 #include <sys/types.h>
10762 sprintf(strbuf, "%016qx", t << 32);
10763 if (strcmp(strbuf, "0000000100000000") == 0)
10771 rm -f conftest
$ac_exeext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10783 cat >>confdefs.h
<<\_ACEOF
10784 #define PRId64 "qd"
10787 cat >>confdefs.h
<<\_ACEOF
10788 #define PRIo64 "qo"
10791 cat >>confdefs.h
<<\_ACEOF
10792 #define PRIx64 "qx"
10795 cat >>confdefs.h
<<\_ACEOF
10796 #define PRIu64 "qu"
10799 echo "$as_me:$LINENO: result: yes" >&5
10800 echo "${ECHO_T}yes" >&6
10803 echo "$as_me: program exited with status $ac_status" >&5
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.
$ac_ext >&5
10807 ( exit $ac_status )
10809 echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6
10812 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10813 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10814 { (exit 1); exit 1; }; }
10818 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10824 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10830 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10836 if test "${LBL_CFLAGS+set}" = set; then
10837 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
10839 if test -f .devel
; then
10840 if test "$GCC" = yes ; then
10841 if test "${LBL_CFLAGS+set}" != set; then
10842 if test "$ac_cv_prog_cc_g" = yes ; then
10843 V_CCOPT
="-g $V_CCOPT"
10845 V_CCOPT
="$V_CCOPT -Wall"
10846 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10847 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
10854 V_CCOPT
="$V_CCOPT -n32"
10861 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10862 name
="lbl/os-$os.h"
10863 if test -f $name ; then
10864 ln -s $name os-proto.h
10865 cat >>confdefs.h
<<\_ACEOF
10866 #define HAVE_OS_PROTO_H 1
10870 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10871 echo "$as_me: WARNING: can't find $name" >&2;}
10875 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10876 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10877 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.
$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10884 cat confdefs.h
>>conftest.
$ac_ext
10885 cat >>conftest.
$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 # include <sys/types.h>
10889 # include <sys/socket.h>
10893 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10898 rm -f conftest.
$ac_objext
10899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10900 (eval $ac_compile) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try
='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_cv_lbl_sockaddr_has_sa_len
=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.
$ac_ext >&5
10915 ac_cv_lbl_sockaddr_has_sa_len
=no
10917 rm -f conftest.
$ac_objext conftest.
$ac_ext
10920 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10921 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
10922 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10923 cat >>confdefs.h
<<\_ACEOF
10924 #define HAVE_SOCKADDR_SA_LEN 1
10929 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10930 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
10931 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 case "$host_cpu" in
10937 # These are CPU types where:
10939 # the CPU faults on an unaligned access, but at least some
10940 # OSes that support that CPU catch the fault and simulate
10941 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10942 # the simulation is slow, so we don't want to use it;
10944 # the CPU, I infer (from the old
10946 # XXX: should also check that they don't do weird things (like on arm)
10948 # comment) doesn't fault on unaligned accesses, but doesn't
10949 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10951 # for whatever reason, the test program doesn't work
10952 # (this has been claimed to be the case for several of those
10953 # CPUs - I don't know what the problem is; the problem
10954 # was reported as "the test program dumps core" for SuperH,
10955 # but that's what the test program is *supposed* to do -
10956 # it dumps core before it writes anything, so the test
10957 # for an empty output file should find an empty output
10958 # file and conclude that unaligned accesses don't work).
10960 # This run-time test won't work if you're cross-compiling, so
10961 # in order to support cross-compiling for a particular CPU,
10962 # we have to wire in the list of CPU types anyway, as far as
10963 # I know, so perhaps we should just have a set of CPUs on
10964 # which we know it doesn't work, a set of CPUs on which we
10965 # know it does work, and have the script just fail on other
10966 # cpu types and update it when such a failure occurs.
10968 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
10969 ac_cv_lbl_unaligned_fail
=yes
10973 cat >conftest.c
<<EOF
10974 # include <sys/types.h>
10975 # include <sys/wait.h>
10976 # include <stdio.h>
10977 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10982 /* avoid "core dumped" message */
10988 pid = waitpid(pid, &status, 0);
10991 exit(!WIFEXITED(status));
10994 i = *(unsigned int *)&a[1];
10999 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
11000 conftest.c
$LIBS >/dev
/null
2>&1
11001 if test ! -x conftest
; then
11002 ac_cv_lbl_unaligned_fail
=yes
11004 .
/conftest
>conftest.out
11005 if test ! -s conftest.out
; then
11006 ac_cv_lbl_unaligned_fail
=yes
11008 ac_cv_lbl_unaligned_fail
=no
11011 rm -f conftest
* core core.conftest
11016 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11017 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11018 if test $ac_cv_lbl_unaligned_fail = yes ; then
11019 cat >>confdefs.h
<<\_ACEOF
11020 #define LBL_ALIGN 1
11026 echo "$as_me:$LINENO: checking for h_errno" >&5
11027 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11028 if test "${ac_cv_var_h_errno+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 cat >conftest.
$ac_ext <<_ACEOF
11032 #line $LINENO "configure"
11035 cat confdefs.h
>>conftest.
$ac_ext
11036 cat >>conftest.
$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11039 # include <sys/types.h>
11040 # include <netdb.h>
11049 rm -f conftest.
$ac_objext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051 (eval $ac_compile) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try
='test -s conftest.$ac_objext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_var_h_errno
=yes
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.
$ac_ext >&5
11066 ac_cv_var_h_errno
=no
11068 rm -f conftest.
$ac_objext conftest.
$ac_ext
11071 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11072 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11073 if test "$ac_cv_var_h_errno" = "yes"; then
11074 cat >>confdefs.h
<<\_ACEOF
11075 #define HAVE_H_ERRNO 1
11082 # Check whether --with-crypto or --without-crypto was given.
11083 if test "${with_crypto+set}" = set; then
11084 withval
="$with_crypto"
11088 echo "$as_me:$LINENO: checking for SSLeay" >&5
11089 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11090 ac_cv_ssleay_path
=no
11093 Xprefix
=`eval echo $prefix`
11095 for dir
in $Xprefix /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
11097 # XXX - is there a better way to check if a given library is
11098 # in a given directory than checking each of the possible
11099 # shared library suffixes?
11101 # Are there any other suffixes we need to look for? Do we have to
11102 # worry about ".so.{version}"?
11104 # Or should we just look for "libcrypto.*"?
11106 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
11107 -f $dir/lib
/libcrypto.so
-o \
11108 -f $dir/lib
/libcrypto.sl
-o \
11109 -f $dir/lib
/libcrypto.dylib \
); then
11110 ac_cv_ssleay_path
=$dir
11112 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
11113 incdir
="-I$dir/include"
11115 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11118 ac_cv_ssleay_path
=no
11122 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11123 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11124 if test "$ac_cv_ssleay_path" != no
; then
11125 V_INCLS
="$V_INCLS $incdir"
11126 LDFLAGS
="-L$dir/lib $LDFLAGS"
11127 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
11128 LIBS
="$LIBS -lRSAglue"
11130 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
11131 LIBS
="$LIBS -lrsaref"
11134 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11135 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11136 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 ac_check_lib_save_LIBS
=$LIBS
11140 LIBS
="-lcrypto $LIBS"
11141 cat >conftest.
$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11145 cat confdefs.h
>>conftest.
$ac_ext
11146 cat >>conftest.
$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 /* Override any gcc2 internal prototype to avoid an error. */
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155 char DES_cbc_encrypt ();
11159 DES_cbc_encrypt ();
11164 rm -f conftest.
$ac_objext conftest
$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try
='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.
$ac_ext >&5
11181 ac_cv_lib_crypto_DES_cbc_encrypt
=no
11183 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11184 LIBS
=$ac_check_lib_save_LIBS
11186 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11187 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11188 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11189 cat >>confdefs.h
<<_ACEOF
11190 #define HAVE_LIBCRYPTO 1
11193 LIBS
="-lcrypto $LIBS"
11198 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11200 for ac_header
in openssl
/evp.h
11202 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204 echo "$as_me:$LINENO: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11212 # Is the header compilable?
11213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11215 cat >conftest.
$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11219 cat confdefs.h
>>conftest.
$ac_ext
11220 cat >>conftest.
$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 $ac_includes_default
11223 #include <$ac_header>
11225 rm -f conftest.
$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try
='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_header_compiler
=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.
$ac_ext >&5
11242 ac_header_compiler
=no
11244 rm -f conftest.
$ac_objext conftest.
$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246 echo "${ECHO_T}$ac_header_compiler" >&6
11248 # Is the header present?
11249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11251 cat >conftest.
$ac_ext <<_ACEOF
11252 #line $LINENO "configure"
11255 cat confdefs.h
>>conftest.
$ac_ext
11256 cat >>conftest.
$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 #include <$ac_header>
11260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11261 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11263 grep -v '^ *+' conftest.er1
>conftest.err
11265 cat conftest.err
>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } >/dev
/null
; then
11268 if test -s conftest.err
; then
11269 ac_cpp_err
=$ac_c_preproc_warn_flag
11276 if test -z "$ac_cpp_err"; then
11277 ac_header_preproc
=yes
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.
$ac_ext >&5
11282 ac_header_preproc
=no
11284 rm -f conftest.err conftest.
$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc in
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11297 ## ------------------------------------ ##
11298 ## Report this to bug-autoconf@gnu.org. ##
11299 ## ------------------------------------ ##
11302 sed "s/^/$as_me: WARNING: /" >&2
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11313 ## ------------------------------------ ##
11314 ## Report this to bug-autoconf@gnu.org. ##
11315 ## ------------------------------------ ##
11318 sed "s/^/$as_me: WARNING: /" >&2
11321 echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 eval "$as_ac_Header=$ac_header_preproc"
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11333 cat >>confdefs.h
<<_ACEOF
11334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11345 if test "$missing_includes" = "yes"; then
11346 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
11347 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
11357 # Find a good install program. We prefer a C program (faster),
11358 # so one script is as good as another. But avoid the broken or
11359 # incompatible versions:
11360 # SysV /etc/install, /usr/sbin/install
11361 # SunOS /usr/etc/install
11362 # IRIX /sbin/install
11364 # AmigaOS /C/install, which installs bootblocks on floppy discs
11365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11368 # ./install, which can be erroneously created by make from ./install.sh.
11369 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11370 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11371 if test -z "$INSTALL"; then
11372 if test "${ac_cv_path_install+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11376 for as_dir
in $PATH
11379 test -z "$as_dir" && as_dir
=.
11380 # Account for people who put trailing slashes in PATH elements.
11382 .
/ | .
// |
/cC
/* | \
11383 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11386 # OSF1 and SCO ODT 3.0 have their own names for install.
11387 # Don't use installbsd from OSF since it installs stuff as root
11389 for ac_prog
in ginstall scoinst
install; do
11390 for ac_exec_ext
in '' $ac_executable_extensions; do
11391 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11392 if test $ac_prog = install &&
11393 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11394 # AIX install. It has an incompatible calling convention.
11396 elif test $ac_prog = install &&
11397 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11398 # program-specific install script used by HP pwplus--don't use.
11401 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11413 if test "${ac_cv_path_install+set}" = set; then
11414 INSTALL
=$ac_cv_path_install
11416 # As a last resort, use the slow shell script. We don't cache a
11417 # path for INSTALL within a source directory, because that will
11418 # break other packages using the cache if that directory is
11419 # removed, or if the path is relative.
11420 INSTALL
=$ac_install_sh
11423 echo "$as_me:$LINENO: result: $INSTALL" >&5
11424 echo "${ECHO_T}$INSTALL" >&6
11426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11427 # It thinks the first close brace ends the variable substitution.
11428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11430 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11432 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11435 ac_config_headers
="$ac_config_headers config.h"
11438 ac_config_commands
="$ac_config_commands default-1"
11440 ac_config_files
="$ac_config_files Makefile"
11441 cat >confcache
<<\_ACEOF
11442 # This file is a shell script that caches the results of configure
11443 # tests run on this system so they can be shared between configure
11444 # scripts and configure runs, see configure's option --config-cache.
11445 # It is not useful on other systems. If it contains results you don't
11446 # want to keep, you may remove or edit it.
11448 # config.status only pays attention to the cache file if you give it
11449 # the --recheck option to rerun configure.
11451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11453 # following values.
11457 # The following way of writing the cache mishandles newlines in values,
11458 # but we know of no workaround that is simple, portable, and efficient.
11459 # So, don't put newlines in cache variables' values.
11460 # Ultrix sh set writes to stderr and can't be redirected directly,
11461 # and sets the high bit in the cache file unless we assign to the vars.
11464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11466 # `set' does not quote correctly, so add quotes (double-quote
11467 # substitution turns \\\\ into \\, and sed turns \\ into \).
11470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11473 # `set' quotes correctly as required by POSIX, so do not add quotes.
11475 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11484 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11486 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11487 if test -w $cache_file; then
11488 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11489 cat confcache
>$cache_file
11491 echo "not updating unwritable cache $cache_file"
11496 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11497 # Let make expand exec_prefix.
11498 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11500 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11501 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11502 # trailing colons and then remove the whole line if VPATH becomes empty
11503 # (actually we leave an empty line to preserve line numbers).
11504 if test "x$srcdir" = x.
; then
11505 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11506 s/:*\$(srcdir):*/:/;
11507 s/:*\${srcdir}:*/:/;
11509 s/^\([^=]*=[ ]*\):*/\1/;
11515 DEFS
=-DHAVE_CONFIG_H
11519 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11520 # 1. Remove the extension, and $U if already installed.
11521 ac_i
=`echo "$ac_i" |
11522 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11524 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11525 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11527 LIBOBJS
=$ac_libobjs
11529 LTLIBOBJS
=$ac_ltlibobjs
11533 : ${CONFIG_STATUS=./config.status}
11534 ac_clean_files_save
=$ac_clean_files
11535 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11538 cat >$CONFIG_STATUS <<_ACEOF
11540 # Generated by $as_me.
11541 # Run this file to recreate the current configuration.
11542 # Compiler output produced by configure, useful for debugging
11543 # configure, is in config.log if it exists.
11546 ac_cs_recheck=false
11548 SHELL=\${CONFIG_SHELL-$SHELL}
11551 cat >>$CONFIG_STATUS <<\_ACEOF
11552 ## --------------------- ##
11553 ## M4sh Initialization. ##
11554 ## --------------------- ##
11556 # Be Bourne compatible
11557 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11560 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11561 # is contrary to our usage. Disable this feature.
11562 alias -g '${1+"$@"}'='"$@"'
11563 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11567 # Support unset when possible.
11568 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11575 # Work around bugs in pre-3.0 UWIN ksh.
11576 $as_unset ENV MAIL MAILPATH
11583 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11584 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11585 LC_TELEPHONE LC_TIME
11587 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11588 eval $as_var=C
; export $as_var
11594 # Required to use basename.
11595 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11601 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11602 as_basename
=basename
11608 # Name of the executable.
11609 as_me
=`$as_basename "$0" ||
11610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11611 X"$0" : 'X\(//\)$' \| \
11612 X"$0" : 'X\(/\)$' \| \
11613 . : '\(.\)' 2>/dev/null ||
11615 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11616 /^X\/\(\/\/\)$/{ s//\1/; q; }
11617 /^X\/\(\/\).*/{ s//\1/; q; }
11621 # PATH needs CR, and LINENO needs CR and PATH.
11622 # Avoid depending upon Character Ranges.
11623 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11624 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11625 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11626 as_cr_digits
='0123456789'
11627 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11629 # The user is always right.
11630 if test "${PATH_SEPARATOR+set}" != set; then
11631 echo "#! /bin/sh" >conf$$.sh
11632 echo "exit 0" >>conf$$.sh
11634 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11643 as_lineno_1
=$LINENO
11644 as_lineno_2
=$LINENO
11645 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11646 test "x$as_lineno_1" != "x$as_lineno_2" &&
11647 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11648 # Find who we are. Look in the path if we contain no path at all
11651 *[\\/]* ) as_myself
=$0 ;;
11652 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11653 for as_dir
in $PATH
11656 test -z "$as_dir" && as_dir
=.
11657 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11662 # We did not find ourselves, most probably we were run as `sh COMMAND'
11663 # in which case we are not to be found in the path.
11664 if test "x$as_myself" = x
; then
11667 if test ! -f "$as_myself"; then
11668 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11669 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11670 { (exit 1); exit 1; }; }
11672 case $CONFIG_SHELL in
11674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11675 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
11678 test -z "$as_dir" && as_dir
=.
11679 for as_base
in sh bash ksh sh5
; do
11682 if ("$as_dir/$as_base" -c '
11683 as_lineno_1=$LINENO
11684 as_lineno_2=$LINENO
11685 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11686 test "x$as_lineno_1" != "x$as_lineno_2" &&
11687 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
11688 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
11689 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
11690 CONFIG_SHELL
=$as_dir/$as_base
11691 export CONFIG_SHELL
11692 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11701 # uniformly replaced by the line number. The first 'sed' inserts a
11702 # line-number line before each line; the second 'sed' does the real
11703 # work. The second script uses 'N' to pair each line-number line
11704 # with the numbered line, and appends trailing '-' during
11705 # substitution so that $LINENO is not a special case at line end.
11706 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11707 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11708 sed '=' <$as_myself |
11713 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11716 s,^['$as_cr_digits']*\n,,
11717 ' >$as_me.lineno
&&
11718 chmod +x
$as_me.lineno ||
11719 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11720 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11721 { (exit 1); exit 1; }; }
11723 # Don't try to exec as it changes $[0], causing all sort of problems
11724 # (the dirname of $[0] is not the place where we might find the
11725 # original and so on. Autoconf is especially sensible to this).
11727 # Exit status is that of the last command.
11732 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11733 *c
*,-n*) ECHO_N
= ECHO_C
='
11735 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
11736 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
11739 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11745 rm -f conf$$ conf$$.exe conf$$.
file
11747 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11748 # We could just check for DJGPP; but this test a) works b) is more generic
11749 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11750 if test -f conf$$.exe
; then
11751 # Don't use ln at all; we don't have any links
11756 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11761 rm -f conf$$ conf$$.exe conf$$.
file
11763 if mkdir
-p .
2>/dev
/null
; then
11769 as_executable_p
="test -f"
11771 # Sed expression to map a string onto a valid CPP name.
11772 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11774 # Sed expression to map a string onto a valid variable name.
11775 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11779 # We need space, tab and new line, in precisely that order.
11789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11790 # report actual input values of CONFIG_FILES etc. instead of their
11791 # values after options handling. Logging --version etc. is OK.
11795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11796 ## Running $as_me. ##
11801 This file was extended by $as_me, which was
11802 generated by GNU Autoconf 2.57. Invocation command line was
11804 CONFIG_FILES = $CONFIG_FILES
11805 CONFIG_HEADERS = $CONFIG_HEADERS
11806 CONFIG_LINKS = $CONFIG_LINKS
11807 CONFIG_COMMANDS = $CONFIG_COMMANDS
11811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11815 # Files that config.status was made for.
11816 if test -n "$ac_config_files"; then
11817 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11820 if test -n "$ac_config_headers"; then
11821 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11824 if test -n "$ac_config_links"; then
11825 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11828 if test -n "$ac_config_commands"; then
11829 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11832 cat >>$CONFIG_STATUS <<\_ACEOF
11835 \`$as_me' instantiates files from templates according to the
11836 current configuration.
11838 Usage: $0 [OPTIONS] [FILE]...
11840 -h, --help print this help, then exit
11841 -V, --version print version number, then exit
11842 -q, --quiet do not print progress messages
11843 -d, --debug don't remove temporary files
11844 --recheck update $as_me by reconfiguring in the same conditions
11845 --file=FILE[:TEMPLATE]
11846 instantiate the configuration file FILE
11847 --header=FILE[:TEMPLATE]
11848 instantiate the configuration header FILE
11850 Configuration files:
11853 Configuration headers:
11856 Configuration commands:
11859 Report bugs to <bug-autoconf@gnu.org>."
11862 cat >>$CONFIG_STATUS <<_ACEOF
11865 configured by $0, generated by GNU Autoconf 2.57,
11866 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11868 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11869 Free Software Foundation, Inc.
11870 This config.status script is free software; the Free Software Foundation
11871 gives unlimited permission to copy, distribute and modify it."
11876 cat >>$CONFIG_STATUS <<\_ACEOF
11877 # If no file are specified by the user, then we need to provide default
11878 # value. By we need to know if files were specified by the user.
11884 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
11885 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
11893 *) # This is not an option, so the user has probably given explicit
11896 ac_need_defaults
=false
;;
11900 # Handling of the options.
11902 cat >>$CONFIG_STATUS <<\_ACEOF
11903 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11905 --version |
--vers* |
-V )
11906 echo "$ac_cs_version"; exit 0 ;;
11908 # Conflict between --help and --header
11909 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11910 Try \`$0 --help' for more information." >&5
11911 echo "$as_me: error: ambiguous option: $1
11912 Try \`$0 --help' for more information." >&2;}
11913 { (exit 1); exit 1; }; };;
11914 --help |
--hel |
-h )
11915 echo "$ac_cs_usage"; exit 0 ;;
11916 --debug |
--d* |
-d )
11918 --file |
--fil |
--fi |
--f )
11920 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11921 ac_need_defaults
=false
;;
11922 --header |
--heade |
--head |
--hea )
11924 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11925 ac_need_defaults
=false
;;
11926 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11927 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11930 # This is an error.
11931 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11932 Try \`$0 --help' for more information." >&5
11933 echo "$as_me: error: unrecognized option: $1
11934 Try \`$0 --help' for more information." >&2;}
11935 { (exit 1); exit 1; }; } ;;
11937 *) ac_config_targets
="$ac_config_targets $1" ;;
11943 ac_configure_extra_args
=
11945 if $ac_cs_silent; then
11947 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11951 cat >>$CONFIG_STATUS <<_ACEOF
11952 if \$ac_cs_recheck; then
11953 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11954 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11959 cat >>$CONFIG_STATUS <<_ACEOF
11961 # INIT-COMMANDS section.
11970 cat >>$CONFIG_STATUS <<\_ACEOF
11971 for ac_config_target
in $ac_config_targets
11973 case "$ac_config_target" in
11974 # Handling of arguments.
11975 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11976 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11977 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11978 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11979 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11980 { (exit 1); exit 1; }; };;
11984 # If the user did not use the arguments to specify the items to instantiate,
11985 # then the envvar interface is used. Set only those that are not.
11986 # We use the long form for the default assignment because of an extremely
11987 # bizarre bug on SunOS 4.1.3.
11988 if $ac_need_defaults; then
11989 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11990 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11991 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11994 # Have a temporary directory for convenience. Make it in the build tree
11995 # simply because there is no reason to put it here, and in addition,
11996 # creating and moving files from /tmp can sometimes cause problems.
11997 # Create a temporary directory, and hook for its removal unless debugging.
12000 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12001 trap '{ (exit 1); exit 1; }' 1 2 13 15
12004 # Create a (secure) tmp directory for tmp files.
12007 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12008 test -n "$tmp" && test -d "$tmp"
12011 tmp
=.
/confstat$$
-$RANDOM
12012 (umask 077 && mkdir
$tmp)
12015 echo "$me: cannot create a temporary directory in ." >&2
12016 { (exit 1); exit 1; }
12021 cat >>$CONFIG_STATUS <<_ACEOF
12024 # CONFIG_FILES section.
12027 # No need to generate the scripts if there are no CONFIG_FILES.
12028 # This happens for instance when ./config.status config.h
12029 if test -n "\$CONFIG_FILES"; then
12030 # Protect against being on the right side of a sed subst in config.status.
12031 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12032 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12033 s,@SHELL@,$SHELL,;t t
12034 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12035 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12036 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12037 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12038 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12039 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12040 s,@exec_prefix@,$exec_prefix,;t t
12041 s,@prefix@,$prefix,;t t
12042 s,@program_transform_name@,$program_transform_name,;t t
12043 s,@bindir@,$bindir,;t t
12044 s,@sbindir@,$sbindir,;t t
12045 s,@libexecdir@,$libexecdir,;t t
12046 s,@datadir@,$datadir,;t t
12047 s,@sysconfdir@,$sysconfdir,;t t
12048 s,@sharedstatedir@,$sharedstatedir,;t t
12049 s,@localstatedir@,$localstatedir,;t t
12050 s,@libdir@,$libdir,;t t
12051 s,@includedir@,$includedir,;t t
12052 s,@oldincludedir@,$oldincludedir,;t t
12053 s,@infodir@,$infodir,;t t
12054 s,@mandir@,$mandir,;t t
12055 s,@build_alias@,$build_alias,;t t
12056 s,@host_alias@,$host_alias,;t t
12057 s,@target_alias@,$target_alias,;t t
12058 s,@DEFS@,$DEFS,;t t
12059 s,@ECHO_C@,$ECHO_C,;t t
12060 s,@ECHO_N@,$ECHO_N,;t t
12061 s,@ECHO_T@,$ECHO_T,;t t
12062 s,@LIBS@,$LIBS,;t t
12063 s,@build@,$build,;t t
12064 s,@build_cpu@,$build_cpu,;t t
12065 s,@build_vendor@,$build_vendor,;t t
12066 s,@build_os@,$build_os,;t t
12067 s,@host@,$host,;t t
12068 s,@host_cpu@,$host_cpu,;t t
12069 s,@host_vendor@,$host_vendor,;t t
12070 s,@host_os@,$host_os,;t t
12071 s,@SHLICC2@,$SHLICC2,;t t
12073 s,@CFLAGS@,$CFLAGS,;t t
12074 s,@LDFLAGS@,$LDFLAGS,;t t
12075 s,@CPPFLAGS@,$CPPFLAGS,;t t
12076 s,@ac_ct_CC@,$ac_ct_CC,;t t
12077 s,@EXEEXT@,$EXEEXT,;t t
12078 s,@OBJEXT@,$OBJEXT,;t t
12080 s,@EGREP@,$EGREP,;t t
12081 s,@LIBOBJS@,$LIBOBJS,;t t
12082 s,@V_CCOPT@,$V_CCOPT,;t t
12083 s,@V_DEFS@,$V_DEFS,;t t
12084 s,@V_GROUP@,$V_GROUP,;t t
12085 s,@V_INCLS@,$V_INCLS,;t t
12086 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12087 s,@LOCALSRC@,$LOCALSRC,;t t
12088 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12089 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12090 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12091 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12096 cat >>$CONFIG_STATUS <<\_ACEOF
12097 # Split the substitutions into bite-sized pieces for seds with
12098 # small command number limits, like on Digital OSF/1 and HP-UX.
12099 ac_max_sed_lines
=48
12100 ac_sed_frag
=1 # Number of current file.
12101 ac_beg
=1 # First line for current file.
12102 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12105 while $ac_more_lines; do
12106 if test $ac_beg -gt 1; then
12107 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12109 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12111 if test ! -s $tmp/subs.frag
; then
12112 ac_more_lines
=false
12114 # The purpose of the label and of the branching condition is to
12115 # speed up the sed processing (if there are no `@' at all, there
12116 # is no need to browse any of the substitutions).
12117 # These are the two extra sed commands mentioned above.
12119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12120 if test -z "$ac_sed_cmds"; then
12121 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12123 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12125 ac_sed_frag
=`expr $ac_sed_frag + 1`
12127 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12130 if test -z "$ac_sed_cmds"; then
12133 fi # test -n "$CONFIG_FILES"
12136 cat >>$CONFIG_STATUS <<\_ACEOF
12137 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12140 - |
*:- |
*:-:* ) # input from stdin
12142 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12143 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12144 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12145 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12146 * ) ac_file_in
=$ac_file.
in ;;
12149 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12150 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12152 X"$ac_file" : 'X\(//\)[^/]' \| \
12153 X"$ac_file" : 'X\(//\)$' \| \
12154 X"$ac_file" : 'X\(/\)' \| \
12155 . : '\(.\)' 2>/dev/null ||
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12159 /^X\(\/\/\)$/{ s//\1/; q; }
12160 /^X\(\/\).*/{ s//\1/; q; }
12162 { if $as_mkdir_p; then
12167 while test ! -d "$as_dir"; do
12168 as_dirs
="$as_dir $as_dirs"
12169 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12171 X"$as_dir" : 'X\(//\)[^/]' \| \
12172 X"$as_dir" : 'X\(//\)$' \| \
12173 X"$as_dir" : 'X\(/\)' \| \
12174 . : '\(.\)' 2>/dev/null ||
12176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12178 /^X\(\/\/\)$/{ s//\1/; q; }
12179 /^X\(\/\).*/{ s//\1/; q; }
12182 test ! -n "$as_dirs" || mkdir
$as_dirs
12183 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12184 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12185 { (exit 1); exit 1; }; }; }
12189 if test "$ac_dir" != .
; then
12190 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12191 # A "../" for each directory in $ac_dir_suffix.
12192 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12194 ac_dir_suffix
= ac_top_builddir
=
12198 .
) # No --srcdir option. We are building in place.
12200 if test -z "$ac_top_builddir"; then
12203 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12205 [\\/]* | ?
:[\\/]* ) # Absolute path.
12206 ac_srcdir
=$srcdir$ac_dir_suffix;
12207 ac_top_srcdir
=$srcdir ;;
12208 *) # Relative path.
12209 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12210 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12212 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12214 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12215 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12216 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12217 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12221 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12222 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
12225 if test x
"$ac_file" != x-
; then
12226 { echo "$as_me:$LINENO: creating $ac_file" >&5
12227 echo "$as_me: creating $ac_file" >&6;}
12230 # Let's still pretend it is `configure' which instantiates (i.e., don't
12231 # use $as_me), people would be surprised to read:
12232 # /* config.h. Generated by config.status. */
12233 if test x
"$ac_file" = x-
; then
12236 configure_input
="$ac_file. "
12238 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12239 sed 's,.*/,,'` by configure."
12241 # First look for the input files in the build tree, otherwise in the
12243 ac_file_inputs
=`IFS=:
12244 for f in $ac_file_in; do
12246 -) echo $tmp/stdin ;;
12248 # Absolute (can't be DOS-style, as IFS=:)
12249 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12250 echo "$as_me: error: cannot find input file: $f" >&2;}
12251 { (exit 1); exit 1; }; }
12254 if test -f "$f"; then
12257 elif test -f "$srcdir/$f"; then
12262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12263 echo "$as_me: error: cannot find input file: $f" >&2;}
12264 { (exit 1); exit 1; }; }
12267 done` ||
{ (exit 1); exit 1; }
12269 cat >>$CONFIG_STATUS <<_ACEOF
12273 cat >>$CONFIG_STATUS <<\_ACEOF
12275 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12276 s
,@configure_input@
,$configure_input,;t t
12277 s
,@srcdir@
,$ac_srcdir,;t t
12278 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12279 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12280 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12281 s
,@builddir@
,$ac_builddir,;t t
12282 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12283 s
,@top_builddir@
,$ac_top_builddir,;t t
12284 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12285 s
,@INSTALL@
,$ac_INSTALL,;t t
12286 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12288 if test x"$ac_file" != x-; then
12289 mv $tmp/out $ac_file
12297 cat >>$CONFIG_STATUS <<\_ACEOF
12300 # CONFIG_HEADER section.
12303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12304 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12306 # ac_d sets the value in "#define NAME VALUE" lines.
12307 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12308 ac_dB
='[ ].*$,\1#\2'
12311 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12312 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12313 ac_uB
='$,\1#\2define\3'
12317 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12320 - |
*:- |
*:-:* ) # input from stdin
12322 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12323 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12324 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12325 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12326 * ) ac_file_in
=$ac_file.
in ;;
12329 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12330 echo "$as_me: creating $ac_file" >&6;}
12332 # First look for the input files in the build tree, otherwise in the
12334 ac_file_inputs
=`IFS=:
12335 for f in $ac_file_in; do
12337 -) echo $tmp/stdin ;;
12339 # Absolute (can't be DOS-style, as IFS=:)
12340 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12341 echo "$as_me: error: cannot find input file: $f" >&2;}
12342 { (exit 1); exit 1; }; }
12345 if test -f "$f"; then
12348 elif test -f "$srcdir/$f"; then
12353 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12354 echo "$as_me: error: cannot find input file: $f" >&2;}
12355 { (exit 1); exit 1; }; }
12358 done` ||
{ (exit 1); exit 1; }
12359 # Remove the trailing spaces.
12360 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12364 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12365 # `conftest.undefs', that substitutes the proper values into
12366 # config.h.in to produce config.h. The first handles `#define'
12367 # templates, and the second `#undef' templates.
12368 # And first: Protect against being on the right side of a sed subst in
12369 # config.status. Protect against being in an unquoted here document
12370 # in config.status.
12371 rm -f conftest.defines conftest.undefs
12372 # Using a here document instead of a string reduces the quoting nightmare.
12373 # Putting comments in sed scripts is not portable.
12375 # `end' is used to avoid that the second main sed command (meant for
12376 # 0-ary CPP macros) applies to n-ary macro definitions.
12377 # See the Autoconf documentation for `clear'.
12378 cat >confdef2sed.
sed <<\_ACEOF
12383 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12385 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12388 # If some macros were called several times there might be several times
12389 # the same #defines, which is useless. Nevertheless, we may not want to
12390 # sort them, since we want the *last* AC-DEFINE to be honored.
12391 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12392 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12393 rm -f confdef2sed.sed
12395 # This sed command replaces #undef with comments. This is necessary, for
12396 # example, in the case of _POSIX_SOURCE, which is predefined and required
12397 # on some systems where configure will not decide to define it.
12398 cat >>conftest.undefs <<\_ACEOF
12399 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12402 # Break up conftest.defines because some shells have a limit on the size
12403 # of here documents, and old seds have small limits too (100 cmds).
12404 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12405 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12406 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12407 echo ' :' >>$CONFIG_STATUS
12408 rm -f conftest.tail
12409 while grep . conftest.defines >/dev/null
12411 # Write a limited-size here document to $tmp/defines.sed.
12412 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12413 # Speed up: don't consider the non `#define' lines.
12414 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12415 # Work around the forget-to-reset-the-flag bug.
12416 echo 't clr' >>$CONFIG_STATUS
12417 echo ': clr' >>$CONFIG_STATUS
12418 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12420 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12422 mv $tmp/out $tmp/in
12424 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12425 rm -f conftest.defines
12426 mv conftest.
tail conftest.defines
12428 rm -f conftest.defines
12429 echo ' fi # grep' >>$CONFIG_STATUS
12430 echo >>$CONFIG_STATUS
12432 # Break up conftest.undefs because some shells have a limit on the size
12433 # of here documents, and old seds have small limits too (100 cmds).
12434 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12435 rm -f conftest.
tail
12436 while grep . conftest.undefs
>/dev
/null
12438 # Write a limited-size here document to $tmp/undefs.sed.
12439 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12440 # Speed up: don't consider the non
`#undef'
12441 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12442 # Work around the forget-to-reset-the-flag bug.
12443 echo 't clr' >>$CONFIG_STATUS
12444 echo ': clr' >>$CONFIG_STATUS
12445 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12447 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12449 mv $tmp/out $tmp/in
12451 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12452 rm -f conftest.undefs
12453 mv conftest.tail conftest.undefs
12455 rm -f conftest.undefs
12457 cat >>$CONFIG_STATUS <<\_ACEOF
12458 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12459 # use $as_me), people would be surprised to read:
12460 # /* config.h. Generated by config.status. */
12461 if test x
"$ac_file" = x-
; then
12462 echo "/* Generated by configure. */" >$tmp/config.h
12464 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12466 cat $tmp/in >>$tmp/config.h
12468 if test x
"$ac_file" != x-
; then
12469 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12470 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12471 echo "$as_me: $ac_file is unchanged" >&6;}
12473 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475 X"$ac_file" : 'X\(//\)[^/]' \| \
12476 X"$ac_file" : 'X\(//\)$' \| \
12477 X"$ac_file" : 'X\(/\)' \| \
12478 . : '\(.\)' 2>/dev/null ||
12480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12482 /^X\(\/\/\)$/{ s//\1/; q; }
12483 /^X\(\/\).*/{ s//\1/; q; }
12485 { if $as_mkdir_p; then
12490 while test ! -d "$as_dir"; do
12491 as_dirs
="$as_dir $as_dirs"
12492 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12494 X"$as_dir" : 'X\(//\)[^/]' \| \
12495 X"$as_dir" : 'X\(//\)$' \| \
12496 X"$as_dir" : 'X\(/\)' \| \
12497 . : '\(.\)' 2>/dev/null ||
12499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12501 /^X\(\/\/\)$/{ s//\1/; q; }
12502 /^X\(\/\).*/{ s//\1/; q; }
12505 test ! -n "$as_dirs" || mkdir
$as_dirs
12506 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12507 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12508 { (exit 1); exit 1; }; }; }
12511 mv $tmp/config.h
$ac_file
12515 rm -f $tmp/config.h
12519 cat >>$CONFIG_STATUS <<\_ACEOF
12522 # CONFIG_COMMANDS section.
12524 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12525 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12526 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12527 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12528 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12529 X"$ac_dest" : 'X\(//\)[^/]' \| \
12530 X"$ac_dest" : 'X\(//\)$' \| \
12531 X"$ac_dest" : 'X\(/\)' \| \
12532 . : '\(.\)' 2>/dev/null ||
12534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12536 /^X\(\/\/\)$/{ s//\1/; q; }
12537 /^X\(\/\).*/{ s//\1/; q; }
12541 if test "$ac_dir" != .
; then
12542 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12543 # A "../" for each directory in $ac_dir_suffix.
12544 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12546 ac_dir_suffix
= ac_top_builddir
=
12550 .
) # No --srcdir option. We are building in place.
12552 if test -z "$ac_top_builddir"; then
12555 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12557 [\\/]* | ?
:[\\/]* ) # Absolute path.
12558 ac_srcdir
=$srcdir$ac_dir_suffix;
12559 ac_top_srcdir
=$srcdir ;;
12560 *) # Relative path.
12561 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12562 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12564 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12566 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12567 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12568 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12569 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12572 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12573 echo "$as_me: executing $ac_dest commands" >&6;}
12575 default-1
) if test -f .devel
; then
12576 echo timestamp
> stamp-h
12577 cat Makefile-devel-adds
>> Makefile
12584 cat >>$CONFIG_STATUS <<\_ACEOF
12586 { (exit 0); exit 0; }
12588 chmod +x
$CONFIG_STATUS
12589 ac_clean_files
=$ac_clean_files_save
12592 # configure is writing to config.log, and then calls config.status.
12593 # config.status does its own redirection, appending to config.log.
12594 # Unfortunately, on DOS this fails, as config.log is still kept open
12595 # by configure, so config.status won't be able to write to it; its
12596 # output is simply discarded. So we exec the FD to /dev/null,
12597 # effectively closing config.log, so it can be properly (re)opened and
12598 # appended to by config.status. When coming back to configure, we
12599 # need to make the FD available again.
12600 if test "$no_create" != yes; then
12602 ac_config_status_args
=
12603 test "$silent" = yes &&
12604 ac_config_status_args
="$ac_config_status_args --quiet"
12606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12609 # would make configure fail if this is the last instruction.
12610 $ac_cs_success ||
{ (exit 1); exit 1; }