2 # From configure.in Revision: 1.169.2.3 .
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 --without-crypto disable crypto support
858 Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885 ac_dir_suffix= ac_top_builddir=
889 .) # No --srcdir option. We are building in place.
891 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
905 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f $ac_srcdir/configure.gnu; then
914 $SHELL $ac_srcdir/configure.gnu --help=recursive
915 elif test -f $ac_srcdir/configure; then
917 $SHELL $ac_srcdir/configure --help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.in; then
923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
933 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934 Free Software Foundation, Inc.
935 This configure script is free software; the Free Software Foundation
936 gives unlimited permission to copy, distribute and modify it.
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
945 It was created by $as_me, which was
946 generated by GNU Autoconf 2.57. Invocation command line was
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 test -z "$as_dir" && as_dir=.
996 # Keep a trace of the command line.
997 # Strip out --no-create and --no-recursion so they do not pile up.
998 # Strip out --silent because we don't want to record it for future runs.
999 # Also quote any args containing shell meta-characters.
1000 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_must_keep_next=false
1011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1021 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022 if test $ac_must_keep_next = true; then
1023 ac_must_keep_next=false # Got value, back to normal.
1026 *=* | --config-cache | -C | -disable-* | --disable-* \
1027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029 | -with-* | --with-* | -without-* | --without-* | --x)
1030 case "$ac_configure_args0 " in
1031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 -* ) ac_must_keep_next=true ;;
1037 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038 # Get rid of the leading space.
1044 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log. We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1063 # The following way of writing the cache mishandles newlines in values,
1066 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081 ## ----------------- ##
1082 ## Output variables. ##
1083 ## ----------------- ##
1086 for ac_var in $ac_subst_vars
1088 eval ac_val=$`echo $ac_var`
1089 echo "$ac_var='"'"'$ac_val'"'"'"
1093 if test -n "$ac_subst_files"; then
1100 for ac_var in $ac_subst_files
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1108 if test -s confdefs.h; then
1115 sed "/^$/d" confdefs.h | sort
1118 test "$ac_signal" != 0 &&
1119 echo "$as_me: caught signal $ac_signal"
1120 echo "$as_me: exit $exit_status"
1122 rm -f core core.* *.core &&
1123 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 for ac_signal in 1 2 13 15; do
1127 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 # Predefined preprocessor variables.
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 # Let the site file select an alternate cache file if it wants to.
1164 # Prefer explicitly selected file to automatically selected ones.
1165 if test -z "$CONFIG_SITE"; then
1166 if test "x$prefix" != xNONE; then
1167 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1169 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 for ac_site_file in $CONFIG_SITE; do
1173 if test -r "$ac_site_file"; then
1174 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176 sed 's/^/| /' "$ac_site_file" >&5
1181 if test -r "$cache_file"; then
1182 # Some versions of bash will fail to source /dev/null (special
1183 # files actually), so we avoid doing that.
1184 if test -f "$cache_file"; then
1185 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186 echo "$as_me: loading cache $cache_file" >&6;}
1188 [\\/]* | ?:[\\/]* ) . $cache_file;;
1189 *) . ./$cache_file;;
1193 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1198 # Check that the precious variables saved in the cache have kept the same
1200 ac_cache_corrupted=false
1201 for ac_var in `(set) 2>&1 |
1202 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204 eval ac_new_set=\$ac_env_${ac_var}_set
1205 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206 eval ac_new_val="\$ac_env_${ac_var}_value"
1207 case $ac_old_set,$ac_new_set in
1209 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211 ac_cache_corrupted=: ;;
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1218 if test "x$ac_old_val" != "x$ac_new_val"; then
1219 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1222 echo "$as_me: former value: $ac_old_val" >&2;}
1223 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1224 echo "$as_me: current value: $ac_new_val" >&2;}
1225 ac_cache_corrupted=:
1228 # Pass precious variables to config.status.
1229 if test "$ac_new_set" = set; then
1231 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233 *) ac_arg=$ac_var=$ac_new_val ;;
1235 case " $ac_configure_args " in
1236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241 if $ac_cache_corrupted; then
1242 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246 { (exit 1); exit 1; }; }
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1276 if test -f $ac_dir/install-sh; then
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh; then
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1284 elif test -f $ac_dir/shtool; then
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1299 # Make sure we can run config.sub.
1300 $ac_config_sub sun4 >/dev/null 2>&1 ||
1301 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1302 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1303 { (exit 1); exit 1; }; }
1305 echo "$as_me:$LINENO: checking build system type" >&5
1306 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1307 if test "${ac_cv_build+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 ac_cv_build_alias=$build_alias
1311 test -z "$ac_cv_build_alias" &&
1312 ac_cv_build_alias=`$ac_config_guess`
1313 test -z "$ac_cv_build_alias" &&
1314 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1315 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1316 { (exit 1); exit 1; }; }
1317 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1318 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1319 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1320 { (exit 1); exit 1; }; }
1323 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1324 echo "${ECHO_T}$ac_cv_build" >&6
1326 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1327 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1328 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331 echo "$as_me:$LINENO: checking host system type" >&5
1332 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1333 if test "${ac_cv_host+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 ac_cv_host_alias=$host_alias
1337 test -z "$ac_cv_host_alias" &&
1338 ac_cv_host_alias=$ac_cv_build_alias
1339 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1340 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1342 { (exit 1); exit 1; }; }
1345 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1346 echo "${ECHO_T}$ac_cv_host" >&6
1348 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359 # Check whether --with-gcc or --without-gcc was given.
1360 if test "${with_gcc+set}" = set; then
1366 if test "${srcdir}" != "." ; then
1367 V_INCLS="-I\$(srcdir)"
1369 if test "${CFLAGS+set}" = set; then
1370 LBL_CFLAGS="$CFLAGS"
1372 if test -z "$CC" ; then
1376 # Extract the first word of "shlicc2", so it can be a program name with args.
1377 set dummy shlicc2; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$SHLICC2"; then
1384 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_SHLICC2="yes"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1403 SHLICC2=$ac_cv_prog_SHLICC2
1404 if test -n "$SHLICC2"; then
1405 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1406 echo "${ECHO_T}$SHLICC2" >&6
1408 echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1412 if test $SHLICC2 = yes ; then
1419 if test -z "$CC" -a "$with_gcc" = no ; then
1424 ac_cpp='$CPP $CPPFLAGS'
1425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 if test -n "$CC"; then
1457 echo "$as_me:$LINENO: result: $CC" >&5
1458 echo "${ECHO_T}$CC" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1465 if test -z "$ac_cv_prog_CC"; then
1467 # Extract the first word of "gcc", so it can be a program name with args.
1468 set dummy gcc; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 if test -n "$ac_ct_CC"; then
1475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 ac_cv_prog_ac_ct_CC="gcc"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1494 if test -n "$ac_ct_CC"; then
1495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1496 echo "${ECHO_T}$ac_ct_CC" >&6
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1507 if test -z "$CC"; then
1508 if test -n "$ac_tool_prefix"; then
1509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1510 set dummy ${ac_tool_prefix}cc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_CC="${ac_tool_prefix}cc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 if test -n "$CC"; then
1537 echo "$as_me:$LINENO: result: $CC" >&5
1538 echo "${ECHO_T}$CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1545 if test -z "$ac_cv_prog_CC"; then
1547 # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$ac_ct_CC"; then
1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_ac_ct_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1574 if test -n "$ac_ct_CC"; then
1575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1576 echo "${ECHO_T}$ac_ct_CC" >&6
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1588 if test -z "$CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1608 ac_prog_rejected=yes
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 if test $ac_prog_rejected = yes; then
1619 # We found a bogon in the path, so make sure we never use it.
1620 set dummy $ac_cv_prog_CC
1622 if test $# != 0; then
1623 # We chose a different compiler from the bogus one.
1624 # However, it has the same basename, so the bogon will be chosen
1625 # first if we set CC to just the basename; use the full file name.
1627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$CC"; then
1643 if test -n "$ac_tool_prefix"; then
1646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 if test -n "$CC"; then
1674 echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1681 test -n "$CC" && break
1684 if test -z "$CC"; then
1688 # Extract the first word of "$ac_prog", so it can be a program name with args.
1689 set dummy $ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC="$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$ac_ct_CC" && break
1732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1733 See \`config.log' for more details." >&5
1734 echo "$as_me: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&2;}
1736 { (exit 1); exit 1; }; }
1738 # Provide some information about the compiler.
1739 echo "$as_me:$LINENO:" \
1740 "checking for C compiler version" >&5
1741 ac_compiler=`set X $ac_compile; echo $2`
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1743 (eval $ac_compiler --version </dev/null >&5) 2>&5
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1748 (eval $ac_compiler -v </dev/null >&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1753 (eval $ac_compiler -V </dev/null >&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line $LINENO "configure"
1762 cat confdefs.h >>conftest.$ac_ext
1763 cat >>conftest.$ac_ext <<_ACEOF
1764 /* end confdefs.h. */
1774 ac_clean_files_save=$ac_clean_files
1775 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1776 # Try to create an executable without -o first, disregard a.out.
1777 # It will help us diagnose broken compilers, and finding out an intuition
1779 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1780 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1781 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783 (eval $ac_link_default) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # Find the output, starting from the most likely. This scheme is
1788 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # Be careful to initialize this variable, since it used to be cached.
1792 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 # b.out is created by i960 compilers.
1795 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1797 test -f "$ac_file" || continue
1799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 # This is the source file.
1805 # We found the default executable, but exeext='' is most
1809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810 # FIXME: I believe we export ac_cv_exeext for Libtool,
1811 # but it would be cool to find out if it's true. Does anybody
1812 # maintain Libtool? --akim.
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&2;}
1827 { (exit 77); exit 77; }; }
1830 ac_exeext=$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841 if { ac_try='./$ac_file'
1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1849 if test "$cross_compiling" = maybe; then
1852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1853 If you meant to cross compile, use \`--host'.
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&2;}
1858 { (exit 1); exit 1; }; }
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1866 ac_clean_files=$ac_clean_files_save
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872 echo "${ECHO_T}$cross_compiling" >&6
1874 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1883 # work properly (i.e., refer to `conftest.exe'), while it won't with
1885 for ac_file in conftest.exe conftest conftest.*; do
1886 test -f "$ac_file" || continue
1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1903 rm -f conftest$ac_cv_exeext
1904 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905 echo "${ECHO_T}$ac_cv_exeext" >&6
1907 rm -f conftest.$ac_ext
1908 EXEEXT=$ac_cv_exeext
1910 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1912 if test "${ac_cv_objext+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 cat >conftest.$ac_ext <<_ACEOF
1916 #line $LINENO "configure"
1919 cat confdefs.h >>conftest.$ac_ext
1920 cat >>conftest.$ac_ext <<_ACEOF
1921 /* end confdefs.h. */
1931 rm -f conftest.o conftest.obj
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1955 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1958 echo "${ECHO_T}$ac_cv_objext" >&6
1959 OBJEXT=$ac_cv_objext
1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 cat >conftest.$ac_ext <<_ACEOF
1967 #line $LINENO "configure"
1970 cat confdefs.h >>conftest.$ac_ext
1971 cat >>conftest.$ac_ext <<_ACEOF
1972 /* end confdefs.h. */
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1999 echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2004 rm -f conftest.$ac_objext conftest.$ac_ext
2005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2010 GCC=`test $ac_compiler_gnu = yes && echo yes`
2011 ac_test_CFLAGS=${CFLAGS+set}
2012 ac_save_CFLAGS=$CFLAGS
2014 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2016 if test "${ac_cv_prog_cc_g+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 cat >conftest.$ac_ext <<_ACEOF
2020 #line $LINENO "configure"
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2067 if test "$GCC" = yes; then
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 ac_cv_prog_cc_stdc=no
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2089 #include <sys/types.h>
2090 #include <sys/stat.h>
2091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2092 struct buf { int x; };
2093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2094 static char *e (p, i)
2100 static char *f (char * (*g) (char **, int), char **p, ...)
2105 s = g (p, va_arg (v,int));
2109 int test (int i, double x);
2110 struct s1 {int (*f) (int a);};
2111 struct s2 {int (*f) (double a);};
2112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2123 # Don't try gcc -ansi; that turns off useful extensions and
2124 # breaks some systems' header files.
2125 # AIX -qlanglvl=ansi
2126 # Ultrix and OSF/1 -std1
2127 # HP-UX 10.20 and later -Ae
2128 # HP-UX older versions -Aa -D_HPUX_SOURCE
2129 # SVR4 -Xc -D__EXTENSIONS__
2130 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2132 CC="$ac_save_CC $ac_arg"
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); } &&
2139 { ac_try='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 ac_cv_prog_cc_stdc=$ac_arg
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2152 rm -f conftest.$ac_objext
2154 rm -f conftest.$ac_ext conftest.$ac_objext
2159 case "x$ac_cv_prog_cc_stdc" in
2161 echo "$as_me:$LINENO: result: none needed" >&5
2162 echo "${ECHO_T}none needed" >&6 ;;
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2166 CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 # Some people use a C++ compiler to compile C. Since we use `exit',
2170 # in C++ we need to declare it. In case someone uses the same compiler
2171 # for both compiling C and C++ we need to have the C++ compiler decide
2172 # the declaration of exit, since it's the most demanding environment.
2173 cat >conftest.$ac_ext <<_ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 for ac_declaration in \
2192 '#include <stdlib.h>' \
2193 'extern "C" void std::exit (int) throw (); using std::exit;' \
2194 'extern "C" void std::exit (int); using std::exit;' \
2195 'extern "C" void exit (int) throw ();' \
2196 'extern "C" void exit (int);' \
2199 cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2235 rm -f conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2273 if test -n "$ac_declaration"; then
2274 echo '#ifdef __cplusplus' >>confdefs.h
2275 echo $ac_declaration >>confdefs.h
2276 echo '#endif' >>confdefs.h
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291 if test "$GCC" = yes ; then
2292 if test "$SHLICC2" = yes ; then
2293 ac_cv_lbl_gcc_vers=2
2296 echo "$as_me:$LINENO: checking gcc version" >&5
2297 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2298 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2302 sed -e '/^gcc version /!d' \
2303 -e 's/^gcc version //' \
2304 -e 's/ .*//' -e 's/^[^0-9]*//' \
2308 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2309 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2310 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2315 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2316 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2317 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.$ac_ext <<_ACEOF
2322 #line $LINENO "configure"
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2328 #include <sys/types.h>
2332 int frob(int, char *)
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_lbl_cc_ansi_prototypes=yes
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2354 ac_cv_lbl_cc_ansi_prototypes=no
2356 rm -f conftest.$ac_objext conftest.$ac_ext
2359 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2360 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2361 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2365 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2366 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2367 savedcflags="$CFLAGS"
2368 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2369 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 cat >conftest.$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2379 #include <sys/types.h>
2383 int frob(int, char *)
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_lbl_cc_hpux_cc_aa=yes
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 ac_cv_lbl_cc_hpux_cc_aa=no
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2410 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2411 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2412 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2413 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2414 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2415 { (exit 1); exit 1; }; }
2417 CFLAGS="$savedcflags"
2418 V_CCOPT="-Aa $V_CCOPT"
2419 cat >>confdefs.h <<\_ACEOF
2420 #define _HPUX_SOURCE 1
2426 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2427 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2428 { (exit 1); exit 1; }; }
2432 V_INCLS="$V_INCLS -I/usr/local/include"
2433 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2438 V_CCOPT="$V_CCOPT -xansi -signed -O"
2442 V_CCOPT="$V_CCOPT -std1 -O"
2446 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2447 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2448 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2458 #include <sys/types.h>
2462 struct a { int b; };
2463 void c(const struct a *)
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_lbl_cc_const_proto=yes
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2485 ac_cv_lbl_cc_const_proto=no
2487 rm -f conftest.$ac_objext conftest.$ac_ext
2490 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2491 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2492 if test $ac_cv_lbl_cc_const_proto = no ; then
2493 cat >>confdefs.h <<\_ACEOF
2502 echo "$as_me:$LINENO: checking for inline" >&5
2503 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2504 if test "${ac_cv_lbl_inline+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 for ac_lbl_inline in inline __inline__ __inline
2512 cat >conftest.$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #define inline $ac_lbl_inline
2520 static inline struct iltest *foo(void);
2526 static inline struct iltest *
2529 static struct iltest xxx;
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 ac_lbl_cc_inline=yes
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2560 if test "$ac_lbl_cc_inline" = yes ; then
2564 if test "$ac_lbl_cc_inline" = yes ; then
2565 ac_cv_lbl_inline=$ac_lbl_inline
2569 if test ! -z "$ac_cv_lbl_inline" ; then
2570 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2571 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2577 cat >>confdefs.h <<_ACEOF
2578 #define inline $ac_cv_lbl_inline
2582 echo "$as_me:$LINENO: checking for __attribute__" >&5
2583 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2584 if test "${ac_cv___attribute__+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #line $LINENO "configure"
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2602 static void foo(void) __attribute__ ((noreturn));
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv___attribute__=yes
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 ac_cv___attribute__=no
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2636 if test "$ac_cv___attribute__" = "yes"; then
2638 cat >>confdefs.h <<\_ACEOF
2639 #define HAVE___ATTRIBUTE__ 1
2642 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2644 V_DEFS="$V_DEFS -D_U_=\"\""
2646 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2647 echo "${ECHO_T}$ac_cv___attribute__" >&6
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657 # On Suns, sometimes $CPP names a directory.
2658 if test -n "$CPP" && test -d "$CPP"; then
2661 if test -z "$CPP"; then
2662 if test "${ac_cv_prog_CPP+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 # Double quotes because CPP needs to be expanded
2666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2669 for ac_c_preproc_warn_flag in '' yes
2671 # Use a header file that comes with gcc, so configuring glibc
2672 # with a fresh cross-compiler works.
2673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674 # <limits.h> exists even on freestanding compilers.
2675 # On the NeXT, cc -E runs the code through the compiler's parser,
2676 # not just through cpp. "Syntax error" is here to catch this case.
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2685 # include <limits.h>
2687 # include <assert.h>
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } >/dev/null; then
2699 if test -s conftest.err; then
2700 ac_cpp_err=$ac_c_preproc_warn_flag
2707 if test -z "$ac_cpp_err"; then
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2713 # Broken: fails on valid input.
2716 rm -f conftest.err conftest.$ac_ext
2718 # OK, works on sane cases. Now check whether non-existent headers
2719 # can be detected and how.
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <ac_nonexistent.h>
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1 >conftest.err
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2745 if test -z "$ac_cpp_err"; then
2746 # Broken: success on invalid input.
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 # Passes both tests.
2756 rm -f conftest.err conftest.$ac_ext
2759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760 rm -f conftest.err conftest.$ac_ext
2761 if $ac_preproc_ok; then
2773 echo "$as_me:$LINENO: result: $CPP" >&5
2774 echo "${ECHO_T}$CPP" >&6
2776 for ac_c_preproc_warn_flag in '' yes
2778 # Use a header file that comes with gcc, so configuring glibc
2779 # with a fresh cross-compiler works.
2780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781 # <limits.h> exists even on freestanding compilers.
2782 # On the NeXT, cc -E runs the code through the compiler's parser,
2783 # not just through cpp. "Syntax error" is here to catch this case.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2792 # include <limits.h>
2794 # include <assert.h>
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 grep -v '^ *+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2814 if test -z "$ac_cpp_err"; then
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 # Broken: fails on valid input.
2823 rm -f conftest.err conftest.$ac_ext
2825 # OK, works on sane cases. Now check whether non-existent headers
2826 # can be detected and how.
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <ac_nonexistent.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2852 if test -z "$ac_cpp_err"; then
2853 # Broken: success on invalid input.
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 # Passes both tests.
2863 rm -f conftest.err conftest.$ac_ext
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 echo "$as_me:$LINENO: checking for egrep" >&5
2886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2887 if test "${ac_cv_prog_egrep+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2891 then ac_cv_prog_egrep='grep -E'
2892 else ac_cv_prog_egrep='egrep'
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2897 EGREP=$ac_cv_prog_egrep
2900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902 if test "${ac_cv_header_stdc+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_header_stdc=yes
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 ac_cv_header_stdc=no
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2946 if test $ac_cv_header_stdc = yes; then
2947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 $EGREP "memchr" >/dev/null 2>&1; then
2962 ac_cv_header_stdc=no
2968 if test $ac_cv_header_stdc = yes; then
2969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 $EGREP "free" >/dev/null 2>&1; then
2984 ac_cv_header_stdc=no
2990 if test $ac_cv_header_stdc = yes; then
2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992 if test "$cross_compiling" = yes; then
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3007 # define ISLOWER(c) \
3008 (('a' <= (c) && (c) <= 'i') \
3009 || ('j' <= (c) && (c) <= 'r') \
3010 || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3019 for (i = 0; i < 256; i++)
3020 if (XOR (islower (i), ISLOWER (i))
3021 || toupper (i) != TOUPPER (i))
3026 rm -f conftest$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3039 echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3044 ac_cv_header_stdc=no
3046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3054 cat >>confdefs.h <<\_ACEOF
3055 #define STDC_HEADERS 1
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071 inttypes.h stdint.h unistd.h
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3088 #include <$ac_header>
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 eval "$as_ac_Header=yes"
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 eval "$as_ac_Header=no"
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114 cat >>confdefs.h <<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3127 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
3129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3131 echo "$as_me:$LINENO: checking for $ac_header" >&5
3132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3139 # Is the header compilable?
3140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3142 cat >conftest.$ac_ext <<_ACEOF
3143 #line $LINENO "configure"
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149 $ac_includes_default
3150 #include <$ac_header>
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 ac_header_compiler=yes
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_header_compiler=no
3171 rm -f conftest.$ac_objext conftest.$ac_ext
3172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3173 echo "${ECHO_T}$ac_header_compiler" >&6
3175 # Is the header present?
3176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185 #include <$ac_header>
3187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } >/dev/null; then
3195 if test -s conftest.err; then
3196 ac_cpp_err=$ac_c_preproc_warn_flag
3203 if test -z "$ac_cpp_err"; then
3204 ac_header_preproc=yes
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 ac_header_preproc=no
3211 rm -f conftest.err conftest.$ac_ext
3212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3213 echo "${ECHO_T}$ac_header_preproc" >&6
3215 # So? What about this header?
3216 case $ac_header_compiler:$ac_header_preproc in
3218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3224 ## ------------------------------------ ##
3225 ## Report this to bug-autoconf@gnu.org. ##
3226 ## ------------------------------------ ##
3229 sed "s/^/$as_me: WARNING: /" >&2
3232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3240 ## ------------------------------------ ##
3241 ## Report this to bug-autoconf@gnu.org. ##
3242 ## ------------------------------------ ##
3245 sed "s/^/$as_me: WARNING: /" >&2
3248 echo "$as_me:$LINENO: checking for $ac_header" >&5
3249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 eval "$as_ac_Header=$ac_header_preproc"
3255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3260 cat >>confdefs.h <<_ACEOF
3261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3269 for ac_header in netinet/if_ether.h
3271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3272 echo "$as_me:$LINENO: checking for $ac_header" >&5
3273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 cat >conftest.$ac_ext <<_ACEOF
3278 #line $LINENO "configure"
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include <sys/types.h>
3285 #include <sys/socket.h>
3287 #include <$ac_header>
3289 rm -f conftest.$ac_objext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 (eval $ac_compile) 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 eval "$as_ac_Header=yes"
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 eval "$as_ac_Header=no"
3308 rm -f conftest.$ac_objext conftest.$ac_ext
3310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3313 cat >>confdefs.h <<_ACEOF
3314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3321 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3322 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3323 if test "${ac_cv_header_time+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <sys/types.h>
3334 #include <sys/time.h>
3340 if ((struct tm *) 0)
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_header_time=yes
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_cv_header_time=no
3365 rm -f conftest.$ac_objext conftest.$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3368 echo "${ECHO_T}$ac_cv_header_time" >&6
3369 if test $ac_cv_header_time = yes; then
3371 cat >>confdefs.h <<\_ACEOF
3372 #define TIME_WITH_SYS_TIME 1
3381 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3382 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3383 if test "$cross_compiling" = yes; then
3384 if test "${ac_cv_linux_vers+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_linux_vers=unknown
3391 if test "${ac_cv_linux_vers+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 ac_cv_linux_vers=`uname -r 2>&1 | \
3395 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3399 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3400 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3401 if test $ac_cv_linux_vers = unknown ; then
3402 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3403 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3404 { (exit 1); exit 1; }; }
3406 if test $ac_cv_linux_vers -lt 2 ; then
3407 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3408 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3409 { (exit 1); exit 1; }; }
3419 for ac_header in smi.h
3421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3423 echo "$as_me:$LINENO: checking for $ac_header" >&5
3424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 # Is the header compilable?
3432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3434 cat >conftest.$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 $ac_includes_default
3442 #include <$ac_header>
3444 rm -f conftest.$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446 (eval $ac_compile) 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_header_compiler=yes
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 ac_header_compiler=no
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3465 echo "${ECHO_T}$ac_header_compiler" >&6
3467 # Is the header present?
3468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #line $LINENO "configure"
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #include <$ac_header>
3479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_c_preproc_warn_flag
3495 if test -z "$ac_cpp_err"; then
3496 ac_header_preproc=yes
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 ac_header_preproc=no
3503 rm -f conftest.err conftest.$ac_ext
3504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3505 echo "${ECHO_T}$ac_header_preproc" >&6
3507 # So? What about this header?
3508 case $ac_header_compiler:$ac_header_preproc in
3510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3516 ## ------------------------------------ ##
3517 ## Report this to bug-autoconf@gnu.org. ##
3518 ## ------------------------------------ ##
3521 sed "s/^/$as_me: WARNING: /" >&2
3524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3532 ## ------------------------------------ ##
3533 ## Report this to bug-autoconf@gnu.org. ##
3534 ## ------------------------------------ ##
3537 sed "s/^/$as_me: WARNING: /" >&2
3540 echo "$as_me:$LINENO: checking for $ac_header" >&5
3541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 eval "$as_ac_Header=$ac_header_preproc"
3547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3552 cat >>confdefs.h <<_ACEOF
3553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3561 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3562 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3563 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 ac_check_lib_save_LIBS=$LIBS
3568 cat >conftest.$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3576 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3591 rm -f conftest.$ac_objext conftest$ac_exeext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593 (eval $ac_link) 2>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -s conftest$ac_exeext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_cv_lib_smi_smiInit=yes
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 ac_cv_lib_smi_smiInit=no
3610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3611 LIBS=$ac_check_lib_save_LIBS
3613 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3614 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3615 if test $ac_cv_lib_smi_smiInit = yes; then
3616 cat >>confdefs.h <<_ACEOF
3617 #define HAVE_LIBSMI 1
3624 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3626 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3627 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3628 if test "$cross_compiling" = yes; then
3629 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3630 echo "${ECHO_T}not when cross-compiling" >&6
3634 cat >conftest.$ac_ext <<_ACEOF
3635 #line $LINENO "configure"
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 /* libsmi available check */
3645 int current, revision, age, n;
3646 const int required = 2;
3649 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3651 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3654 if (required < current - age || required > current)
3660 rm -f conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 echo "$as_me:$LINENO: result: yes" >&5
3672 echo "${ECHO_T}yes" >&6
3673 cat >>confdefs.h <<\_ACEOF
3679 echo "$as_me: program exited with status $ac_status" >&5
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3685 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3686 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3687 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3688 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3689 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3690 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3691 4) echo "$as_me:$LINENO: result: no - too old" >&5
3692 echo "${ECHO_T}no - too old" >&6 ;;
3693 *) echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6 ;;
3698 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3702 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3703 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3704 # Check whether --enable-smb or --disable-smb was given.
3705 if test "${enable_smb+set}" = set; then
3706 enableval="$enable_smb"
3711 case "$enableval" in
3712 yes) echo "$as_me:$LINENO: result: yes" >&5
3713 echo "${ECHO_T}yes" >&6
3714 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3715 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3716 cat >>confdefs.h <<\_ACEOF
3717 #define TCPDUMP_DO_SMB 1
3720 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3722 *) echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3727 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3728 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3729 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3730 if test "${enable_ipv6+set}" = set; then
3731 enableval="$enable_ipv6"
3732 case "$enableval" in
3733 yes) echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3735 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"
3736 cat >>confdefs.h <<\_ACEOF
3743 echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3749 if test "$cross_compiling" = yes; then
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line $LINENO "configure"
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 /* AF_INET6 available check */
3763 #include <sys/types.h>
3764 #include <sys/socket.h>
3767 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3774 rm -f conftest$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 echo "$as_me:$LINENO: result: yes" >&5
3786 echo "${ECHO_T}yes" >&6
3787 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"
3788 cat >>confdefs.h <<\_ACEOF
3794 echo "$as_me: program exited with status $ac_status" >&5
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3811 if test "$ipv6" = "yes"; then
3812 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3813 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3814 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3817 cat >conftest.$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <netinet/in.h>
3825 #ifdef IPV6_INRIA_VERSION
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 $EGREP "yes" >/dev/null 2>&1; then
3832 CFLAGS="-DINET6 $CFLAGS"
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #include <netinet/in.h>
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851 $EGREP "yes" >/dev/null 2>&1; then
3854 ipv6libdir=/usr/local/v6/lib;
3856 CFLAGS="-DINET6 $CFLAGS"
3862 cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <features.h>
3870 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 $EGREP "yes" >/dev/null 2>&1; then
3877 CFLAGS="-DINET6 $CFLAGS"
3883 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3886 ipv6libdir=/usr/inet6/lib
3888 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <sys/param.h>
3900 #ifdef _TOSHIBA_INET6
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "yes" >/dev/null 2>&1; then
3908 ipv6libdir=/usr/local/v6/lib;
3909 CFLAGS="-DINET6 $CFLAGS"
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include </usr/local/v6/include/sys/v6config.h>
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "yes" >/dev/null 2>&1; then
3931 ipv6libdir=/usr/local/v6/lib;
3932 CFLAGS="-I/usr/local/v6/include $CFLAGS"
3938 cat >conftest.$ac_ext <<_ACEOF
3939 #line $LINENO "configure"
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <sys/param.h>
3946 #ifdef _ZETA_MINAMI_INET6
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "yes" >/dev/null 2>&1; then
3954 ipv6libdir=/usr/local/v6/lib;
3955 CFLAGS="-DINET6 $CFLAGS"
3961 if test "$ipv6type" != "unknown"; then
3965 echo "$as_me:$LINENO: result: $ipv6type" >&5
3966 echo "${ECHO_T}$ipv6type" >&6
3969 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
3970 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
3971 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
3972 echo "You have $ipv6lib library, using it"
3974 if test "$ipv6trylibc" = "yes"; then
3975 echo "You do not have $ipv6lib library, using libc"
3977 echo 'Fatal: no $ipv6lib library found. cannot continue.'
3978 echo "You need to fetch lib$ipv6lib.a from appropriate"
3979 echo 'ipv6 kit and compile beforehand.'
3986 if test "$ipv6" = "yes"; then
3988 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
3989 # function in libc; there are "ngetaddrinfo()" and
3990 # "ogetaddrinfo()" functions, and <netdb.h> #defines
3991 # "getaddrinfo" to be either "ngetaddrinfo" or
3992 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
3993 # or _XOPEN_SOURCE_EXTENDED are defined or not.
3995 # So this test doesn't work on Tru64 5.1, and possibly
3996 # on other 5.x releases. This causes the configure
3997 # script to become confused, and results in libpcap
3998 # being unbuildable.
4000 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4001 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4002 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 ac_func_search_save_LIBS=$LIBS
4006 ac_cv_search_getaddrinfo=no
4007 cat >conftest.$ac_ext <<_ACEOF
4008 #line $LINENO "configure"
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4015 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4021 char getaddrinfo ();
4030 rm -f conftest.$ac_objext conftest$ac_exeext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4032 (eval $ac_link) 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -s conftest$ac_exeext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_search_getaddrinfo="none required"
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4049 if test "$ac_cv_search_getaddrinfo" = no; then
4050 for ac_lib in socket; do
4051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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. */
4060 /* Override any gcc2 internal prototype to avoid an error. */
4064 /* We use char because int might match the return type of a gcc2
4065 builtin and then its argument prototype would still apply. */
4066 char getaddrinfo ();
4075 rm -f conftest.$ac_objext conftest$ac_exeext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4077 (eval $ac_link) 2>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_search_getaddrinfo="-l$ac_lib"
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4097 LIBS=$ac_func_search_save_LIBS
4099 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4100 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4101 if test "$ac_cv_search_getaddrinfo" != no; then
4102 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4103 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4104 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4105 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 if test "$cross_compiling" = yes; then
4109 td_cv_buggygetaddrinfo=yes
4111 cat >conftest.$ac_ext <<_ACEOF
4112 #line $LINENO "configure"
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #include <sys/types.h>
4122 #include <sys/socket.h>
4123 #include <netinet/in.h>
4127 int passive, gaierr, inet4 = 0, inet6 = 0;
4128 struct addrinfo hints, *ai, *aitop;
4129 char straddr[INET6_ADDRSTRLEN], strport[16];
4131 for (passive = 0; passive <= 1; passive++) {
4132 memset(&hints, 0, sizeof(hints));
4133 hints.ai_family = AF_UNSPEC;
4134 hints.ai_flags = passive ? AI_PASSIVE : 0;
4135 hints.ai_socktype = SOCK_STREAM;
4136 hints.ai_protocol = IPPROTO_TCP;
4137 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4138 (void)gai_strerror(gaierr);
4141 for (ai = aitop; ai; ai = ai->ai_next) {
4142 if (ai->ai_addr == NULL ||
4143 ai->ai_addrlen == 0 ||
4144 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4145 straddr, sizeof(straddr), strport, sizeof(strport),
4146 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4149 switch (ai->ai_family) {
4151 if (strcmp(strport, "54321") != 0) {
4155 if (strcmp(straddr, "0.0.0.0") != 0) {
4159 if (strcmp(straddr, "127.0.0.1") != 0) {
4166 if (strcmp(strport, "54321") != 0) {
4170 if (strcmp(straddr, "::") != 0) {
4174 if (strcmp(straddr, "::1") != 0) {
4191 /* another family support? */
4197 /* supported family should be 2, unsupported family should be 0 */
4198 if (!(inet4 == 0 || inet4 == 2))
4200 if (!(inet6 == 0 || inet6 == 2))
4204 freeaddrinfo(aitop);
4209 freeaddrinfo(aitop);
4214 rm -f conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 td_cv_buggygetaddrinfo=no
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4232 td_cv_buggygetaddrinfo=yes
4234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4238 if test "$td_cv_buggygetaddrinfo" = no; then
4239 echo "$as_me:$LINENO: result: good" >&5
4240 echo "${ECHO_T}good" >&6
4242 echo "$as_me:$LINENO: result: buggy" >&5
4243 echo "${ECHO_T}buggy" >&6
4246 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4248 # XXX - it doesn't appear that "ipv6type" can ever be
4249 # set to "linux". Should this be testing for
4250 # "linux-glibc", or for that *or* "linux-libinet6"?
4251 # If the latter, note that "linux-libinet6" is also
4252 # the type given to some non-Linux OSes.
4254 if test "$ipv6type" != "linux"; then
4255 echo 'Fatal: You must get working getaddrinfo() function.'
4256 echo ' or you can specify "--disable-ipv6"'.
4259 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4260 echo ' Better upgrade your system library to newest version'
4261 echo ' of GNU C library (aka glibc).'
4269 for ac_func in getaddrinfo getnameinfo
4271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4272 echo "$as_me:$LINENO: checking for $ac_func" >&5
4273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4274 if eval "test \"\${$as_ac_var+set}\" = set"; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 /* System header to define __stub macros and hopefully few prototypes,
4285 which can conflict with char $ac_func (); below.
4286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 <limits.h> exists even on freestanding compilers. */
4289 # include <limits.h>
4291 # include <assert.h>
4293 /* Override any gcc2 internal prototype to avoid an error. */
4298 /* We use char because int might match the return type of a gcc2
4299 builtin and then its argument prototype would still apply. */
4301 /* The GNU C library defines this for functions which it implements
4302 to always fail with ENOSYS. Some functions are actually named
4303 something starting with __ and the normal name is an alias. */
4304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4307 char (*f) () = $ac_func;
4316 return f != $ac_func;
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323 (eval $ac_link) 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -s conftest$ac_exeext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 eval "$as_ac_var=yes"
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 eval "$as_ac_var=no"
4340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4344 if test `eval echo '${'$as_ac_var'}'` = yes; then
4345 cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4350 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4357 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4358 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4359 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <netdnet/dnetdb.h>
4372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4373 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4374 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4376 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4381 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4382 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4383 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4384 cat >>confdefs.h <<\_ACEOF
4385 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4390 echo "$as_me:$LINENO: checking for char" >&5
4391 echo $ECHO_N "checking for char... $ECHO_C" >&6
4392 if test "${ac_cv_type_char+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 cat >conftest.$ac_ext <<_ACEOF
4396 #line $LINENO "configure"
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 $ac_includes_default
4414 rm -f conftest.$ac_objext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4433 rm -f conftest.$ac_objext conftest.$ac_ext
4435 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4436 echo "${ECHO_T}$ac_cv_type_char" >&6
4438 echo "$as_me:$LINENO: checking size of char" >&5
4439 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4440 if test "${ac_cv_sizeof_char+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test "$ac_cv_type_char" = yes; then
4444 # The cast to unsigned long works around a bug in the HP C Compiler
4445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4447 # This bug is HP SR number 8606223364.
4448 if test "$cross_compiling" = yes; then
4449 # Depending upon the size, compute the lo and hi bounds.
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line $LINENO "configure"
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4461 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4493 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4500 rm -f conftest.$ac_objext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502 (eval $ac_compile) 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_hi=$ac_mid; break
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_lo=`expr $ac_mid + 1`
4518 if test $ac_lo -le $ac_mid; then
4522 ac_mid=`expr 2 '*' $ac_mid + 1`
4524 rm -f conftest.$ac_objext conftest.$ac_ext
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4541 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4562 cat >conftest.$ac_ext <<_ACEOF
4563 #line $LINENO "configure"
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 $ac_includes_default
4573 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_lo=$ac_mid; break
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_hi=`expr '(' $ac_mid ')' - 1`
4598 if test $ac_mid -le $ac_hi; then
4602 ac_mid=`expr 2 '*' $ac_mid`
4604 rm -f conftest.$ac_objext conftest.$ac_ext
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4612 rm -f conftest.$ac_objext conftest.$ac_ext
4614 rm -f conftest.$ac_objext conftest.$ac_ext
4615 # Binary search between lo and hi bounds.
4616 while test "x$ac_lo" != "x$ac_hi"; do
4617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4618 cat >conftest.$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4629 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_lo=`expr '(' $ac_mid ')' + 1`
4655 rm -f conftest.$ac_objext conftest.$ac_ext
4658 ?*) ac_cv_sizeof_char=$ac_lo;;
4659 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4660 See \`config.log' for more details." >&5
4661 echo "$as_me: error: cannot compute sizeof (char), 77
4662 See \`config.log' for more details." >&2;}
4663 { (exit 1); exit 1; }; } ;;
4666 if test "$cross_compiling" = yes; then
4667 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4668 See \`config.log' for more details." >&5
4669 echo "$as_me: error: cannot run test program while cross compiling
4670 See \`config.log' for more details." >&2;}
4671 { (exit 1); exit 1; }; }
4673 cat >conftest.$ac_ext <<_ACEOF
4674 #line $LINENO "configure"
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4680 $ac_includes_default
4681 long longval () { return (long) (sizeof (char)); }
4682 unsigned long ulongval () { return (long) (sizeof (char)); }
4689 FILE *f = fopen ("conftest.val", "w");
4692 if (((long) (sizeof (char))) < 0)
4694 long i = longval ();
4695 if (i != ((long) (sizeof (char))))
4697 fprintf (f, "%ld\n", i);
4701 unsigned long i = ulongval ();
4702 if (i != ((long) (sizeof (char))))
4704 fprintf (f, "%lu\n", i);
4706 exit (ferror (f) || fclose (f) != 0);
4712 rm -f conftest$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714 (eval $ac_link) 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_sizeof_char=`cat conftest.val`
4725 echo "$as_me: program exited with status $ac_status" >&5
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4731 See \`config.log' for more details." >&5
4732 echo "$as_me: error: cannot compute sizeof (char), 77
4733 See \`config.log' for more details." >&2;}
4734 { (exit 1); exit 1; }; }
4736 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4744 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4745 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4746 cat >>confdefs.h <<_ACEOF
4747 #define SIZEOF_CHAR $ac_cv_sizeof_char
4751 echo "$as_me:$LINENO: checking for short" >&5
4752 echo $ECHO_N "checking for short... $ECHO_C" >&6
4753 if test "${ac_cv_type_short+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 cat >conftest.$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 $ac_includes_default
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_type_short=yes
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f conftest.$ac_objext conftest.$ac_ext
4796 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4797 echo "${ECHO_T}$ac_cv_type_short" >&6
4799 echo "$as_me:$LINENO: checking size of short" >&5
4800 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4801 if test "${ac_cv_sizeof_short+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 if test "$ac_cv_type_short" = yes; then
4805 # The cast to unsigned long works around a bug in the HP C Compiler
4806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4808 # This bug is HP SR number 8606223364.
4809 if test "$cross_compiling" = yes; then
4810 # Depending upon the size, compute the lo and hi bounds.
4811 cat >conftest.$ac_ext <<_ACEOF
4812 #line $LINENO "configure"
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 $ac_includes_default
4822 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4843 cat >conftest.$ac_ext <<_ACEOF
4844 #line $LINENO "configure"
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -s conftest.$ac_objext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 ac_hi=$ac_mid; break
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_lo=`expr $ac_mid + 1`
4879 if test $ac_lo -le $ac_mid; then
4883 ac_mid=`expr 2 '*' $ac_mid + 1`
4885 rm -f conftest.$ac_objext conftest.$ac_ext
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4902 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -s conftest.$ac_objext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4923 cat >conftest.$ac_ext <<_ACEOF
4924 #line $LINENO "configure"
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 $ac_includes_default
4934 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4941 rm -f conftest.$ac_objext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try='test -s conftest.$ac_objext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_lo=$ac_mid; break
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 ac_hi=`expr '(' $ac_mid ')' - 1`
4959 if test $ac_mid -le $ac_hi; then
4963 ac_mid=`expr 2 '*' $ac_mid`
4965 rm -f conftest.$ac_objext conftest.$ac_ext
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4973 rm -f conftest.$ac_objext conftest.$ac_ext
4975 rm -f conftest.$ac_objext conftest.$ac_ext
4976 # Binary search between lo and hi bounds.
4977 while test "x$ac_lo" != "x$ac_hi"; do
4978 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4990 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 ac_lo=`expr '(' $ac_mid ')' + 1`
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5019 ?*) ac_cv_sizeof_short=$ac_lo;;
5020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5021 See \`config.log' for more details." >&5
5022 echo "$as_me: error: cannot compute sizeof (short), 77
5023 See \`config.log' for more details." >&2;}
5024 { (exit 1); exit 1; }; } ;;
5027 if test "$cross_compiling" = yes; then
5028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5029 See \`config.log' for more details." >&5
5030 echo "$as_me: error: cannot run test program while cross compiling
5031 See \`config.log' for more details." >&2;}
5032 { (exit 1); exit 1; }; }
5034 cat >conftest.$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5042 long longval () { return (long) (sizeof (short)); }
5043 unsigned long ulongval () { return (long) (sizeof (short)); }
5050 FILE *f = fopen ("conftest.val", "w");
5053 if (((long) (sizeof (short))) < 0)
5055 long i = longval ();
5056 if (i != ((long) (sizeof (short))))
5058 fprintf (f, "%ld\n", i);
5062 unsigned long i = ulongval ();
5063 if (i != ((long) (sizeof (short))))
5065 fprintf (f, "%lu\n", i);
5067 exit (ferror (f) || fclose (f) != 0);
5073 rm -f conftest$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_sizeof_short=`cat conftest.val`
5086 echo "$as_me: program exited with status $ac_status" >&5
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5092 See \`config.log' for more details." >&5
5093 echo "$as_me: error: cannot compute sizeof (short), 77
5094 See \`config.log' for more details." >&2;}
5095 { (exit 1); exit 1; }; }
5097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5102 ac_cv_sizeof_short=0
5105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5106 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5107 cat >>confdefs.h <<_ACEOF
5108 #define SIZEOF_SHORT $ac_cv_sizeof_short
5112 echo "$as_me:$LINENO: checking for int" >&5
5113 echo $ECHO_N "checking for int... $ECHO_C" >&6
5114 if test "${ac_cv_type_int+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 $ac_includes_default
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138 (eval $ac_compile) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -s conftest.$ac_objext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5155 rm -f conftest.$ac_objext conftest.$ac_ext
5157 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5158 echo "${ECHO_T}$ac_cv_type_int" >&6
5160 echo "$as_me:$LINENO: checking size of int" >&5
5161 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5162 if test "${ac_cv_sizeof_int+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test "$ac_cv_type_int" = yes; then
5166 # The cast to unsigned long works around a bug in the HP C Compiler
5167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5169 # This bug is HP SR number 8606223364.
5170 if test "$cross_compiling" = yes; then
5171 # Depending upon the size, compute the lo and hi bounds.
5172 cat >conftest.$ac_ext <<_ACEOF
5173 #line $LINENO "configure"
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 $ac_includes_default
5183 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -s conftest.$ac_objext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5204 cat >conftest.$ac_ext <<_ACEOF
5205 #line $LINENO "configure"
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 $ac_includes_default
5215 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -s conftest.$ac_objext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_hi=$ac_mid; break
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 ac_lo=`expr $ac_mid + 1`
5240 if test $ac_lo -le $ac_mid; then
5244 ac_mid=`expr 2 '*' $ac_mid + 1`
5246 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 $ac_includes_default
5263 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 (eval $ac_compile) 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 $ac_includes_default
5295 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 ac_lo=$ac_mid; break
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5319 ac_hi=`expr '(' $ac_mid ')' - 1`
5320 if test $ac_mid -le $ac_hi; then
5324 ac_mid=`expr 2 '*' $ac_mid`
5326 rm -f conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5334 rm -f conftest.$ac_objext conftest.$ac_ext
5336 rm -f conftest.$ac_objext conftest.$ac_ext
5337 # Binary search between lo and hi bounds.
5338 while test "x$ac_lo" != "x$ac_hi"; do
5339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5340 cat >conftest.$ac_ext <<_ACEOF
5341 #line $LINENO "configure"
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5351 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 ac_lo=`expr '(' $ac_mid ')' + 1`
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5380 ?*) ac_cv_sizeof_int=$ac_lo;;
5381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5382 See \`config.log' for more details." >&5
5383 echo "$as_me: error: cannot compute sizeof (int), 77
5384 See \`config.log' for more details." >&2;}
5385 { (exit 1); exit 1; }; } ;;
5388 if test "$cross_compiling" = yes; then
5389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5390 See \`config.log' for more details." >&5
5391 echo "$as_me: error: cannot run test program while cross compiling
5392 See \`config.log' for more details." >&2;}
5393 { (exit 1); exit 1; }; }
5395 cat >conftest.$ac_ext <<_ACEOF
5396 #line $LINENO "configure"
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 $ac_includes_default
5403 long longval () { return (long) (sizeof (int)); }
5404 unsigned long ulongval () { return (long) (sizeof (int)); }
5411 FILE *f = fopen ("conftest.val", "w");
5414 if (((long) (sizeof (int))) < 0)
5416 long i = longval ();
5417 if (i != ((long) (sizeof (int))))
5419 fprintf (f, "%ld\n", i);
5423 unsigned long i = ulongval ();
5424 if (i != ((long) (sizeof (int))))
5426 fprintf (f, "%lu\n", i);
5428 exit (ferror (f) || fclose (f) != 0);
5434 rm -f conftest$ac_exeext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5436 (eval $ac_link) 2>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_sizeof_int=`cat conftest.val`
5447 echo "$as_me: program exited with status $ac_status" >&5
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5453 See \`config.log' for more details." >&5
5454 echo "$as_me: error: cannot compute sizeof (int), 77
5455 See \`config.log' for more details." >&2;}
5456 { (exit 1); exit 1; }; }
5458 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5468 cat >>confdefs.h <<_ACEOF
5469 #define SIZEOF_INT $ac_cv_sizeof_int
5473 echo "$as_me:$LINENO: checking for long" >&5
5474 echo $ECHO_N "checking for long... $ECHO_C" >&6
5475 if test "${ac_cv_type_long+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 cat >conftest.$ac_ext <<_ACEOF
5479 #line $LINENO "configure"
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 $ac_includes_default
5497 rm -f conftest.$ac_objext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499 (eval $ac_compile) 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -s conftest.$ac_objext'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5516 rm -f conftest.$ac_objext conftest.$ac_ext
5518 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5519 echo "${ECHO_T}$ac_cv_type_long" >&6
5521 echo "$as_me:$LINENO: checking size of long" >&5
5522 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5523 if test "${ac_cv_sizeof_long+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 if test "$ac_cv_type_long" = yes; then
5527 # The cast to unsigned long works around a bug in the HP C Compiler
5528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5530 # This bug is HP SR number 8606223364.
5531 if test "$cross_compiling" = yes; then
5532 # Depending upon the size, compute the lo and hi bounds.
5533 cat >conftest.$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540 $ac_includes_default
5544 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5551 rm -f conftest.$ac_objext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -s conftest.$ac_objext'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5565 cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 $ac_includes_default
5576 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5583 rm -f conftest.$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_hi=$ac_mid; break
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 ac_lo=`expr $ac_mid + 1`
5601 if test $ac_lo -le $ac_mid; then
5605 ac_mid=`expr 2 '*' $ac_mid + 1`
5607 rm -f conftest.$ac_objext conftest.$ac_ext
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5624 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5656 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_lo=$ac_mid; break
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 ac_hi=`expr '(' $ac_mid ')' - 1`
5681 if test $ac_mid -le $ac_hi; then
5685 ac_mid=`expr 2 '*' $ac_mid`
5687 rm -f conftest.$ac_objext conftest.$ac_ext
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f conftest.$ac_objext conftest.$ac_ext
5697 rm -f conftest.$ac_objext conftest.$ac_ext
5698 # Binary search between lo and hi bounds.
5699 while test "x$ac_lo" != "x$ac_hi"; do
5700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5701 cat >conftest.$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 $ac_includes_default
5712 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5719 rm -f conftest.$ac_objext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721 (eval $ac_compile) 2>&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5736 ac_lo=`expr '(' $ac_mid ')' + 1`
5738 rm -f conftest.$ac_objext conftest.$ac_ext
5741 ?*) ac_cv_sizeof_long=$ac_lo;;
5742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5743 See \`config.log' for more details." >&5
5744 echo "$as_me: error: cannot compute sizeof (long), 77
5745 See \`config.log' for more details." >&2;}
5746 { (exit 1); exit 1; }; } ;;
5749 if test "$cross_compiling" = yes; then
5750 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5751 See \`config.log' for more details." >&5
5752 echo "$as_me: error: cannot run test program while cross compiling
5753 See \`config.log' for more details." >&2;}
5754 { (exit 1); exit 1; }; }
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5764 long longval () { return (long) (sizeof (long)); }
5765 unsigned long ulongval () { return (long) (sizeof (long)); }
5772 FILE *f = fopen ("conftest.val", "w");
5775 if (((long) (sizeof (long))) < 0)
5777 long i = longval ();
5778 if (i != ((long) (sizeof (long))))
5780 fprintf (f, "%ld\n", i);
5784 unsigned long i = ulongval ();
5785 if (i != ((long) (sizeof (long))))
5787 fprintf (f, "%lu\n", i);
5789 exit (ferror (f) || fclose (f) != 0);
5795 rm -f conftest$ac_exeext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5797 (eval $ac_link) 2>&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_sizeof_long=`cat conftest.val`
5808 echo "$as_me: program exited with status $ac_status" >&5
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5814 See \`config.log' for more details." >&5
5815 echo "$as_me: error: cannot compute sizeof (long), 77
5816 See \`config.log' for more details." >&2;}
5817 { (exit 1); exit 1; }; }
5819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5828 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5829 cat >>confdefs.h <<_ACEOF
5830 #define SIZEOF_LONG $ac_cv_sizeof_long
5837 echo "$as_me:$LINENO: checking for addrinfo" >&5
5838 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
5839 if test "${ac_cv_addrinfo+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 cat >conftest.$ac_ext <<_ACEOF
5843 #line $LINENO "configure"
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -s conftest.$ac_objext'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5878 rm -f conftest.$ac_objext conftest.$ac_ext
5881 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5882 echo "${ECHO_T}$ac_cv_addrinfo" >&6
5883 if test $ac_cv_addrinfo = yes; then
5884 cat >>confdefs.h <<\_ACEOF
5885 #define HAVE_ADDRINFO 1
5889 cat >>confdefs.h <<\_ACEOF
5890 #define NEED_ADDRINFO_H 1
5895 if test "$ac_cv_addrinfo" = no; then
5896 missing_includes=yes
5900 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5901 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
5902 if test "${ac_cv_maxserv+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5906 #line $LINENO "configure"
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918 $EGREP "yes" >/dev/null 2>&1; then
5927 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5928 echo "${ECHO_T}$ac_cv_maxserv" >&6
5929 if test $ac_cv_maxserv != yes; then
5930 cat >>confdefs.h <<\_ACEOF
5931 #define NEED_ADDRINFO_H 1
5936 if test "$ac_cv_maxserv" = no; then
5937 missing_includes=yes
5941 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5942 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
5943 if test "${ac_cv_namereqd+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959 $EGREP "yes" >/dev/null 2>&1; then
5968 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5969 echo "${ECHO_T}$ac_cv_namereqd" >&6
5970 if test $ac_cv_namereqd != yes; then
5971 cat >>confdefs.h <<\_ACEOF
5972 #define NEED_ADDRINFO_H 1
5977 if test "$ac_cv_namereqd" = no; then
5978 missing_includes=yes
5982 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5983 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
5984 if test "${ac_cv_sa_storage+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 # include <sys/types.h>
5996 # include <sys/socket.h>
6000 struct sockaddr_storage s
6005 rm -f conftest.$ac_objext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007 (eval $ac_compile) 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 ac_cv_sa_storage=yes
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6024 rm -f conftest.$ac_objext conftest.$ac_ext
6027 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6028 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6029 if test $ac_cv_sa_storage = yes; then
6030 cat >>confdefs.h <<\_ACEOF
6031 #define HAVE_SOCKADDR_STORAGE 1
6036 if test "$ac_cv_sa_storage" = no; then
6037 missing_includes=yes
6042 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6043 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6044 if test "${ac_cv_inaddrsz+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 cat >conftest.$ac_ext <<_ACEOF
6048 #line $LINENO "configure"
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6055 # include <arpa/nameser.h>
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066 (eval $ac_compile) 2>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -s conftest.$ac_objext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6083 rm -f conftest.$ac_objext conftest.$ac_ext
6086 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6087 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6088 if test $ac_cv_inaddrsz = yes; then
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_INADDRSZ 1
6096 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6097 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6098 if test "${ac_cv_in6addrsz+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6109 # include <arpa/nameser.h>
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6137 rm -f conftest.$ac_objext conftest.$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6141 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6142 if test $ac_cv_in6addrsz = yes; then
6143 cat >>confdefs.h <<\_ACEOF
6144 #define HAVE_IN6ADDRSZ 1
6151 if test "$ac_cv_addrsz" = no; then
6152 missing_includes=yes
6156 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6157 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6158 if test "${ac_cv_res_inet6+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6169 # include <sys/types.h>
6170 # include <netinet/in.h>
6171 # include <resolv.h>
6175 int a = RES_USE_INET6
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f conftest.$ac_objext conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6203 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6204 if test $ac_cv_res_inet6 = yes; then
6205 cat >>confdefs.h <<\_ACEOF
6206 #define HAVE_RES_USE_INET6 1
6211 if test "$ac_cv_res_inet6" = no; then
6212 missing_includes=yes
6216 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6217 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6218 if test "${ac_cv_res_state_ext+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 # include <sys/types.h>
6230 # include <netinet/in.h>
6231 # include <netinet6/in6.h>
6232 # include <resolv.h>
6236 struct __res_state_ext e
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_res_state_ext=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_cv_res_state_ext=no
6260 rm -f conftest.$ac_objext conftest.$ac_ext
6263 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6264 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6265 if test $ac_cv_res_state_ext = yes; then
6266 cat >>confdefs.h <<\_ACEOF
6267 #define HAVE_RES_STATE_EXT 1
6272 if test "$ac_cv_res_state_ext" = no; then
6273 missing_includes=yes
6277 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6278 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6279 if test "${ac_cv_res_state+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 # include <sys/types.h>
6291 # include <netinet/in.h>
6292 # include <netinet6/in6.h>
6293 # include <resolv.h>
6297 struct __res_state e; e.nsort = 0
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304 (eval $ac_compile) 2>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -s conftest.$ac_objext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6321 rm -f conftest.$ac_objext conftest.$ac_ext
6324 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6325 echo "${ECHO_T}$ac_cv_res_state" >&6
6326 if test $ac_cv_res_state = yes; then
6327 cat >>confdefs.h <<\_ACEOF
6328 #define HAVE_NEW_RES_STATE 1
6334 if test "$missing_includes" = "yes"; then
6335 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
6336 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
6346 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6349 echo "$as_me:$LINENO: checking for $ac_func" >&5
6350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6351 if eval "test \"\${$as_ac_var+set}\" = set"; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 /* System header to define __stub macros and hopefully few prototypes,
6362 which can conflict with char $ac_func (); below.
6363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6364 <limits.h> exists even on freestanding compilers. */
6366 # include <limits.h>
6368 # include <assert.h>
6370 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6384 char (*f) () = $ac_func;
6393 return f != $ac_func;
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 eval "$as_ac_var=yes"
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 eval "$as_ac_var=no"
6417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6421 if test `eval echo '${'$as_ac_var'}'` = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6427 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6433 for ac_func in strftime
6435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6436 echo "$as_me:$LINENO: checking for $ac_func" >&5
6437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6438 if eval "test \"\${$as_ac_var+set}\" = set"; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6442 #line $LINENO "configure"
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func (); below.
6450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6451 <limits.h> exists even on freestanding compilers. */
6453 # include <limits.h>
6455 # include <assert.h>
6457 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6465 /* The GNU C library defines this for functions which it implements
6466 to always fail with ENOSYS. Some functions are actually named
6467 something starting with __ and the normal name is an alias. */
6468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6471 char (*f) () = $ac_func;
6480 return f != $ac_func;
6485 rm -f conftest.$ac_objext conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487 (eval $ac_link) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest$ac_exeext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 eval "$as_ac_var=yes"
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 eval "$as_ac_var=no"
6504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6508 if test `eval echo '${'$as_ac_var'}'` = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6517 for ac_func in ether_ntohost
6519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6520 echo "$as_me:$LINENO: checking for $ac_func" >&5
6521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_var+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func (); below.
6534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6535 <limits.h> exists even on freestanding compilers. */
6537 # include <limits.h>
6539 # include <assert.h>
6541 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6549 /* The GNU C library defines this for functions which it implements
6550 to always fail with ENOSYS. Some functions are actually named
6551 something starting with __ and the normal name is an alias. */
6552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 char (*f) () = $ac_func;
6564 return f != $ac_func;
6569 rm -f conftest.$ac_objext conftest$ac_exeext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6571 (eval $ac_link) 2>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 eval "$as_ac_var=yes"
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6586 eval "$as_ac_var=no"
6588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6592 if test `eval echo '${'$as_ac_var'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6597 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6598 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6599 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 if test "$cross_compiling" = yes; then
6604 ac_cv_buggy_ether_ntohost="not while cross-compiling"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6615 #include <sys/types.h>
6616 #include <sys/param.h>
6617 #include <sys/socket.h>
6620 main(int argc, char **argv)
6622 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6623 char name[MAXHOSTNAMELEN];
6625 ether_ntohost(name, (struct ether_addr *)ea);
6630 rm -f conftest$ac_exeext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6632 (eval $ac_link) 2>&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_buggy_ether_ntohost=no
6643 echo "$as_me: program exited with status $ac_status" >&5
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6648 ac_cv_buggy_ether_ntohost=yes
6650 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
6654 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
6655 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6656 cat >>confdefs.h <<\_ACEOF
6657 #define USE_ETHER_NTOHOST 1
6666 for ac_func in setlinebuf
6668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 /* System header to define __stub macros and hopefully few prototypes,
6682 which can conflict with char $ac_func (); below.
6683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6684 <limits.h> exists even on freestanding compilers. */
6686 # include <limits.h>
6688 # include <assert.h>
6690 /* Override any gcc2 internal prototype to avoid an error. */
6695 /* We use char because int might match the return type of a gcc2
6696 builtin and then its argument prototype would still apply. */
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6704 char (*f) () = $ac_func;
6713 return f != $ac_func;
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -s conftest$ac_exeext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 eval "$as_ac_var=yes"
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 eval "$as_ac_var=no"
6737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6741 if test `eval echo '${'$as_ac_var'}'` = yes; then
6742 cat >>confdefs.h <<_ACEOF
6743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6753 for ac_func in vsnprintf snprintf
6755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 echo "$as_me:$LINENO: checking for $ac_func" >&5
6757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758 if eval "test \"\${$as_ac_var+set}\" = set"; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 /* System header to define __stub macros and hopefully few prototypes,
6769 which can conflict with char $ac_func (); below.
6770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6771 <limits.h> exists even on freestanding compilers. */
6773 # include <limits.h>
6775 # include <assert.h>
6777 /* Override any gcc2 internal prototype to avoid an error. */
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6785 /* The GNU C library defines this for functions which it implements
6786 to always fail with ENOSYS. Some functions are actually named
6787 something starting with __ and the normal name is an alias. */
6788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6791 char (*f) () = $ac_func;
6800 return f != $ac_func;
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -s conftest$ac_exeext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 eval "$as_ac_var=yes"
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 eval "$as_ac_var=no"
6824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6828 if test `eval echo '${'$as_ac_var'}'` = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6838 if test $needsnprintf = yes; then
6839 LIBOBJS="$LIBOBJS snprintf.o.$ac_objext"
6843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6845 if test "${ac_cv_type_signal+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 #include <sys/types.h>
6861 extern "C" void (*signal (int, void (*)(int)))(int);
6863 void (*signal ()) ();
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_cv_type_signal=void
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6891 ac_cv_type_signal=int
6893 rm -f conftest.$ac_objext conftest.$ac_ext
6895 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6896 echo "${ECHO_T}$ac_cv_type_signal" >&6
6898 cat >>confdefs.h <<_ACEOF
6899 #define RETSIGTYPE $ac_cv_type_signal
6903 if test "$ac_cv_type_signal" = void ; then
6904 cat >>confdefs.h <<\_ACEOF
6909 cat >>confdefs.h <<\_ACEOF
6910 #define RETSIGVAL (0)
6917 cat >>confdefs.h <<\_ACEOF
6918 #define _BSD_SIGNALS 1
6925 for ac_func in sigaction
6927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6928 echo "$as_me:$LINENO: checking for $ac_func" >&5
6929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6930 if eval "test \"\${$as_ac_var+set}\" = set"; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 cat >conftest.$ac_ext <<_ACEOF
6934 #line $LINENO "configure"
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 /* System header to define __stub macros and hopefully few prototypes,
6941 which can conflict with char $ac_func (); below.
6942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6943 <limits.h> exists even on freestanding compilers. */
6945 # include <limits.h>
6947 # include <assert.h>
6949 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6957 /* The GNU C library defines this for functions which it implements
6958 to always fail with ENOSYS. Some functions are actually named
6959 something starting with __ and the normal name is an alias. */
6960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6963 char (*f) () = $ac_func;
6972 return f != $ac_func;
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979 (eval $ac_link) 2>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 eval "$as_ac_var=yes"
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 eval "$as_ac_var=no"
6996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7000 if test `eval echo '${'$as_ac_var'}'` = yes; then
7001 cat >>confdefs.h <<_ACEOF
7002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7008 if test $ac_cv_func_sigaction = no ; then
7010 for ac_func in sigset
7012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7013 echo "$as_me:$LINENO: checking for $ac_func" >&5
7014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7015 if eval "test \"\${$as_ac_var+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 cat >conftest.$ac_ext <<_ACEOF
7019 #line $LINENO "configure"
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 /* System header to define __stub macros and hopefully few prototypes,
7026 which can conflict with char $ac_func (); below.
7027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 <limits.h> exists even on freestanding compilers. */
7030 # include <limits.h>
7032 # include <assert.h>
7034 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048 char (*f) () = $ac_func;
7057 return f != $ac_func;
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -s conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 eval "$as_ac_var=yes"
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 eval "$as_ac_var=no"
7081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7085 if test `eval echo '${'$as_ac_var'}'` = yes; then
7086 cat >>confdefs.h <<_ACEOF
7087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7097 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7098 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7099 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_func_search_save_LIBS=$LIBS
7103 ac_cv_search_dnet_htoa=no
7104 cat >conftest.$ac_ext <<_ACEOF
7105 #line $LINENO "configure"
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 /* Override any gcc2 internal prototype to avoid an error. */
7116 /* We use char because int might match the return type of a gcc2
7117 builtin and then its argument prototype would still apply. */
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129 (eval $ac_link) 2>&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -s conftest$ac_exeext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_cv_search_dnet_htoa="none required"
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7146 if test "$ac_cv_search_dnet_htoa" = no; then
7147 for ac_lib in dnet; do
7148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7149 cat >conftest.$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7157 /* Override any gcc2 internal prototype to avoid an error. */
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -s conftest$ac_exeext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_cv_search_dnet_htoa="-l$ac_lib"
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7194 LIBS=$ac_func_search_save_LIBS
7196 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7197 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7198 if test "$ac_cv_search_dnet_htoa" != no; then
7199 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7200 cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_DNET_HTOA 1
7208 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7209 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7210 if test "${ac_cv_lib_rpc_main+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_check_lib_save_LIBS=$LIBS
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7232 rm -f conftest.$ac_objext conftest$ac_exeext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7234 (eval $ac_link) 2>&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -s conftest$ac_exeext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 ac_cv_lib_rpc_main=yes
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 ac_cv_lib_rpc_main=no
7251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7252 LIBS=$ac_check_lib_save_LIBS
7254 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7255 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7256 if test $ac_cv_lib_rpc_main = yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_LIBRPC 1
7265 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7266 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7267 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 ac_func_search_save_LIBS=$LIBS
7271 ac_cv_search_getrpcbynumber=no
7272 cat >conftest.$ac_ext <<_ACEOF
7273 #line $LINENO "configure"
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7280 /* Override any gcc2 internal prototype to avoid an error. */
7284 /* We use char because int might match the return type of a gcc2
7285 builtin and then its argument prototype would still apply. */
7286 char getrpcbynumber ();
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try='test -s conftest$ac_exeext'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7307 ac_cv_search_getrpcbynumber="none required"
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7314 if test "$ac_cv_search_getrpcbynumber" = no; then
7315 for ac_lib in nsl; do
7316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7325 /* Override any gcc2 internal prototype to avoid an error. */
7329 /* We use char because int might match the return type of a gcc2
7330 builtin and then its argument prototype would still apply. */
7331 char getrpcbynumber ();
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try='test -s conftest$ac_exeext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_cv_search_getrpcbynumber="-l$ac_lib"
7355 echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.$ac_ext >&5
7359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7362 LIBS=$ac_func_search_save_LIBS
7364 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7365 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7366 if test "$ac_cv_search_getrpcbynumber" != no; then
7367 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7374 # Most operating systems have gethostbyname() in the default searched
7375 # libraries (i.e. libc):
7376 # Some OSes (eg. Solaris) place it in libnsl
7377 # Some strange OSes (SINIX) have it in libsocket:
7378 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7379 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7380 if test "${ac_cv_search_gethostbyname+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 ac_func_search_save_LIBS=$LIBS
7384 ac_cv_search_gethostbyname=no
7385 cat >conftest.$ac_ext <<_ACEOF
7386 #line $LINENO "configure"
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7393 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7399 char gethostbyname ();
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_search_gethostbyname="none required"
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7427 if test "$ac_cv_search_gethostbyname" = no; then
7428 for ac_lib in nsl socket resolv; do
7429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7430 cat >conftest.$ac_ext <<_ACEOF
7431 #line $LINENO "configure"
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7438 /* Override any gcc2 internal prototype to avoid an error. */
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7444 char gethostbyname ();
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455 (eval $ac_link) 2>&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_search_gethostbyname="-l$ac_lib"
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7475 LIBS=$ac_func_search_save_LIBS
7477 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7478 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7479 if test "$ac_cv_search_gethostbyname" != no; then
7480 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7484 # Unfortunately libsocket sometimes depends on libnsl and
7485 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7486 if test "$ac_cv_search_gethostbyname" = "no"
7488 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7489 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7490 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 ac_check_lib_save_LIBS=$LIBS
7494 LIBS="-lsocket -lnsl $LIBS"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7503 /* Override any gcc2 internal prototype to avoid an error. */
7507 /* We use char because int might match the return type of a gcc2
7508 builtin and then its argument prototype would still apply. */
7509 char gethostbyname ();
7518 rm -f conftest.$ac_objext conftest$ac_exeext
7519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7520 (eval $ac_link) 2>&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_lib_socket_gethostbyname=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_lib_socket_gethostbyname=no
7537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7538 LIBS=$ac_check_lib_save_LIBS
7540 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7541 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7542 if test $ac_cv_lib_socket_gethostbyname = yes; then
7543 LIBS="-lsocket -lnsl $LIBS"
7547 echo "$as_me:$LINENO: checking for library containing socket" >&5
7548 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7549 if test "${ac_cv_search_socket+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_func_search_save_LIBS=$LIBS
7553 ac_cv_search_socket=no
7554 cat >conftest.$ac_ext <<_ACEOF
7555 #line $LINENO "configure"
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7562 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7577 rm -f conftest.$ac_objext conftest$ac_exeext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7579 (eval $ac_link) 2>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
7583 { ac_try='test -s conftest$ac_exeext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_search_socket="none required"
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7596 if test "$ac_cv_search_socket" = no; then
7597 for ac_lib in socket; do
7598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7599 cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7607 /* Override any gcc2 internal prototype to avoid an error. */
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -s conftest$ac_exeext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_cv_search_socket="-l$ac_lib"
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7644 LIBS=$ac_func_search_save_LIBS
7646 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7647 echo "${ECHO_T}$ac_cv_search_socket" >&6
7648 if test "$ac_cv_search_socket" != no; then
7649 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7652 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7653 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7654 if test "${ac_cv_lib_socket_socket+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_check_lib_save_LIBS=$LIBS
7658 LIBS="-lsocket -lnsl $LIBS"
7659 cat >conftest.$ac_ext <<_ACEOF
7660 #line $LINENO "configure"
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7667 /* Override any gcc2 internal prototype to avoid an error. */
7671 /* We use char because int might match the return type of a gcc2
7672 builtin and then its argument prototype would still apply. */
7682 rm -f conftest.$ac_objext conftest$ac_exeext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684 (eval $ac_link) 2>&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -s conftest$ac_exeext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_cv_lib_socket_socket=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_cv_lib_socket_socket=no
7701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7702 LIBS=$ac_check_lib_save_LIBS
7704 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7705 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7706 if test $ac_cv_lib_socket_socket = yes; then
7707 LIBS="-lsocket -lnsl $LIBS"
7712 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
7713 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
7714 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
7715 if test "${ac_cv_search_putmsg+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 ac_func_search_save_LIBS=$LIBS
7719 ac_cv_search_putmsg=no
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line $LINENO "configure"
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7728 /* Override any gcc2 internal prototype to avoid an error. */
7732 /* We use char because int might match the return type of a gcc2
7733 builtin and then its argument prototype would still apply. */
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_search_putmsg="none required"
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762 if test "$ac_cv_search_putmsg" = no; then
7763 for ac_lib in str; do
7764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7765 cat >conftest.$ac_ext <<_ACEOF
7766 #line $LINENO "configure"
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7773 /* Override any gcc2 internal prototype to avoid an error. */
7777 /* We use char because int might match the return type of a gcc2
7778 builtin and then its argument prototype would still apply. */
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790 (eval $ac_link) 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_search_putmsg="-l$ac_lib"
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7810 LIBS=$ac_func_search_save_LIBS
7812 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7813 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
7814 if test "$ac_cv_search_putmsg" != no; then
7815 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
7822 pfopen=/usr/examples/packetfilter/pfopen.c
7823 if test -f $pfopen ; then
7825 for ac_func in pfopen
7827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7828 echo "$as_me:$LINENO: checking for $ac_func" >&5
7829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7830 if eval "test \"\${$as_ac_var+set}\" = set"; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 /* System header to define __stub macros and hopefully few prototypes,
7841 which can conflict with char $ac_func (); below.
7842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7843 <limits.h> exists even on freestanding compilers. */
7845 # include <limits.h>
7847 # include <assert.h>
7849 /* Override any gcc2 internal prototype to avoid an error. */
7854 /* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7857 /* The GNU C library defines this for functions which it implements
7858 to always fail with ENOSYS. Some functions are actually named
7859 something starting with __ and the normal name is an alias. */
7860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7863 char (*f) () = $ac_func;
7872 return f != $ac_func;
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 eval "$as_ac_var=yes"
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 eval "$as_ac_var=no"
7896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7900 if test `eval echo '${'$as_ac_var'}'` = yes; then
7901 cat >>confdefs.h <<_ACEOF
7902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7908 if test $ac_cv_func_pfopen = "no" ; then
7909 echo "$as_me:$LINENO: result: Using $pfopen" >&5
7910 echo "${ECHO_T}Using $pfopen" >&6
7911 LIBS="$LIBS $pfopen"
7914 echo "$as_me:$LINENO: checking for local pcap library" >&5
7915 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
7918 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7919 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7920 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7921 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
7922 if test $lastdir = $basedir ; then
7926 if test -r $dir/libpcap.a ; then
7927 libpcap=$dir/libpcap.a
7931 if test $libpcap = FAIL ; then
7932 echo "$as_me:$LINENO: result: not found" >&5
7933 echo "${ECHO_T}not found" >&6
7934 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7935 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
7936 if test "${ac_cv_lib_pcap_main+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_check_lib_save_LIBS=$LIBS
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line $LINENO "configure"
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_lib_pcap_main=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_cv_lib_pcap_main=no
7977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7978 LIBS=$ac_check_lib_save_LIBS
7980 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7981 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
7982 if test $ac_cv_lib_pcap_main = yes; then
7986 if test $libpcap = FAIL ; then
7987 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7988 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7989 { (exit 1); exit 1; }; }
7991 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7992 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
7993 if test \( ! -r /usr/local/include/pcap.h \) -a \
7994 \( ! -r /usr/include/pcap.h \); then
7995 if test -r /usr/local/include/pcap/pcap.h; then
7996 d="/usr/local/include/pcap"
7997 elif test -r /usr/include/pcap/pcap.h; then
7998 d="/usr/include/pcap"
8001 if test -z "$d" ; then
8002 echo "$as_me:$LINENO: result: not found" >&5
8003 echo "${ECHO_T}not found" >&6
8005 V_INCLS="-I$d $V_INCLS"
8006 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8007 echo "${ECHO_T}found -- -I$d added" >&6
8011 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8012 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8013 if test -r $d/pcap.h; then
8014 V_INCLS="-I$d $V_INCLS"
8015 elif test -r $places/pcap.h; then
8016 V_INCLS="-I$places $V_INCLS"
8018 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8019 echo "$as_me: error: cannot find pcap.h" >&2;}
8020 { (exit see INSTALL); exit see INSTALL; }; }
8022 echo "$as_me:$LINENO: result: $libpcap" >&5
8023 echo "${ECHO_T}$libpcap" >&6
8025 LIBS="$libpcap $LIBS"
8029 pseexe="/lib/pse.exp"
8030 echo "$as_me:$LINENO: checking for $pseexe" >&5
8031 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8032 if test -f $pseexe ; then
8033 echo "$as_me:$LINENO: result: yes" >&5
8034 echo "${ECHO_T}yes" >&6
8035 LIBS="$LIBS -I:$pseexe"
8038 # We need "-lodm" and "-lcfg", as libpcap requires them on
8039 # AIX, and we just build a static libpcap.a and thus can't
8040 # arrange that when you link with libpcap you automatically
8041 # link with those libraries.
8043 LIBS="$LIBS -lodm -lcfg"
8047 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8048 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8049 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 cat >conftest.$ac_ext <<_ACEOF
8053 #line $LINENO "configure"
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 /* System header to define __stub macros and hopefully few prototypes,
8060 which can conflict with char pcap_list_datalinks (); below.
8061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062 <limits.h> exists even on freestanding compilers. */
8064 # include <limits.h>
8066 # include <assert.h>
8068 /* Override any gcc2 internal prototype to avoid an error. */
8073 /* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075 char pcap_list_datalinks ();
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8082 char (*f) () = pcap_list_datalinks;
8091 return f != pcap_list_datalinks;
8096 rm -f conftest.$ac_objext conftest$ac_exeext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8098 (eval $ac_link) 2>&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_cv_func_pcap_list_datalinks=yes
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ac_cv_func_pcap_list_datalinks=no
8115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8118 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8119 if test $ac_cv_func_pcap_list_datalinks = yes; then
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_PCAP_LIST_DATALINKS 1
8125 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8128 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8129 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8130 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 cat >conftest.$ac_ext <<_ACEOF
8134 #line $LINENO "configure"
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 /* System header to define __stub macros and hopefully few prototypes,
8141 which can conflict with char pcap_set_datalink (); below.
8142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8143 <limits.h> exists even on freestanding compilers. */
8145 # include <limits.h>
8147 # include <assert.h>
8149 /* Override any gcc2 internal prototype to avoid an error. */
8154 /* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8156 char pcap_set_datalink ();
8157 /* The GNU C library defines this for functions which it implements
8158 to always fail with ENOSYS. Some functions are actually named
8159 something starting with __ and the normal name is an alias. */
8160 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8163 char (*f) () = pcap_set_datalink;
8172 return f != pcap_set_datalink;
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179 (eval $ac_link) 2>&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_func_pcap_set_datalink=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_func_pcap_set_datalink=no
8196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8199 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8200 if test $ac_cv_func_pcap_set_datalink = yes; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_PCAP_SET_DATALINK 1
8207 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8208 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8209 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 /* System header to define __stub macros and hopefully few prototypes,
8220 which can conflict with char pcap_datalink_name_to_val (); below.
8221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8222 <limits.h> exists even on freestanding compilers. */
8224 # include <limits.h>
8226 # include <assert.h>
8228 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8235 char pcap_datalink_name_to_val ();
8236 /* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8242 char (*f) () = pcap_datalink_name_to_val;
8251 return f != pcap_datalink_name_to_val;
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258 (eval $ac_link) 2>&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_func_pcap_datalink_name_to_val=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_func_pcap_datalink_name_to_val=no
8275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8277 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8278 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8279 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8285 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8286 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8287 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 /* System header to define __stub macros and hopefully few prototypes,
8298 which can conflict with char pcap_datalink_val_to_description (); below.
8299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8300 <limits.h> exists even on freestanding compilers. */
8302 # include <limits.h>
8304 # include <assert.h>
8306 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8313 char pcap_datalink_val_to_description ();
8314 /* The GNU C library defines this for functions which it implements
8315 to always fail with ENOSYS. Some functions are actually named
8316 something starting with __ and the normal name is an alias. */
8317 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8320 char (*f) () = pcap_datalink_val_to_description;
8329 return f != pcap_datalink_val_to_description;
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_func_pcap_datalink_val_to_description=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_func_pcap_datalink_val_to_description=no
8353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8355 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8356 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8357 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8363 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8368 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8373 for ac_func in pcap_breakloop
8375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8376 echo "$as_me:$LINENO: checking for $ac_func" >&5
8377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8378 if eval "test \"\${$as_ac_var+set}\" = set"; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 cat >conftest.$ac_ext <<_ACEOF
8382 #line $LINENO "configure"
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char $ac_func (); below.
8390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391 <limits.h> exists even on freestanding compilers. */
8393 # include <limits.h>
8395 # include <assert.h>
8397 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8405 /* The GNU C library defines this for functions which it implements
8406 to always fail with ENOSYS. Some functions are actually named
8407 something starting with __ and the normal name is an alias. */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8411 char (*f) () = $ac_func;
8420 return f != $ac_func;
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -s conftest$ac_exeext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 eval "$as_ac_var=yes"
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 eval "$as_ac_var=no"
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8448 if test `eval echo '${'$as_ac_var'}'` = yes; then
8449 cat >>confdefs.h <<_ACEOF
8450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8459 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8460 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8462 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8463 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8464 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8465 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8466 # it does not ship with a libc symbol "inet_ntop()", it ships with
8467 # "_inet_ntop()", and has a #define macro in one of the system headers
8470 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8471 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #include <sys/types.h>
8480 #include <sys/socket.h>
8481 #include <netinet/in.h>
8482 #include <arpa/inet.h>
8486 char src[4], dst[128];
8487 inet_ntop(AF_INET, src, dst, sizeof(dst));
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6
8512 LIBOBJS="$LIBOBJS inet_ntop.o.$ac_objext"
8514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8515 echo "$as_me:$LINENO: checking for inet_pton" >&5
8516 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8518 #line $LINENO "configure"
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/socket.h>
8526 #include <netinet/in.h>
8527 #include <arpa/inet.h>
8531 char src[128], dst[4];
8532 inet_pton(AF_INET, src, dst);
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 echo "$as_me:$LINENO: result: yes" >&5
8550 echo "${ECHO_T}yes" >&6
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6
8557 LIBOBJS="$LIBOBJS inet_pton.o.$ac_objext"
8559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8560 echo "$as_me:$LINENO: checking for inet_aton" >&5
8561 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 #include <sys/types.h>
8570 #include <netinet/in.h>
8571 #include <arpa/inet.h>
8577 inet_aton(src, &dst);
8582 rm -f conftest.$ac_objext conftest$ac_exeext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 echo "$as_me:$LINENO: result: yes" >&5
8595 echo "${ECHO_T}yes" >&6
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8600 echo "$as_me:$LINENO: result: no" >&5
8601 echo "${ECHO_T}no" >&6
8602 LIBOBJS="$LIBOBJS inet_aton.o.$ac_objext"
8604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8607 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8608 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8609 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8620 # include <sys/types.h>
8621 # include <sys/socket.h>
8625 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_cv_sockaddr_has_sa_len=yes
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_cv_sockaddr_has_sa_len=no
8649 rm -f conftest.$ac_objext conftest.$ac_ext
8652 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
8653 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
8654 if test $ac_cv_sockaddr_has_sa_len = yes ; then
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_SOCKADDR_SA_LEN 1
8661 if test "$ac_cv_sockaddr_has_sa_len" = no; then
8662 missing_includes=yes
8668 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
8670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8671 echo "$as_me:$LINENO: checking for $ac_func" >&5
8672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_var+set}\" = set"; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 cat >conftest.$ac_ext <<_ACEOF
8677 #line $LINENO "configure"
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 /* System header to define __stub macros and hopefully few prototypes,
8684 which can conflict with char $ac_func (); below.
8685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8686 <limits.h> exists even on freestanding compilers. */
8688 # include <limits.h>
8690 # include <assert.h>
8692 /* Override any gcc2 internal prototype to avoid an error. */
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8700 /* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8706 char (*f) () = $ac_func;
8715 return f != $ac_func;
8720 rm -f conftest.$ac_objext conftest$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 eval "$as_ac_var=yes"
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 eval "$as_ac_var=no"
8739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8743 if test `eval echo '${'$as_ac_var'}'` = yes; then
8744 cat >>confdefs.h <<_ACEOF
8745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8751 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
8752 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
8753 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
8754 if test "${ac_cv_type_pcap_if_t+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8758 #line $LINENO "configure"
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8769 if ((pcap_if_t *) 0)
8771 if (sizeof (pcap_if_t))
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -s conftest.$ac_objext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_type_pcap_if_t=yes
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 ac_cv_type_pcap_if_t=no
8796 rm -f conftest.$ac_objext conftest.$ac_ext
8798 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
8799 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
8800 if test $ac_cv_type_pcap_if_t = yes; then
8802 cat >>confdefs.h <<_ACEOF
8803 #define HAVE_PCAP_IF_T 1
8810 if test $ac_cv_func_pcap_lib_version = "no" ; then
8811 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
8812 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8814 #line $LINENO "configure"
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8826 return_pcap_version(void)
8828 extern char pcap_version[];
8830 return pcap_version;
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_lbl_cv_pcap_version_defined=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_lbl_cv_pcap_version_defined=no
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859 echo "${ECHO_T}yes" >&6
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_PCAP_VERSION 1
8865 echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8869 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
8870 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8884 return_pcap_debug(void)
8886 extern int pcap_debug;
8895 rm -f conftest.$ac_objext conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 ac_lbl_cv_pcap_debug_defined=yes
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_lbl_cv_pcap_debug_defined=no
8914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8915 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
8916 echo "$as_me:$LINENO: result: yes" >&5
8917 echo "${ECHO_T}yes" >&6
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_PCAP_DEBUG 1
8923 echo "$as_me:$LINENO: result: no" >&5
8924 echo "${ECHO_T}no" >&6
8926 # OK, what about "yydebug"?
8928 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
8929 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
8930 cat >conftest.$ac_ext <<_ACEOF
8931 #line $LINENO "configure"
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8943 return_yydebug(void)
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_lbl_cv_yydebug_defined=yes
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8971 ac_lbl_cv_yydebug_defined=no
8973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8974 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8977 cat >>confdefs.h <<\_ACEOF
8978 #define HAVE_YYDEBUG 1
8982 echo "$as_me:$LINENO: result: no" >&5
8983 echo "${ECHO_T}no" >&6
8987 for ac_func in bpf_dump
8989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8990 echo "$as_me:$LINENO: checking for $ac_func" >&5
8991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8992 if eval "test \"\${$as_ac_var+set}\" = set"; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8996 #line $LINENO "configure"
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 /* System header to define __stub macros and hopefully few prototypes,
9003 which can conflict with char $ac_func (); below.
9004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9005 <limits.h> exists even on freestanding compilers. */
9007 # include <limits.h>
9009 # include <assert.h>
9011 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9019 /* The GNU C library defines this for functions which it implements
9020 to always fail with ENOSYS. Some functions are actually named
9021 something starting with __ and the normal name is an alias. */
9022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9025 char (*f) () = $ac_func;
9034 return f != $ac_func;
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9041 (eval $ac_link) 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -s conftest$ac_exeext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 eval "$as_ac_var=yes"
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 eval "$as_ac_var=no"
9058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9062 if test `eval echo '${'$as_ac_var'}'` = yes; then
9063 cat >>confdefs.h <<_ACEOF
9064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9068 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9074 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9080 cat >>confdefs.h <<\_ACEOF
9099 if test -f /dev/bpf0 ; then
9103 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9104 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9105 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9116 # include "confdefs.h"
9117 # include <sys/types.h>
9119 # include <stdlib.h>
9120 # include <stddef.h>
9130 rm -f conftest.$ac_objext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9132 (eval $ac_compile) 2>&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -s conftest.$ac_objext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_lbl_have_int8_t=yes
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 ac_cv_lbl_have_int8_t=no
9149 rm -f conftest.$ac_objext conftest.$ac_ext
9152 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9153 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9154 if test $ac_cv_lbl_have_int8_t = no ; then
9155 cat >>confdefs.h <<\_ACEOF
9156 #define int8_t signed char
9160 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9161 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9162 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9173 # include "confdefs.h"
9174 # include <sys/types.h>
9176 # include <stdlib.h>
9177 # include <stddef.h>
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_lbl_have_u_int8_t=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_lbl_have_u_int8_t=no
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9210 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9211 if test $ac_cv_lbl_have_u_int8_t = no ; then
9212 cat >>confdefs.h <<\_ACEOF
9213 #define u_int8_t u_char
9217 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9218 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9219 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9223 #line $LINENO "configure"
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9230 # include "confdefs.h"
9231 # include <sys/types.h>
9233 # include <stdlib.h>
9234 # include <stddef.h>
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_lbl_have_int16_t=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_cv_lbl_have_int16_t=no
9263 rm -f conftest.$ac_objext conftest.$ac_ext
9266 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9267 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9268 if test $ac_cv_lbl_have_int16_t = no ; then
9269 cat >>confdefs.h <<\_ACEOF
9270 #define int16_t short
9274 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9275 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9276 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9280 #line $LINENO "configure"
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9287 # include "confdefs.h"
9288 # include <sys/types.h>
9290 # include <stdlib.h>
9291 # include <stddef.h>
9301 rm -f conftest.$ac_objext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303 (eval $ac_compile) 2>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -s conftest.$ac_objext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_lbl_have_u_int16_t=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_cv_lbl_have_u_int16_t=no
9320 rm -f conftest.$ac_objext conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9324 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9325 if test $ac_cv_lbl_have_u_int16_t = no ; then
9326 cat >>confdefs.h <<\_ACEOF
9327 #define u_int16_t u_short
9331 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9332 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9333 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 cat >conftest.$ac_ext <<_ACEOF
9337 #line $LINENO "configure"
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9344 # include "confdefs.h"
9345 # include <sys/types.h>
9347 # include <stdlib.h>
9348 # include <stddef.h>
9358 rm -f conftest.$ac_objext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360 (eval $ac_compile) 2>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_cv_lbl_have_int32_t=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_cv_lbl_have_int32_t=no
9377 rm -f conftest.$ac_objext conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9381 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9382 if test $ac_cv_lbl_have_int32_t = no ; then
9383 cat >>confdefs.h <<\_ACEOF
9388 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9389 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9390 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9394 #line $LINENO "configure"
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9401 # include "confdefs.h"
9402 # include <sys/types.h>
9404 # include <stdlib.h>
9405 # include <stddef.h>
9415 rm -f conftest.$ac_objext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417 (eval $ac_compile) 2>&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_lbl_have_u_int32_t=yes
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_cv_lbl_have_u_int32_t=no
9434 rm -f conftest.$ac_objext conftest.$ac_ext
9437 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9438 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9439 if test $ac_cv_lbl_have_u_int32_t = no ; then
9440 cat >>confdefs.h <<\_ACEOF
9441 #define u_int32_t u_int
9447 if test "${LBL_CFLAGS+set}" = set; then
9448 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9450 if test -f .devel ; then
9451 if test "$GCC" = yes ; then
9452 if test "${LBL_CFLAGS+set}" != set; then
9453 if test "$ac_cv_prog_cc_g" = yes ; then
9454 V_CCOPT="-g $V_CCOPT"
9456 V_CCOPT="$V_CCOPT -Wall"
9457 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9458 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
9465 V_CCOPT="$V_CCOPT -n32"
9472 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9474 if test -f $name ; then
9475 ln -s $name os-proto.h
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_OS_PROTO_H 1
9481 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9482 echo "$as_me: WARNING: can't find $name" >&2;}
9486 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9487 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9488 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9499 # include <sys/types.h>
9500 # include <sys/socket.h>
9504 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9509 rm -f conftest.$ac_objext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_lbl_sockaddr_has_sa_len=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_lbl_sockaddr_has_sa_len=no
9528 rm -f conftest.$ac_objext conftest.$ac_ext
9531 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9532 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
9533 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_SOCKADDR_SA_LEN 1
9540 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9541 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
9542 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 # These are CPU types where:
9550 # the CPU faults on an unaligned access, but at least some
9551 # OSes that support that CPU catch the fault and simulate
9552 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9553 # the simulation is slow, so we don't want to use it;
9555 # the CPU, I infer (from the old
9557 # XXX: should also check that they don't do weird things (like on arm)
9559 # comment) doesn't fault on unaligned accesses, but doesn't
9560 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9562 # for whatever reason, the test program doesn't work
9563 # (this has been claimed to be the case for several of those
9564 # CPUs - I don't know what the problem is; the problem
9565 # was reported as "the test program dumps core" for SuperH,
9566 # but that's what the test program is *supposed* to do -
9567 # it dumps core before it writes anything, so the test
9568 # for an empty output file should find an empty output
9569 # file and conclude that unaligned accesses don't work).
9571 # This run-time test won't work if you're cross-compiling, so
9572 # in order to support cross-compiling for a particular CPU,
9573 # we have to wire in the list of CPU types anyway, as far as
9574 # I know, so perhaps we should just have a set of CPUs on
9575 # which we know it doesn't work, a set of CPUs on which we
9576 # know it does work, and have the script just fail on other
9577 # cpu types and update it when such a failure occurs.
9579 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
9580 ac_cv_lbl_unaligned_fail=yes
9584 cat >conftest.c <<EOF
9585 # include <sys/types.h>
9586 # include <sys/wait.h>
9588 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9593 /* avoid "core dumped" message */
9599 pid = waitpid(pid, &status, 0);
9602 exit(!WIFEXITED(status));
9605 i = *(unsigned int *)&a[1];
9610 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9611 conftest.c $LIBS >/dev/null 2>&1
9612 if test ! -x conftest ; then
9613 ac_cv_lbl_unaligned_fail=yes
9615 ./conftest >conftest.out
9616 if test ! -s conftest.out ; then
9617 ac_cv_lbl_unaligned_fail=yes
9619 ac_cv_lbl_unaligned_fail=no
9622 rm -f conftest* core core.conftest
9627 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9628 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
9629 if test $ac_cv_lbl_unaligned_fail = yes ; then
9630 cat >>confdefs.h <<\_ACEOF
9637 echo "$as_me:$LINENO: checking for h_errno" >&5
9638 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
9639 if test "${ac_cv_var_h_errno+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9650 # include <sys/types.h>
9660 rm -f conftest.$ac_objext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9662 (eval $ac_compile) 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -s conftest.$ac_objext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_var_h_errno=yes
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_cv_var_h_errno=no
9679 rm -f conftest.$ac_objext conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
9683 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
9684 if test "$ac_cv_var_h_errno" = "yes"; then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_H_ERRNO 1
9693 # Check whether --with-crypto or --without-crypto was given.
9694 if test "${with_crypto+set}" = set; then
9695 withval="$with_crypto"
9699 echo "$as_me:$LINENO: checking for SSLeay" >&5
9700 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
9701 ac_cv_ssleay_path=no
9703 for dir in /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
9705 # XXX - is there a better way to check if a given library is
9706 # in a given directory than checking each of the possible
9707 # shared library suffixes?
9709 # Are there any other suffixes we need to look for? Do we have to
9710 # worry about ".so.{version}"?
9712 # Or should we just look for "libcrypto.*"?
9714 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
9715 -f $dir/lib/libcrypto.so -o \
9716 -f $dir/lib/libcrypto.sl -o \
9717 -f $dir/lib/libcrypto.dylib \); then
9718 ac_cv_ssleay_path=$dir
9720 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
9721 incdir="-I$dir/include"
9723 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
9726 ac_cv_ssleay_path=no
9730 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
9731 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
9732 if test "$ac_cv_ssleay_path" != no; then
9733 V_INCLS="$V_INCLS $incdir"
9734 LDFLAGS="-L$dir/lib $LDFLAGS"
9735 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
9736 LIBS="$LIBS -lRSAglue"
9738 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
9739 LIBS="$LIBS -lrsaref"
9742 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
9743 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
9744 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 ac_check_lib_save_LIBS=$LIBS
9748 LIBS="-lcrypto $LIBS"
9749 cat >conftest.$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9757 /* Override any gcc2 internal prototype to avoid an error. */
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763 char des_cbc_encrypt ();
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_crypto_des_cbc_encrypt=yes
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_lib_crypto_des_cbc_encrypt=no
9791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9794 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
9795 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
9796 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE_LIBCRYPTO 1
9801 LIBS="-lcrypto $LIBS"
9806 CPPFLAGS="$CPPFLAGS $V_INCLS"
9808 for ac_header in openssl/evp.h
9810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812 echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820 # Is the header compilable?
9821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9823 cat >conftest.$ac_ext <<_ACEOF
9824 #line $LINENO "configure"
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 $ac_includes_default
9831 #include <$ac_header>
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -s conftest.$ac_objext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_header_compiler=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_header_compiler=no
9852 rm -f conftest.$ac_objext conftest.$ac_ext
9853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9854 echo "${ECHO_T}$ac_header_compiler" >&6
9856 # Is the header present?
9857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9859 cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <$ac_header>
9868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9871 grep -v '^ *+' conftest.er1 >conftest.err
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } >/dev/null; then
9876 if test -s conftest.err; then
9877 ac_cpp_err=$ac_c_preproc_warn_flag
9884 if test -z "$ac_cpp_err"; then
9885 ac_header_preproc=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_header_preproc=no
9892 rm -f conftest.err conftest.$ac_ext
9893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 echo "${ECHO_T}$ac_header_preproc" >&6
9896 # So? What about this header?
9897 case $ac_header_compiler:$ac_header_preproc in
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9905 ## ------------------------------------ ##
9906 ## Report this to bug-autoconf@gnu.org. ##
9907 ## ------------------------------------ ##
9910 sed "s/^/$as_me: WARNING: /" >&2
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9921 ## ------------------------------------ ##
9922 ## Report this to bug-autoconf@gnu.org. ##
9923 ## ------------------------------------ ##
9926 sed "s/^/$as_me: WARNING: /" >&2
9929 echo "$as_me:$LINENO: checking for $ac_header" >&5
9930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 eval "$as_ac_Header=$ac_header_preproc"
9936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9941 cat >>confdefs.h <<_ACEOF
9942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9960 # Find a good install program. We prefer a C program (faster),
9961 # so one script is as good as another. But avoid the broken or
9962 # incompatible versions:
9963 # SysV /etc/install, /usr/sbin/install
9964 # SunOS /usr/etc/install
9965 # IRIX /sbin/install
9967 # AmigaOS /C/install, which installs bootblocks on floppy discs
9968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9971 # ./install, which can be erroneously created by make from ./install.sh.
9972 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9973 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9974 if test -z "$INSTALL"; then
9975 if test "${ac_cv_path_install+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 test -z "$as_dir" && as_dir=.
9983 # Account for people who put trailing slashes in PATH elements.
9985 ./ | .// | /cC/* | \
9986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9989 # OSF1 and SCO ODT 3.0 have their own names for install.
9990 # Don't use installbsd from OSF since it installs stuff as root
9992 for ac_prog in ginstall scoinst install; do
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9995 if test $ac_prog = install &&
9996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9997 # AIX install. It has an incompatible calling convention.
9999 elif test $ac_prog = install &&
10000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10001 # program-specific install script used by HP pwplus--don't use.
10004 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10016 if test "${ac_cv_path_install+set}" = set; then
10017 INSTALL=$ac_cv_path_install
10019 # As a last resort, use the slow shell script. We don't cache a
10020 # path for INSTALL within a source directory, because that will
10021 # break other packages using the cache if that directory is
10022 # removed, or if the path is relative.
10023 INSTALL=$ac_install_sh
10026 echo "$as_me:$LINENO: result: $INSTALL" >&5
10027 echo "${ECHO_T}$INSTALL" >&6
10029 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10030 # It thinks the first close brace ends the variable substitution.
10031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10033 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10035 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10038 ac_config_headers="$ac_config_headers config.h"
10041 ac_config_commands="$ac_config_commands default-1"
10043 ac_config_files="$ac_config_files Makefile"
10044 cat >confcache <<\_ACEOF
10045 # This file is a shell script that caches the results of configure
10046 # tests run on this system so they can be shared between configure
10047 # scripts and configure runs, see configure's option --config-cache.
10048 # It is not useful on other systems. If it contains results you don't
10049 # want to keep, you may remove or edit it.
10051 # config.status only pays attention to the cache file if you give it
10052 # the --recheck option to rerun configure.
10054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10056 # following values.
10060 # The following way of writing the cache mishandles newlines in values,
10061 # but we know of no workaround that is simple, portable, and efficient.
10062 # So, don't put newlines in cache variables' values.
10063 # Ultrix sh set writes to stderr and can't be redirected directly,
10064 # and sets the high bit in the cache file unless we assign to the vars.
10067 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10069 # `set' does not quote correctly, so add quotes (double-quote
10070 # substitution turns \\\\ into \\, and sed turns \\ into \).
10073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10076 # `set' quotes correctly as required by POSIX, so do not add quotes.
10078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10087 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10089 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10090 if test -w $cache_file; then
10091 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10092 cat confcache >$cache_file
10094 echo "not updating unwritable cache $cache_file"
10099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10100 # Let make expand exec_prefix.
10101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10105 # trailing colons and then remove the whole line if VPATH becomes empty
10106 # (actually we leave an empty line to preserve line numbers).
10107 if test "x$srcdir" = x.; then
10108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10109 s/:*\$(srcdir):*/:/;
10110 s/:*\${srcdir}:*/:/;
10112 s/^\([^=]*=[ ]*\):*/\1/;
10118 DEFS=-DHAVE_CONFIG_H
10122 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10123 # 1. Remove the extension, and $U if already installed.
10124 ac_i=`echo "$ac_i" |
10125 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10127 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10128 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10130 LIBOBJS=$ac_libobjs
10132 LTLIBOBJS=$ac_ltlibobjs
10136 : ${CONFIG_STATUS=./config.status}
10137 ac_clean_files_save=$ac_clean_files
10138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10139 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10140 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10141 cat >$CONFIG_STATUS <<_ACEOF
10143 # Generated by $as_me.
10144 # Run this file to recreate the current configuration.
10145 # Compiler output produced by configure, useful for debugging
10146 # configure, is in config.log if it exists.
10149 ac_cs_recheck=false
10151 SHELL=\${CONFIG_SHELL-$SHELL}
10154 cat >>$CONFIG_STATUS <<\_ACEOF
10155 ## --------------------- ##
10156 ## M4sh Initialization. ##
10157 ## --------------------- ##
10159 # Be Bourne compatible
10160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10163 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10164 # is contrary to our usage. Disable this feature.
10165 alias -g '${1+"$@"}'='"$@"'
10166 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10170 # Support unset when possible.
10171 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10178 # Work around bugs in pre-3.0 UWIN ksh.
10179 $as_unset ENV MAIL MAILPATH
10186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10188 LC_TELEPHONE LC_TIME
10190 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10191 eval $as_var=C; export $as_var
10197 # Required to use basename.
10198 if expr a : '\(a\)' >/dev/null 2>&1; then
10204 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10205 as_basename=basename
10211 # Name of the executable.
10212 as_me=`$as_basename "$0" ||
10213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10214 X"$0" : 'X\(//\)$' \| \
10215 X"$0" : 'X\(/\)$' \| \
10216 . : '\(.\)' 2>/dev/null ||
10218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10219 /^X\/\(\/\/\)$/{ s//\1/; q; }
10220 /^X\/\(\/\).*/{ s//\1/; q; }
10224 # PATH needs CR, and LINENO needs CR and PATH.
10225 # Avoid depending upon Character Ranges.
10226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10229 as_cr_digits='0123456789'
10230 as_cr_alnum=$as_cr_Letters$as_cr_digits
10232 # The user is always right.
10233 if test "${PATH_SEPARATOR+set}" != set; then
10234 echo "#! /bin/sh" >conf$$.sh
10235 echo "exit 0" >>conf$$.sh
10237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10246 as_lineno_1=$LINENO
10247 as_lineno_2=$LINENO
10248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10249 test "x$as_lineno_1" != "x$as_lineno_2" &&
10250 test "x$as_lineno_3" = "x$as_lineno_2" || {
10251 # Find who we are. Look in the path if we contain no path at all
10254 *[\\/]* ) as_myself=$0 ;;
10255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10259 test -z "$as_dir" && as_dir=.
10260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10265 # We did not find ourselves, most probably we were run as `sh COMMAND'
10266 # in which case we are not to be found in the path.
10267 if test "x$as_myself" = x; then
10270 if test ! -f "$as_myself"; then
10271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10273 { (exit 1); exit 1; }; }
10275 case $CONFIG_SHELL in
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10281 test -z "$as_dir" && as_dir=.
10282 for as_base in sh bash ksh sh5; do
10285 if ("$as_dir/$as_base" -c '
10286 as_lineno_1=$LINENO
10287 as_lineno_2=$LINENO
10288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10289 test "x$as_lineno_1" != "x$as_lineno_2" &&
10290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10291 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10292 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10293 CONFIG_SHELL=$as_dir/$as_base
10294 export CONFIG_SHELL
10295 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10304 # uniformly replaced by the line number. The first 'sed' inserts a
10305 # line-number line before each line; the second 'sed' does the real
10306 # work. The second script uses 'N' to pair each line-number line
10307 # with the numbered line, and appends trailing '-' during
10308 # substitution so that $LINENO is not a special case at line end.
10309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10311 sed '=' <$as_myself |
10316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10319 s,^['$as_cr_digits']*\n,,
10320 ' >$as_me.lineno &&
10321 chmod +x $as_me.lineno ||
10322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10324 { (exit 1); exit 1; }; }
10326 # Don't try to exec as it changes $[0], causing all sort of problems
10327 # (the dirname of $[0] is not the place where we might find the
10328 # original and so on. Autoconf is especially sensible to this).
10330 # Exit status is that of the last command.
10335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10336 *c*,-n*) ECHO_N= ECHO_C='
10338 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10339 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10342 if expr a : '\(a\)' >/dev/null 2>&1; then
10348 rm -f conf$$ conf$$.exe conf$$.file
10350 if ln -s conf$$.file conf$$ 2>/dev/null; then
10351 # We could just check for DJGPP; but this test a) works b) is more generic
10352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10353 if test -f conf$$.exe; then
10354 # Don't use ln at all; we don't have any links
10359 elif ln conf$$.file conf$$ 2>/dev/null; then
10364 rm -f conf$$ conf$$.exe conf$$.file
10366 if mkdir -p . 2>/dev/null; then
10372 as_executable_p="test -f"
10374 # Sed expression to map a string onto a valid CPP name.
10375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10377 # Sed expression to map a string onto a valid variable name.
10378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10382 # We need space, tab and new line, in precisely that order.
10392 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10393 # report actual input values of CONFIG_FILES etc. instead of their
10394 # values after options handling. Logging --version etc. is OK.
10398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10399 ## Running $as_me. ##
10404 This file was extended by $as_me, which was
10405 generated by GNU Autoconf 2.57. Invocation command line was
10407 CONFIG_FILES = $CONFIG_FILES
10408 CONFIG_HEADERS = $CONFIG_HEADERS
10409 CONFIG_LINKS = $CONFIG_LINKS
10410 CONFIG_COMMANDS = $CONFIG_COMMANDS
10414 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10418 # Files that config.status was made for.
10419 if test -n "$ac_config_files"; then
10420 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10423 if test -n "$ac_config_headers"; then
10424 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10427 if test -n "$ac_config_links"; then
10428 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10431 if test -n "$ac_config_commands"; then
10432 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10435 cat >>$CONFIG_STATUS <<\_ACEOF
10438 \`$as_me' instantiates files from templates according to the
10439 current configuration.
10441 Usage: $0 [OPTIONS] [FILE]...
10443 -h, --help print this help, then exit
10444 -V, --version print version number, then exit
10445 -q, --quiet do not print progress messages
10446 -d, --debug don't remove temporary files
10447 --recheck update $as_me by reconfiguring in the same conditions
10448 --file=FILE[:TEMPLATE]
10449 instantiate the configuration file FILE
10450 --header=FILE[:TEMPLATE]
10451 instantiate the configuration header FILE
10453 Configuration files:
10456 Configuration headers:
10459 Configuration commands:
10462 Report bugs to <bug-autoconf@gnu.org>."
10465 cat >>$CONFIG_STATUS <<_ACEOF
10468 configured by $0, generated by GNU Autoconf 2.57,
10469 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10471 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10472 Free Software Foundation, Inc.
10473 This config.status script is free software; the Free Software Foundation
10474 gives unlimited permission to copy, distribute and modify it."
10479 cat >>$CONFIG_STATUS <<\_ACEOF
10480 # If no file are specified by the user, then we need to provide default
10481 # value. By we need to know if files were specified by the user.
10487 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10488 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10496 *) # This is not an option, so the user has probably given explicit
10499 ac_need_defaults=false;;
10503 # Handling of the options.
10505 cat >>$CONFIG_STATUS <<\_ACEOF
10506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10508 --version | --vers* | -V )
10509 echo "$ac_cs_version"; exit 0 ;;
10511 # Conflict between --help and --header
10512 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10513 Try \`$0 --help' for more information." >&5
10514 echo "$as_me: error: ambiguous option: $1
10515 Try \`$0 --help' for more information." >&2;}
10516 { (exit 1); exit 1; }; };;
10517 --help | --hel | -h )
10518 echo "$ac_cs_usage"; exit 0 ;;
10519 --debug | --d* | -d )
10521 --file | --fil | --fi | --f )
10523 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10524 ac_need_defaults=false;;
10525 --header | --heade | --head | --hea )
10527 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10528 ac_need_defaults=false;;
10529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10533 # This is an error.
10534 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10535 Try \`$0 --help' for more information." >&5
10536 echo "$as_me: error: unrecognized option: $1
10537 Try \`$0 --help' for more information." >&2;}
10538 { (exit 1); exit 1; }; } ;;
10540 *) ac_config_targets="$ac_config_targets $1" ;;
10546 ac_configure_extra_args=
10548 if $ac_cs_silent; then
10550 ac_configure_extra_args="$ac_configure_extra_args --silent"
10554 cat >>$CONFIG_STATUS <<_ACEOF
10555 if \$ac_cs_recheck; then
10556 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10557 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10562 cat >>$CONFIG_STATUS <<_ACEOF
10564 # INIT-COMMANDS section.
10573 cat >>$CONFIG_STATUS <<\_ACEOF
10574 for ac_config_target in $ac_config_targets
10576 case "$ac_config_target" in
10577 # Handling of arguments.
10578 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10579 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10580 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10581 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10582 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10583 { (exit 1); exit 1; }; };;
10587 # If the user did not use the arguments to specify the items to instantiate,
10588 # then the envvar interface is used. Set only those that are not.
10589 # We use the long form for the default assignment because of an extremely
10590 # bizarre bug on SunOS 4.1.3.
10591 if $ac_need_defaults; then
10592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10594 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10597 # Have a temporary directory for convenience. Make it in the build tree
10598 # simply because there is no reason to put it here, and in addition,
10599 # creating and moving files from /tmp can sometimes cause problems.
10600 # Create a temporary directory, and hook for its removal unless debugging.
10603 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10604 trap '{ (exit 1); exit 1; }' 1 2 13 15
10607 # Create a (secure) tmp directory for tmp files.
10610 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10611 test -n "$tmp" && test -d "$tmp"
10614 tmp=./confstat$$-$RANDOM
10615 (umask 077 && mkdir $tmp)
10618 echo "$me: cannot create a temporary directory in ." >&2
10619 { (exit 1); exit 1; }
10624 cat >>$CONFIG_STATUS <<_ACEOF
10627 # CONFIG_FILES section.
10630 # No need to generate the scripts if there are no CONFIG_FILES.
10631 # This happens for instance when ./config.status config.h
10632 if test -n "\$CONFIG_FILES"; then
10633 # Protect against being on the right side of a sed subst in config.status.
10634 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10635 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10636 s,@SHELL@,$SHELL,;t t
10637 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10638 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10639 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10640 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10641 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10642 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10643 s,@exec_prefix@,$exec_prefix,;t t
10644 s,@prefix@,$prefix,;t t
10645 s,@program_transform_name@,$program_transform_name,;t t
10646 s,@bindir@,$bindir,;t t
10647 s,@sbindir@,$sbindir,;t t
10648 s,@libexecdir@,$libexecdir,;t t
10649 s,@datadir@,$datadir,;t t
10650 s,@sysconfdir@,$sysconfdir,;t t
10651 s,@sharedstatedir@,$sharedstatedir,;t t
10652 s,@localstatedir@,$localstatedir,;t t
10653 s,@libdir@,$libdir,;t t
10654 s,@includedir@,$includedir,;t t
10655 s,@oldincludedir@,$oldincludedir,;t t
10656 s,@infodir@,$infodir,;t t
10657 s,@mandir@,$mandir,;t t
10658 s,@build_alias@,$build_alias,;t t
10659 s,@host_alias@,$host_alias,;t t
10660 s,@target_alias@,$target_alias,;t t
10661 s,@DEFS@,$DEFS,;t t
10662 s,@ECHO_C@,$ECHO_C,;t t
10663 s,@ECHO_N@,$ECHO_N,;t t
10664 s,@ECHO_T@,$ECHO_T,;t t
10665 s,@LIBS@,$LIBS,;t t
10666 s,@build@,$build,;t t
10667 s,@build_cpu@,$build_cpu,;t t
10668 s,@build_vendor@,$build_vendor,;t t
10669 s,@build_os@,$build_os,;t t
10670 s,@host@,$host,;t t
10671 s,@host_cpu@,$host_cpu,;t t
10672 s,@host_vendor@,$host_vendor,;t t
10673 s,@host_os@,$host_os,;t t
10674 s,@SHLICC2@,$SHLICC2,;t t
10676 s,@CFLAGS@,$CFLAGS,;t t
10677 s,@LDFLAGS@,$LDFLAGS,;t t
10678 s,@CPPFLAGS@,$CPPFLAGS,;t t
10679 s,@ac_ct_CC@,$ac_ct_CC,;t t
10680 s,@EXEEXT@,$EXEEXT,;t t
10681 s,@OBJEXT@,$OBJEXT,;t t
10683 s,@EGREP@,$EGREP,;t t
10684 s,@LIBOBJS@,$LIBOBJS,;t t
10685 s,@V_CCOPT@,$V_CCOPT,;t t
10686 s,@V_DEFS@,$V_DEFS,;t t
10687 s,@V_GROUP@,$V_GROUP,;t t
10688 s,@V_INCLS@,$V_INCLS,;t t
10689 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
10690 s,@LOCALSRC@,$LOCALSRC,;t t
10691 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10692 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10693 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10694 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10699 cat >>$CONFIG_STATUS <<\_ACEOF
10700 # Split the substitutions into bite-sized pieces for seds with
10701 # small command number limits, like on Digital OSF/1 and HP-UX.
10702 ac_max_sed_lines=48
10703 ac_sed_frag=1 # Number of current file.
10704 ac_beg=1 # First line for current file.
10705 ac_end=$ac_max_sed_lines # Line after last line for current file.
10708 while $ac_more_lines; do
10709 if test $ac_beg -gt 1; then
10710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10712 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10714 if test ! -s $tmp/subs.frag; then
10715 ac_more_lines=false
10717 # The purpose of the label and of the branching condition is to
10718 # speed up the sed processing (if there are no `@' at all, there
10719 # is no need to browse any of the substitutions).
10720 # These are the two extra sed commands mentioned above.
10722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10723 if test -z "$ac_sed_cmds"; then
10724 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10726 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10728 ac_sed_frag=`expr $ac_sed_frag + 1`
10730 ac_end=`expr $ac_end + $ac_max_sed_lines`
10733 if test -z "$ac_sed_cmds"; then
10736 fi # test -n "$CONFIG_FILES"
10739 cat >>$CONFIG_STATUS <<\_ACEOF
10740 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10743 - | *:- | *:-:* ) # input from stdin
10745 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10747 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10749 * ) ac_file_in=$ac_file.in ;;
10752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10753 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10755 X"$ac_file" : 'X\(//\)[^/]' \| \
10756 X"$ac_file" : 'X\(//\)$' \| \
10757 X"$ac_file" : 'X\(/\)' \| \
10758 . : '\(.\)' 2>/dev/null ||
10760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10762 /^X\(\/\/\)$/{ s//\1/; q; }
10763 /^X\(\/\).*/{ s//\1/; q; }
10765 { if $as_mkdir_p; then
10770 while test ! -d "$as_dir"; do
10771 as_dirs="$as_dir $as_dirs"
10772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10774 X"$as_dir" : 'X\(//\)[^/]' \| \
10775 X"$as_dir" : 'X\(//\)$' \| \
10776 X"$as_dir" : 'X\(/\)' \| \
10777 . : '\(.\)' 2>/dev/null ||
10779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10781 /^X\(\/\/\)$/{ s//\1/; q; }
10782 /^X\(\/\).*/{ s//\1/; q; }
10785 test ! -n "$as_dirs" || mkdir $as_dirs
10786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10788 { (exit 1); exit 1; }; }; }
10792 if test "$ac_dir" != .; then
10793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10794 # A "../" for each directory in $ac_dir_suffix.
10795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10797 ac_dir_suffix= ac_top_builddir=
10801 .) # No --srcdir option. We are building in place.
10803 if test -z "$ac_top_builddir"; then
10806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10808 [\\/]* | ?:[\\/]* ) # Absolute path.
10809 ac_srcdir=$srcdir$ac_dir_suffix;
10810 ac_top_srcdir=$srcdir ;;
10811 *) # Relative path.
10812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10815 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10817 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10818 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10819 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10820 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10824 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10825 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10828 if test x"$ac_file" != x-; then
10829 { echo "$as_me:$LINENO: creating $ac_file" >&5
10830 echo "$as_me: creating $ac_file" >&6;}
10833 # Let's still pretend it is `configure' which instantiates (i.e., don't
10834 # use $as_me), people would be surprised to read:
10835 # /* config.h. Generated by config.status. */
10836 if test x"$ac_file" = x-; then
10839 configure_input="$ac_file. "
10841 configure_input=$configure_input"Generated from `echo $ac_file_in |
10842 sed 's,.*/,,'` by configure."
10844 # First look for the input files in the build tree, otherwise in the
10846 ac_file_inputs=`IFS=:
10847 for f in $ac_file_in; do
10849 -) echo $tmp/stdin ;;
10851 # Absolute (can't be DOS-style, as IFS=:)
10852 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10853 echo "$as_me: error: cannot find input file: $f" >&2;}
10854 { (exit 1); exit 1; }; }
10857 if test -f "$f"; then
10860 elif test -f "$srcdir/$f"; then
10865 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10866 echo "$as_me: error: cannot find input file: $f" >&2;}
10867 { (exit 1); exit 1; }; }
10870 done` || { (exit 1); exit 1; }
10872 cat >>$CONFIG_STATUS <<_ACEOF
10876 cat >>$CONFIG_STATUS <<\_ACEOF
10878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10879 s,@configure_input@,$configure_input,;t t
10880 s,@srcdir@,$ac_srcdir,;t t
10881 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10882 s,@top_srcdir@,$ac_top_srcdir,;t t
10883 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10884 s,@builddir@,$ac_builddir,;t t
10885 s,@abs_builddir@,$ac_abs_builddir,;t t
10886 s,@top_builddir@,$ac_top_builddir,;t t
10887 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10888 s,@INSTALL@,$ac_INSTALL,;t t
10889 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10891 if test x"$ac_file" != x-; then
10892 mv $tmp/out $ac_file
10900 cat >>$CONFIG_STATUS <<\_ACEOF
10903 # CONFIG_HEADER section.
10906 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10907 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10909 # ac_d sets the value in "#define NAME VALUE" lines.
10910 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10911 ac_dB='[ ].*$,\1#\2'
10914 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10915 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10916 ac_uB='$,\1#\2define\3'
10920 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10923 - | *:- | *:-:* ) # input from stdin
10925 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10927 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10929 * ) ac_file_in=$ac_file.in ;;
10932 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10933 echo "$as_me: creating $ac_file" >&6;}
10935 # First look for the input files in the build tree, otherwise in the
10937 ac_file_inputs=`IFS=:
10938 for f in $ac_file_in; do
10940 -) echo $tmp/stdin ;;
10942 # Absolute (can't be DOS-style, as IFS=:)
10943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10944 echo "$as_me: error: cannot find input file: $f" >&2;}
10945 { (exit 1); exit 1; }; }
10948 if test -f "$f"; then
10951 elif test -f "$srcdir/$f"; then
10956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10957 echo "$as_me: error: cannot find input file: $f" >&2;}
10958 { (exit 1); exit 1; }; }
10961 done` || { (exit 1); exit 1; }
10962 # Remove the trailing spaces.
10963 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10967 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10968 # `conftest.undefs', that substitutes the proper values into
10969 # config.h.in to produce config.h. The first handles `#define'
10970 # templates, and the second `#undef' templates.
10971 # And first: Protect against being on the right side of a sed subst in
10972 # config.status. Protect against being in an unquoted here document
10973 # in config.status.
10974 rm -f conftest.defines conftest.undefs
10975 # Using a here document instead of a string reduces the quoting nightmare.
10976 # Putting comments in sed scripts is not portable.
10978 # `end' is used to avoid that the second main sed command (meant for
10979 # 0-ary CPP macros) applies to n-ary macro definitions.
10980 # See the Autoconf documentation for `clear'.
10981 cat >confdef2sed.sed <<\_ACEOF
10986 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10988 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10991 # If some macros were called several times there might be several times
10992 # the same #defines, which is useless. Nevertheless, we may not want to
10993 # sort them, since we want the *last* AC-DEFINE to be honored.
10994 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10995 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10996 rm -f confdef2sed.sed
10998 # This sed command replaces #undef with comments. This is necessary, for
10999 # example, in the case of _POSIX_SOURCE, which is predefined and required
11000 # on some systems where configure will not decide to define it.
11001 cat >>conftest.undefs <<\_ACEOF
11002 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11005 # Break up conftest.defines because some shells have a limit on the size
11006 # of here documents, and old seds have small limits too (100 cmds).
11007 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11008 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11009 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11010 echo ' :' >>$CONFIG_STATUS
11011 rm -f conftest.tail
11012 while grep . conftest.defines >/dev/null
11014 # Write a limited-size here document to $tmp/defines.sed.
11015 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11016 # Speed up: don't consider the non `#define' lines.
11017 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11018 # Work around the forget-to-reset-the-flag bug.
11019 echo 't clr' >>$CONFIG_STATUS
11020 echo ': clr' >>$CONFIG_STATUS
11021 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11023 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11025 mv $tmp/out $tmp/in
11027 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11028 rm -f conftest.defines
11029 mv conftest.tail conftest.defines
11031 rm -f conftest.defines
11032 echo ' fi # grep' >>$CONFIG_STATUS
11033 echo >>$CONFIG_STATUS
11035 # Break up conftest.undefs because some shells have a limit on the size
11036 # of here documents, and old seds have small limits too (100 cmds).
11037 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11038 rm -f conftest.tail
11039 while grep . conftest.undefs >/dev/null
11041 # Write a limited-size here document to $tmp/undefs.sed.
11042 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11043 # Speed up: don't consider the non `#undef'
11044 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11045 # Work around the forget-to-reset-the-flag bug.
11046 echo 't clr' >>$CONFIG_STATUS
11047 echo ': clr' >>$CONFIG_STATUS
11048 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11050 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11052 mv $tmp/out $tmp/in
11054 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11055 rm -f conftest.undefs
11056 mv conftest.tail conftest.undefs
11058 rm -f conftest.undefs
11060 cat >>$CONFIG_STATUS <<\_ACEOF
11061 # Let's still pretend it is `configure' which instantiates (i.e., don't
11062 # use $as_me), people would be surprised to read:
11063 # /* config.h. Generated by config.status. */
11064 if test x"$ac_file" = x-; then
11065 echo "/* Generated by configure. */" >$tmp/config.h
11067 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11069 cat $tmp/in >>$tmp/config.h
11071 if test x"$ac_file" != x-; then
11072 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11073 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11074 echo "$as_me: $ac_file is unchanged" >&6;}
11076 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11078 X"$ac_file" : 'X\(//\)[^/]' \| \
11079 X"$ac_file" : 'X\(//\)$' \| \
11080 X"$ac_file" : 'X\(/\)' \| \
11081 . : '\(.\)' 2>/dev/null ||
11083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11085 /^X\(\/\/\)$/{ s//\1/; q; }
11086 /^X\(\/\).*/{ s//\1/; q; }
11088 { if $as_mkdir_p; then
11093 while test ! -d "$as_dir"; do
11094 as_dirs="$as_dir $as_dirs"
11095 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11097 X"$as_dir" : 'X\(//\)[^/]' \| \
11098 X"$as_dir" : 'X\(//\)$' \| \
11099 X"$as_dir" : 'X\(/\)' \| \
11100 . : '\(.\)' 2>/dev/null ||
11102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11104 /^X\(\/\/\)$/{ s//\1/; q; }
11105 /^X\(\/\).*/{ s//\1/; q; }
11108 test ! -n "$as_dirs" || mkdir $as_dirs
11109 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11111 { (exit 1); exit 1; }; }; }
11114 mv $tmp/config.h $ac_file
11118 rm -f $tmp/config.h
11122 cat >>$CONFIG_STATUS <<\_ACEOF
11125 # CONFIG_COMMANDS section.
11127 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11128 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11129 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11130 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11131 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11132 X"$ac_dest" : 'X\(//\)[^/]' \| \
11133 X"$ac_dest" : 'X\(//\)$' \| \
11134 X"$ac_dest" : 'X\(/\)' \| \
11135 . : '\(.\)' 2>/dev/null ||
11137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11139 /^X\(\/\/\)$/{ s//\1/; q; }
11140 /^X\(\/\).*/{ s//\1/; q; }
11144 if test "$ac_dir" != .; then
11145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11146 # A "../" for each directory in $ac_dir_suffix.
11147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11149 ac_dir_suffix= ac_top_builddir=
11153 .) # No --srcdir option. We are building in place.
11155 if test -z "$ac_top_builddir"; then
11158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11160 [\\/]* | ?:[\\/]* ) # Absolute path.
11161 ac_srcdir=$srcdir$ac_dir_suffix;
11162 ac_top_srcdir=$srcdir ;;
11163 *) # Relative path.
11164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11167 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11169 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11170 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11171 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11172 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11175 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11176 echo "$as_me: executing $ac_dest commands" >&6;}
11178 default-1 ) if test -f .devel; then
11179 echo timestamp > stamp-h
11180 cat Makefile-devel-adds >> Makefile
11187 cat >>$CONFIG_STATUS <<\_ACEOF
11189 { (exit 0); exit 0; }
11191 chmod +x $CONFIG_STATUS
11192 ac_clean_files=$ac_clean_files_save
11195 # configure is writing to config.log, and then calls config.status.
11196 # config.status does its own redirection, appending to config.log.
11197 # Unfortunately, on DOS this fails, as config.log is still kept open
11198 # by configure, so config.status won't be able to write to it; its
11199 # output is simply discarded. So we exec the FD to /dev/null,
11200 # effectively closing config.log, so it can be properly (re)opened and
11201 # appended to by config.status. When coming back to configure, we
11202 # need to make the FD available again.
11203 if test "$no_create" != yes; then
11205 ac_config_status_args=
11206 test "$silent" = yes &&
11207 ac_config_status_args="$ac_config_status_args --quiet"
11209 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11212 # would make configure fail if this is the last instruction.
11213 $ac_cs_success || { (exit 1); exit 1; }