2 # From configure.in Revision: 1.120.2.4 .
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
="pcap.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 target target_cpu target_vendor target_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_LEX V_YACC RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_INCLS V_LIBS V_PCAP V_FINDALLDEVS V_RANLIB SSRC DYEXT 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
]
837 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --disable-protochain disable
\"protochain
\" insn
849 --enable-ipv6 build IPv6-capable version
850 --enable-optimizer-dbg build optimizer debugging code
851 --enable-yydebug build parser debugging code
854 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
855 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
856 --without-gcc don
't use gcc
857 --with-pcap=TYPE use packet capture TYPE
858 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
859 --with-dag-includes=DIR Endace DAG include directory
860 --with-dag-libraries=DIR Endace DAG library directory
861 --without-flex don't use flex
862 --without-bison don
't use bison
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
873 Use these variables to override the choices made by `configure' or to
help
874 it to
find libraries and programs with nonstandard names
/locations.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
883 test -d $ac_dir ||
continue
886 if test "$ac_dir" != .
; then
887 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 ac_dir_suffix
= ac_top_builddir
=
895 .
) # No --srcdir option. We are building in place.
897 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
902 [\\/]* | ?
:[\\/]* ) # Absolute path.
903 ac_srcdir
=$srcdir$ac_dir_suffix;
904 ac_top_srcdir
=$srcdir ;;
906 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917 # Check for guested configure; otherwise get Cygnus style configure.
918 if test -f $ac_srcdir/configure.gnu
; then
920 $SHELL $ac_srcdir/configure.gnu
--help=recursive
921 elif test -f $ac_srcdir/configure
; then
923 $SHELL $ac_srcdir/configure
--help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.
in; then
929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
939 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
940 Free Software Foundation
, Inc.
941 This configure
script is free software
; the Free Software Foundation
942 gives unlimited permission to copy
, distribute and modify it.
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.57. Invocation command line was
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
986 test -z "$as_dir" && as_dir
=.
1002 # Keep a trace of the command line.
1003 # Strip out --no-create and --no-recursion so they do not pile up.
1004 # Strip out --silent because we don't want to record it for future runs.
1005 # Also quote any args containing shell meta-characters.
1006 # Make two passes to allow for proper duplicate-argument suppression.
1011 ac_must_keep_next
=false
1017 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1021 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1027 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1028 if test $ac_must_keep_next = true
; then
1029 ac_must_keep_next
=false
# Got value, back to normal.
1032 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1033 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1034 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1035 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1036 case "$ac_configure_args0 " in
1037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040 -* ) ac_must_keep_next
=true
;;
1043 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1044 # Get rid of the leading space.
1050 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1051 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1053 # When interrupted or exit'd, cleanup temporary files, and complete
1054 # config.log. We remove comments because anyway the quotes in there
1055 # would cause problems or look ugly.
1056 # WARNING: Be sure not to use single quotes in there, as some shells,
1057 # such as our DU 5.0 friend, will then `close' the trap.
1058 trap 'exit_status=$?
1059 # Save into config.log some information that might help in debugging.
1064 ## ---------------- ##
1065 ## Cache variables. ##
1066 ## ---------------- ##
1069 # The following way of writing the cache mishandles newlines in values,
1072 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1087 ## ----------------- ##
1088 ## Output variables. ##
1089 ## ----------------- ##
1092 for ac_var in $ac_subst_vars
1094 eval ac_val=$`echo $ac_var`
1095 echo "$ac_var='"'"'$ac_val'"'"'"
1099 if test -n "$ac_subst_files"; then
1106 for ac_var in $ac_subst_files
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1114 if test -s confdefs.h; then
1121 sed "/^$/d" confdefs.h | sort
1124 test "$ac_signal" != 0 &&
1125 echo "$as_me: caught signal $ac_signal"
1126 echo "$as_me: exit $exit_status"
1128 rm -f core core.* *.core &&
1129 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132 for ac_signal
in 1 2 13 15; do
1133 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1138 rm -rf conftest
* confdefs.h
1139 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 # Predefined preprocessor variables.
1144 cat >>confdefs.h
<<_ACEOF
1145 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 cat >>confdefs.h
<<_ACEOF
1150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 cat >>confdefs.h
<<_ACEOF
1155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 cat >>confdefs.h
<<_ACEOF
1160 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 cat >>confdefs.h
<<_ACEOF
1165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 # Let the site file select an alternate cache file if it wants to.
1170 # Prefer explicitly selected file to automatically selected ones.
1171 if test -z "$CONFIG_SITE"; then
1172 if test "x$prefix" != xNONE
; then
1173 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1175 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178 for ac_site_file
in $CONFIG_SITE; do
1179 if test -r "$ac_site_file"; then
1180 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181 echo "$as_me: loading site script $ac_site_file" >&6;}
1182 sed 's/^/| /' "$ac_site_file" >&5
1187 if test -r "$cache_file"; then
1188 # Some versions of bash will fail to source /dev/null (special
1189 # files actually), so we avoid doing that.
1190 if test -f "$cache_file"; then
1191 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1192 echo "$as_me: loading cache $cache_file" >&6;}
1194 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1195 *) . .
/$cache_file;;
1199 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200 echo "$as_me: creating cache $cache_file" >&6;}
1204 # Check that the precious variables saved in the cache have kept the same
1206 ac_cache_corrupted
=false
1207 for ac_var
in `(set) 2>&1 |
1208 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1209 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1210 eval ac_new_set
=\
$ac_env_${ac_var}_set
1211 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1212 eval ac_new_val
="\$ac_env_${ac_var}_value"
1213 case $ac_old_set,$ac_new_set in
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1217 ac_cache_corrupted
=: ;;
1219 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1220 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1221 ac_cache_corrupted
=: ;;
1224 if test "x$ac_old_val" != "x$ac_new_val"; then
1225 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1226 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1227 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1228 echo "$as_me: former value: $ac_old_val" >&2;}
1229 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1230 echo "$as_me: current value: $ac_new_val" >&2;}
1231 ac_cache_corrupted
=:
1234 # Pass precious variables to config.status.
1235 if test "$ac_new_set" = set; then
1237 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 *) ac_arg
=$ac_var=$ac_new_val ;;
1241 case " $ac_configure_args " in
1242 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1243 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1247 if $ac_cache_corrupted; then
1248 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1249 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1250 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1251 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1252 { (exit 1); exit 1; }; }
1256 ac_cpp
='$CPP $CPPFLAGS'
1257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1281 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1282 if test -f $ac_dir/install-sh
; then
1284 ac_install_sh
="$ac_aux_dir/install-sh -c"
1286 elif test -f $ac_dir/install.sh
; then
1288 ac_install_sh
="$ac_aux_dir/install.sh -c"
1290 elif test -f $ac_dir/shtool
; then
1292 ac_install_sh
="$ac_aux_dir/shtool install -c"
1296 if test -z "$ac_aux_dir"; then
1297 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1298 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1299 { (exit 1); exit 1; }; }
1301 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1302 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1303 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1305 # Make sure we can run config.sub.
1306 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1307 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1308 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1309 { (exit 1); exit 1; }; }
1311 echo "$as_me:$LINENO: checking build system type" >&5
1312 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1313 if test "${ac_cv_build+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 ac_cv_build_alias
=$build_alias
1317 test -z "$ac_cv_build_alias" &&
1318 ac_cv_build_alias
=`$ac_config_guess`
1319 test -z "$ac_cv_build_alias" &&
1320 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1321 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1322 { (exit 1); exit 1; }; }
1323 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1324 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1325 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1326 { (exit 1); exit 1; }; }
1329 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1330 echo "${ECHO_T}$ac_cv_build" >&6
1332 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1333 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1334 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1337 echo "$as_me:$LINENO: checking host system type" >&5
1338 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1339 if test "${ac_cv_host+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 ac_cv_host_alias
=$host_alias
1343 test -z "$ac_cv_host_alias" &&
1344 ac_cv_host_alias
=$ac_cv_build_alias
1345 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1346 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1347 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1348 { (exit 1); exit 1; }; }
1351 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1352 echo "${ECHO_T}$ac_cv_host" >&6
1354 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359 echo "$as_me:$LINENO: checking target system type" >&5
1360 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1361 if test "${ac_cv_target+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 ac_cv_target_alias
=$target_alias
1365 test "x$ac_cv_target_alias" = "x" &&
1366 ac_cv_target_alias
=$ac_cv_host_alias
1367 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1373 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1374 echo "${ECHO_T}$ac_cv_target" >&6
1375 target
=$ac_cv_target
1376 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381 # The aliases save the names the user supplied, while $host etc.
1382 # will get canonicalized.
1383 test -n "$target_alias" &&
1384 test "$program_prefix$program_suffix$program_transform_name" = \
1386 program_prefix
=${target_alias}-
1393 # Check whether --with-gcc or --without-gcc was given.
1394 if test "${with_gcc+set}" = set; then
1400 if test "${srcdir}" != "." ; then
1401 V_INCLS
="-I\$(srcdir)"
1403 if test "${CFLAGS+set}" = set; then
1404 LBL_CFLAGS
="$CFLAGS"
1406 if test -z "$CC" ; then
1407 case "$target_os" in
1410 # Extract the first word of "shlicc2", so it can be a program name with args.
1411 set dummy shlicc2
; ac_word
=$2
1412 echo "$as_me:$LINENO: checking for $ac_word" >&5
1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 if test -n "$SHLICC2"; then
1418 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1424 test -z "$as_dir" && as_dir
=.
1425 for ac_exec_ext
in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_SHLICC2
="yes"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1437 SHLICC2
=$ac_cv_prog_SHLICC2
1438 if test -n "$SHLICC2"; then
1439 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1440 echo "${ECHO_T}$SHLICC2" >&6
1442 echo "$as_me:$LINENO: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1446 if test $SHLICC2 = yes ; then
1453 if test -z "$CC" -a "$with_gcc" = no
; then
1458 ac_cpp
='$CPP $CPPFLAGS'
1459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC
="$CC" # Let the user override the test.
1473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir
=.
1478 for ac_exec_ext
in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc
; ac_word
=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir
=.
1516 for ac_exec_ext
in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC
="gcc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 if test -n "$ac_tool_prefix"; then
1543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1544 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC
="$CC" # Let the user override the test.
1553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir
=.
1558 for ac_exec_ext
in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc
; ac_word
=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir
=.
1596 for ac_exec_ext
in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC
="cc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1622 if test -z "$CC"; then
1623 # Extract the first word of "cc", so it can be a program name with args.
1624 set dummy cc
; ac_word
=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC
="$CC" # Let the user override the test.
1634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir
=.
1639 for ac_exec_ext
in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1642 ac_prog_rejected
=yes
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test $ac_prog_rejected = yes; then
1653 # We found a bogon in the path, so make sure we never use it.
1654 set dummy
$ac_cv_prog_CC
1656 if test $# != 0; then
1657 # We chose a different compiler from the bogus one.
1658 # However, it has the same basename, so the bogon will be chosen
1659 # first if we set CC to just the basename; use the full file name.
1661 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1676 if test -z "$CC"; then
1677 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1681 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$CC"; then
1688 ac_cv_prog_CC
="$CC" # Let the user override the test.
1690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir
=.
1695 for ac_exec_ext
in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test -n "$CC"; then
1708 echo "$as_me:$LINENO: result: $CC" >&5
1709 echo "${ECHO_T}$CC" >&6
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$CC" && break
1718 if test -z "$CC"; then
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy
$ac_prog; ac_word
=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir
=.
1737 for ac_exec_ext
in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC
="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$ac_ct_CC" && break
1766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&5
1768 echo "$as_me: error: no acceptable C compiler found in \$PATH
1769 See \`config.log' for more details." >&2;}
1770 { (exit 1); exit 1; }; }
1772 # Provide some information about the compiler.
1773 echo "$as_me:$LINENO:" \
1774 "checking for C compiler version" >&5
1775 ac_compiler
=`set X $ac_compile; echo $2`
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1777 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1781 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1782 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 (exit $ac_status); }
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1787 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }
1792 cat >conftest.
$ac_ext <<_ACEOF
1793 #line $LINENO "configure"
1796 cat confdefs.h
>>conftest.
$ac_ext
1797 cat >>conftest.
$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 ac_clean_files_save
=$ac_clean_files
1809 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1813 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1814 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1815 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 # b.out is created by i960 compilers.
1829 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1831 test -f "$ac_file" ||
continue
1833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1836 # This is the source file.
1839 # We found the default executable, but exeext='' is most
1843 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.
$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1864 ac_exeext
=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try
='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 if test "$cross_compiling" = maybe
; then
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1899 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1900 ac_clean_files
=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1919 for ac_file
in conftest.exe conftest conftest.
*; do
1920 test -f "$ac_file" ||
continue
1922 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1923 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest
$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1941 rm -f conftest.
$ac_ext
1942 EXEEXT
=$ac_cv_exeext
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.
$ac_ext <<_ACEOF
1950 #line $LINENO "configure"
1953 cat confdefs.h
>>conftest.
$ac_ext
1954 cat >>conftest.
$ac_ext <<_ACEOF
1955 /* end confdefs.h. */
1965 rm -f conftest.o conftest.obj
1966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967 (eval $ac_compile) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }; then
1971 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1973 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1974 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1979 echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.
$ac_ext >&5
1982 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1985 See \`config.log' for more details." >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1991 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1992 echo "${ECHO_T}$ac_cv_objext" >&6
1993 OBJEXT
=$ac_cv_objext
1995 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1996 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 cat >conftest.
$ac_ext <<_ACEOF
2001 #line $LINENO "configure"
2004 cat confdefs.h
>>conftest.
$ac_ext
2005 cat >>conftest.
$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2019 rm -f conftest.
$ac_objext
2020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); } &&
2025 { ac_try
='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.
$ac_ext >&5
2038 rm -f conftest.
$ac_objext conftest.
$ac_ext
2039 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2042 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2043 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2044 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2045 ac_test_CFLAGS
=${CFLAGS+set}
2046 ac_save_CFLAGS
=$CFLAGS
2048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2050 if test "${ac_cv_prog_cc_g+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 cat >conftest.
$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2057 cat confdefs.h
>>conftest.
$ac_ext
2058 cat >>conftest.
$ac_ext <<_ACEOF
2059 /* end confdefs.h. */
2069 rm -f conftest.
$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); } &&
2075 { ac_try
='test -s conftest.$ac_objext'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; }; then
2083 echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.
$ac_ext >&5
2088 rm -f conftest.
$ac_objext conftest.
$ac_ext
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2092 if test "$ac_test_CFLAGS" = set; then
2093 CFLAGS
=$ac_save_CFLAGS
2094 elif test $ac_cv_prog_cc_g = yes; then
2095 if test "$GCC" = yes; then
2101 if test "$GCC" = yes; then
2107 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2108 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 ac_cv_prog_cc_stdc
=no
2114 cat >conftest.
$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2118 cat confdefs.h
>>conftest.
$ac_ext
2119 cat >>conftest.
$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2123 #include <sys/types.h>
2124 #include <sys/stat.h>
2125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2126 struct buf { int x; };
2127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2128 static char *e (p, i)
2134 static char *f (char * (*g) (char **, int), char **p, ...)
2139 s = g (p, va_arg (v,int));
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX -qlanglvl=ansi
2160 # Ultrix and OSF/1 -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions -Aa -D_HPUX_SOURCE
2163 # SVR4 -Xc -D__EXTENSIONS__
2164 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 CC
="$ac_save_CC $ac_arg"
2167 rm -f conftest.
$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try
='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_prog_cc_stdc
=$ac_arg
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.
$ac_ext >&5
2186 rm -f conftest.
$ac_objext
2188 rm -f conftest.
$ac_ext conftest.
$ac_objext
2193 case "x$ac_cv_prog_cc_stdc" in
2195 echo "$as_me:$LINENO: result: none needed" >&5
2196 echo "${ECHO_T}none needed" >&6 ;;
2198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2199 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2200 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2203 # Some people use a C++ compiler to compile C. Since we use `exit',
2204 # in C++ we need to declare it. In case someone uses the same compiler
2205 # for both compiling C and C++ we need to have the C++ compiler decide
2206 # the declaration of exit, since it's the most demanding environment.
2207 cat >conftest.
$ac_ext <<_ACEOF
2212 rm -f conftest.
$ac_objext
2213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try
='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 for ac_declaration
in \
2226 '#include <stdlib.h>' \
2227 'extern "C" void std::exit (int) throw (); using std::exit;' \
2228 'extern "C" void std::exit (int); using std::exit;' \
2229 'extern "C" void exit (int) throw ();' \
2230 'extern "C" void exit (int);' \
2233 cat >conftest.
$ac_ext <<_ACEOF
2234 #line $LINENO "configure"
2237 cat confdefs.h
>>conftest.
$ac_ext
2238 cat >>conftest.
$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2250 rm -f conftest.
$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try
='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.
$ac_ext >&5
2269 rm -f conftest.
$ac_objext conftest.
$ac_ext
2270 cat >conftest.
$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2274 cat confdefs.h
>>conftest.
$ac_ext
2275 cat >>conftest.
$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2286 rm -f conftest.
$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try
='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.
$ac_ext >&5
2304 rm -f conftest.
$ac_objext conftest.
$ac_ext
2307 if test -n "$ac_declaration"; then
2308 echo '#ifdef __cplusplus' >>confdefs.h
2309 echo $ac_declaration >>confdefs.h
2310 echo '#endif' >>confdefs.h
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.
$ac_ext >&5
2318 rm -f conftest.
$ac_objext conftest.
$ac_ext
2320 ac_cpp
='$CPP $CPPFLAGS'
2321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2325 if test "$GCC" = yes ; then
2326 if test "$SHLICC2" = yes ; then
2327 ac_cv_lbl_gcc_vers
=2
2330 echo "$as_me:$LINENO: checking gcc version" >&5
2331 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2332 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2336 sed -e '/^gcc version /!d' \
2337 -e 's/^gcc version //' \
2338 -e 's/ .*//' -e 's/^[^0-9]*//' \
2342 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2343 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2344 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2349 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2350 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2351 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.
$ac_ext <<_ACEOF
2356 #line $LINENO "configure"
2359 cat confdefs.h
>>conftest.
$ac_ext
2360 cat >>conftest.
$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2362 #include <sys/types.h>
2366 int frob(int, char *)
2371 rm -f conftest.
$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try
='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 ac_cv_lbl_cc_ansi_prototypes
=yes
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.
$ac_ext >&5
2388 ac_cv_lbl_cc_ansi_prototypes
=no
2390 rm -f conftest.
$ac_objext conftest.
$ac_ext
2393 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2394 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2395 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2396 case "$target_os" in
2399 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2400 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2401 savedcflags
="$CFLAGS"
2402 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2403 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 cat >conftest.
$ac_ext <<_ACEOF
2407 #line $LINENO "configure"
2410 cat confdefs.h
>>conftest.
$ac_ext
2411 cat >>conftest.
$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2413 #include <sys/types.h>
2417 int frob(int, char *)
2422 rm -f conftest.
$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try
='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_lbl_cc_hpux_cc_aa
=yes
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.
$ac_ext >&5
2439 ac_cv_lbl_cc_hpux_cc_aa
=no
2441 rm -f conftest.
$ac_objext conftest.
$ac_ext
2444 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2445 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2446 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2447 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2448 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2449 { (exit 1); exit 1; }; }
2451 CFLAGS
="$savedcflags"
2452 V_CCOPT
="-Aa $V_CCOPT"
2454 cat >>confdefs.h
<<\_ACEOF
2455 #define _HPUX_SOURCE 1
2461 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2462 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2463 { (exit 1); exit 1; }; }
2467 V_INCLS
="$V_INCLS -I/usr/local/include"
2468 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2470 case "$target_os" in
2473 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
2477 V_CCOPT
="$V_CCOPT -std1 -g3"
2481 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2482 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2483 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 cat >conftest.
$ac_ext <<_ACEOF
2487 #line $LINENO "configure"
2490 cat confdefs.h
>>conftest.
$ac_ext
2491 cat >>conftest.
$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 #include <sys/types.h>
2497 struct a { int b; };
2498 void c(const struct a *)
2503 rm -f conftest.
$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try
='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_lbl_cc_const_proto
=yes
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2520 ac_cv_lbl_cc_const_proto
=no
2522 rm -f conftest.
$ac_objext conftest.
$ac_ext
2525 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2526 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2527 if test $ac_cv_lbl_cc_const_proto = no
; then
2528 cat >>confdefs.h
<<\_ACEOF
2537 echo "$as_me:$LINENO: checking for inline" >&5
2538 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2539 save_CFLAGS
="$CFLAGS"
2541 if test "${ac_cv_lbl_inline+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 for ac_lbl_inline
in inline __inline__ __inline
2549 cat >conftest.
$ac_ext <<_ACEOF
2550 #line $LINENO "configure"
2553 cat confdefs.h
>>conftest.
$ac_ext
2554 cat >>conftest.
$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556 #define inline $ac_lbl_inline
2557 static inline struct iltest *foo(void);
2563 static inline struct iltest *
2566 static struct iltest xxx;
2578 rm -f conftest.
$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try
='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_lbl_cc_inline
=yes
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.
$ac_ext >&5
2596 rm -f conftest.
$ac_objext conftest.
$ac_ext
2597 if test "$ac_lbl_cc_inline" = yes ; then
2601 if test "$ac_lbl_cc_inline" = yes ; then
2602 ac_cv_lbl_inline
=$ac_lbl_inline
2606 CFLAGS
="$save_CFLAGS"
2607 if test ! -z "$ac_cv_lbl_inline" ; then
2608 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2609 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 cat >>confdefs.h
<<_ACEOF
2616 #define inline $ac_cv_lbl_inline
2620 echo "$as_me:$LINENO: checking for __attribute__" >&5
2621 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2622 if test "${ac_cv___attribute__+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 cat >conftest.
$ac_ext <<_ACEOF
2627 #line $LINENO "configure"
2630 cat confdefs.h
>>conftest.
$ac_ext
2631 cat >>conftest.
$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2636 static void foo(void) __attribute__ ((noreturn));
2645 main(int argc, char **argv)
2651 rm -f conftest.
$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try
='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv___attribute__
=yes
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2668 ac_cv___attribute__
=no
2670 rm -f conftest.
$ac_objext conftest.
$ac_ext
2673 if test "$ac_cv___attribute__" = "yes"; then
2675 cat >>confdefs.h
<<\_ACEOF
2676 #define HAVE___ATTRIBUTE__ 1
2679 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2681 V_DEFS
="$V_DEFS -D_U_=\"\""
2683 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2684 echo "${ECHO_T}$ac_cv___attribute__" >&6
2687 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2688 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2689 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 cat >conftest.
$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2696 cat confdefs.h
>>conftest.
$ac_ext
2697 cat >>conftest.
$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2700 # include "confdefs.h"
2701 # include <sys/types.h>
2703 # include <stdlib.h>
2704 # include <stddef.h>
2714 rm -f conftest.
$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try
='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 ac_cv_lbl_have_u_int8_t
=yes
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2731 ac_cv_lbl_have_u_int8_t
=no
2733 rm -f conftest.
$ac_objext conftest.
$ac_ext
2736 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2737 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2738 if test $ac_cv_lbl_have_u_int8_t = no
; then
2740 cat >>confdefs.h
<<\_ACEOF
2741 #define u_int8_t u_char
2745 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2746 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2747 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.
$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2754 cat confdefs.h
>>conftest.
$ac_ext
2755 cat >>conftest.
$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2758 # include "confdefs.h"
2759 # include <sys/types.h>
2761 # include <stdlib.h>
2762 # include <stddef.h>
2772 rm -f conftest.
$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try
='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_lbl_have_u_int16_t
=yes
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.
$ac_ext >&5
2789 ac_cv_lbl_have_u_int16_t
=no
2791 rm -f conftest.
$ac_objext conftest.
$ac_ext
2794 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2795 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2796 if test $ac_cv_lbl_have_u_int16_t = no
; then
2798 cat >>confdefs.h
<<\_ACEOF
2799 #define u_int16_t u_short
2803 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2804 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2805 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 cat >conftest.
$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 # include "confdefs.h"
2817 # include <sys/types.h>
2819 # include <stdlib.h>
2820 # include <stddef.h>
2830 rm -f conftest.
$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try
='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_lbl_have_u_int32_t
=yes
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.
$ac_ext >&5
2847 ac_cv_lbl_have_u_int32_t
=no
2849 rm -f conftest.
$ac_objext conftest.
$ac_ext
2852 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
2853 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
2854 if test $ac_cv_lbl_have_u_int32_t = no
; then
2856 cat >>confdefs.h
<<\_ACEOF
2857 #define u_int32_t u_int
2863 ac_cpp
='$CPP $CPPFLAGS'
2864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2867 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2869 # On Suns, sometimes $CPP names a directory.
2870 if test -n "$CPP" && test -d "$CPP"; then
2873 if test -z "$CPP"; then
2874 if test "${ac_cv_prog_CPP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 # Double quotes because CPP needs to be expanded
2878 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2881 for ac_c_preproc_warn_flag
in '' yes
2883 # Use a header file that comes with gcc, so configuring glibc
2884 # with a fresh cross-compiler works.
2885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 # <limits.h> exists even on freestanding compilers.
2887 # On the NeXT, cc -E runs the code through the compiler's parser,
2888 # not just through cpp. "Syntax error" is here to catch this case.
2889 cat >conftest.
$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2893 cat confdefs.h
>>conftest.
$ac_ext
2894 cat >>conftest.
$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2897 # include <limits.h>
2899 # include <assert.h>
2903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2906 grep -v '^ *+' conftest.er1
>conftest.err
2908 cat conftest.err
>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev
/null
; then
2911 if test -s conftest.err
; then
2912 ac_cpp_err
=$ac_c_preproc_warn_flag
2919 if test -z "$ac_cpp_err"; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.
$ac_ext >&5
2925 # Broken: fails on valid input.
2928 rm -f conftest.err conftest.
$ac_ext
2930 # OK, works on sane cases. Now check whether non-existent headers
2931 # can be detected and how.
2932 cat >conftest.
$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2936 cat confdefs.h
>>conftest.
$ac_ext
2937 cat >>conftest.
$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <ac_nonexistent.h>
2941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2942 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2944 grep -v '^ *+' conftest.er1
>conftest.err
2946 cat conftest.err
>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } >/dev
/null
; then
2949 if test -s conftest.err
; then
2950 ac_cpp_err
=$ac_c_preproc_warn_flag
2957 if test -z "$ac_cpp_err"; then
2958 # Broken: success on invalid input.
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.
$ac_ext >&5
2964 # Passes both tests.
2968 rm -f conftest.err conftest.
$ac_ext
2971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972 rm -f conftest.err conftest.
$ac_ext
2973 if $ac_preproc_ok; then
2985 echo "$as_me:$LINENO: result: $CPP" >&5
2986 echo "${ECHO_T}$CPP" >&6
2988 for ac_c_preproc_warn_flag
in '' yes
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.
$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
3000 cat confdefs.h
>>conftest.
$ac_ext
3001 cat >>conftest.
$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3004 # include <limits.h>
3006 # include <assert.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1
>conftest.err
3015 cat conftest.err
>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev
/null
; then
3018 if test -s conftest.err
; then
3019 ac_cpp_err
=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.
$ac_ext >&5
3032 # Broken: fails on valid input.
3035 rm -f conftest.err conftest.
$ac_ext
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.
$ac_ext <<_ACEOF
3040 #line $LINENO "configure"
3043 cat confdefs.h
>>conftest.
$ac_ext
3044 cat >>conftest.
$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 #include <ac_nonexistent.h>
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1
>conftest.err
3053 cat conftest.err
>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev
/null
; then
3056 if test -s conftest.err
; then
3057 ac_cpp_err
=$ac_c_preproc_warn_flag
3064 if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.
$ac_ext >&5
3071 # Passes both tests.
3075 rm -f conftest.err conftest.
$ac_ext
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.
$ac_ext
3080 if $ac_preproc_ok; then
3083 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3091 ac_cpp
='$CPP $CPPFLAGS'
3092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3097 echo "$as_me:$LINENO: checking for egrep" >&5
3098 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3099 if test "${ac_cv_prog_egrep+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3103 then ac_cv_prog_egrep
='grep -E'
3104 else ac_cv_prog_egrep
='egrep'
3107 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3108 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3109 EGREP
=$ac_cv_prog_egrep
3112 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3114 if test "${ac_cv_header_stdc+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 cat >conftest.
$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3121 cat confdefs.h
>>conftest.
$ac_ext
3122 cat >>conftest.
$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3137 rm -f conftest.
$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try
='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_header_stdc
=yes
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3154 ac_cv_header_stdc
=no
3156 rm -f conftest.
$ac_objext conftest.
$ac_ext
3158 if test $ac_cv_header_stdc = yes; then
3159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3160 cat >conftest.
$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3164 cat confdefs.h
>>conftest.
$ac_ext
3165 cat >>conftest.
$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3171 $EGREP "memchr" >/dev
/null
2>&1; then
3174 ac_cv_header_stdc
=no
3180 if test $ac_cv_header_stdc = yes; then
3181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3182 cat >conftest.
$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "free" >/dev
/null
2>&1; then
3196 ac_cv_header_stdc
=no
3202 if test $ac_cv_header_stdc = yes; then
3203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3204 if test "$cross_compiling" = yes; then
3207 cat >conftest.
$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3211 cat confdefs.h
>>conftest.
$ac_ext
3212 cat >>conftest.
$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3215 #if ((' ' & 0x0FF) == 0x020)
3216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3219 # define ISLOWER(c) \
3220 (('a' <= (c) && (c) <= 'i') \
3221 || ('j' <= (c) && (c) <= 'r') \
3222 || ('s' <= (c) && (c) <= 'z'))
3223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3231 for (i = 0; i < 256; i++)
3232 if (XOR (islower (i), ISLOWER (i))
3233 || toupper (i) != TOUPPER (i))
3238 rm -f conftest
$ac_exeext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3251 echo "$as_me: program exited with status $ac_status" >&5
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.
$ac_ext >&5
3256 ac_cv_header_stdc
=no
3258 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3262 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3263 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3264 if test $ac_cv_header_stdc = yes; then
3266 cat >>confdefs.h
<<\_ACEOF
3267 #define STDC_HEADERS 1
3272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3282 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3283 inttypes.h stdint.h unistd.h
3285 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3286 echo "$as_me:$LINENO: checking for $ac_header" >&5
3287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 cat >conftest.
$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3295 cat confdefs.h
>>conftest.
$ac_ext
3296 cat >>conftest.
$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 $ac_includes_default
3300 #include <$ac_header>
3302 rm -f conftest.
$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try
='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 eval "$as_ac_Header=yes"
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.
$ac_ext >&5
3319 eval "$as_ac_Header=no"
3321 rm -f conftest.
$ac_objext conftest.
$ac_ext
3323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3326 cat >>confdefs.h
<<_ACEOF
3327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3338 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h
3340 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo "$as_me:$LINENO: checking for $ac_header" >&5
3343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3350 # Is the header compilable?
3351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3353 cat >conftest.
$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3357 cat confdefs.h
>>conftest.
$ac_ext
3358 cat >>conftest.
$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 $ac_includes_default
3361 #include <$ac_header>
3363 rm -f conftest.
$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try
='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_header_compiler
=yes
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.
$ac_ext >&5
3380 ac_header_compiler
=no
3382 rm -f conftest.
$ac_objext conftest.
$ac_ext
3383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3384 echo "${ECHO_T}$ac_header_compiler" >&6
3386 # Is the header present?
3387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3389 cat >conftest.
$ac_ext <<_ACEOF
3390 #line $LINENO "configure"
3393 cat confdefs.h
>>conftest.
$ac_ext
3394 cat >>conftest.
$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <$ac_header>
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1
>conftest.err
3403 cat conftest.err
>&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev
/null
; then
3406 if test -s conftest.err
; then
3407 ac_cpp_err
=$ac_c_preproc_warn_flag
3414 if test -z "$ac_cpp_err"; then
3415 ac_header_preproc
=yes
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.
$ac_ext >&5
3420 ac_header_preproc
=no
3422 rm -f conftest.err conftest.
$ac_ext
3423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3424 echo "${ECHO_T}$ac_header_preproc" >&6
3426 # So? What about this header?
3427 case $ac_header_compiler:$ac_header_preproc in
3429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3435 ## ------------------------------------ ##
3436 ## Report this to bug-autoconf@gnu.org. ##
3437 ## ------------------------------------ ##
3440 sed "s/^/$as_me: WARNING: /" >&2
3443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3451 ## ------------------------------------ ##
3452 ## Report this to bug-autoconf@gnu.org. ##
3453 ## ------------------------------------ ##
3456 sed "s/^/$as_me: WARNING: /" >&2
3459 echo "$as_me:$LINENO: checking for $ac_header" >&5
3460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 eval "$as_ac_Header=$ac_header_preproc"
3466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3471 cat >>confdefs.h
<<_ACEOF
3472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3480 for ac_header
in netinet
/if_ether.h
3482 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3483 echo "$as_me:$LINENO: checking for $ac_header" >&5
3484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 cat >conftest.
$ac_ext <<_ACEOF
3489 #line $LINENO "configure"
3492 cat confdefs.h
>>conftest.
$ac_ext
3493 cat >>conftest.
$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <sys/types.h>
3496 #include <sys/socket.h>
3498 #include <$ac_header>
3500 rm -f conftest.
$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try
='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 eval "$as_ac_Header=yes"
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.
$ac_ext >&5
3517 eval "$as_ac_Header=no"
3519 rm -f conftest.
$ac_objext conftest.
$ac_ext
3521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3524 cat >>confdefs.h
<<_ACEOF
3525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3532 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3534 # The simple test didn't work.
3535 # Do we need to include <net/if.h> first?
3536 # Unset ac_cv_header_netinet_if_ether_h so we don't
3537 # treat the previous failure as a cached value and
3538 # suppress the next test.
3540 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3541 echo "$as_me: Rechecking with some additional includes" >&6;}
3542 unset ac_cv_header_netinet_if_ether_h
3544 for ac_header
in netinet
/if_ether.h
3546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547 echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.
$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3556 cat confdefs.h
>>conftest.
$ac_ext
3557 cat >>conftest.
$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 #include <sys/socket.h>
3561 #include <netinet/in.h>
3566 #include <$ac_header>
3568 rm -f conftest.
$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try
='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 eval "$as_ac_Header=yes"
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.
$ac_ext >&5
3585 eval "$as_ac_Header=no"
3587 rm -f conftest.
$ac_objext conftest.
$ac_ext
3589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3592 cat >>confdefs.h
<<_ACEOF
3593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3602 if test "$GCC" = yes ; then
3603 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3604 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3605 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 cat >conftest.
$ac_ext <<_ACEOF
3609 #line $LINENO "configure"
3612 cat confdefs.h
>>conftest.
$ac_ext
3613 cat >>conftest.
$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3616 * This generates a "duplicate case value" when fixincludes
3619 # include <sys/types.h>
3620 # include <sys/time.h>
3621 # include <sys/ioctl.h>
3622 # ifdef HAVE_SYS_IOCCOM_H
3623 # include <sys/ioccom.h>
3636 rm -f conftest.
$ac_objext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try
='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_cv_lbl_gcc_fixincludes
=yes
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.
$ac_ext >&5
3653 ac_cv_lbl_gcc_fixincludes
=no
3655 rm -f conftest.
$ac_objext conftest.
$ac_ext
3658 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3659 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3660 if test $ac_cv_lbl_gcc_fixincludes = no
; then
3661 # Don't cache failure
3662 unset ac_cv_lbl_gcc_fixincludes
3663 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3664 echo "$as_me: error: see the INSTALL for more info" >&2;}
3665 { (exit 1); exit 1; }; }
3671 for ac_func
in strerror strlcpy
3673 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3674 echo "$as_me:$LINENO: checking for $ac_func" >&5
3675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3676 if eval "test \"\${$as_ac_var+set}\" = set"; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 cat >conftest.
$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3683 cat confdefs.h
>>conftest.
$ac_ext
3684 cat >>conftest.
$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 /* System header to define __stub macros and hopefully few prototypes,
3687 which can conflict with char $ac_func (); below.
3688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689 <limits.h> exists even on freestanding compilers. */
3691 # include <limits.h>
3693 # include <assert.h>
3695 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3709 char (*f) () = $ac_func;
3718 return f != $ac_func;
3723 rm -f conftest.
$ac_objext conftest
$ac_exeext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725 (eval $ac_link) 2>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try
='test -s conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 eval "$as_ac_var=yes"
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.
$ac_ext >&5
3740 eval "$as_ac_var=no"
3742 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3746 if test `eval echo '${'$as_ac_var'}'` = yes; then
3747 cat >>confdefs.h
<<_ACEOF
3748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3758 for ac_func
in vsnprintf snprintf
3760 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3761 echo "$as_me:$LINENO: checking for $ac_func" >&5
3762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3763 if eval "test \"\${$as_ac_var+set}\" = set"; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 cat >conftest.
$ac_ext <<_ACEOF
3767 #line $LINENO "configure"
3770 cat confdefs.h
>>conftest.
$ac_ext
3771 cat >>conftest.
$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 /* System header to define __stub macros and hopefully few prototypes,
3774 which can conflict with char $ac_func (); below.
3775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 <limits.h> exists even on freestanding compilers. */
3778 # include <limits.h>
3780 # include <assert.h>
3782 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3790 /* The GNU C library defines this for functions which it implements
3791 to always fail with ENOSYS. Some functions are actually named
3792 something starting with __ and the normal name is an alias. */
3793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3796 char (*f) () = $ac_func;
3805 return f != $ac_func;
3810 rm -f conftest.
$ac_objext conftest
$ac_exeext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try
='test -s conftest$ac_exeext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 eval "$as_ac_var=yes"
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.
$ac_ext >&5
3827 eval "$as_ac_var=no"
3829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3833 if test `eval echo '${'$as_ac_var'}'` = yes; then
3834 cat >>confdefs.h
<<_ACEOF
3835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3843 if test $needsnprintf = yes; then
3844 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
3848 # Do this before checking for ether_hostton(), as it's a
3849 # "gethostbyname() -ish function".
3852 # Most operating systems have gethostbyname() in the default searched
3853 # libraries (i.e. libc):
3854 # Some OSes (eg. Solaris) place it in libnsl
3855 # Some strange OSes (SINIX) have it in libsocket:
3856 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3857 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
3858 if test "${ac_cv_search_gethostbyname+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 ac_func_search_save_LIBS
=$LIBS
3862 ac_cv_search_gethostbyname
=no
3863 cat >conftest.
$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3871 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char gethostbyname ();
3886 rm -f conftest.
$ac_objext conftest
$ac_exeext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3888 (eval $ac_link) 2>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try
='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_search_gethostbyname
="none required"
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.
$ac_ext >&5
3904 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3905 if test "$ac_cv_search_gethostbyname" = no
; then
3906 for ac_lib
in nsl socket resolv
; do
3907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3908 cat >conftest.
$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3912 cat confdefs.h
>>conftest.
$ac_ext
3913 cat >>conftest.
$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3916 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3922 char gethostbyname ();
3931 rm -f conftest.
$ac_objext conftest
$ac_exeext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933 (eval $ac_link) 2>&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try
='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_search_gethostbyname
="-l$ac_lib"
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.
$ac_ext >&5
3950 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3953 LIBS
=$ac_func_search_save_LIBS
3955 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3956 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
3957 if test "$ac_cv_search_gethostbyname" != no
; then
3958 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3962 # Unfortunately libsocket sometimes depends on libnsl and
3963 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3964 if test "$ac_cv_search_gethostbyname" = "no"
3966 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3967 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3968 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_check_lib_save_LIBS
=$LIBS
3972 LIBS
="-lsocket -lnsl $LIBS"
3973 cat >conftest.
$ac_ext <<_ACEOF
3974 #line $LINENO "configure"
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3987 char gethostbyname ();
3996 rm -f conftest.
$ac_objext conftest
$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try
='test -s conftest$ac_exeext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_lib_socket_gethostbyname
=yes
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.
$ac_ext >&5
4013 ac_cv_lib_socket_gethostbyname
=no
4015 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4016 LIBS
=$ac_check_lib_save_LIBS
4018 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4019 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
4020 if test $ac_cv_lib_socket_gethostbyname = yes; then
4021 LIBS
="-lsocket -lnsl $LIBS"
4025 echo "$as_me:$LINENO: checking for library containing socket" >&5
4026 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4027 if test "${ac_cv_search_socket+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_func_search_save_LIBS
=$LIBS
4031 ac_cv_search_socket
=no
4032 cat >conftest.
$ac_ext <<_ACEOF
4033 #line $LINENO "configure"
4036 cat confdefs.h
>>conftest.
$ac_ext
4037 cat >>conftest.
$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4040 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4055 rm -f conftest.
$ac_objext conftest
$ac_exeext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4057 (eval $ac_link) 2>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try
='test -s conftest$ac_exeext'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 ac_cv_search_socket
="none required"
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.
$ac_ext >&5
4073 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4074 if test "$ac_cv_search_socket" = no
; then
4075 for ac_lib
in socket
; do
4076 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4077 cat >conftest.
$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4081 cat confdefs.h
>>conftest.
$ac_ext
4082 cat >>conftest.
$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4085 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4100 rm -f conftest.
$ac_objext conftest
$ac_exeext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try
='test -s conftest$ac_exeext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_cv_search_socket
="-l$ac_lib"
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.
$ac_ext >&5
4119 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4122 LIBS
=$ac_func_search_save_LIBS
4124 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4125 echo "${ECHO_T}$ac_cv_search_socket" >&6
4126 if test "$ac_cv_search_socket" != no
; then
4127 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
4130 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4131 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4132 if test "${ac_cv_lib_socket_socket+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 ac_check_lib_save_LIBS
=$LIBS
4136 LIBS
="-lsocket -lnsl $LIBS"
4137 cat >conftest.
$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4141 cat confdefs.h
>>conftest.
$ac_ext
4142 cat >>conftest.
$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4145 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4160 rm -f conftest.
$ac_objext conftest
$ac_exeext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4162 (eval $ac_link) 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try
='test -s conftest$ac_exeext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_cv_lib_socket_socket
=yes
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.
$ac_ext >&5
4177 ac_cv_lib_socket_socket
=no
4179 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4180 LIBS
=$ac_check_lib_save_LIBS
4182 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4183 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4184 if test $ac_cv_lib_socket_socket = yes; then
4185 LIBS
="-lsocket -lnsl $LIBS"
4190 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4191 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4192 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
4193 if test "${ac_cv_search_putmsg+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 ac_func_search_save_LIBS
=$LIBS
4197 ac_cv_search_putmsg
=no
4198 cat >conftest.
$ac_ext <<_ACEOF
4199 #line $LINENO "configure"
4202 cat confdefs.h
>>conftest.
$ac_ext
4203 cat >>conftest.
$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4221 rm -f conftest.
$ac_objext conftest
$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try
='test -s conftest$ac_exeext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 ac_cv_search_putmsg
="none required"
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.
$ac_ext >&5
4239 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4240 if test "$ac_cv_search_putmsg" = no
; then
4241 for ac_lib
in str
; do
4242 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4243 cat >conftest.
$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4266 rm -f conftest.
$ac_objext conftest
$ac_exeext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268 (eval $ac_link) 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try
='test -s conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 ac_cv_search_putmsg
="-l$ac_lib"
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.
$ac_ext >&5
4285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4288 LIBS
=$ac_func_search_save_LIBS
4290 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
4291 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
4292 if test "$ac_cv_search_putmsg" != no
; then
4293 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
4300 # You are in a twisty little maze of UN*Xes, all different.
4301 # Some might not have ether_hostton().
4302 # Some might have it, but not declare it in any header file.
4303 # Some might have it, but declare it in <netinet/if_ether.h>.
4304 # Some might have it, but declare it in <netinet/ether.h>
4305 # (And some might have it but document it as something declared in
4306 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4308 # Before you is a C compiler.
4311 for ac_func
in ether_hostton
4313 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4314 echo "$as_me:$LINENO: checking for $ac_func" >&5
4315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4316 if eval "test \"\${$as_ac_var+set}\" = set"; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 cat >conftest.
$ac_ext <<_ACEOF
4320 #line $LINENO "configure"
4323 cat confdefs.h
>>conftest.
$ac_ext
4324 cat >>conftest.
$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 /* System header to define __stub macros and hopefully few prototypes,
4327 which can conflict with char $ac_func (); below.
4328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 <limits.h> exists even on freestanding compilers. */
4331 # include <limits.h>
4333 # include <assert.h>
4335 /* Override any gcc2 internal prototype to avoid an error. */
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4343 /* The GNU C library defines this for functions which it implements
4344 to always fail with ENOSYS. Some functions are actually named
4345 something starting with __ and the normal name is an alias. */
4346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4349 char (*f) () = $ac_func;
4358 return f != $ac_func;
4363 rm -f conftest.
$ac_objext conftest
$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try
='test -s conftest$ac_exeext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$as_ac_var=yes"
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.
$ac_ext >&5
4380 eval "$as_ac_var=no"
4382 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4386 if test `eval echo '${'$as_ac_var'}'` = yes; then
4387 cat >>confdefs.h
<<_ACEOF
4388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4394 if test "$ac_cv_func_ether_hostton" = yes; then
4396 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
4398 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
4400 # Yes. Does it declare ether_hostton()?
4402 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4403 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4404 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 cat >conftest.
$ac_ext <<_ACEOF
4408 #line $LINENO "configure"
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4415 #include <sys/types.h>
4416 #include <sys/socket.h>
4417 #include <netinet/in.h>
4418 #include <arpa/inet.h>
4422 #include <netinet/if_ether.h>
4428 #ifndef ether_hostton
4429 char *p = (char *) ether_hostton;
4436 rm -f conftest.
$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try
='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_cv_have_decl_ether_hostton
=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.
$ac_ext >&5
4453 ac_cv_have_decl_ether_hostton
=no
4455 rm -f conftest.
$ac_objext conftest.
$ac_ext
4457 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4458 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4459 if test $ac_cv_have_decl_ether_hostton = yes; then
4462 cat >>confdefs.h
<<\_ACEOF
4463 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4473 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4475 # No, how about <netinet/ether.h>, as on Linux?
4478 for ac_header
in netinet
/ether.h
4480 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482 echo "$as_me:$LINENO: checking for $ac_header" >&5
4483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4490 # Is the header compilable?
4491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4493 cat >conftest.
$ac_ext <<_ACEOF
4494 #line $LINENO "configure"
4497 cat confdefs.h
>>conftest.
$ac_ext
4498 cat >>conftest.
$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 $ac_includes_default
4501 #include <$ac_header>
4503 rm -f conftest.
$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try
='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_header_compiler
=yes
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.
$ac_ext >&5
4520 ac_header_compiler
=no
4522 rm -f conftest.
$ac_objext conftest.
$ac_ext
4523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524 echo "${ECHO_T}$ac_header_compiler" >&6
4526 # Is the header present?
4527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4529 cat >conftest.
$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4533 cat confdefs.h
>>conftest.
$ac_ext
4534 cat >>conftest.
$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <$ac_header>
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev
/null
; then
4546 if test -s conftest.err
; then
4547 ac_cpp_err
=$ac_c_preproc_warn_flag
4554 if test -z "$ac_cpp_err"; then
4555 ac_header_preproc
=yes
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.
$ac_ext >&5
4560 ac_header_preproc
=no
4562 rm -f conftest.err conftest.
$ac_ext
4563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6
4566 # So? What about this header?
4567 case $ac_header_compiler:$ac_header_preproc in
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4575 ## ------------------------------------ ##
4576 ## Report this to bug-autoconf@gnu.org. ##
4577 ## ------------------------------------ ##
4580 sed "s/^/$as_me: WARNING: /" >&2
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4591 ## ------------------------------------ ##
4592 ## Report this to bug-autoconf@gnu.org. ##
4593 ## ------------------------------------ ##
4596 sed "s/^/$as_me: WARNING: /" >&2
4599 echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 eval "$as_ac_Header=$ac_header_preproc"
4606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4611 cat >>confdefs.h
<<_ACEOF
4612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4619 if test "$ac_cv_header_netinet_ether_h" = yes; then
4621 # We have it - does it declare ether_hostton()?
4622 # Unset ac_cv_have_decl_ether_hostton so we don't
4623 # treat the previous failure as a cached value and
4624 # suppress the next test.
4626 unset ac_cv_have_decl_ether_hostton
4627 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4628 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4629 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 cat >conftest.
$ac_ext <<_ACEOF
4633 #line $LINENO "configure"
4636 cat confdefs.h
>>conftest.
$ac_ext
4637 cat >>conftest.
$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4640 #include <netinet/ether.h>
4646 #ifndef ether_hostton
4647 char *p = (char *) ether_hostton;
4654 rm -f conftest.
$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try
='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 ac_cv_have_decl_ether_hostton
=yes
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.
$ac_ext >&5
4671 ac_cv_have_decl_ether_hostton
=no
4673 rm -f conftest.
$ac_objext conftest.
$ac_ext
4675 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4676 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4677 if test $ac_cv_have_decl_ether_hostton = yes; then
4680 cat >>confdefs.h
<<\_ACEOF
4681 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
4690 # Is ether_hostton() declared?
4692 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4694 # No, we'll have to declare it ourselves.
4695 # Do we have "struct ether_addr"?
4697 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
4698 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
4699 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 cat >conftest.
$ac_ext <<_ACEOF
4703 #line $LINENO "configure"
4706 cat confdefs.h
>>conftest.
$ac_ext
4707 cat >>conftest.
$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4710 #include <sys/types.h>
4711 #include <sys/socket.h>
4712 #include <netinet/in.h>
4713 #include <arpa/inet.h>
4717 #include <netinet/if_ether.h>
4723 if ((struct ether_addr *) 0)
4725 if (sizeof (struct ether_addr))
4731 rm -f conftest.
$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try
='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_type_struct_ether_addr
=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4748 ac_cv_type_struct_ether_addr
=no
4750 rm -f conftest.
$ac_objext conftest.
$ac_ext
4752 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
4753 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
4754 if test $ac_cv_type_struct_ether_addr = yes; then
4756 cat >>confdefs.h
<<_ACEOF
4757 #define HAVE_STRUCT_ETHER_ADDR 1
4764 cat >>confdefs.h
<<\_ACEOF
4765 #define HAVE_DECL_ETHER_HOSTTON 0
4770 cat >>confdefs.h
<<\_ACEOF
4771 #define HAVE_DECL_ETHER_HOSTTON 1
4777 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
4778 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
4779 # Check whether --enable-protochain or --disable-protochain was given.
4780 if test "${enable_protochain+set}" = set; then
4781 enableval
="$enable_protochain"
4784 case "x$enable_protochain" in
4785 xyes
) enable_protochain
=enabled
;;
4786 xno
) enable_protochain
=disabled
;;
4787 x
) enable_protochain
=enabled
;;
4790 if test "$enable_protochain" = "disabled"; then
4792 cat >>confdefs.h
<<\_ACEOF
4793 #define NO_PROTOCHAIN 1
4797 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
4798 echo "${ECHO_T}${enable_protochain}" >&6
4800 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
4801 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
4802 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
4803 { (exit 1); exit 1; }; }
4806 # Check whether --with-pcap or --without-pcap was given.
4807 if test "${with_pcap+set}" = set; then
4808 withval
="$with_pcap"
4811 echo "$as_me:$LINENO: checking packet capture type" >&5
4812 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
4813 if test ! -z "$with_pcap" ; then
4815 elif test -r /dev
/bpf0
; then
4817 elif test -r /usr
/include
/net
/pfilt.h
; then
4819 elif test -r /dev
/enet
; then
4821 elif test -r /dev
/nit
; then
4823 elif test -r /usr
/include
/sys
/net
/nit.h
; then
4825 elif test -r /usr
/include
/linux
/socket.h
; then
4827 elif test -r /usr
/include
/net
/raw.h
; then
4829 elif test -r /usr
/include
/odmi.h
; then
4831 # On AIX, the BPF devices might not yet be present - they're
4832 # created the first time libpcap runs after booting.
4833 # We check for odmi.h instead.
4836 elif test -r /usr
/include
/sys
/dlpi.h
; then
4838 elif test -c /dev
/bpf0
; then # check again in case not readable
4840 elif test -c /dev
/enet
; then # check again in case not readable
4842 elif test -c /dev
/nit
; then # check again in case not readable
4847 echo "$as_me:$LINENO: result: $V_PCAP" >&5
4848 echo "${ECHO_T}$V_PCAP" >&6
4850 if test "$V_PCAP" = null
4853 # We can't capture, so we can't open any capture
4854 # devices, so we won't return any interfaces.
4858 echo "$as_me:$LINENO: checking for getifaddrs" >&5
4859 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
4860 if test "${ac_cv_func_getifaddrs+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 cat >conftest.
$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char getifaddrs (); below.
4872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4873 <limits.h> exists even on freestanding compilers. */
4875 # include <limits.h>
4877 # include <assert.h>
4879 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
4893 char (*f) () = getifaddrs;
4902 return f != getifaddrs;
4907 rm -f conftest.
$ac_objext conftest
$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try
='test -s conftest$ac_exeext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_func_getifaddrs
=yes
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.
$ac_ext >&5
4924 ac_cv_func_getifaddrs
=no
4926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4928 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
4929 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
4930 if test $ac_cv_func_getifaddrs = yes; then
4933 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
4934 # as well, just in case some platform is really weird.
4936 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4937 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
4938 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
4939 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
4943 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
4945 # Is the header compilable?
4946 echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
4947 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
4948 cat >conftest.
$ac_ext <<_ACEOF
4949 #line $LINENO "configure"
4952 cat confdefs.h
>>conftest.
$ac_ext
4953 cat >>conftest.
$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 $ac_includes_default
4956 #include <ifaddrs.h>
4958 rm -f conftest.
$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
4964 { ac_try
='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_header_compiler
=yes
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.
$ac_ext >&5
4975 ac_header_compiler
=no
4977 rm -f conftest.
$ac_objext conftest.
$ac_ext
4978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4979 echo "${ECHO_T}$ac_header_compiler" >&6
4981 # Is the header present?
4982 echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
4983 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
4984 cat >conftest.
$ac_ext <<_ACEOF
4985 #line $LINENO "configure"
4988 cat confdefs.h
>>conftest.
$ac_ext
4989 cat >>conftest.
$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 #include <ifaddrs.h>
4993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1
>conftest.err
4998 cat conftest.err
>&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev
/null
; then
5001 if test -s conftest.err
; then
5002 ac_cpp_err
=$ac_c_preproc_warn_flag
5009 if test -z "$ac_cpp_err"; then
5010 ac_header_preproc
=yes
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.
$ac_ext >&5
5015 ac_header_preproc
=no
5017 rm -f conftest.err conftest.
$ac_ext
5018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5019 echo "${ECHO_T}$ac_header_preproc" >&6
5021 # So? What about this header?
5022 case $ac_header_compiler:$ac_header_preproc in
5024 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5025 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5026 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5027 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5030 ## ------------------------------------ ##
5031 ## Report this to bug-autoconf@gnu.org. ##
5032 ## ------------------------------------ ##
5035 sed "s/^/$as_me: WARNING: /" >&2
5038 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5039 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5040 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5041 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5042 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5043 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5046 ## ------------------------------------ ##
5047 ## Report this to bug-autoconf@gnu.org. ##
5048 ## ------------------------------------ ##
5051 sed "s/^/$as_me: WARNING: /" >&2
5054 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5055 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5056 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 ac_cv_header_ifaddrs_h
=$ac_header_preproc
5061 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5062 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5065 if test $ac_cv_header_ifaddrs_h = yes; then
5068 # We have the header, so we use "getifaddrs()" to
5069 # get the list of interfaces.
5076 # We don't have the header - give up.
5077 # XXX - we could also fall back on some other
5078 # mechanism, but, for now, this'll catch this
5079 # problem so that we can at least try to figure
5080 # out something to do on systems with "getifaddrs()"
5081 # but without "ifaddrs.h", if there is something
5082 # we can do on those systems.
5084 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5085 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5086 { (exit 1); exit 1; }; }
5095 # Well, we don't have "getifaddrs()", so we have to use
5096 # some other mechanism; determine what that mechanism is.
5098 # The first thing we use is the type of capture mechanism,
5099 # which is somewhat of a proxy for the OS we're using.
5105 # This might be Solaris 8 or later, with
5106 # SIOCGLIFCONF, or it might be some other OS
5107 # or some older version of Solaris, with
5110 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5111 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
5112 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 cat >conftest.
$ac_ext <<_ACEOF
5116 #line $LINENO "configure"
5119 cat confdefs.h
>>conftest.
$ac_ext
5120 cat >>conftest.
$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #include <sys/param.h>
5123 #include <sys/file.h>
5124 #include <sys/ioctl.h>
5125 #include <sys/socket.h>
5126 #include <sys/sockio.h>
5130 ioctl(0, SIOCGLIFCONF, (char *)0);
5135 rm -f conftest.
$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try
='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_cv_lbl_have_siocglifconf
=yes
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.
$ac_ext >&5
5152 ac_cv_lbl_have_siocglifconf
=no
5154 rm -f conftest.
$ac_objext conftest.
$ac_ext
5157 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
5158 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
5159 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5168 # Assume we just have SIOCGIFCONF.
5169 # (XXX - on at least later Linux kernels, there's
5170 # another mechanism, and we should be using that
5180 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
5181 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
5182 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5183 if test "${enable_ipv6+set}" = set; then
5184 enableval
="$enable_ipv6"
5187 if test "$enable_ipv6" = "yes"; then
5189 cat >>confdefs.h
<<\_ACEOF
5194 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
5195 echo "${ECHO_T}${enable_ipv6-no}" >&6
5197 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
5198 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
5199 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
5200 if test "${enable_optimizer_dbg+set}" = set; then
5201 enableval
="$enable_optimizer_dbg"
5204 if test "$enable_optimizer_dbg" = "yes"; then
5206 cat >>confdefs.h
<<\_ACEOF
5211 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
5212 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
5214 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
5215 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
5216 # Check whether --enable-yydebug or --disable-yydebug was given.
5217 if test "${enable_yydebug+set}" = set; then
5218 enableval
="$enable_yydebug"
5221 if test "$enable_yydebug" = "yes"; then
5223 cat >>confdefs.h
<<\_ACEOF
5228 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
5229 echo "${ECHO_T}${enable_yydebug-no}" >&6
5236 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5238 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5240 echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5248 # Is the header compilable?
5249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5251 cat >conftest.
$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5255 cat confdefs.h
>>conftest.
$ac_ext
5256 cat >>conftest.
$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 $ac_includes_default
5259 #include <$ac_header>
5261 rm -f conftest.
$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } &&
5267 { ac_try
='test -s conftest.$ac_objext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_header_compiler
=yes
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.
$ac_ext >&5
5278 ac_header_compiler
=no
5280 rm -f conftest.
$ac_objext conftest.
$ac_ext
5281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5282 echo "${ECHO_T}$ac_header_compiler" >&6
5284 # Is the header present?
5285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5287 cat >conftest.
$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5291 cat confdefs.h
>>conftest.
$ac_ext
5292 cat >>conftest.
$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <$ac_header>
5296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5299 grep -v '^ *+' conftest.er1
>conftest.err
5301 cat conftest.err
>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } >/dev
/null
; then
5304 if test -s conftest.err
; then
5305 ac_cpp_err
=$ac_c_preproc_warn_flag
5312 if test -z "$ac_cpp_err"; then
5313 ac_header_preproc
=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.
$ac_ext >&5
5318 ac_header_preproc
=no
5320 rm -f conftest.err conftest.
$ac_ext
5321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5322 echo "${ECHO_T}$ac_header_preproc" >&6
5324 # So? What about this header?
5325 case $ac_header_compiler:$ac_header_preproc in
5327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5338 sed "s/^/$as_me: WARNING: /" >&2
5341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5349 ## ------------------------------------ ##
5350 ## Report this to bug-autoconf@gnu.org. ##
5351 ## ------------------------------------ ##
5354 sed "s/^/$as_me: WARNING: /" >&2
5357 echo "$as_me:$LINENO: checking for $ac_header" >&5
5358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 eval "$as_ac_Header=$ac_header_preproc"
5364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5369 cat >>confdefs.h
<<_ACEOF
5370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
5378 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
5379 if test -c /dev
/dlpi
; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381 echo "${ECHO_T}yes" >&6
5383 cat >>confdefs.h
<<\_ACEOF
5384 #define HAVE_DEV_DLPI 1
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5391 echo "$as_me:$LINENO: checking for $dir directory" >&5
5392 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
5393 if test -d $dir ; then
5394 echo "$as_me:$LINENO: result: yes" >&5
5395 echo "${ECHO_T}yes" >&6
5397 cat >>confdefs.h
<<_ACEOF
5398 #define PCAP_DEV_PREFIX "$dir"
5402 echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5409 echo "$as_me:$LINENO: checking Linux kernel version" >&5
5410 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
5411 if test "$cross_compiling" = yes; then
5412 if test "${ac_cv_linux_vers+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cv_linux_vers
=unknown
5419 if test "${ac_cv_linux_vers+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 ac_cv_linux_vers
=`uname -r 2>&1 | \
5423 sed -n -e '$s/.* //' -e '$s/\..*//p'`
5427 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
5428 echo "${ECHO_T}$ac_cv_linux_vers" >&6
5429 if test $ac_cv_linux_vers = unknown
; then
5430 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
5431 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
5432 { (exit 1); exit 1; }; }
5434 if test $ac_cv_linux_vers -lt 2 ; then
5435 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
5436 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
5437 { (exit 1); exit 1; }; }
5439 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
5440 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
5441 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 cat >conftest.
$ac_ext <<_ACEOF
5445 #line $LINENO "configure"
5448 cat confdefs.h
>>conftest.
$ac_ext
5449 cat >>conftest.
$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5452 # include <linux/if_packet.h>
5456 struct tpacket_stats stats
5461 rm -f conftest.
$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try
='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_lbl_tpacket_stats
=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.
$ac_ext >&5
5478 ac_cv_lbl_tpacket_stats
=no
5480 rm -f conftest.
$ac_objext conftest.
$ac_ext
5483 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
5484 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
5485 if test $ac_cv_lbl_tpacket_stats = yes; then
5487 cat >>confdefs.h
<<\_ACEOF
5488 #define HAVE_TPACKET_STATS 1
5495 V_DEFS
="$V_DEFS -DDAG_ONLY"
5499 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5500 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5502 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5507 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
5508 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
5509 if test -r /proc
/net
/dev
; then
5510 ac_cv_lbl_proc_net_dev
=yes
5512 ac_cv_lbl_proc_net_dev
=no
5514 if test $ac_cv_lbl_proc_net_dev = yes; then
5516 cat >>confdefs.h
<<\_ACEOF
5517 #define HAVE_PROC_NET_DEV 1
5521 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
5522 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
5524 # Check for Endace DAG card support.
5526 # Check whether --with-dag or --without-dag was given.
5527 if test "${with_dag+set}" = set; then
5530 if test "$withval" = no
5532 # User doesn't want DAG support.
5534 elif test "$withval" = yes
5536 # User wants DAG support but hasn't specified a directory.
5539 # User wants DAG support and has specified a directory, so use the provided value.
5547 # Use DAG API if present, otherwise don't
5554 # Check whether --with-dag-includes or --without-dag-includes was given.
5555 if test "${with_dag_includes+set}" = set; then
5556 withval
="$with_dag_includes"
5558 # User wants DAG support and has specified a header directory, so use the provided value.
5560 dag_include_dir
=$withval
5565 # Check whether --with-dag-libraries or --without-dag-libraries was given.
5566 if test "${with_dag_libraries+set}" = set; then
5567 withval
="$with_dag_libraries"
5569 # User wants DAG support and has specified a library directory, so use the provided value.
5571 dag_lib_dir
=$withval
5578 # We support the DAG API on Linux or BSD, or if we're building a
5584 # If the user explicitly requested DAG, tell them it's not
5587 # If they expressed no preference, don't include it.
5589 if test $want_dag = yes; then
5590 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
5591 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
5592 { (exit 1); exit 1; }; }
5593 elif test $want_dag = yes; then
5599 ac_cv_lbl_dag_api
=no
5600 if test "$want_dag" != no
; then
5602 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
5603 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
5605 # If necessary, set default paths for DAG API headers and libraries.
5606 if test -z "$dag_root"; then
5610 if test -z "$dag_include_dir"; then
5611 dag_include_dir
="$dag_root/include"
5614 if test -z "$dag_lib_dir"; then
5615 dag_lib_dir
="$dag_root/lib"
5618 if test -z "$dag_tools_dir"; then
5619 dag_tools_dir
="$dag_root/tools"
5622 if test -r $dag_include_dir/dagapi.h
; then
5623 ac_cv_lbl_dag_api
=yes
5625 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
5626 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
5629 if test $ac_cv_lbl_dag_api = yes; then
5631 echo "$as_me:$LINENO: checking dagapi.o" >&5
5632 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
5634 if test -r $dag_tools_dir/dagapi.o
; then
5637 dagapi_obj
=$dag_tools_dir/dagapi.o
5639 elif test -r $dag_lib_dir/dagapi.o
; then
5642 dagapi_obj
=$dag_lib_dir/dagapi.o
5644 elif test -r $dag_lib_dir/libdag.a
; then
5647 ar x
$dag_lib_dir/libdag.a dagapi.o
5648 if test -r .
/dagapi.o
; then
5649 dagapi_obj
=.
/dagapi.o
5653 if test $dagapi_obj = no
; then
5654 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5655 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5656 ac_cv_lbl_dag_api
=no
5658 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
5659 echo "${ECHO_T}yes ($dagapi_obj)" >&6
5663 if test $ac_cv_lbl_dag_api = yes; then
5665 echo "$as_me:$LINENO: checking dagopts.o" >&5
5666 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
5668 if test -r $dag_tools_dir/dagopts.o
; then
5671 dagopts_obj
=$dag_tools_dir/dagopts.o
5673 elif test -r $dag_lib_dir/dagopts.o
; then
5676 dagopts_obj
=$dag_lib_dir/dagopts.o
5678 elif test -r $dag_lib_dir/libdag.a
; then
5681 ar x
$dag_lib_dir/libdag.a dagopts.o
5682 if test -r .
/dagopts.o
; then
5683 dagopts_obj
=.
/dagopts.o
5687 if test $dagopts_obj = no
; then
5688 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5689 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5690 ac_cv_lbl_dag_api
=no
5692 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
5693 echo "${ECHO_T}yes ($dagopts_obj)" >&6
5697 if test $ac_cv_lbl_dag_api = yes; then
5699 # Under 2.5.x only we need to add dagreg.o.
5700 if test -r $dag_include_dir/dagreg.h
; then
5702 echo "$as_me:$LINENO: checking dagreg.o" >&5
5703 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
5705 if test -r $dag_lib_dir/dagreg.o
; then
5707 # Object file is ready and waiting.
5708 dagreg_obj
=$dag_lib_dir/dagreg.o
5710 elif test -r $dag_lib_dir/libdag.a
; then
5712 # Extract from libdag.a.
5713 ar x
$dag_lib_dir/libdag.a dagreg.o
5714 if test -r .
/dagreg.o
; then
5715 dagreg_obj
=.
/dagreg.o
5719 if test $dagreg_obj = no
; then
5720 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
5721 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
5722 ac_cv_lbl_dag_api
=no
5724 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
5725 echo "${ECHO_T}yes ($dagreg_obj)" >&6
5730 if test $ac_cv_lbl_dag_api = yes; then
5732 V_INCLS
="$V_INCLS -I$dag_include_dir"
5733 V_LIBS
="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
5734 if test $V_PCAP != dag
; then
5738 # See if we can find a general version string.
5739 # Don't need to save and restore LIBS to prevent -ldag being included if there's a found-action (arg 3).
5740 saved_ldflags
=$LDFLAGS
5741 LDFLAGS
="-L$dag_lib_dir"
5742 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
5743 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
5744 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 ac_check_lib_save_LIBS
=$LIBS
5749 cat >conftest.
$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5753 cat confdefs.h
>>conftest.
$ac_ext
5754 cat >>conftest.
$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5757 /* Override any gcc2 internal prototype to avoid an error. */
5761 /* We use char because int might match the return type of a gcc2
5762 builtin and then its argument prototype would still apply. */
5763 char dag_attach_stream ();
5767 dag_attach_stream ();
5772 rm -f conftest.
$ac_objext conftest
$ac_exeext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774 (eval $ac_link) 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try
='test -s conftest$ac_exeext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_lib_dag_dag_attach_stream
=yes
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.
$ac_ext >&5
5789 ac_cv_lib_dag_dag_attach_stream
=no
5791 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5792 LIBS
=$ac_check_lib_save_LIBS
5794 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
5795 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
5796 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
5802 LDFLAGS
=$saved_ldflags
5804 # See if we can find a specific version string.
5805 echo "$as_me:$LINENO: checking the DAG API version" >&5
5806 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
5807 if test -r "$dag_root/VERSION"; then
5808 dag_version
="`cat $dag_root/VERSION`"
5810 echo "$as_me:$LINENO: result: $dag_version" >&5
5811 echo "${ECHO_T}$dag_version" >&6
5813 cat >>confdefs.h
<<\_ACEOF
5814 #define HAVE_DAG_API 1
5819 if test $ac_cv_lbl_dag_api = no
; then
5820 if test "$want_dag" = yes; then
5821 # User wanted DAG support but we couldn't find it.
5822 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
5823 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
5824 { (exit 1); exit 1; }; }
5827 if test "$V_PCAP" = dag
; then
5828 # User requested "dag" capture type but the DAG API wasn't found.
5829 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
5830 echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
5831 { (exit 1); exit 1; }; }
5837 # Check whether --with-flex or --without-flex was given.
5838 if test "${with_flex+set}" = set; then
5839 withval
="$with_flex"
5843 # Check whether --with-bison or --without-bison was given.
5844 if test "${with_bison+set}" = set; then
5845 withval
="$with_bison"
5848 if test "$with_flex" = no
; then
5853 # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy
$ac_prog; ac_word
=$2
5855 echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5857 if test "${ac_cv_prog_V_LEX+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 if test -n "$V_LEX"; then
5861 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
5863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir
=.
5868 for ac_exec_ext
in '' $ac_executable_extensions; do
5869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_V_LEX
="$ac_prog"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 V_LEX
=$ac_cv_prog_V_LEX
5880 if test -n "$V_LEX"; then
5881 echo "$as_me:$LINENO: result: $V_LEX" >&5
5882 echo "${ECHO_T}$V_LEX" >&6
5884 echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6
5888 test -n "$V_LEX" && break
5890 test -n "$V_LEX" || V_LEX
="lex"
5893 if test "$V_LEX" = flex
; then
5894 # The -V flag was added in 2.4
5895 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
5896 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
5897 if test "${ac_cv_lbl_flex_v24+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 if flex
-V >/dev
/null
2>&1; then
5901 ac_cv_lbl_flex_v24
=yes
5903 ac_cv_lbl_flex_v24
=no
5907 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
5908 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
5909 if test $ac_cv_lbl_flex_v24 = no
; then
5910 s
="2.4 or higher required"
5911 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
5912 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
5916 if test "$with_bison" = no
; then
5919 for ac_prog
in bison
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy
$ac_prog; ac_word
=$2
5923 echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5925 if test "${ac_cv_prog_V_YACC+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$V_YACC"; then
5929 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
5931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir
=.
5936 for ac_exec_ext
in '' $ac_executable_extensions; do
5937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_prog_V_YACC
="$ac_prog"
5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 V_YACC
=$ac_cv_prog_V_YACC
5948 if test -n "$V_YACC"; then
5949 echo "$as_me:$LINENO: result: $V_YACC" >&5
5950 echo "${ECHO_T}$V_YACC" >&6
5952 echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5956 test -n "$V_YACC" && break
5958 test -n "$V_YACC" || V_YACC
="yacc"
5961 if test "$V_YACC" = bison
; then
5964 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
5965 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
5966 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
5970 if test "$V_LEX" = flex
-a -n "pcap_" ; then
5971 V_LEX
="$V_LEX -Ppcap_"
5972 V_YACC
="$V_YACC -p pcap_"
5974 if test "$V_LEX" = lex ; then
5975 # Some versions of lex can't handle the definitions section of scanner.l .
5976 # Try lexing it and complain if it can't deal.
5977 echo "$as_me:$LINENO: checking for capable lex" >&5
5978 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
5979 if test "${tcpdump_cv_capable_lex+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 if lex -t scanner.l
> /dev
/null
2>&1; then
5983 tcpdump_cv_capable_lex
=yes
5985 tcpdump_cv_capable_lex
=insufficient
5988 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
5989 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
5990 if test $tcpdump_cv_capable_lex = insufficient
; then
5991 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
5992 libpcap. flex is a lex replacement that has many advantages, including
5993 being able to compile libpcap. For more information, see
5994 http://www.gnu.org/software/flex/flex.html ." >&5
5995 echo "$as_me: error: Your operating system's lex is insufficient to compile
5996 libpcap. flex is a lex replacement that has many advantages, including
5997 being able to compile libpcap. For more information, see
5998 http://www.gnu.org/software/flex/flex.html ." >&2;}
5999 { (exit 1); exit 1; }; }
6008 cat >>confdefs.h
<<\_ACEOF
6016 cat >>confdefs.h
<<\_ACEOF
6017 #define HAVE_HPUX9 1
6030 cat >>confdefs.h
<<\_ACEOF
6031 #define HAVE_HPUX10_20_OR_LATER 1
6037 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6038 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6039 if test "${ac_cv_cc_sinix_defined+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 cat >conftest.
$ac_ext <<_ACEOF
6043 #line $LINENO "configure"
6046 cat confdefs.h
>>conftest.
$ac_ext
6047 cat >>conftest.
$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6058 rm -f conftest.
$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try
='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_cc_sinix_defined
=yes
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.
$ac_ext >&5
6075 ac_cv_cc_sinix_defined
=no
6077 rm -f conftest.
$ac_objext conftest.
$ac_ext
6080 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
6081 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
6082 if test $ac_cv_cc_sinix_defined = no
; then
6084 cat >>confdefs.h
<<\_ACEOF
6093 cat >>confdefs.h
<<\_ACEOF
6094 #define HAVE_SOLARIS 1
6101 V_CCOPT
="$V_CCOPT -fno-common"
6105 if test -n "$ac_tool_prefix"; then
6106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6107 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6108 echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6110 if test "${ac_cv_prog_RANLIB+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 if test -n "$RANLIB"; then
6114 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir
=.
6121 for ac_exec_ext
in '' $ac_executable_extensions; do
6122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 RANLIB
=$ac_cv_prog_RANLIB
6133 if test -n "$RANLIB"; then
6134 echo "$as_me:$LINENO: result: $RANLIB" >&5
6135 echo "${ECHO_T}$RANLIB" >&6
6137 echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6
6142 if test -z "$ac_cv_prog_RANLIB"; then
6143 ac_ct_RANLIB
=$RANLIB
6144 # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib
; ac_word
=$2
6146 echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -n "$ac_ct_RANLIB"; then
6152 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir
=.
6159 for ac_exec_ext
in '' $ac_executable_extensions; do
6160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6171 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6172 if test -n "$ac_ct_RANLIB"; then
6173 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6174 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6176 echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6
6180 RANLIB
=$ac_ct_RANLIB
6182 RANLIB
="$ac_cv_prog_RANLIB"
6187 if test "${LBL_CFLAGS+set}" = set; then
6188 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
6190 if test -f .devel
; then
6191 if test "$GCC" = yes ; then
6192 if test "${LBL_CFLAGS+set}" != set; then
6193 if test "$ac_cv_prog_cc_g" = yes ; then
6194 V_CCOPT
="-g $V_CCOPT"
6196 V_CCOPT
="$V_CCOPT -Wall"
6197 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
6198 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
6202 case "$target_os" in
6205 V_CCOPT
="$V_CCOPT -n32"
6212 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
6214 if test -f $name ; then
6215 ln -s $name os-proto.h
6217 cat >>confdefs.h
<<\_ACEOF
6218 #define HAVE_OS_PROTO_H 1
6222 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
6223 echo "$as_me: WARNING: can't find $name" >&2;}
6227 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
6228 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6229 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 cat >conftest.
$ac_ext <<_ACEOF
6233 #line $LINENO "configure"
6236 cat confdefs.h
>>conftest.
$ac_ext
6237 cat >>conftest.
$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6240 # include <sys/types.h>
6241 # include <sys/socket.h>
6245 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6250 rm -f conftest.
$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try
='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_cv_lbl_sockaddr_has_sa_len
=yes
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.
$ac_ext >&5
6267 ac_cv_lbl_sockaddr_has_sa_len
=no
6269 rm -f conftest.
$ac_objext conftest.
$ac_ext
6272 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
6273 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
6274 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
6276 cat >>confdefs.h
<<\_ACEOF
6277 #define HAVE_SOCKADDR_SA_LEN 1
6282 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
6283 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
6284 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 cat >conftest.
$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6291 cat confdefs.h
>>conftest.
$ac_ext
6292 cat >>conftest.
$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6295 # include <sys/types.h>
6296 # include <sys/socket.h>
6300 u_int i = sizeof (struct sockaddr_storage)
6305 rm -f conftest.
$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try
='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_lbl_has_sockaddr_storage
=yes
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.
$ac_ext >&5
6322 ac_cv_lbl_has_sockaddr_storage
=no
6324 rm -f conftest.
$ac_objext conftest.
$ac_ext
6327 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
6328 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
6329 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
6331 cat >>confdefs.h
<<\_ACEOF
6332 #define HAVE_SOCKADDR_STORAGE 1
6337 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
6338 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
6339 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 cat >conftest.
$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6346 cat confdefs.h
>>conftest.
$ac_ext
6347 cat >>conftest.
$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6350 # include <sys/types.h>
6351 # include <sys/dlpi.h>
6352 # include <sys/dlpi_ext.h>
6356 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
6361 rm -f conftest.
$ac_objext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363 (eval $ac_compile) 2>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try
='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.
$ac_ext >&5
6378 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
6380 rm -f conftest.
$ac_objext conftest.
$ac_ext
6383 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
6384 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
6385 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
6387 cat >>confdefs.h
<<\_ACEOF
6388 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
6393 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
6394 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
6395 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 # These are CPU types where:
6403 # the CPU faults on an unaligned access, but at least some
6404 # OSes that support that CPU catch the fault and simulate
6405 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
6406 # the simulation is slow, so we don't want to use it;
6408 # the CPU, I infer (from the old
6410 # XXX: should also check that they don't do weird things (like on arm)
6412 # comment) doesn't fault on unaligned accesses, but doesn't
6413 # do a normal unaligned fetch, either (e.g., presumably, ARM);
6415 # for whatever reason, the test program doesn't work
6416 # (this has been claimed to be the case for several of those
6417 # CPUs - I don't know what the problem is; the problem
6418 # was reported as "the test program dumps core" for SuperH,
6419 # but that's what the test program is *supposed* to do -
6420 # it dumps core before it writes anything, so the test
6421 # for an empty output file should find an empty output
6422 # file and conclude that unaligned accesses don't work).
6424 # This run-time test won't work if you're cross-compiling, so
6425 # in order to support cross-compiling for a particular CPU,
6426 # we have to wire in the list of CPU types anyway, as far as
6427 # I know, so perhaps we should just have a set of CPUs on
6428 # which we know it doesn't work, a set of CPUs on which we
6429 # know it does work, and have the script just fail on other
6430 # cpu types and update it when such a failure occurs.
6432 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
6433 ac_cv_lbl_unaligned_fail
=yes
6437 cat >conftest.c
<<EOF
6438 # include <sys/types.h>
6439 # include <sys/wait.h>
6441 unsigned char a[5] = { 1, 2, 3, 4, 5 };
6446 /* avoid "core dumped" message */
6452 pid = waitpid(pid, &status, 0);
6455 exit(!WIFEXITED(status));
6458 i = *(unsigned int *)&a[1];
6463 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
6464 conftest.c
$LIBS >/dev
/null
2>&1
6465 if test ! -x conftest
; then
6466 ac_cv_lbl_unaligned_fail
=yes
6468 .
/conftest
>conftest.out
6469 if test ! -s conftest.out
; then
6470 ac_cv_lbl_unaligned_fail
=yes
6472 ac_cv_lbl_unaligned_fail
=no
6475 rm -f conftest
* core core.conftest
6480 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
6481 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
6482 if test $ac_cv_lbl_unaligned_fail = yes ; then
6484 cat >>confdefs.h
<<\_ACEOF
6491 # Makefile.in includes rules to generate version.h, so we assume
6492 # that it will be generated if autoconf is used.
6495 cat >>confdefs.h
<<\_ACEOF
6496 #define HAVE_VERSION_H 1
6501 ln -s ${srcdir}/bpf
/net net
6515 # Find a good install program. We prefer a C program (faster),
6516 # so one script is as good as another. But avoid the broken or
6517 # incompatible versions:
6518 # SysV /etc/install, /usr/sbin/install
6519 # SunOS /usr/etc/install
6520 # IRIX /sbin/install
6522 # AmigaOS /C/install, which installs bootblocks on floppy discs
6523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6526 # ./install, which can be erroneously created by make from ./install.sh.
6527 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6528 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6529 if test -z "$INSTALL"; then
6530 if test "${ac_cv_path_install+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir
=.
6538 # Account for people who put trailing slashes in PATH elements.
6540 .
/ | .
// |
/cC
/* | \
6541 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6544 # OSF1 and SCO ODT 3.0 have their own names for install.
6545 # Don't use installbsd from OSF since it installs stuff as root
6547 for ac_prog
in ginstall scoinst
install; do
6548 for ac_exec_ext
in '' $ac_executable_extensions; do
6549 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6550 if test $ac_prog = install &&
6551 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6552 # AIX install. It has an incompatible calling convention.
6554 elif test $ac_prog = install &&
6555 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6556 # program-specific install script used by HP pwplus--don't use.
6559 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6571 if test "${ac_cv_path_install+set}" = set; then
6572 INSTALL
=$ac_cv_path_install
6574 # As a last resort, use the slow shell script. We don't cache a
6575 # path for INSTALL within a source directory, because that will
6576 # break other packages using the cache if that directory is
6577 # removed, or if the path is relative.
6578 INSTALL
=$ac_install_sh
6581 echo "$as_me:$LINENO: result: $INSTALL" >&5
6582 echo "${ECHO_T}$INSTALL" >&6
6584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6585 # It thinks the first close brace ends the variable substitution.
6586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6590 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6593 ac_config_headers
="$ac_config_headers config.h"
6596 ac_config_files
="$ac_config_files Makefile"
6597 cat >confcache
<<\_ACEOF
6598 # This file is a shell script that caches the results of configure
6599 # tests run on this system so they can be shared between configure
6600 # scripts and configure runs, see configure's option --config-cache.
6601 # It is not useful on other systems. If it contains results you don't
6602 # want to keep, you may remove or edit it.
6604 # config.status only pays attention to the cache file if you give it
6605 # the --recheck option to rerun configure.
6607 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6608 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6613 # The following way of writing the cache mishandles newlines in values,
6614 # but we know of no workaround that is simple, portable, and efficient.
6615 # So, don't put newlines in cache variables' values.
6616 # Ultrix sh set writes to stderr and can't be redirected directly,
6617 # and sets the high bit in the cache file unless we assign to the vars.
6620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6622 # `set' does not quote correctly, so add quotes (double-quote
6623 # substitution turns \\\\ into \\, and sed turns \\ into \).
6626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6629 # `set' quotes correctly as required by POSIX, so do not add quotes.
6631 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6640 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6642 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6643 if test -w $cache_file; then
6644 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6645 cat confcache
>$cache_file
6647 echo "not updating unwritable cache $cache_file"
6652 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6653 # Let make expand exec_prefix.
6654 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6656 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6657 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6658 # trailing colons and then remove the whole line if VPATH becomes empty
6659 # (actually we leave an empty line to preserve line numbers).
6660 if test "x$srcdir" = x.
; then
6661 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6662 s/:*\$(srcdir):*/:/;
6663 s/:*\${srcdir}:*/:/;
6665 s/^\([^=]*=[ ]*\):*/\1/;
6671 DEFS
=-DHAVE_CONFIG_H
6675 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6676 # 1. Remove the extension, and $U if already installed.
6677 ac_i
=`echo "$ac_i" |
6678 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6680 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6681 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6685 LTLIBOBJS
=$ac_ltlibobjs
6689 : ${CONFIG_STATUS=./config.status}
6690 ac_clean_files_save
=$ac_clean_files
6691 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6692 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6693 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6694 cat >$CONFIG_STATUS <<_ACEOF
6696 # Generated by $as_me.
6697 # Run this file to recreate the current configuration.
6698 # Compiler output produced by configure, useful for debugging
6699 # configure, is in config.log if it exists.
6704 SHELL=\${CONFIG_SHELL-$SHELL}
6707 cat >>$CONFIG_STATUS <<\_ACEOF
6708 ## --------------------- ##
6709 ## M4sh Initialization. ##
6710 ## --------------------- ##
6712 # Be Bourne compatible
6713 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6716 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6717 # is contrary to our usage. Disable this feature.
6718 alias -g '${1+"$@"}'='"$@"'
6719 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6723 # Support unset when possible.
6724 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6731 # Work around bugs in pre-3.0 UWIN ksh.
6732 $as_unset ENV MAIL MAILPATH
6739 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6740 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6741 LC_TELEPHONE LC_TIME
6743 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6744 eval $as_var=C
; export $as_var
6750 # Required to use basename.
6751 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6757 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6758 as_basename
=basename
6764 # Name of the executable.
6765 as_me
=`$as_basename "$0" ||
6766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6767 X"$0" : 'X\(//\)$' \| \
6768 X"$0" : 'X\(/\)$' \| \
6769 . : '\(.\)' 2>/dev/null ||
6771 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6772 /^X\/\(\/\/\)$/{ s//\1/; q; }
6773 /^X\/\(\/\).*/{ s//\1/; q; }
6777 # PATH needs CR, and LINENO needs CR and PATH.
6778 # Avoid depending upon Character Ranges.
6779 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6780 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6781 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6782 as_cr_digits
='0123456789'
6783 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6785 # The user is always right.
6786 if test "${PATH_SEPARATOR+set}" != set; then
6787 echo "#! /bin/sh" >conf$$.sh
6788 echo "exit 0" >>conf$$.sh
6790 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6801 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6802 test "x$as_lineno_1" != "x$as_lineno_2" &&
6803 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6804 # Find who we are. Look in the path if we contain no path at all
6807 *[\\/]* ) as_myself
=$0 ;;
6808 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir
=.
6813 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6818 # We did not find ourselves, most probably we were run as `sh COMMAND'
6819 # in which case we are not to be found in the path.
6820 if test "x$as_myself" = x
; then
6823 if test ! -f "$as_myself"; then
6824 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6825 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6826 { (exit 1); exit 1; }; }
6828 case $CONFIG_SHELL in
6830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6831 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6834 test -z "$as_dir" && as_dir
=.
6835 for as_base
in sh bash ksh sh5
; do
6838 if ("$as_dir/$as_base" -c '
6841 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6842 test "x$as_lineno_1" != "x$as_lineno_2" &&
6843 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6844 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6845 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6846 CONFIG_SHELL
=$as_dir/$as_base
6848 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6856 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6857 # uniformly replaced by the line number. The first 'sed' inserts a
6858 # line-number line before each line; the second 'sed' does the real
6859 # work. The second script uses 'N' to pair each line-number line
6860 # with the numbered line, and appends trailing '-' during
6861 # substitution so that $LINENO is not a special case at line end.
6862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6863 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6864 sed '=' <$as_myself |
6869 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6872 s,^['$as_cr_digits']*\n,,
6874 chmod +x
$as_me.lineno ||
6875 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6876 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6877 { (exit 1); exit 1; }; }
6879 # Don't try to exec as it changes $[0], causing all sort of problems
6880 # (the dirname of $[0] is not the place where we might find the
6881 # original and so on. Autoconf is especially sensible to this).
6883 # Exit status is that of the last command.
6888 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6889 *c
*,-n*) ECHO_N
= ECHO_C
='
6891 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6892 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6895 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6901 rm -f conf$$ conf$$.exe conf$$.
file
6903 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6904 # We could just check for DJGPP; but this test a) works b) is more generic
6905 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6906 if test -f conf$$.exe
; then
6907 # Don't use ln at all; we don't have any links
6912 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6917 rm -f conf$$ conf$$.exe conf$$.
file
6919 if mkdir
-p .
2>/dev
/null
; then
6925 as_executable_p
="test -f"
6927 # Sed expression to map a string onto a valid CPP name.
6928 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6930 # Sed expression to map a string onto a valid variable name.
6931 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6935 # We need space, tab and new line, in precisely that order.
6945 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6946 # report actual input values of CONFIG_FILES etc. instead of their
6947 # values after options handling. Logging --version etc. is OK.
6951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6952 ## Running $as_me. ##
6957 This file was extended by $as_me, which was
6958 generated by GNU Autoconf 2.57. Invocation command line was
6960 CONFIG_FILES = $CONFIG_FILES
6961 CONFIG_HEADERS = $CONFIG_HEADERS
6962 CONFIG_LINKS = $CONFIG_LINKS
6963 CONFIG_COMMANDS = $CONFIG_COMMANDS
6967 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6971 # Files that config.status was made for.
6972 if test -n "$ac_config_files"; then
6973 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6976 if test -n "$ac_config_headers"; then
6977 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6980 if test -n "$ac_config_links"; then
6981 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6984 if test -n "$ac_config_commands"; then
6985 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6988 cat >>$CONFIG_STATUS <<\_ACEOF
6991 \`$as_me' instantiates files from templates according to the
6992 current configuration.
6994 Usage: $0 [OPTIONS] [FILE]...
6996 -h, --help print this help, then exit
6997 -V, --version print version number, then exit
6998 -q, --quiet do not print progress messages
6999 -d, --debug don't remove temporary files
7000 --recheck update $as_me by reconfiguring in the same conditions
7001 --file=FILE[:TEMPLATE]
7002 instantiate the configuration file FILE
7003 --header=FILE[:TEMPLATE]
7004 instantiate the configuration header FILE
7006 Configuration files:
7009 Configuration headers:
7012 Report bugs to <bug-autoconf@gnu.org>."
7015 cat >>$CONFIG_STATUS <<_ACEOF
7018 configured by $0, generated by GNU Autoconf 2.57,
7019 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7021 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7022 Free Software Foundation, Inc.
7023 This config.status script is free software; the Free Software Foundation
7024 gives unlimited permission to copy, distribute and modify it."
7029 cat >>$CONFIG_STATUS <<\_ACEOF
7030 # If no file are specified by the user, then we need to provide default
7031 # value. By we need to know if files were specified by the user.
7037 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7038 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7046 *) # This is not an option, so the user has probably given explicit
7049 ac_need_defaults
=false
;;
7053 # Handling of the options.
7055 cat >>$CONFIG_STATUS <<\_ACEOF
7056 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7058 --version |
--vers* |
-V )
7059 echo "$ac_cs_version"; exit 0 ;;
7061 # Conflict between --help and --header
7062 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7063 Try \`$0 --help' for more information." >&5
7064 echo "$as_me: error: ambiguous option: $1
7065 Try \`$0 --help' for more information." >&2;}
7066 { (exit 1); exit 1; }; };;
7067 --help |
--hel |
-h )
7068 echo "$ac_cs_usage"; exit 0 ;;
7069 --debug |
--d* |
-d )
7071 --file |
--fil |
--fi |
--f )
7073 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7074 ac_need_defaults
=false
;;
7075 --header |
--heade |
--head |
--hea )
7077 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7078 ac_need_defaults
=false
;;
7079 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7080 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7084 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7085 Try \`$0 --help' for more information." >&5
7086 echo "$as_me: error: unrecognized option: $1
7087 Try \`$0 --help' for more information." >&2;}
7088 { (exit 1); exit 1; }; } ;;
7090 *) ac_config_targets
="$ac_config_targets $1" ;;
7096 ac_configure_extra_args
=
7098 if $ac_cs_silent; then
7100 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7104 cat >>$CONFIG_STATUS <<_ACEOF
7105 if \$ac_cs_recheck; then
7106 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7107 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7116 cat >>$CONFIG_STATUS <<\_ACEOF
7117 for ac_config_target
in $ac_config_targets
7119 case "$ac_config_target" in
7120 # Handling of arguments.
7121 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7122 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7123 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7124 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7125 { (exit 1); exit 1; }; };;
7129 # If the user did not use the arguments to specify the items to instantiate,
7130 # then the envvar interface is used. Set only those that are not.
7131 # We use the long form for the default assignment because of an extremely
7132 # bizarre bug on SunOS 4.1.3.
7133 if $ac_need_defaults; then
7134 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7135 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7138 # Have a temporary directory for convenience. Make it in the build tree
7139 # simply because there is no reason to put it here, and in addition,
7140 # creating and moving files from /tmp can sometimes cause problems.
7141 # Create a temporary directory, and hook for its removal unless debugging.
7144 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7145 trap '{ (exit 1); exit 1; }' 1 2 13 15
7148 # Create a (secure) tmp directory for tmp files.
7151 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7152 test -n "$tmp" && test -d "$tmp"
7155 tmp
=.
/confstat$$
-$RANDOM
7156 (umask 077 && mkdir
$tmp)
7159 echo "$me: cannot create a temporary directory in ." >&2
7160 { (exit 1); exit 1; }
7165 cat >>$CONFIG_STATUS <<_ACEOF
7168 # CONFIG_FILES section.
7171 # No need to generate the scripts if there are no CONFIG_FILES.
7172 # This happens for instance when ./config.status config.h
7173 if test -n "\$CONFIG_FILES"; then
7174 # Protect against being on the right side of a sed subst in config.status.
7175 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7176 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7177 s,@SHELL@,$SHELL,;t t
7178 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7179 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7180 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7181 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7182 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7183 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7184 s,@exec_prefix@,$exec_prefix,;t t
7185 s,@prefix@,$prefix,;t t
7186 s,@program_transform_name@,$program_transform_name,;t t
7187 s,@bindir@,$bindir,;t t
7188 s,@sbindir@,$sbindir,;t t
7189 s,@libexecdir@,$libexecdir,;t t
7190 s,@datadir@,$datadir,;t t
7191 s,@sysconfdir@,$sysconfdir,;t t
7192 s,@sharedstatedir@,$sharedstatedir,;t t
7193 s,@localstatedir@,$localstatedir,;t t
7194 s,@libdir@,$libdir,;t t
7195 s,@includedir@,$includedir,;t t
7196 s,@oldincludedir@,$oldincludedir,;t t
7197 s,@infodir@,$infodir,;t t
7198 s,@mandir@,$mandir,;t t
7199 s,@build_alias@,$build_alias,;t t
7200 s,@host_alias@,$host_alias,;t t
7201 s,@target_alias@,$target_alias,;t t
7203 s,@ECHO_C@,$ECHO_C,;t t
7204 s,@ECHO_N@,$ECHO_N,;t t
7205 s,@ECHO_T@,$ECHO_T,;t t
7207 s,@build@,$build,;t t
7208 s,@build_cpu@,$build_cpu,;t t
7209 s,@build_vendor@,$build_vendor,;t t
7210 s,@build_os@,$build_os,;t t
7212 s,@host_cpu@,$host_cpu,;t t
7213 s,@host_vendor@,$host_vendor,;t t
7214 s,@host_os@,$host_os,;t t
7215 s,@target@,$target,;t t
7216 s,@target_cpu@,$target_cpu,;t t
7217 s,@target_vendor@,$target_vendor,;t t
7218 s,@target_os@,$target_os,;t t
7219 s,@SHLICC2@,$SHLICC2,;t t
7221 s,@CFLAGS@,$CFLAGS,;t t
7222 s,@LDFLAGS@,$LDFLAGS,;t t
7223 s,@CPPFLAGS@,$CPPFLAGS,;t t
7224 s,@ac_ct_CC@,$ac_ct_CC,;t t
7225 s,@EXEEXT@,$EXEEXT,;t t
7226 s,@OBJEXT@,$OBJEXT,;t t
7228 s,@EGREP@,$EGREP,;t t
7229 s,@LIBOBJS@,$LIBOBJS,;t t
7230 s,@V_LEX@,$V_LEX,;t t
7231 s,@V_YACC@,$V_YACC,;t t
7232 s,@RANLIB@,$RANLIB,;t t
7233 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7234 s,@V_CCOPT@,$V_CCOPT,;t t
7235 s,@V_DEFS@,$V_DEFS,;t t
7236 s,@V_INCLS@,$V_INCLS,;t t
7237 s,@V_LIBS@,$V_LIBS,;t t
7238 s,@V_PCAP@,$V_PCAP,;t t
7239 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
7240 s,@V_RANLIB@,$V_RANLIB,;t t
7242 s,@DYEXT@,$DYEXT,;t t
7243 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7244 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7245 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7246 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7251 cat >>$CONFIG_STATUS <<\_ACEOF
7252 # Split the substitutions into bite-sized pieces for seds with
7253 # small command number limits, like on Digital OSF/1 and HP-UX.
7255 ac_sed_frag
=1 # Number of current file.
7256 ac_beg
=1 # First line for current file.
7257 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7260 while $ac_more_lines; do
7261 if test $ac_beg -gt 1; then
7262 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7264 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7266 if test ! -s $tmp/subs.frag
; then
7269 # The purpose of the label and of the branching condition is to
7270 # speed up the sed processing (if there are no `@' at all, there
7271 # is no need to browse any of the substitutions).
7272 # These are the two extra sed commands mentioned above.
7274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7275 if test -z "$ac_sed_cmds"; then
7276 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7278 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7280 ac_sed_frag
=`expr $ac_sed_frag + 1`
7282 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7285 if test -z "$ac_sed_cmds"; then
7288 fi # test -n "$CONFIG_FILES"
7291 cat >>$CONFIG_STATUS <<\_ACEOF
7292 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7295 - |
*:- |
*:-:* ) # input from stdin
7297 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7298 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7299 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7300 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7301 * ) ac_file_in
=$ac_file.
in ;;
7304 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7305 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7307 X"$ac_file" : 'X\(//\)[^/]' \| \
7308 X"$ac_file" : 'X\(//\)$' \| \
7309 X"$ac_file" : 'X\(/\)' \| \
7310 . : '\(.\)' 2>/dev/null ||
7312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7314 /^X\(\/\/\)$/{ s//\1/; q; }
7315 /^X\(\/\).*/{ s//\1/; q; }
7317 { if $as_mkdir_p; then
7322 while test ! -d "$as_dir"; do
7323 as_dirs
="$as_dir $as_dirs"
7324 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7326 X"$as_dir" : 'X\(//\)[^/]' \| \
7327 X"$as_dir" : 'X\(//\)$' \| \
7328 X"$as_dir" : 'X\(/\)' \| \
7329 . : '\(.\)' 2>/dev/null ||
7331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7332 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7333 /^X\(\/\/\)$/{ s//\1/; q; }
7334 /^X\(\/\).*/{ s//\1/; q; }
7337 test ! -n "$as_dirs" || mkdir
$as_dirs
7338 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7339 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7340 { (exit 1); exit 1; }; }; }
7344 if test "$ac_dir" != .
; then
7345 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7346 # A "../" for each directory in $ac_dir_suffix.
7347 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7349 ac_dir_suffix
= ac_top_builddir
=
7353 .
) # No --srcdir option. We are building in place.
7355 if test -z "$ac_top_builddir"; then
7358 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7360 [\\/]* | ?
:[\\/]* ) # Absolute path.
7361 ac_srcdir
=$srcdir$ac_dir_suffix;
7362 ac_top_srcdir
=$srcdir ;;
7364 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7365 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7367 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7369 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
7370 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7371 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7372 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7376 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7377 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7380 if test x
"$ac_file" != x-
; then
7381 { echo "$as_me:$LINENO: creating $ac_file" >&5
7382 echo "$as_me: creating $ac_file" >&6;}
7385 # Let's still pretend it is `configure' which instantiates (i.e., don't
7386 # use $as_me), people would be surprised to read:
7387 # /* config.h. Generated by config.status. */
7388 if test x
"$ac_file" = x-
; then
7391 configure_input
="$ac_file. "
7393 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7394 sed 's,.*/,,'` by configure."
7396 # First look for the input files in the build tree, otherwise in the
7398 ac_file_inputs
=`IFS=:
7399 for f in $ac_file_in; do
7401 -) echo $tmp/stdin ;;
7403 # Absolute (can't be DOS-style, as IFS=:)
7404 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7405 echo "$as_me: error: cannot find input file: $f" >&2;}
7406 { (exit 1); exit 1; }; }
7409 if test -f "$f"; then
7412 elif test -f "$srcdir/$f"; then
7417 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7418 echo "$as_me: error: cannot find input file: $f" >&2;}
7419 { (exit 1); exit 1; }; }
7422 done` ||
{ (exit 1); exit 1; }
7424 cat >>$CONFIG_STATUS <<_ACEOF
7428 cat >>$CONFIG_STATUS <<\_ACEOF
7430 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7431 s
,@configure_input@
,$configure_input,;t t
7432 s
,@srcdir@
,$ac_srcdir,;t t
7433 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7434 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7435 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7436 s
,@builddir@
,$ac_builddir,;t t
7437 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7438 s
,@top_builddir@
,$ac_top_builddir,;t t
7439 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7440 s
,@INSTALL@
,$ac_INSTALL,;t t
7441 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7443 if test x"$ac_file" != x-; then
7444 mv $tmp/out $ac_file
7452 cat >>$CONFIG_STATUS <<\_ACEOF
7455 # CONFIG_HEADER section.
7458 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7459 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7461 # ac_d sets the value in "#define NAME VALUE" lines.
7462 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7463 ac_dB
='[ ].*$,\1#\2'
7466 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7467 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7468 ac_uB
='$,\1#\2define\3'
7472 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7473 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7475 - |
*:- |
*:-:* ) # input from stdin
7477 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7478 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7479 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7480 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7481 * ) ac_file_in
=$ac_file.
in ;;
7484 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7485 echo "$as_me: creating $ac_file" >&6;}
7487 # First look for the input files in the build tree, otherwise in the
7489 ac_file_inputs
=`IFS=:
7490 for f in $ac_file_in; do
7492 -) echo $tmp/stdin ;;
7494 # Absolute (can't be DOS-style, as IFS=:)
7495 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7496 echo "$as_me: error: cannot find input file: $f" >&2;}
7497 { (exit 1); exit 1; }; }
7500 if test -f "$f"; then
7503 elif test -f "$srcdir/$f"; then
7508 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7509 echo "$as_me: error: cannot find input file: $f" >&2;}
7510 { (exit 1); exit 1; }; }
7513 done` ||
{ (exit 1); exit 1; }
7514 # Remove the trailing spaces.
7515 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7519 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7520 # `conftest.undefs', that substitutes the proper values into
7521 # config.h.in to produce config.h. The first handles `#define'
7522 # templates, and the second `#undef' templates.
7523 # And first: Protect against being on the right side of a sed subst in
7524 # config.status. Protect against being in an unquoted here document
7526 rm -f conftest.defines conftest.undefs
7527 # Using a here document instead of a string reduces the quoting nightmare.
7528 # Putting comments in sed scripts is not portable.
7530 # `end' is used to avoid that the second main sed command (meant for
7531 # 0-ary CPP macros) applies to n-ary macro definitions.
7532 # See the Autoconf documentation for `clear'.
7533 cat >confdef2sed.
sed <<\_ACEOF
7538 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7540 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7543 # If some macros were called several times there might be several times
7544 # the same #defines, which is useless. Nevertheless, we may not want to
7545 # sort them, since we want the *last* AC-DEFINE to be honored.
7546 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7547 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7548 rm -f confdef2sed.sed
7550 # This sed command replaces #undef with comments. This is necessary, for
7551 # example, in the case of _POSIX_SOURCE, which is predefined and required
7552 # on some systems where configure will not decide to define it.
7553 cat >>conftest.undefs <<\_ACEOF
7554 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7557 # Break up conftest.defines because some shells have a limit on the size
7558 # of here documents, and old seds have small limits too (100 cmds).
7559 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7560 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7561 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7562 echo ' :' >>$CONFIG_STATUS
7564 while grep . conftest.defines >/dev/null
7566 # Write a limited-size here document to $tmp/defines.sed.
7567 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7568 # Speed up: don't consider the non `#define' lines.
7569 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7570 # Work around the forget-to-reset-the-flag bug.
7571 echo 't clr' >>$CONFIG_STATUS
7572 echo ': clr' >>$CONFIG_STATUS
7573 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7575 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7579 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7580 rm -f conftest.defines
7581 mv conftest.
tail conftest.defines
7583 rm -f conftest.defines
7584 echo ' fi # grep' >>$CONFIG_STATUS
7585 echo >>$CONFIG_STATUS
7587 # Break up conftest.undefs because some shells have a limit on the size
7588 # of here documents, and old seds have small limits too (100 cmds).
7589 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7591 while grep . conftest.undefs
>/dev
/null
7593 # Write a limited-size here document to $tmp/undefs.sed.
7594 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7595 # Speed up: don't consider the non
`#undef'
7596 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7597 # Work around the forget-to-reset-the-flag bug.
7598 echo 't clr' >>$CONFIG_STATUS
7599 echo ': clr' >>$CONFIG_STATUS
7600 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7602 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7606 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7607 rm -f conftest.undefs
7608 mv conftest.tail conftest.undefs
7610 rm -f conftest.undefs
7612 cat >>$CONFIG_STATUS <<\_ACEOF
7613 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7614 # use $as_me), people would be surprised to read:
7615 # /* config.h. Generated by config.status. */
7616 if test x
"$ac_file" = x-
; then
7617 echo "/* Generated by configure. */" >$tmp/config.h
7619 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7621 cat $tmp/in >>$tmp/config.h
7623 if test x
"$ac_file" != x-
; then
7624 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7625 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7626 echo "$as_me: $ac_file is unchanged" >&6;}
7628 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7630 X"$ac_file" : 'X\(//\)[^/]' \| \
7631 X"$ac_file" : 'X\(//\)$' \| \
7632 X"$ac_file" : 'X\(/\)' \| \
7633 . : '\(.\)' 2>/dev/null ||
7635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7637 /^X\(\/\/\)$/{ s//\1/; q; }
7638 /^X\(\/\).*/{ s//\1/; q; }
7640 { if $as_mkdir_p; then
7645 while test ! -d "$as_dir"; do
7646 as_dirs
="$as_dir $as_dirs"
7647 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7649 X"$as_dir" : 'X\(//\)[^/]' \| \
7650 X"$as_dir" : 'X\(//\)$' \| \
7651 X"$as_dir" : 'X\(/\)' \| \
7652 . : '\(.\)' 2>/dev/null ||
7654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7656 /^X\(\/\/\)$/{ s//\1/; q; }
7657 /^X\(\/\).*/{ s//\1/; q; }
7660 test ! -n "$as_dirs" || mkdir
$as_dirs
7661 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7662 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7663 { (exit 1); exit 1; }; }; }
7666 mv $tmp/config.h
$ac_file
7675 cat >>$CONFIG_STATUS <<\_ACEOF
7677 { (exit 0); exit 0; }
7679 chmod +x
$CONFIG_STATUS
7680 ac_clean_files
=$ac_clean_files_save
7683 # configure is writing to config.log, and then calls config.status.
7684 # config.status does its own redirection, appending to config.log.
7685 # Unfortunately, on DOS this fails, as config.log is still kept open
7686 # by configure, so config.status won't be able to write to it; its
7687 # output is simply discarded. So we exec the FD to /dev/null,
7688 # effectively closing config.log, so it can be properly (re)opened and
7689 # appended to by config.status. When coming back to configure, we
7690 # need to make the FD available again.
7691 if test "$no_create" != yes; then
7693 ac_config_status_args
=
7694 test "$silent" = yes &&
7695 ac_config_status_args
="$ac_config_status_args --quiet"
7697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7700 # would make configure fail if this is the last instruction.
7701 $ac_cs_success ||
{ (exit 1); exit 1; }
7705 if test -f .devel
; then