2 # From configure.in Revision: 1.134 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23 DUALCASE
=1; export DUALCASE
# for MKS sh
25 # Support unset when possible.
26 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C
; export $as_var
52 # Required to use basename.
53 if expr a
: '\(a\)' >/dev
/null
2>&1; then
59 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me
=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits
='0123456789'
85 as_cr_alnum
=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
103 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself
=$0 ;;
110 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir
=.
115 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x
; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
132 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir
=.
136 for as_base
in sh bash ksh sh5
; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
145 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
146 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
147 CONFIG_SHELL
=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x
$as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c
*,-n*) ECHO_N
= ECHO_C
='
191 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
192 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
195 if expr a
: '\(a\)' >/dev
/null
2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.
file
203 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe
; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.
file conf$$
2>/dev
/null
; then
217 rm -f conf$$ conf$$.exe conf$$.
file
219 if mkdir
-p .
2>/dev
/null
; then
222 test -d .
/-p && rmdir .
/-p
226 as_executable_p
="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix
=/usr
/local
256 ac_config_libobj_dir
=.
261 SHELL
=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
275 ac_unique_file
="pcap.c"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 DAGLIBS PCAP_SUPPORT_USB USB_SRC PCAP_SUPPORT_BT BT_SRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure
for building on BUILD
[guessed
]
837 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
838 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
842 if test -n "$ac_init_help"; then
847 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
848 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
849 --disable-protochain disable
\"protochain
\" insn
850 --enable-ipv6 build IPv6-capable version
851 --enable-optimizer-dbg build optimizer debugging code
852 --enable-yydebug build parser debugging code
855 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
856 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
857 --without-gcc don
't use gcc
858 --with-pcap=TYPE use packet capture TYPE
859 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
860 --with-dag-includes=DIR Endace DAG include directory
861 --with-dag-libraries=DIR Endace DAG library directory
862 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
863 --without-flex don't use flex
864 --without-bison don
't use bison
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
875 Use these variables to override the choices made by `configure' or to
help
876 it to
find libraries and programs with nonstandard names
/locations.
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
884 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
885 test -d $ac_dir ||
continue
888 if test "$ac_dir" != .
; then
889 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 ac_dir_suffix
= ac_top_builddir
=
897 .
) # No --srcdir option. We are building in place.
899 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
904 [\\/]* | ?
:[\\/]* ) # Absolute path.
905 ac_srcdir
=$srcdir$ac_dir_suffix;
906 ac_top_srcdir
=$srcdir ;;
908 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
915 .
) ac_abs_builddir
="$ac_dir";;
918 .
) ac_abs_builddir
=`pwd`;;
919 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
920 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
923 case $ac_abs_builddir in
924 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
926 case ${ac_top_builddir}.
in
927 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
928 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
929 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
932 case $ac_abs_builddir in
933 .
) ac_abs_srcdir
=$ac_srcdir;;
936 .
) ac_abs_srcdir
=$ac_abs_builddir;;
937 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
938 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
941 case $ac_abs_builddir in
942 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
944 case $ac_top_srcdir in
945 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
946 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu
; then
955 $SHELL $ac_srcdir/configure.gnu
--help=recursive
956 elif test -f $ac_srcdir/configure
; then
958 $SHELL $ac_srcdir/configure
--help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.
in; then
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
974 Copyright
(C
) 2003 Free Software Foundation
, Inc.
975 This configure
script is free software
; the Free Software Foundation
976 gives unlimited permission to copy
, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir
=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next
=false
1051 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1053 |
-silent |
--silent |
--silen |
--sile |
--sil)
1055 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true
; then
1063 ac_must_keep_next
=false
# Got value, back to normal.
1066 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1067 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1068 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1069 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next
=true
;;
1077 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1085 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h; then
1155 sed "/^$/d" confdefs.h | sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 for ac_signal
in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest
* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h
<<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h
<<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h
<<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h
<<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h
<<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE
; then
1207 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file
in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1229 *) . .
/$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted
=false
1241 for ac_var
in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1244 eval ac_new_set
=\
$ac_env_${ac_var}_set
1245 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val
="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted
=: ;;
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted
=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted
=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg
=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp
='$CPP $CPPFLAGS'
1291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1315 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1316 if test -f $ac_dir/install-sh
; then
1318 ac_install_sh
="$ac_aux_dir/install-sh -c"
1320 elif test -f $ac_dir/install.sh
; then
1322 ac_install_sh
="$ac_aux_dir/install.sh -c"
1324 elif test -f $ac_dir/shtool
; then
1326 ac_install_sh
="$ac_aux_dir/shtool install -c"
1330 if test -z "$ac_aux_dir"; then
1331 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1332 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1333 { (exit 1); exit 1; }; }
1335 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1336 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1337 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1339 # Make sure we can run config.sub.
1340 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1341 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1342 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1343 { (exit 1); exit 1; }; }
1345 echo "$as_me:$LINENO: checking build system type" >&5
1346 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1347 if test "${ac_cv_build+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 ac_cv_build_alias
=$build_alias
1351 test -z "$ac_cv_build_alias" &&
1352 ac_cv_build_alias
=`$ac_config_guess`
1353 test -z "$ac_cv_build_alias" &&
1354 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1355 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1356 { (exit 1); exit 1; }; }
1357 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1358 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1359 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1360 { (exit 1); exit 1; }; }
1363 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1364 echo "${ECHO_T}$ac_cv_build" >&6
1366 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371 echo "$as_me:$LINENO: checking host system type" >&5
1372 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1373 if test "${ac_cv_host+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1376 ac_cv_host_alias
=$host_alias
1377 test -z "$ac_cv_host_alias" &&
1378 ac_cv_host_alias
=$ac_cv_build_alias
1379 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1380 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1381 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1382 { (exit 1); exit 1; }; }
1385 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1386 echo "${ECHO_T}$ac_cv_host" >&6
1388 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393 echo "$as_me:$LINENO: checking target system type" >&5
1394 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1395 if test "${ac_cv_target+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 ac_cv_target_alias
=$target_alias
1399 test "x$ac_cv_target_alias" = "x" &&
1400 ac_cv_target_alias
=$ac_cv_host_alias
1401 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1402 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1403 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1404 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1408 echo "${ECHO_T}$ac_cv_target" >&6
1409 target
=$ac_cv_target
1410 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415 # The aliases save the names the user supplied, while $host etc.
1416 # will get canonicalized.
1417 test -n "$target_alias" &&
1418 test "$program_prefix$program_suffix$program_transform_name" = \
1420 program_prefix
=${target_alias}-
1427 # Check whether --with-gcc or --without-gcc was given.
1428 if test "${with_gcc+set}" = set; then
1434 if test "${srcdir}" != "." ; then
1435 V_INCLS
="-I\$(srcdir)"
1437 if test "${CFLAGS+set}" = set; then
1438 LBL_CFLAGS
="$CFLAGS"
1440 if test -z "$CC" ; then
1441 case "$target_os" in
1444 # Extract the first word of "shlicc2", so it can be a program name with args.
1445 set dummy shlicc2
; ac_word
=$2
1446 echo "$as_me:$LINENO: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 if test -n "$SHLICC2"; then
1452 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1458 test -z "$as_dir" && as_dir
=.
1459 for ac_exec_ext
in '' $ac_executable_extensions; do
1460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1461 ac_cv_prog_SHLICC2
="yes"
1462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1471 SHLICC2
=$ac_cv_prog_SHLICC2
1472 if test -n "$SHLICC2"; then
1473 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1474 echo "${ECHO_T}$SHLICC2" >&6
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1480 if test $SHLICC2 = yes ; then
1487 if test -z "$CC" -a "$with_gcc" = no
; then
1492 ac_cpp
='$CPP $CPPFLAGS'
1493 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1498 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_CC+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 if test -n "$CC"; then
1505 ac_cv_prog_CC
="$CC" # Let the user override the test.
1507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1511 test -z "$as_dir" && as_dir
=.
1512 for ac_exec_ext
in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 if test -n "$CC"; then
1525 echo "$as_me:$LINENO: result: $CC" >&5
1526 echo "${ECHO_T}$CC" >&6
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1533 if test -z "$ac_cv_prog_CC"; then
1535 # Extract the first word of "gcc", so it can be a program name with args.
1536 set dummy gcc
; ac_word
=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 if test -n "$ac_ct_CC"; then
1543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir
=.
1550 for ac_exec_ext
in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 ac_cv_prog_ac_ct_CC
="gcc"
1553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1562 if test -n "$ac_ct_CC"; then
1563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1564 echo "${ECHO_T}$ac_ct_CC" >&6
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1575 if test -z "$CC"; then
1576 if test -n "$ac_tool_prefix"; then
1577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1578 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 if test -n "$CC"; then
1585 ac_cv_prog_CC
="$CC" # Let the user override the test.
1587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir
=.
1592 for ac_exec_ext
in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1613 if test -z "$ac_cv_prog_CC"; then
1615 # Extract the first word of "cc", so it can be a program name with args.
1616 set dummy cc
; ac_word
=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$ac_ct_CC"; then
1623 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir
=.
1630 for ac_exec_ext
in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_ac_ct_CC
="cc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1642 if test -n "$ac_ct_CC"; then
1643 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1644 echo "${ECHO_T}$ac_ct_CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1656 if test -z "$CC"; then
1657 # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc
; ac_word
=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC
="$CC" # Let the user override the test.
1668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir
=.
1673 for ac_exec_ext
in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1676 ac_prog_rejected
=yes
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 if test $ac_prog_rejected = yes; then
1687 # We found a bogon in the path, so make sure we never use it.
1688 set dummy
$ac_cv_prog_CC
1690 if test $# != 0; then
1691 # We chose a different compiler from the bogus one.
1692 # However, it has the same basename, so the bogon will be chosen
1693 # first if we set CC to just the basename; use the full file name.
1695 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1701 if test -n "$CC"; then
1702 echo "$as_me:$LINENO: result: $CC" >&5
1703 echo "${ECHO_T}$CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1710 if test -z "$CC"; then
1711 if test -n "$ac_tool_prefix"; then
1714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1715 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC
="$CC" # Let the user override the test.
1724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir
=.
1729 for ac_exec_ext
in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 if test -n "$CC"; then
1742 echo "$as_me:$LINENO: result: $CC" >&5
1743 echo "${ECHO_T}$CC" >&6
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 test -n "$CC" && break
1752 if test -z "$CC"; then
1756 # Extract the first word of "$ac_prog", so it can be a program name with args.
1757 set dummy
$ac_prog; ac_word
=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 if test -n "$ac_ct_CC"; then
1764 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir
=.
1771 for ac_exec_ext
in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_ac_ct_CC
="$ac_prog"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1783 if test -n "$ac_ct_CC"; then
1784 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1785 echo "${ECHO_T}$ac_ct_CC" >&6
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1791 test -n "$ac_ct_CC" && break
1800 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: no acceptable C compiler found in \$PATH
1803 See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1806 # Provide some information about the compiler.
1807 echo "$as_me:$LINENO:" \
1808 "checking for C compiler version" >&5
1809 ac_compiler
=`set X $ac_compile; echo $2`
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1811 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1816 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1820 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1821 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }
1826 cat >conftest.
$ac_ext <<_ACEOF
1829 cat confdefs.h
>>conftest.
$ac_ext
1830 cat >>conftest.
$ac_ext <<_ACEOF
1831 /* end confdefs.h. */
1841 ac_clean_files_save
=$ac_clean_files
1842 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1843 # Try to create an executable without -o first, disregard a.out.
1844 # It will help us diagnose broken compilers, and finding out an intuition
1846 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1847 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1848 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1850 (eval $ac_link_default) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 # Find the output, starting from the most likely. This scheme is
1855 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1858 # Be careful to initialize this variable, since it used to be cached.
1859 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1861 # b.out is created by i960 compilers.
1862 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1864 test -f "$ac_file" ||
continue
1866 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1869 # This is the source file.
1872 # We found the default executable, but exeext='' is most
1876 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877 # FIXME: I believe we export ac_cv_exeext for Libtool,
1878 # but it would be cool to find out if it's true. Does anybody
1879 # maintain Libtool? --akim.
1887 echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.
$ac_ext >&5
1890 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1891 See \`config.log' for more details." >&5
1892 echo "$as_me: error: C compiler cannot create executables
1893 See \`config.log' for more details." >&2;}
1894 { (exit 77); exit 77; }; }
1897 ac_exeext
=$ac_cv_exeext
1898 echo "$as_me:$LINENO: result: $ac_file" >&5
1899 echo "${ECHO_T}$ac_file" >&6
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 the C compiler works" >&5
1904 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1906 # If not cross compiling, check that we can run a simple program.
1907 if test "$cross_compiling" != yes; then
1908 if { ac_try
='./$ac_file'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1916 if test "$cross_compiling" = maybe
; then
1919 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1920 If you meant to cross compile, use \`--host'.
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: cannot run C compiled programs.
1923 If you meant to cross compile, use \`--host'.
1924 See \`config.log' for more details." >&2;}
1925 { (exit 1); exit 1; }; }
1929 echo "$as_me:$LINENO: result: yes" >&5
1930 echo "${ECHO_T}yes" >&6
1932 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1933 ac_clean_files
=$ac_clean_files_save
1934 # Check the compiler produces executables we can run. If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1937 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1939 echo "${ECHO_T}$cross_compiling" >&6
1941 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1942 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1944 (eval $ac_link) 2>&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1950 # work properly (i.e., refer to `conftest.exe'), while it won't with
1952 for ac_file
in conftest.exe conftest conftest.
*; do
1953 test -f "$ac_file" ||
continue
1955 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1956 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1963 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1970 rm -f conftest
$ac_cv_exeext
1971 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1972 echo "${ECHO_T}$ac_cv_exeext" >&6
1974 rm -f conftest.
$ac_ext
1975 EXEEXT
=$ac_cv_exeext
1977 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1978 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1979 if test "${ac_cv_objext+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 cat >conftest.
$ac_ext <<_ACEOF
1985 cat confdefs.h
>>conftest.
$ac_ext
1986 cat >>conftest.
$ac_ext <<_ACEOF
1987 /* end confdefs.h. */
1997 rm -f conftest.o conftest.obj
1998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1999 (eval $ac_compile) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2005 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2006 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.
$ac_ext >&5
2014 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2017 See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }
2021 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2023 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2024 echo "${ECHO_T}$ac_cv_objext" >&6
2025 OBJEXT
=$ac_cv_objext
2027 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2028 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2029 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.
$ac_ext <<_ACEOF
2035 cat confdefs.h
>>conftest.
$ac_ext
2036 cat >>conftest.
$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2050 rm -f conftest.
$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2054 grep -v '^ *+' conftest.er1
>conftest.err
2056 cat conftest.err
>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try
='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try
='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.
$ac_ext >&5
2079 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2080 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2083 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2084 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2085 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2086 ac_test_CFLAGS
=${CFLAGS+set}
2087 ac_save_CFLAGS
=$CFLAGS
2089 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2091 if test "${ac_cv_prog_cc_g+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 cat >conftest.
$ac_ext <<_ACEOF
2097 cat confdefs.h
>>conftest.
$ac_ext
2098 cat >>conftest.
$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2109 rm -f conftest.
$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>conftest.er1
2113 grep -v '^ *+' conftest.er1
>conftest.err
2115 cat conftest.err
>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
2118 { ac_try
='test -z "$ac_c_werror_flag"
2119 || test ! -s conftest.err'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; } &&
2125 { ac_try
='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.
$ac_ext >&5
2138 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2140 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2141 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2142 if test "$ac_test_CFLAGS" = set; then
2143 CFLAGS
=$ac_save_CFLAGS
2144 elif test $ac_cv_prog_cc_g = yes; then
2145 if test "$GCC" = yes; then
2151 if test "$GCC" = yes; then
2157 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2158 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2159 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 ac_cv_prog_cc_stdc
=no
2164 cat >conftest.
$ac_ext <<_ACEOF
2167 cat confdefs.h
>>conftest.
$ac_ext
2168 cat >>conftest.
$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2172 #include <sys/types.h>
2173 #include <sys/stat.h>
2174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2175 struct buf { int x; };
2176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2177 static char *e (p, i)
2183 static char *f (char * (*g) (char **, int), char **p, ...)
2188 s = g (p, va_arg (v,int));
2193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2194 function prototypes and stuff, but not '\xHH' hex character constants.
2195 These don't provoke an error unfortunately, instead are silently treated
2196 as 'x'. The following induces an error, until -std1 is added to get
2197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2198 array size at least. It's necessary to write '\x00'==0 to get something
2199 that's true only with -std1. */
2200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2202 int test (int i, double x);
2203 struct s1 {int (*f) (int a);};
2204 struct s2 {int (*f) (double a);};
2205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2216 # Don't try gcc -ansi; that turns off useful extensions and
2217 # breaks some systems' header files.
2218 # AIX -qlanglvl=ansi
2219 # Ultrix and OSF/1 -std1
2220 # HP-UX 10.20 and later -Ae
2221 # HP-UX older versions -Aa -D_HPUX_SOURCE
2222 # SVR4 -Xc -D__EXTENSIONS__
2223 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2225 CC
="$ac_save_CC $ac_arg"
2226 rm -f conftest.
$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2230 grep -v '^ *+' conftest.er1
>conftest.err
2232 cat conftest.err
>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try
='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try
='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_stdc
=$ac_arg
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.
$ac_ext >&5
2255 rm -f conftest.err conftest.
$ac_objext
2257 rm -f conftest.
$ac_ext conftest.
$ac_objext
2262 case "x$ac_cv_prog_cc_stdc" in
2264 echo "$as_me:$LINENO: result: none needed" >&5
2265 echo "${ECHO_T}none needed" >&6 ;;
2267 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2268 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2269 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2272 # Some people use a C++ compiler to compile C. Since we use `exit',
2273 # in C++ we need to declare it. In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.
$ac_ext <<_ACEOF
2281 rm -f conftest.
$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2285 grep -v '^ *+' conftest.er1
>conftest.err
2287 cat conftest.err
>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try
='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try
='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 for ac_declaration
in \
2305 'extern "C" void std::exit (int) throw (); using std::exit;' \
2306 'extern "C" void std::exit (int); using std::exit;' \
2307 'extern "C" void exit (int) throw ();' \
2308 'extern "C" void exit (int);' \
2311 cat >conftest.
$ac_ext <<_ACEOF
2314 cat confdefs.h
>>conftest.
$ac_ext
2315 cat >>conftest.
$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2327 rm -f conftest.
$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2331 grep -v '^ *+' conftest.er1
>conftest.err
2333 cat conftest.err
>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try
='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try
='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.
$ac_ext >&5
2356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2357 cat >conftest.
$ac_ext <<_ACEOF
2360 cat confdefs.h
>>conftest.
$ac_ext
2361 cat >>conftest.
$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2372 rm -f conftest.
$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>conftest.er1
2376 grep -v '^ *+' conftest.er1
>conftest.err
2378 cat conftest.err
>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try
='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try
='test -s conftest.$ac_objext'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.
$ac_ext >&5
2400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2403 if test -n "$ac_declaration"; then
2404 echo '#ifdef __cplusplus' >>confdefs.h
2405 echo $ac_declaration >>confdefs.h
2406 echo '#endif' >>confdefs.h
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.
$ac_ext >&5
2414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2416 ac_cpp
='$CPP $CPPFLAGS'
2417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2421 if test "$GCC" = yes ; then
2422 if test "$SHLICC2" = yes ; then
2423 ac_cv_lbl_gcc_vers
=2
2426 echo "$as_me:$LINENO: checking gcc version" >&5
2427 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2428 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2432 sed -e '/^gcc version /!d' \
2433 -e 's/^gcc version //' \
2434 -e 's/ .*//' -e 's/^[^0-9]*//' \
2438 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2439 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2440 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2445 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2446 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2447 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.
$ac_ext <<_ACEOF
2454 cat confdefs.h
>>conftest.
$ac_ext
2455 cat >>conftest.
$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 #include <sys/types.h>
2461 int frob(int, char *)
2466 rm -f conftest.
$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2470 grep -v '^ *+' conftest.er1
>conftest.err
2472 cat conftest.err
>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try
='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try
='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_lbl_cc_ansi_prototypes
=yes
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.
$ac_ext >&5
2493 ac_cv_lbl_cc_ansi_prototypes
=no
2495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2498 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2499 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2500 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2501 case "$target_os" in
2504 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2505 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2506 savedcflags
="$CFLAGS"
2507 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2508 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 cat >conftest.
$ac_ext <<_ACEOF
2514 cat confdefs.h
>>conftest.
$ac_ext
2515 cat >>conftest.
$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 #include <sys/types.h>
2521 int frob(int, char *)
2526 rm -f conftest.
$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2530 grep -v '^ *+' conftest.er1
>conftest.err
2532 cat conftest.err
>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try
='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try
='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_cv_lbl_cc_hpux_cc_aa
=yes
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.
$ac_ext >&5
2553 ac_cv_lbl_cc_hpux_cc_aa
=no
2555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2558 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2559 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2560 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2561 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2562 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2563 { (exit 1); exit 1; }; }
2565 CFLAGS
="$savedcflags"
2566 V_CCOPT
="-Aa $V_CCOPT"
2568 cat >>confdefs.h
<<\_ACEOF
2569 #define _HPUX_SOURCE 1
2575 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2576 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2577 { (exit 1); exit 1; }; }
2581 V_INCLS
="$V_INCLS -I/usr/local/include"
2582 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2584 case "$target_os" in
2587 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
2591 V_CCOPT
="$V_CCOPT -std1 -g3"
2595 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2596 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2597 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.
$ac_ext <<_ACEOF
2603 cat confdefs.h
>>conftest.
$ac_ext
2604 cat >>conftest.
$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606 #include <sys/types.h>
2610 struct a { int b; };
2611 void c(const struct a *)
2616 rm -f conftest.
$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>conftest.er1
2620 grep -v '^ *+' conftest.er1
>conftest.err
2622 cat conftest.err
>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try
='test -z "$ac_c_werror_flag"
2626 || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try
='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_lbl_cc_const_proto
=yes
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.
$ac_ext >&5
2643 ac_cv_lbl_cc_const_proto
=no
2645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2648 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2649 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2650 if test $ac_cv_lbl_cc_const_proto = no
; then
2651 cat >>confdefs.h
<<\_ACEOF
2660 echo "$as_me:$LINENO: checking for inline" >&5
2661 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2662 save_CFLAGS
="$CFLAGS"
2664 if test "${ac_cv_lbl_inline+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 for ac_lbl_inline
in inline __inline__ __inline
2672 cat >conftest.
$ac_ext <<_ACEOF
2675 cat confdefs.h
>>conftest.
$ac_ext
2676 cat >>conftest.
$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2678 #define inline $ac_lbl_inline
2679 static inline struct iltest *foo(void);
2685 static inline struct iltest *
2688 static struct iltest xxx;
2700 rm -f conftest.
$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1
>conftest.err
2706 cat conftest.err
>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try
='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try
='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_lbl_cc_inline
=yes
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.
$ac_ext >&5
2728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2729 if test "$ac_lbl_cc_inline" = yes ; then
2733 if test "$ac_lbl_cc_inline" = yes ; then
2734 ac_cv_lbl_inline
=$ac_lbl_inline
2738 CFLAGS
="$save_CFLAGS"
2739 if test ! -z "$ac_cv_lbl_inline" ; then
2740 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2741 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2747 cat >>confdefs.h
<<_ACEOF
2748 #define inline $ac_cv_lbl_inline
2752 echo "$as_me:$LINENO: checking for __attribute__" >&5
2753 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2754 if test "${ac_cv___attribute__+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 cat >conftest.
$ac_ext <<_ACEOF
2761 cat confdefs.h
>>conftest.
$ac_ext
2762 cat >>conftest.
$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2767 static void foo(void) __attribute__ ((noreturn));
2776 main(int argc, char **argv)
2782 rm -f conftest.
$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1
>conftest.err
2788 cat conftest.err
>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try
='test -z "$ac_c_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try
='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 ac_cv___attribute__
=yes
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.
$ac_ext >&5
2809 ac_cv___attribute__
=no
2811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2814 if test "$ac_cv___attribute__" = "yes"; then
2816 cat >>confdefs.h
<<\_ACEOF
2817 #define HAVE___ATTRIBUTE__ 1
2820 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2822 V_DEFS
="$V_DEFS -D_U_=\"\""
2824 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2825 echo "${ECHO_T}$ac_cv___attribute__" >&6
2828 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2829 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2830 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 cat >conftest.
$ac_ext <<_ACEOF
2836 cat confdefs.h
>>conftest.
$ac_ext
2837 cat >>conftest.
$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2840 # include "confdefs.h"
2841 # include <sys/types.h>
2843 # include <stdlib.h>
2844 # include <stddef.h>
2854 rm -f conftest.
$ac_objext
2855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>conftest.er1
2858 grep -v '^ *+' conftest.er1
>conftest.err
2860 cat conftest.err
>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try
='test -z "$ac_c_werror_flag"
2864 || test ! -s conftest.err'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; } &&
2870 { ac_try
='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_cv_lbl_have_u_int8_t
=yes
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.
$ac_ext >&5
2881 ac_cv_lbl_have_u_int8_t
=no
2883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2886 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2887 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2888 if test $ac_cv_lbl_have_u_int8_t = no
; then
2890 cat >>confdefs.h
<<\_ACEOF
2891 #define u_int8_t u_char
2895 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2896 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2897 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2907 # include "confdefs.h"
2908 # include <sys/types.h>
2910 # include <stdlib.h>
2911 # include <stddef.h>
2921 rm -f conftest.
$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2925 grep -v '^ *+' conftest.er1
>conftest.err
2927 cat conftest.err
>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try
='test -z "$ac_c_werror_flag"
2931 || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try
='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 ac_cv_lbl_have_u_int16_t
=yes
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2948 ac_cv_lbl_have_u_int16_t
=no
2950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2953 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2954 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2955 if test $ac_cv_lbl_have_u_int16_t = no
; then
2957 cat >>confdefs.h
<<\_ACEOF
2958 #define u_int16_t u_short
2962 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2963 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2964 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 cat >conftest.
$ac_ext <<_ACEOF
2970 cat confdefs.h
>>conftest.
$ac_ext
2971 cat >>conftest.
$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2974 # include "confdefs.h"
2975 # include <sys/types.h>
2977 # include <stdlib.h>
2978 # include <stddef.h>
2988 rm -f conftest.
$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>conftest.er1
2992 grep -v '^ *+' conftest.er1
>conftest.err
2994 cat conftest.err
>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try
='test -z "$ac_c_werror_flag"
2998 || test ! -s conftest.err'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; } &&
3004 { ac_try
='test -s conftest.$ac_objext'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 ac_cv_lbl_have_u_int32_t
=yes
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.
$ac_ext >&5
3015 ac_cv_lbl_have_u_int32_t
=no
3017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3020 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3021 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
3022 if test $ac_cv_lbl_have_u_int32_t = no
; then
3024 cat >>confdefs.h
<<\_ACEOF
3025 #define u_int32_t u_int
3031 ac_cpp
='$CPP $CPPFLAGS'
3032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3035 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3036 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3037 # On Suns, sometimes $CPP names a directory.
3038 if test -n "$CPP" && test -d "$CPP"; then
3041 if test -z "$CPP"; then
3042 if test "${ac_cv_prog_CPP+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 # Double quotes because CPP needs to be expanded
3046 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3049 for ac_c_preproc_warn_flag
in '' yes
3051 # Use a header file that comes with gcc, so configuring glibc
3052 # with a fresh cross-compiler works.
3053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054 # <limits.h> exists even on freestanding compilers.
3055 # On the NeXT, cc -E runs the code through the compiler's parser,
3056 # not just through cpp. "Syntax error" is here to catch this case.
3057 cat >conftest.
$ac_ext <<_ACEOF
3060 cat confdefs.h
>>conftest.
$ac_ext
3061 cat >>conftest.
$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3064 # include <limits.h>
3066 # include <assert.h>
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1
>conftest.err
3075 cat conftest.err
>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev
/null
; then
3078 if test -s conftest.err
; then
3079 ac_cpp_err
=$ac_c_preproc_warn_flag
3080 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3087 if test -z "$ac_cpp_err"; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 # Broken: fails on valid input.
3096 rm -f conftest.err conftest.
$ac_ext
3098 # OK, works on sane cases. Now check whether non-existent headers
3099 # can be detected and how.
3100 cat >conftest.
$ac_ext <<_ACEOF
3103 cat confdefs.h
>>conftest.
$ac_ext
3104 cat >>conftest.
$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #include <ac_nonexistent.h>
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3111 grep -v '^ *+' conftest.er1
>conftest.err
3113 cat conftest.err
>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev
/null
; then
3116 if test -s conftest.err
; then
3117 ac_cpp_err
=$ac_c_preproc_warn_flag
3118 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3125 if test -z "$ac_cpp_err"; then
3126 # Broken: success on invalid input.
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.
$ac_ext >&5
3132 # Passes both tests.
3136 rm -f conftest.err conftest.
$ac_ext
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.
$ac_ext
3141 if $ac_preproc_ok; then
3153 echo "$as_me:$LINENO: result: $CPP" >&5
3154 echo "${ECHO_T}$CPP" >&6
3156 for ac_c_preproc_warn_flag
in '' yes
3158 # Use a header file that comes with gcc, so configuring glibc
3159 # with a fresh cross-compiler works.
3160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161 # <limits.h> exists even on freestanding compilers.
3162 # On the NeXT, cc -E runs the code through the compiler's parser,
3163 # not just through cpp. "Syntax error" is here to catch this case.
3164 cat >conftest.
$ac_ext <<_ACEOF
3167 cat confdefs.h
>>conftest.
$ac_ext
3168 cat >>conftest.
$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3171 # include <limits.h>
3173 # include <assert.h>
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3180 grep -v '^ *+' conftest.er1
>conftest.err
3182 cat conftest.err
>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev
/null
; then
3185 if test -s conftest.err
; then
3186 ac_cpp_err
=$ac_c_preproc_warn_flag
3187 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3194 if test -z "$ac_cpp_err"; then
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.
$ac_ext >&5
3200 # Broken: fails on valid input.
3203 rm -f conftest.err conftest.
$ac_ext
3205 # OK, works on sane cases. Now check whether non-existent headers
3206 # can be detected and how.
3207 cat >conftest.
$ac_ext <<_ACEOF
3210 cat confdefs.h
>>conftest.
$ac_ext
3211 cat >>conftest.
$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213 #include <ac_nonexistent.h>
3215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3216 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3218 grep -v '^ *+' conftest.er1
>conftest.err
3220 cat conftest.err
>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } >/dev
/null
; then
3223 if test -s conftest.err
; then
3224 ac_cpp_err
=$ac_c_preproc_warn_flag
3225 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3232 if test -z "$ac_cpp_err"; then
3233 # Broken: success on invalid input.
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.
$ac_ext >&5
3239 # Passes both tests.
3243 rm -f conftest.err conftest.
$ac_ext
3246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247 rm -f conftest.err conftest.
$ac_ext
3248 if $ac_preproc_ok; then
3251 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3254 See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }
3259 ac_cpp
='$CPP $CPPFLAGS'
3260 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3265 echo "$as_me:$LINENO: checking for egrep" >&5
3266 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3267 if test "${ac_cv_prog_egrep+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3271 then ac_cv_prog_egrep
='grep -E'
3272 else ac_cv_prog_egrep
='egrep'
3275 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3276 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3277 EGREP
=$ac_cv_prog_egrep
3280 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3281 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3282 if test "${ac_cv_header_stdc+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 cat >conftest.
$ac_ext <<_ACEOF
3288 cat confdefs.h
>>conftest.
$ac_ext
3289 cat >>conftest.
$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3304 rm -f conftest.
$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1
>conftest.err
3310 cat conftest.err
>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try
='test -z "$ac_c_werror_flag"
3314 || test ! -s conftest.err'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; } &&
3320 { ac_try
='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 ac_cv_header_stdc
=yes
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.
$ac_ext >&5
3331 ac_cv_header_stdc
=no
3333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3335 if test $ac_cv_header_stdc = yes; then
3336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3337 cat >conftest.
$ac_ext <<_ACEOF
3340 cat confdefs.h
>>conftest.
$ac_ext
3341 cat >>conftest.
$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 $EGREP "memchr" >/dev
/null
2>&1; then
3350 ac_cv_header_stdc
=no
3356 if test $ac_cv_header_stdc = yes; then
3357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3358 cat >conftest.
$ac_ext <<_ACEOF
3361 cat confdefs.h
>>conftest.
$ac_ext
3362 cat >>conftest.
$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 $EGREP "free" >/dev
/null
2>&1; then
3371 ac_cv_header_stdc
=no
3377 if test $ac_cv_header_stdc = yes; then
3378 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3379 if test "$cross_compiling" = yes; then
3382 cat >conftest.
$ac_ext <<_ACEOF
3385 cat confdefs.h
>>conftest.
$ac_ext
3386 cat >>conftest.
$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3389 #if ((' ' & 0x0FF) == 0x020)
3390 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3391 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3393 # define ISLOWER(c) \
3394 (('a' <= (c) && (c) <= 'i') \
3395 || ('j' <= (c) && (c) <= 'r') \
3396 || ('s' <= (c) && (c) <= 'z'))
3397 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3405 for (i = 0; i < 256; i++)
3406 if (XOR (islower (i), ISLOWER (i))
3407 || toupper (i) != TOUPPER (i))
3412 rm -f conftest
$ac_exeext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414 (eval $ac_link) 2>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3425 echo "$as_me: program exited with status $ac_status" >&5
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.
$ac_ext >&5
3430 ac_cv_header_stdc
=no
3432 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3436 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3437 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3438 if test $ac_cv_header_stdc = yes; then
3440 cat >>confdefs.h
<<\_ACEOF
3441 #define STDC_HEADERS 1
3446 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3456 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3457 inttypes.h stdint.h unistd.h
3459 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3460 echo "$as_me:$LINENO: checking for $ac_header" >&5
3461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 cat >conftest.
$ac_ext <<_ACEOF
3468 cat confdefs.h
>>conftest.
$ac_ext
3469 cat >>conftest.
$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 $ac_includes_default
3473 #include <$ac_header>
3475 rm -f conftest.
$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3479 grep -v '^ *+' conftest.er1
>conftest.err
3481 cat conftest.err
>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try
='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try
='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 eval "$as_ac_Header=yes"
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.
$ac_ext >&5
3502 eval "$as_ac_Header=no"
3504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3509 cat >>confdefs.h
<<_ACEOF
3510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3521 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h
3523 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3525 echo "$as_me:$LINENO: checking for $ac_header" >&5
3526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3533 # Is the header compilable?
3534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3536 cat >conftest.
$ac_ext <<_ACEOF
3539 cat confdefs.h
>>conftest.
$ac_ext
3540 cat >>conftest.
$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 $ac_includes_default
3543 #include <$ac_header>
3545 rm -f conftest.
$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>conftest.er1
3549 grep -v '^ *+' conftest.er1
>conftest.err
3551 cat conftest.err
>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try
='test -z "$ac_c_werror_flag"
3555 || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try
='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 ac_header_compiler
=yes
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.
$ac_ext >&5
3572 ac_header_compiler
=no
3574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3576 echo "${ECHO_T}$ac_header_compiler" >&6
3578 # Is the header present?
3579 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3581 cat >conftest.
$ac_ext <<_ACEOF
3584 cat confdefs.h
>>conftest.
$ac_ext
3585 cat >>conftest.
$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <$ac_header>
3589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3590 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3592 grep -v '^ *+' conftest.er1
>conftest.err
3594 cat conftest.err
>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev
/null
; then
3597 if test -s conftest.err
; then
3598 ac_cpp_err
=$ac_c_preproc_warn_flag
3599 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3606 if test -z "$ac_cpp_err"; then
3607 ac_header_preproc
=yes
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3612 ac_header_preproc
=no
3614 rm -f conftest.err conftest.
$ac_ext
3615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3616 echo "${ECHO_T}$ac_header_preproc" >&6
3618 # So? What about this header?
3619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3625 ac_header_preproc
=yes
3628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3642 ## ------------------------------------------ ##
3643 ## Report this to the AC_PACKAGE_NAME lists. ##
3644 ## ------------------------------------------ ##
3647 sed "s/^/$as_me: WARNING: /" >&2
3650 echo "$as_me:$LINENO: checking for $ac_header" >&5
3651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 eval "$as_ac_Header=\$ac_header_preproc"
3657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3662 cat >>confdefs.h
<<_ACEOF
3663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3671 for ac_header
in netinet
/if_ether.h
3673 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3674 echo "$as_me:$LINENO: checking for $ac_header" >&5
3675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 cat >conftest.
$ac_ext <<_ACEOF
3682 cat confdefs.h
>>conftest.
$ac_ext
3683 cat >>conftest.
$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 #include <sys/types.h>
3686 #include <sys/socket.h>
3688 #include <$ac_header>
3690 rm -f conftest.
$ac_objext
3691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3694 grep -v '^ *+' conftest.er1
>conftest.err
3696 cat conftest.err
>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try
='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try
='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 eval "$as_ac_Header=yes"
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.
$ac_ext >&5
3717 eval "$as_ac_Header=no"
3719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3724 cat >>confdefs.h
<<_ACEOF
3725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3732 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3734 # The simple test didn't work.
3735 # Do we need to include <net/if.h> first?
3736 # Unset ac_cv_header_netinet_if_ether_h so we don't
3737 # treat the previous failure as a cached value and
3738 # suppress the next test.
3740 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3741 echo "$as_me: Rechecking with some additional includes" >&6;}
3742 unset ac_cv_header_netinet_if_ether_h
3744 for ac_header
in netinet
/if_ether.h
3746 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3747 echo "$as_me:$LINENO: checking for $ac_header" >&5
3748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 cat >conftest.
$ac_ext <<_ACEOF
3755 cat confdefs.h
>>conftest.
$ac_ext
3756 cat >>conftest.
$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <sys/types.h>
3759 #include <sys/socket.h>
3760 #include <netinet/in.h>
3765 #include <$ac_header>
3767 rm -f conftest.
$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3771 grep -v '^ *+' conftest.er1
>conftest.err
3773 cat conftest.err
>&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try
='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try
='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.
$ac_ext >&5
3794 eval "$as_ac_Header=no"
3796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801 cat >>confdefs.h
<<_ACEOF
3802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3811 if test "$GCC" = yes ; then
3812 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3813 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3814 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 cat >conftest.
$ac_ext <<_ACEOF
3820 cat confdefs.h
>>conftest.
$ac_ext
3821 cat >>conftest.
$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3824 * This generates a "duplicate case value" when fixincludes
3827 # include <sys/types.h>
3828 # include <sys/time.h>
3829 # include <sys/ioctl.h>
3830 # ifdef HAVE_SYS_IOCCOM_H
3831 # include <sys/ioccom.h>
3844 rm -f conftest.
$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1
>conftest.err
3850 cat conftest.err
>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try
='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try
='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lbl_gcc_fixincludes
=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.
$ac_ext >&5
3871 ac_cv_lbl_gcc_fixincludes
=no
3873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3877 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3878 if test $ac_cv_lbl_gcc_fixincludes = no
; then
3879 # Don't cache failure
3880 unset ac_cv_lbl_gcc_fixincludes
3881 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3882 echo "$as_me: error: see the INSTALL for more info" >&2;}
3883 { (exit 1); exit 1; }; }
3889 for ac_func
in strerror strlcpy
3891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3892 echo "$as_me:$LINENO: checking for $ac_func" >&5
3893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_var+set}\" = set"; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 cat >conftest.
$ac_ext <<_ACEOF
3900 cat confdefs.h
>>conftest.
$ac_ext
3901 cat >>conftest.
$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3905 #define $ac_func innocuous_$ac_func
3907 /* System header to define __stub macros and hopefully few prototypes,
3908 which can conflict with char $ac_func (); below.
3909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 <limits.h> exists even on freestanding compilers. */
3913 # include <limits.h>
3915 # include <assert.h>
3920 /* Override any gcc2 internal prototype to avoid an error. */
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3928 /* The GNU C library defines this for functions which it implements
3929 to always fail with ENOSYS. Some functions are actually named
3930 something starting with __ and the normal name is an alias. */
3931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3934 char (*f) () = $ac_func;
3943 return f != $ac_func;
3948 rm -f conftest.
$ac_objext conftest
$ac_exeext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>conftest.er1
3952 grep -v '^ *+' conftest.er1
>conftest.err
3954 cat conftest.err
>&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try
='test -z "$ac_c_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try
='test -s conftest$ac_exeext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 eval "$as_ac_var=yes"
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.
$ac_ext >&5
3975 eval "$as_ac_var=no"
3977 rm -f conftest.err conftest.
$ac_objext \
3978 conftest
$ac_exeext conftest.
$ac_ext
3980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3982 if test `eval echo '${'$as_ac_var'}'` = yes; then
3983 cat >>confdefs.h
<<_ACEOF
3984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3994 for ac_func
in vsnprintf snprintf
3996 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3997 echo "$as_me:$LINENO: checking for $ac_func" >&5
3998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3999 if eval "test \"\${$as_ac_var+set}\" = set"; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 cat >conftest.
$ac_ext <<_ACEOF
4005 cat confdefs.h
>>conftest.
$ac_ext
4006 cat >>conftest.
$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4010 #define $ac_func innocuous_$ac_func
4012 /* System header to define __stub macros and hopefully few prototypes,
4013 which can conflict with char $ac_func (); below.
4014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4015 <limits.h> exists even on freestanding compilers. */
4018 # include <limits.h>
4020 # include <assert.h>
4025 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4033 /* The GNU C library defines this for functions which it implements
4034 to always fail with ENOSYS. Some functions are actually named
4035 something starting with __ and the normal name is an alias. */
4036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4039 char (*f) () = $ac_func;
4048 return f != $ac_func;
4053 rm -f conftest.
$ac_objext conftest
$ac_exeext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055 (eval $ac_link) 2>conftest.er1
4057 grep -v '^ *+' conftest.er1
>conftest.err
4059 cat conftest.err
>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try
='test -z "$ac_c_werror_flag"
4063 || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try
='test -s conftest$ac_exeext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 eval "$as_ac_var=yes"
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.
$ac_ext >&5
4080 eval "$as_ac_var=no"
4082 rm -f conftest.err conftest.
$ac_objext \
4083 conftest
$ac_exeext conftest.
$ac_ext
4085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4087 if test `eval echo '${'$as_ac_var'}'` = yes; then
4088 cat >>confdefs.h
<<_ACEOF
4089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4097 if test $needsnprintf = yes; then
4099 "snprintf.$ac_objext" | \
4100 *" snprintf.$ac_objext" | \
4101 "snprintf.$ac_objext "* | \
4102 *" snprintf.$ac_objext "* ) ;;
4103 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
4109 # Do this before checking for ether_hostton(), as it's a
4110 # "gethostbyname() -ish function".
4113 # Most operating systems have gethostbyname() in the default searched
4114 # libraries (i.e. libc):
4115 # Some OSes (eg. Solaris) place it in libnsl
4116 # Some strange OSes (SINIX) have it in libsocket:
4117 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4118 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
4119 if test "${ac_cv_search_gethostbyname+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 ac_func_search_save_LIBS
=$LIBS
4123 ac_cv_search_gethostbyname
=no
4124 cat >conftest.
$ac_ext <<_ACEOF
4127 cat confdefs.h
>>conftest.
$ac_ext
4128 cat >>conftest.
$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 /* Override any gcc2 internal prototype to avoid an error. */
4135 /* We use char because int might match the return type of a gcc2
4136 builtin and then its argument prototype would still apply. */
4137 char gethostbyname ();
4146 rm -f conftest.
$ac_objext conftest
$ac_exeext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148 (eval $ac_link) 2>conftest.er1
4150 grep -v '^ *+' conftest.er1
>conftest.err
4152 cat conftest.err
>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try
='test -z "$ac_c_werror_flag"
4156 || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try
='test -s conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_search_gethostbyname
="none required"
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.
$ac_ext >&5
4174 rm -f conftest.err conftest.
$ac_objext \
4175 conftest
$ac_exeext conftest.
$ac_ext
4176 if test "$ac_cv_search_gethostbyname" = no
; then
4177 for ac_lib
in nsl socket resolv
; do
4178 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4179 cat >conftest.
$ac_ext <<_ACEOF
4182 cat confdefs.h
>>conftest.
$ac_ext
4183 cat >>conftest.
$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4186 /* Override any gcc2 internal prototype to avoid an error. */
4190 /* We use char because int might match the return type of a gcc2
4191 builtin and then its argument prototype would still apply. */
4192 char gethostbyname ();
4201 rm -f conftest.
$ac_objext conftest
$ac_exeext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4203 (eval $ac_link) 2>conftest.er1
4205 grep -v '^ *+' conftest.er1
>conftest.err
4207 cat conftest.err
>&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try
='test -z "$ac_c_werror_flag"
4211 || test ! -s conftest.err'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try
='test -s conftest$ac_exeext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4223 ac_cv_search_gethostbyname
="-l$ac_lib"
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.
$ac_ext >&5
4230 rm -f conftest.err conftest.
$ac_objext \
4231 conftest
$ac_exeext conftest.
$ac_ext
4234 LIBS
=$ac_func_search_save_LIBS
4236 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4237 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
4238 if test "$ac_cv_search_gethostbyname" != no
; then
4239 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
4243 # Unfortunately libsocket sometimes depends on libnsl and
4244 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4245 if test "$ac_cv_search_gethostbyname" = "no"
4247 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4248 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
4249 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 ac_check_lib_save_LIBS
=$LIBS
4253 LIBS
="-lsocket -lnsl $LIBS"
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4261 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4267 char gethostbyname ();
4276 rm -f conftest.
$ac_objext conftest
$ac_exeext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278 (eval $ac_link) 2>conftest.er1
4280 grep -v '^ *+' conftest.er1
>conftest.err
4282 cat conftest.err
>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try
='test -z "$ac_c_werror_flag"
4286 || test ! -s conftest.err'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try
='test -s conftest$ac_exeext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_lib_socket_gethostbyname
=yes
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.
$ac_ext >&5
4303 ac_cv_lib_socket_gethostbyname
=no
4305 rm -f conftest.err conftest.
$ac_objext \
4306 conftest
$ac_exeext conftest.
$ac_ext
4307 LIBS
=$ac_check_lib_save_LIBS
4309 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4310 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
4311 if test $ac_cv_lib_socket_gethostbyname = yes; then
4312 LIBS
="-lsocket -lnsl $LIBS"
4316 echo "$as_me:$LINENO: checking for library containing socket" >&5
4317 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4318 if test "${ac_cv_search_socket+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 ac_func_search_save_LIBS
=$LIBS
4322 ac_cv_search_socket
=no
4323 cat >conftest.
$ac_ext <<_ACEOF
4326 cat confdefs.h
>>conftest.
$ac_ext
4327 cat >>conftest.
$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4330 /* Override any gcc2 internal prototype to avoid an error. */
4334 /* We use char because int might match the return type of a gcc2
4335 builtin and then its argument prototype would still apply. */
4345 rm -f conftest.
$ac_objext conftest
$ac_exeext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347 (eval $ac_link) 2>conftest.er1
4349 grep -v '^ *+' conftest.er1
>conftest.err
4351 cat conftest.err
>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try
='test -z "$ac_c_werror_flag"
4355 || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try
='test -s conftest$ac_exeext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_cv_search_socket
="none required"
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4373 rm -f conftest.err conftest.
$ac_objext \
4374 conftest
$ac_exeext conftest.
$ac_ext
4375 if test "$ac_cv_search_socket" = no
; then
4376 for ac_lib
in socket
; do
4377 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4378 cat >conftest.
$ac_ext <<_ACEOF
4381 cat confdefs.h
>>conftest.
$ac_ext
4382 cat >>conftest.
$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4385 /* Override any gcc2 internal prototype to avoid an error. */
4389 /* We use char because int might match the return type of a gcc2
4390 builtin and then its argument prototype would still apply. */
4400 rm -f conftest.
$ac_objext conftest
$ac_exeext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4402 (eval $ac_link) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1
>conftest.err
4406 cat conftest.err
>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try
='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try
='test -s conftest$ac_exeext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_cv_search_socket
="-l$ac_lib"
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.
$ac_ext >&5
4429 rm -f conftest.err conftest.
$ac_objext \
4430 conftest
$ac_exeext conftest.
$ac_ext
4433 LIBS
=$ac_func_search_save_LIBS
4435 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4436 echo "${ECHO_T}$ac_cv_search_socket" >&6
4437 if test "$ac_cv_search_socket" != no
; then
4438 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
4441 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4442 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4443 if test "${ac_cv_lib_socket_socket+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 ac_check_lib_save_LIBS
=$LIBS
4447 LIBS
="-lsocket -lnsl $LIBS"
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4470 rm -f conftest.
$ac_objext conftest
$ac_exeext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472 (eval $ac_link) 2>conftest.er1
4474 grep -v '^ *+' conftest.er1
>conftest.err
4476 cat conftest.err
>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try
='test -z "$ac_c_werror_flag"
4480 || test ! -s conftest.err'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; } &&
4486 { ac_try
='test -s conftest$ac_exeext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_lib_socket_socket
=yes
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.
$ac_ext >&5
4497 ac_cv_lib_socket_socket
=no
4499 rm -f conftest.err conftest.
$ac_objext \
4500 conftest
$ac_exeext conftest.
$ac_ext
4501 LIBS
=$ac_check_lib_save_LIBS
4503 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4504 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4505 if test $ac_cv_lib_socket_socket = yes; then
4506 LIBS
="-lsocket -lnsl $LIBS"
4511 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4512 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4513 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
4514 if test "${ac_cv_search_putmsg+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 ac_func_search_save_LIBS
=$LIBS
4518 ac_cv_search_putmsg
=no
4519 cat >conftest.
$ac_ext <<_ACEOF
4522 cat confdefs.h
>>conftest.
$ac_ext
4523 cat >>conftest.
$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4526 /* Override any gcc2 internal prototype to avoid an error. */
4530 /* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4541 rm -f conftest.
$ac_objext conftest
$ac_exeext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543 (eval $ac_link) 2>conftest.er1
4545 grep -v '^ *+' conftest.er1
>conftest.err
4547 cat conftest.err
>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try
='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try
='test -s conftest$ac_exeext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_search_putmsg
="none required"
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.
$ac_ext >&5
4569 rm -f conftest.err conftest.
$ac_objext \
4570 conftest
$ac_exeext conftest.
$ac_ext
4571 if test "$ac_cv_search_putmsg" = no
; then
4572 for ac_lib
in str
; do
4573 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4574 cat >conftest.
$ac_ext <<_ACEOF
4577 cat confdefs.h
>>conftest.
$ac_ext
4578 cat >>conftest.
$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4596 rm -f conftest.
$ac_objext conftest
$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1
>conftest.err
4602 cat conftest.err
>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try
='test -z "$ac_c_werror_flag"
4606 || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try
='test -s conftest$ac_exeext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_search_putmsg
="-l$ac_lib"
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4625 rm -f conftest.err conftest.
$ac_objext \
4626 conftest
$ac_exeext conftest.
$ac_ext
4629 LIBS
=$ac_func_search_save_LIBS
4631 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
4632 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
4633 if test "$ac_cv_search_putmsg" != no
; then
4634 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
4641 # You are in a twisty little maze of UN*Xes, all different.
4642 # Some might not have ether_hostton().
4643 # Some might have it, but not declare it in any header file.
4644 # Some might have it, but declare it in <netinet/if_ether.h>.
4645 # Some might have it, but declare it in <netinet/ether.h>
4646 # (And some might have it but document it as something declared in
4647 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4649 # Before you is a C compiler.
4652 for ac_func
in ether_hostton
4654 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4655 echo "$as_me:$LINENO: checking for $ac_func" >&5
4656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4657 if eval "test \"\${$as_ac_var+set}\" = set"; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.
$ac_ext <<_ACEOF
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4668 #define $ac_func innocuous_$ac_func
4670 /* System header to define __stub macros and hopefully few prototypes,
4671 which can conflict with char $ac_func (); below.
4672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673 <limits.h> exists even on freestanding compilers. */
4676 # include <limits.h>
4678 # include <assert.h>
4683 /* Override any gcc2 internal prototype to avoid an error. */
4688 /* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4691 /* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4697 char (*f) () = $ac_func;
4706 return f != $ac_func;
4711 rm -f conftest.
$ac_objext conftest
$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>conftest.er1
4715 grep -v '^ *+' conftest.er1
>conftest.err
4717 cat conftest.err
>&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try
='test -z "$ac_c_werror_flag"
4721 || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try
='test -s conftest$ac_exeext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 eval "$as_ac_var=yes"
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.
$ac_ext >&5
4738 eval "$as_ac_var=no"
4740 rm -f conftest.err conftest.
$ac_objext \
4741 conftest
$ac_exeext conftest.
$ac_ext
4743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4745 if test `eval echo '${'$as_ac_var'}'` = yes; then
4746 cat >>confdefs.h
<<_ACEOF
4747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4753 if test "$ac_cv_func_ether_hostton" = yes; then
4755 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
4757 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
4759 # Yes. Does it declare ether_hostton()?
4761 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4762 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4763 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 #include <sys/types.h>
4774 #include <sys/socket.h>
4775 #include <netinet/in.h>
4776 #include <arpa/inet.h>
4780 #include <netinet/if_ether.h>
4786 #ifndef ether_hostton
4787 char *p = (char *) ether_hostton;
4794 rm -f conftest.
$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1
>conftest.err
4800 cat conftest.err
>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try
='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try
='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_cv_have_decl_ether_hostton
=yes
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.
$ac_ext >&5
4821 ac_cv_have_decl_ether_hostton
=no
4823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4825 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4826 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4827 if test $ac_cv_have_decl_ether_hostton = yes; then
4830 cat >>confdefs.h
<<\_ACEOF
4831 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4841 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4843 # No, how about <netinet/ether.h>, as on Linux?
4846 for ac_header
in netinet
/ether.h
4848 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 # Is the header compilable?
4859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4861 cat >conftest.
$ac_ext <<_ACEOF
4864 cat confdefs.h
>>conftest.
$ac_ext
4865 cat >>conftest.
$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 $ac_includes_default
4868 #include <$ac_header>
4870 rm -f conftest.
$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>conftest.er1
4874 grep -v '^ *+' conftest.er1
>conftest.err
4876 cat conftest.err
>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try
='test -z "$ac_c_werror_flag"
4880 || test ! -s conftest.err'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; } &&
4886 { ac_try
='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_header_compiler
=yes
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.
$ac_ext >&5
4897 ac_header_compiler
=no
4899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4901 echo "${ECHO_T}$ac_header_compiler" >&6
4903 # Is the header present?
4904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4906 cat >conftest.
$ac_ext <<_ACEOF
4909 cat confdefs.h
>>conftest.
$ac_ext
4910 cat >>conftest.
$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 #include <$ac_header>
4914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1
>conftest.err
4919 cat conftest.err
>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev
/null
; then
4922 if test -s conftest.err
; then
4923 ac_cpp_err
=$ac_c_preproc_warn_flag
4924 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4931 if test -z "$ac_cpp_err"; then
4932 ac_header_preproc
=yes
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.
$ac_ext >&5
4937 ac_header_preproc
=no
4939 rm -f conftest.err conftest.
$ac_ext
4940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4941 echo "${ECHO_T}$ac_header_preproc" >&6
4943 # So? What about this header?
4944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4950 ac_header_preproc
=yes
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4967 ## ------------------------------------------ ##
4968 ## Report this to the AC_PACKAGE_NAME lists. ##
4969 ## ------------------------------------------ ##
4972 sed "s/^/$as_me: WARNING: /" >&2
4975 echo "$as_me:$LINENO: checking for $ac_header" >&5
4976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 eval "$as_ac_Header=\$ac_header_preproc"
4982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4987 cat >>confdefs.h
<<_ACEOF
4988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995 if test "$ac_cv_header_netinet_ether_h" = yes; then
4997 # We have it - does it declare ether_hostton()?
4998 # Unset ac_cv_have_decl_ether_hostton so we don't
4999 # treat the previous failure as a cached value and
5000 # suppress the next test.
5002 unset ac_cv_have_decl_ether_hostton
5003 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5004 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
5005 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 cat >conftest.
$ac_ext <<_ACEOF
5011 cat confdefs.h
>>conftest.
$ac_ext
5012 cat >>conftest.
$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5015 #include <netinet/ether.h>
5021 #ifndef ether_hostton
5022 char *p = (char *) ether_hostton;
5029 rm -f conftest.
$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>conftest.er1
5033 grep -v '^ *+' conftest.er1
>conftest.err
5035 cat conftest.err
>&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try
='test -z "$ac_c_werror_flag"
5039 || test ! -s conftest.err'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; } &&
5045 { ac_try
='test -s conftest.$ac_objext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_have_decl_ether_hostton
=yes
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.
$ac_ext >&5
5056 ac_cv_have_decl_ether_hostton
=no
5058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5061 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
5062 if test $ac_cv_have_decl_ether_hostton = yes; then
5065 cat >>confdefs.h
<<\_ACEOF
5066 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
5075 # Is ether_hostton() declared?
5077 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5079 # No, we'll have to declare it ourselves.
5080 # Do we have "struct ether_addr"?
5082 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
5083 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
5084 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 cat >conftest.
$ac_ext <<_ACEOF
5090 cat confdefs.h
>>conftest.
$ac_ext
5091 cat >>conftest.
$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 #include <sys/types.h>
5095 #include <sys/socket.h>
5096 #include <netinet/in.h>
5097 #include <arpa/inet.h>
5101 #include <netinet/if_ether.h>
5107 if ((struct ether_addr *) 0)
5109 if (sizeof (struct ether_addr))
5115 rm -f conftest.
$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>conftest.er1
5119 grep -v '^ *+' conftest.er1
>conftest.err
5121 cat conftest.err
>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try
='test -z "$ac_c_werror_flag"
5125 || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try
='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_type_struct_ether_addr
=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.
$ac_ext >&5
5142 ac_cv_type_struct_ether_addr
=no
5144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
5147 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
5148 if test $ac_cv_type_struct_ether_addr = yes; then
5150 cat >>confdefs.h
<<_ACEOF
5151 #define HAVE_STRUCT_ETHER_ADDR 1
5158 cat >>confdefs.h
<<\_ACEOF
5159 #define HAVE_DECL_ETHER_HOSTTON 0
5164 cat >>confdefs.h
<<\_ACEOF
5165 #define HAVE_DECL_ETHER_HOSTTON 1
5171 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
5172 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
5173 # Check whether --enable-protochain or --disable-protochain was given.
5174 if test "${enable_protochain+set}" = set; then
5175 enableval
="$enable_protochain"
5178 case "x$enable_protochain" in
5179 xyes
) enable_protochain
=enabled
;;
5180 xno
) enable_protochain
=disabled
;;
5181 x
) enable_protochain
=enabled
;;
5184 if test "$enable_protochain" = "disabled"; then
5186 cat >>confdefs.h
<<\_ACEOF
5187 #define NO_PROTOCHAIN 1
5191 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
5192 echo "${ECHO_T}${enable_protochain}" >&6
5194 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5195 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
5196 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
5197 { (exit 1); exit 1; }; }
5200 # Check whether --with-pcap or --without-pcap was given.
5201 if test "${with_pcap+set}" = set; then
5202 withval
="$with_pcap"
5205 echo "$as_me:$LINENO: checking packet capture type" >&5
5206 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
5207 if test ! -z "$with_pcap" ; then
5209 elif test -r /dev
/bpf0
; then
5211 elif test -r /usr
/include
/net
/pfilt.h
; then
5213 elif test -r /dev
/enet
; then
5215 elif test -r /dev
/nit
; then
5217 elif test -r /usr
/include
/sys
/net
/nit.h
; then
5219 elif test -r /usr
/include
/linux
/socket.h
; then
5221 elif test -r /usr
/include
/net
/raw.h
; then
5223 elif test -r /usr
/include
/odmi.h
; then
5225 # On AIX, the BPF devices might not yet be present - they're
5226 # created the first time libpcap runs after booting.
5227 # We check for odmi.h instead.
5230 elif test -r /usr
/include
/sys
/dlpi.h
; then
5232 elif test -c /dev
/bpf0
; then # check again in case not readable
5234 elif test -c /dev
/enet
; then # check again in case not readable
5236 elif test -c /dev
/nit
; then # check again in case not readable
5241 echo "$as_me:$LINENO: result: $V_PCAP" >&5
5242 echo "${ECHO_T}$V_PCAP" >&6
5244 if test "$V_PCAP" = null
5247 # We can't capture, so we can't open any capture
5248 # devices, so we won't return any interfaces.
5252 echo "$as_me:$LINENO: checking for getifaddrs" >&5
5253 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
5254 if test "${ac_cv_func_getifaddrs+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 cat >conftest.
$ac_ext <<_ACEOF
5260 cat confdefs.h
>>conftest.
$ac_ext
5261 cat >>conftest.
$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
5264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5265 #define getifaddrs innocuous_getifaddrs
5267 /* System header to define __stub macros and hopefully few prototypes,
5268 which can conflict with char getifaddrs (); below.
5269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 <limits.h> exists even on freestanding compilers. */
5273 # include <limits.h>
5275 # include <assert.h>
5280 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5288 /* The GNU C library defines this for functions which it implements
5289 to always fail with ENOSYS. Some functions are actually named
5290 something starting with __ and the normal name is an alias. */
5291 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
5294 char (*f) () = getifaddrs;
5303 return f != getifaddrs;
5308 rm -f conftest.
$ac_objext conftest
$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1
>conftest.err
5314 cat conftest.err
>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try
='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_func_getifaddrs
=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.
$ac_ext >&5
5335 ac_cv_func_getifaddrs
=no
5337 rm -f conftest.err conftest.
$ac_objext \
5338 conftest
$ac_exeext conftest.
$ac_ext
5340 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
5341 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
5342 if test $ac_cv_func_getifaddrs = yes; then
5345 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5346 # as well, just in case some platform is really weird.
5348 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5349 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5350 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5351 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5355 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5357 # Is the header compilable?
5358 echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5359 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
5360 cat >conftest.
$ac_ext <<_ACEOF
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5367 #include <ifaddrs.h>
5369 rm -f conftest.
$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1
>conftest.err
5375 cat conftest.err
>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -z "$ac_c_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try
='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_header_compiler
=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 ac_header_compiler
=no
5398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5400 echo "${ECHO_T}$ac_header_compiler" >&6
5402 # Is the header present?
5403 echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5404 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
5405 cat >conftest.
$ac_ext <<_ACEOF
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <ifaddrs.h>
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1
>conftest.err
5418 cat conftest.err
>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev
/null
; then
5421 if test -s conftest.err
; then
5422 ac_cpp_err
=$ac_c_preproc_warn_flag
5423 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5430 if test -z "$ac_cpp_err"; then
5431 ac_header_preproc
=yes
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5436 ac_header_preproc
=no
5438 rm -f conftest.err conftest.
$ac_ext
5439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 echo "${ECHO_T}$ac_header_preproc" >&6
5442 # So? What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5445 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5446 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5448 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5449 ac_header_preproc
=yes
5452 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5453 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5455 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5457 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5459 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5463 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
5466 ## ------------------------------------------ ##
5467 ## Report this to the AC_PACKAGE_NAME lists. ##
5468 ## ------------------------------------------ ##
5471 sed "s/^/$as_me: WARNING: /" >&2
5474 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5475 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5476 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_cv_header_ifaddrs_h
=$ac_header_preproc
5481 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5482 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5485 if test $ac_cv_header_ifaddrs_h = yes; then
5488 # We have the header, so we use "getifaddrs()" to
5489 # get the list of interfaces.
5496 # We don't have the header - give up.
5497 # XXX - we could also fall back on some other
5498 # mechanism, but, for now, this'll catch this
5499 # problem so that we can at least try to figure
5500 # out something to do on systems with "getifaddrs()"
5501 # but without "ifaddrs.h", if there is something
5502 # we can do on those systems.
5504 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5505 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5506 { (exit 1); exit 1; }; }
5515 # Well, we don't have "getifaddrs()", so we have to use
5516 # some other mechanism; determine what that mechanism is.
5518 # The first thing we use is the type of capture mechanism,
5519 # which is somewhat of a proxy for the OS we're using.
5525 # This might be Solaris 8 or later, with
5526 # SIOCGLIFCONF, or it might be some other OS
5527 # or some older version of Solaris, with
5530 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5531 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
5532 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 cat >conftest.
$ac_ext <<_ACEOF
5538 cat confdefs.h
>>conftest.
$ac_ext
5539 cat >>conftest.
$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <sys/param.h>
5542 #include <sys/file.h>
5543 #include <sys/ioctl.h>
5544 #include <sys/socket.h>
5545 #include <sys/sockio.h>
5549 ioctl(0, SIOCGLIFCONF, (char *)0);
5554 rm -f conftest.
$ac_objext
5555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556 (eval $ac_compile) 2>conftest.er1
5558 grep -v '^ *+' conftest.er1
>conftest.err
5560 cat conftest.err
>&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try
='test -z "$ac_c_werror_flag"
5564 || test ! -s conftest.err'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; } &&
5570 { ac_try
='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_lbl_have_siocglifconf
=yes
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.
$ac_ext >&5
5581 ac_cv_lbl_have_siocglifconf
=no
5583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5586 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
5587 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
5588 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5597 # Assume we just have SIOCGIFCONF.
5598 # (XXX - on at least later Linux kernels, there's
5599 # another mechanism, and we should be using that
5609 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
5610 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
5611 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5612 if test "${enable_ipv6+set}" = set; then
5613 enableval
="$enable_ipv6"
5616 if test "$enable_ipv6" = "yes"; then
5618 cat >>confdefs.h
<<\_ACEOF
5623 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
5624 echo "${ECHO_T}${enable_ipv6-no}" >&6
5626 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
5627 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
5628 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
5629 if test "${enable_optimizer_dbg+set}" = set; then
5630 enableval
="$enable_optimizer_dbg"
5633 if test "$enable_optimizer_dbg" = "yes"; then
5635 cat >>confdefs.h
<<\_ACEOF
5640 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
5641 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
5643 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
5644 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
5645 # Check whether --enable-yydebug or --disable-yydebug was given.
5646 if test "${enable_yydebug+set}" = set; then
5647 enableval
="$enable_yydebug"
5650 if test "$enable_yydebug" = "yes"; then
5652 cat >>confdefs.h
<<\_ACEOF
5657 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
5658 echo "${ECHO_T}${enable_yydebug-no}" >&6
5665 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5667 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5669 echo "$as_me:$LINENO: checking for $ac_header" >&5
5670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5677 # Is the header compilable?
5678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5680 cat >conftest.
$ac_ext <<_ACEOF
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5687 #include <$ac_header>
5689 rm -f conftest.
$ac_objext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>conftest.er1
5693 grep -v '^ *+' conftest.er1
>conftest.err
5695 cat conftest.err
>&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try
='test -z "$ac_c_werror_flag"
5699 || test ! -s conftest.err'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try
='test -s conftest.$ac_objext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 ac_header_compiler
=yes
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.
$ac_ext >&5
5716 ac_header_compiler
=no
5718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5720 echo "${ECHO_T}$ac_header_compiler" >&6
5722 # Is the header present?
5723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5725 cat >conftest.
$ac_ext <<_ACEOF
5728 cat confdefs.h
>>conftest.
$ac_ext
5729 cat >>conftest.
$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <$ac_header>
5733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5734 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5736 grep -v '^ *+' conftest.er1
>conftest.err
5738 cat conftest.err
>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } >/dev
/null
; then
5741 if test -s conftest.err
; then
5742 ac_cpp_err
=$ac_c_preproc_warn_flag
5743 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5750 if test -z "$ac_cpp_err"; then
5751 ac_header_preproc
=yes
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.
$ac_ext >&5
5756 ac_header_preproc
=no
5758 rm -f conftest.err conftest.
$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5760 echo "${ECHO_T}$ac_header_preproc" >&6
5762 # So? What about this header?
5763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5769 ac_header_preproc
=yes
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5786 ## ------------------------------------------ ##
5787 ## Report this to the AC_PACKAGE_NAME lists. ##
5788 ## ------------------------------------------ ##
5791 sed "s/^/$as_me: WARNING: /" >&2
5794 echo "$as_me:$LINENO: checking for $ac_header" >&5
5795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 eval "$as_ac_Header=\$ac_header_preproc"
5801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5806 cat >>confdefs.h
<<_ACEOF
5807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5814 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
5815 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
5816 if test -c /dev
/dlpi
; then
5817 echo "$as_me:$LINENO: result: yes" >&5
5818 echo "${ECHO_T}yes" >&6
5820 cat >>confdefs.h
<<\_ACEOF
5821 #define HAVE_DEV_DLPI 1
5825 echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5828 echo "$as_me:$LINENO: checking for $dir directory" >&5
5829 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
5830 if test -d $dir ; then
5831 echo "$as_me:$LINENO: result: yes" >&5
5832 echo "${ECHO_T}yes" >&6
5834 cat >>confdefs.h
<<_ACEOF
5835 #define PCAP_DEV_PREFIX "$dir"
5839 echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5846 echo "$as_me:$LINENO: checking Linux kernel version" >&5
5847 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
5848 if test "$cross_compiling" = yes; then
5849 if test "${ac_cv_linux_vers+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 ac_cv_linux_vers
=unknown
5856 if test "${ac_cv_linux_vers+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_cv_linux_vers
=`uname -r 2>&1 | \
5860 sed -n -e '$s/.* //' -e '$s/\..*//p'`
5864 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
5865 echo "${ECHO_T}$ac_cv_linux_vers" >&6
5866 if test $ac_cv_linux_vers = unknown
; then
5867 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
5868 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
5869 { (exit 1); exit 1; }; }
5871 if test $ac_cv_linux_vers -lt 2 ; then
5872 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
5873 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
5874 { (exit 1); exit 1; }; }
5876 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
5877 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
5878 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 cat >conftest.
$ac_ext <<_ACEOF
5884 cat confdefs.h
>>conftest.
$ac_ext
5885 cat >>conftest.
$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 # include <linux/if_packet.h>
5892 struct tpacket_stats stats
5897 rm -f conftest.
$ac_objext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>conftest.er1
5901 grep -v '^ *+' conftest.er1
>conftest.err
5903 cat conftest.err
>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
5906 { ac_try
='test -z "$ac_c_werror_flag"
5907 || test ! -s conftest.err'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try
='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_cv_lbl_tpacket_stats
=yes
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_cv_lbl_tpacket_stats
=no
5926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5929 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
5930 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
5931 if test $ac_cv_lbl_tpacket_stats = yes; then
5933 cat >>confdefs.h
<<\_ACEOF
5934 #define HAVE_TPACKET_STATS 1
5941 V_DEFS
="$V_DEFS -DDAG_ONLY"
5945 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
5949 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5950 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5951 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5952 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5957 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
5958 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
5959 if test -r /proc
/net
/dev
; then
5960 ac_cv_lbl_proc_net_dev
=yes
5962 ac_cv_lbl_proc_net_dev
=no
5964 if test $ac_cv_lbl_proc_net_dev = yes; then
5966 cat >>confdefs.h
<<\_ACEOF
5967 #define HAVE_PROC_NET_DEV 1
5971 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
5972 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
5974 # Check for Endace DAG card support.
5976 # Check whether --with-dag or --without-dag was given.
5977 if test "${with_dag+set}" = set; then
5980 if test "$withval" = no
5982 # User doesn't want DAG support.
5984 elif test "$withval" = yes
5986 # User wants DAG support but hasn't specified a directory.
5989 # User wants DAG support and has specified a directory, so use the provided value.
5997 # Use DAG API if present, otherwise don't
6004 # Check whether --with-dag-includes or --without-dag-includes was given.
6005 if test "${with_dag_includes+set}" = set; then
6006 withval
="$with_dag_includes"
6008 # User wants DAG support and has specified a header directory, so use the provided value.
6010 dag_include_dir
=$withval
6015 # Check whether --with-dag-libraries or --without-dag-libraries was given.
6016 if test "${with_dag_libraries+set}" = set; then
6017 withval
="$with_dag_libraries"
6019 # User wants DAG support and has specified a library directory, so use the provided value.
6021 dag_lib_dir
=$withval
6028 # We support the DAG API if we're on Linux or BSD, or if we're
6029 # building a DAG-only libpcap.
6034 # If the user explicitly requested DAG, tell them it's not
6037 # If they expressed no preference, don't include it.
6039 if test $want_dag = yes; then
6040 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
6041 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
6042 { (exit 1); exit 1; }; }
6043 elif test $want_dag = yes; then
6049 ac_cv_lbl_dag_api
=no
6050 if test "$want_dag" != no
; then
6052 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
6053 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
6055 # If necessary, set default paths for DAG API headers and libraries.
6056 if test -z "$dag_root"; then
6060 if test -z "$dag_include_dir"; then
6061 dag_include_dir
="$dag_root/include"
6064 if test -z "$dag_lib_dir"; then
6065 dag_lib_dir
="$dag_root/lib"
6068 if test -z "$dag_tools_dir"; then
6069 dag_tools_dir
="$dag_root/tools"
6072 if test -r $dag_include_dir/dagapi.h
; then
6073 ac_cv_lbl_dag_api
=yes
6075 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6076 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
6079 if test $ac_cv_lbl_dag_api = yes; then
6081 echo "$as_me:$LINENO: checking dagapi.o" >&5
6082 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
6084 if test -r $dag_tools_dir/dagapi.o
; then
6086 dagapi_obj
=$dag_tools_dir/dagapi.o
6087 elif test -r $dag_lib_dir/dagapi.o
; then
6089 dagapi_obj
=$dag_lib_dir/dagapi.o
6090 elif test -r $dag_lib_dir/libdag.a
; then
6092 ar x
$dag_lib_dir/libdag.a dagapi.o
6093 if test -r .
/dagapi.o
; then
6094 dagapi_obj
=.
/dagapi.o
6096 ar x
$dag_lib_dir/libdag.a libdag_la-dagapi.o
6097 if test -r .
/libdag_la-dagapi.o
; then
6098 dagapi_obj
=.
/libdag_la-dagapi.o
6103 if test $dagapi_obj = no
; then
6104 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6105 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
6106 ac_cv_lbl_dag_api
=no
6108 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
6109 echo "${ECHO_T}yes ($dagapi_obj)" >&6
6113 if test $ac_cv_lbl_dag_api = yes; then
6115 echo "$as_me:$LINENO: checking dagopts.o" >&5
6116 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
6118 if test -r $dag_tools_dir/dagopts.o
; then
6120 dagopts_obj
=$dag_tools_dir/dagopts.o
6121 elif test -r $dag_lib_dir/dagopts.o
; then
6123 dagopts_obj
=$dag_lib_dir/dagopts.o
6124 elif test -r $dag_lib_dir/libdag.a
; then
6126 ar x
$dag_lib_dir/libdag.a dagopts.o
6127 if test -r .
/dagopts.o
; then
6128 dagopts_obj
=.
/dagopts.o
6130 ar x
$dag_lib_dir/libdag.a libdag_la-dagopts.o
6131 if test -r .
/libdag_la-dagopts.o
; then
6132 dagopts_obj
=.
/libdag_la-dagopts.o
6137 if test $dagopts_obj = no
; then
6138 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6139 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
6140 ac_cv_lbl_dag_api
=no
6142 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
6143 echo "${ECHO_T}yes ($dagopts_obj)" >&6
6147 if test $ac_cv_lbl_dag_api = yes; then
6148 # Under 2.5.x only we need to add dagreg.o.
6149 if test -r $dag_include_dir/dagreg.h
; then
6150 echo "$as_me:$LINENO: checking dagreg.o" >&5
6151 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
6153 if test -r $dag_lib_dir/dagreg.o
; then
6154 # Object file is ready and waiting.
6155 dagreg_obj
=$dag_lib_dir/dagreg.o
6156 elif test -r $dag_lib_dir/libdag.a
; then
6157 # Extract from libdag.a.
6158 ar x
$dag_lib_dir/libdag.a dagreg.o
6159 if test -r .
/dagreg.o
; then
6160 dagreg_obj
=.
/dagreg.o
6162 ar x
$dag_lib_dir/libdag.a libdag_la-dagreg.o
6163 if test -r .
/libdag_la-dagreg.o
; then
6164 dagreg_obj
=.
/libdag_la-dagreg.o
6169 if test $dagreg_obj = no
; then
6170 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
6171 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
6172 ac_cv_lbl_dag_api
=no
6174 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
6175 echo "${ECHO_T}yes ($dagreg_obj)" >&6
6180 if test $ac_cv_lbl_dag_api = yes; then
6181 V_INCLS
="$V_INCLS -I$dag_include_dir"
6182 V_LIBS
="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
6183 if test $V_PCAP != dag
; then
6187 # See if we can find a general version string.
6188 # Don't need to save and restore LIBS to prevent -ldag being
6189 # included if there's a found-action (arg 3).
6190 saved_ldflags
=$LDFLAGS
6191 LDFLAGS
="-L$dag_lib_dir"
6192 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
6193 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
6194 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 ac_check_lib_save_LIBS
=$LIBS
6199 cat >conftest.
$ac_ext <<_ACEOF
6202 cat confdefs.h
>>conftest.
$ac_ext
6203 cat >>conftest.
$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6206 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6212 char dag_attach_stream ();
6216 dag_attach_stream ();
6221 rm -f conftest.
$ac_objext conftest
$ac_exeext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6223 (eval $ac_link) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1
>conftest.err
6227 cat conftest.err
>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try
='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try
='test -s conftest$ac_exeext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_lib_dag_dag_attach_stream
=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_cv_lib_dag_dag_attach_stream
=no
6250 rm -f conftest.err conftest.
$ac_objext \
6251 conftest
$ac_exeext conftest.
$ac_ext
6252 LIBS
=$ac_check_lib_save_LIBS
6254 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6255 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
6256 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
6262 echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
6263 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6
6264 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 ac_check_lib_save_LIBS
=$LIBS
6269 cat >conftest.
$ac_ext <<_ACEOF
6272 cat confdefs.h
>>conftest.
$ac_ext
6273 cat >>conftest.
$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6276 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6282 char dag_get_erf_types ();
6286 dag_get_erf_types ();
6291 rm -f conftest.
$ac_objext conftest
$ac_exeext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>conftest.er1
6295 grep -v '^ *+' conftest.er1
>conftest.err
6297 cat conftest.err
>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try
='test -z "$ac_c_werror_flag"
6301 || test ! -s conftest.err'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try
='test -s conftest$ac_exeext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_lib_dag_dag_get_erf_types
=yes
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.
$ac_ext >&5
6318 ac_cv_lib_dag_dag_get_erf_types
=no
6320 rm -f conftest.err conftest.
$ac_objext \
6321 conftest
$ac_exeext conftest.
$ac_ext
6322 LIBS
=$ac_check_lib_save_LIBS
6324 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6325 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6
6326 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
6329 cat >>confdefs.h
<<\_ACEOF
6330 #define HAVE_DAG_GET_ERF_TYPES 1
6336 LDFLAGS
=$saved_ldflags
6338 if test "$dag_version" = 2.5.x
; then
6340 cat >>confdefs.h
<<\_ACEOF
6341 #define HAVE_DAG_STREAMS_API 1
6347 # See if we can find a specific version string.
6348 echo "$as_me:$LINENO: checking the DAG API version" >&5
6349 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
6350 if test -r "$dag_root/VERSION"; then
6351 dag_version
="`cat $dag_root/VERSION`"
6353 echo "$as_me:$LINENO: result: $dag_version" >&5
6354 echo "${ECHO_T}$dag_version" >&6
6356 cat >>confdefs.h
<<\_ACEOF
6357 #define HAVE_DAG_API 1
6362 if test $ac_cv_lbl_dag_api = no
; then
6363 if test "$want_dag" = yes; then
6364 # User wanted DAG support but we couldn't find it.
6365 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
6366 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
6367 { (exit 1); exit 1; }; }
6370 if test "$V_PCAP" = dag
; then
6371 # User requested "dag" capture type but the DAG API wasn't
6373 { { 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
6374 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;}
6375 { (exit 1); exit 1; }; }
6380 # Check whether --with-septel or --without-septel was given.
6381 if test "${with_septel+set}" = set; then
6382 withval
="$with_septel"
6384 if test "$withval" = no
6387 elif test "$withval" = yes
6393 septel_root
=$withval
6399 # Use Septel API if present, otherwise don't
6401 want_septel
=ifpresent
6402 septel_root
=.
/..
/septel
6405 ac_cv_lbl_septel_api
=no
6409 # We support the Septel API if we're on Linux, or if we're building
6410 # a Septel-only libpcap.
6415 # If the user explicitly requested Septel, tell them it's not
6418 # If they expressed no preference, don't include it.
6420 if test $want_septel = yes; then
6421 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
6422 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
6423 { (exit 1); exit 1; }; }
6424 elif test $want_septel = yes; then
6430 if test "$with_septel" != no
; then
6431 echo "$as_me:$LINENO: checking whether we have Septel API" >&5
6432 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6
6434 if test -z "$septel_root"; then
6435 septel_root
=$srcdir/..
/septel
6439 septel_tools_dir
="$septel_root"
6440 septel_include_dir
="$septel_root/INC"
6441 DEF
="-DHAVE_SEPTEL_API"
6443 ac_cv_lbl_septel_api
=no
6444 if test -r "$septel_include_dir/msg.h"; then
6445 V_INCLS
="$V_INCLS -I$septel_include_dir"
6446 V_DEFS
="$V_DEFS $DEF"
6447 V_LIBS
="$V_LIBS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o "
6449 if test "$V_PCAP" != septel
; then
6450 SSRC
="pcap-septel.c"
6453 ac_cv_lbl_septel_api
=yes
6456 echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
6457 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6
6458 if test $ac_cv_lbl_septel_api = no
; then
6459 if test "$want_septel" = yes; then
6460 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
6461 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
6462 { (exit 1); exit 1; }; }
6466 cat >>confdefs.h
<<\_ACEOF
6467 #define HAVE_SEPTEL_API 1
6473 if test "$V_PCAP" = septel
-a "$ac_cv_lbl_septel_api" = no
; then
6474 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
6475 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
6476 { (exit 1); exit 1; }; }
6481 # Check whether --with-flex or --without-flex was given.
6482 if test "${with_flex+set}" = set; then
6483 withval
="$with_flex"
6487 # Check whether --with-bison or --without-bison was given.
6488 if test "${with_bison+set}" = set; then
6489 withval
="$with_bison"
6492 if test "$with_flex" = no
; then
6497 # Extract the first word of "$ac_prog", so it can be a program name with args.
6498 set dummy
$ac_prog; ac_word
=$2
6499 echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501 if test "${ac_cv_prog_V_LEX+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 if test -n "$V_LEX"; then
6505 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
6507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir
=.
6512 for ac_exec_ext
in '' $ac_executable_extensions; do
6513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_V_LEX
="$ac_prog"
6515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 V_LEX
=$ac_cv_prog_V_LEX
6524 if test -n "$V_LEX"; then
6525 echo "$as_me:$LINENO: result: $V_LEX" >&5
6526 echo "${ECHO_T}$V_LEX" >&6
6528 echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6
6532 test -n "$V_LEX" && break
6534 test -n "$V_LEX" || V_LEX
="lex"
6537 if test "$V_LEX" = flex
; then
6538 # The -V flag was added in 2.4
6539 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
6540 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
6541 if test "${ac_cv_lbl_flex_v24+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 if flex
-V >/dev
/null
2>&1; then
6545 ac_cv_lbl_flex_v24
=yes
6547 ac_cv_lbl_flex_v24
=no
6551 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
6552 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
6553 if test $ac_cv_lbl_flex_v24 = no
; then
6554 s
="2.4 or higher required"
6555 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
6556 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6560 if test "$with_bison" = no
; then
6563 for ac_prog
in bison
6565 # Extract the first word of "$ac_prog", so it can be a program name with args.
6566 set dummy
$ac_prog; ac_word
=$2
6567 echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6569 if test "${ac_cv_prog_V_YACC+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 if test -n "$V_YACC"; then
6573 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
6575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir
=.
6580 for ac_exec_ext
in '' $ac_executable_extensions; do
6581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_V_YACC
="$ac_prog"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 V_YACC
=$ac_cv_prog_V_YACC
6592 if test -n "$V_YACC"; then
6593 echo "$as_me:$LINENO: result: $V_YACC" >&5
6594 echo "${ECHO_T}$V_YACC" >&6
6596 echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6
6600 test -n "$V_YACC" && break
6602 test -n "$V_YACC" || V_YACC
="yacc"
6605 if test "$V_YACC" = bison
; then
6608 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6609 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6610 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6614 if test "$V_LEX" = flex
-a -n "pcap_" ; then
6615 V_LEX
="$V_LEX -Ppcap_"
6616 V_YACC
="$V_YACC -p pcap_"
6618 if test "$V_LEX" = lex ; then
6619 # Some versions of lex can't handle the definitions section of scanner.l .
6620 # Try lexing it and complain if it can't deal.
6621 echo "$as_me:$LINENO: checking for capable lex" >&5
6622 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
6623 if test "${tcpdump_cv_capable_lex+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 if lex -t scanner.l
> /dev
/null
2>&1; then
6627 tcpdump_cv_capable_lex
=yes
6629 tcpdump_cv_capable_lex
=insufficient
6632 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
6633 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
6634 if test $tcpdump_cv_capable_lex = insufficient
; then
6635 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
6636 libpcap. flex is a lex replacement that has many advantages, including
6637 being able to compile libpcap. For more information, see
6638 http://www.gnu.org/software/flex/flex.html ." >&5
6639 echo "$as_me: error: Your operating system's lex is insufficient to compile
6640 libpcap. flex is a lex replacement that has many advantages, including
6641 being able to compile libpcap. For more information, see
6642 http://www.gnu.org/software/flex/flex.html ." >&2;}
6643 { (exit 1); exit 1; }; }
6652 cat >>confdefs.h
<<\_ACEOF
6660 cat >>confdefs.h
<<\_ACEOF
6661 #define HAVE_HPUX9 1
6674 cat >>confdefs.h
<<\_ACEOF
6675 #define HAVE_HPUX10_20_OR_LATER 1
6681 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6682 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6683 if test "${ac_cv_cc_sinix_defined+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6701 rm -f conftest.
$ac_objext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>conftest.er1
6705 grep -v '^ *+' conftest.er1
>conftest.err
6707 cat conftest.err
>&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try
='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try
='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_cc_sinix_defined
=yes
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.
$ac_ext >&5
6728 ac_cv_cc_sinix_defined
=no
6730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
6734 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
6735 if test $ac_cv_cc_sinix_defined = no
; then
6737 cat >>confdefs.h
<<\_ACEOF
6746 cat >>confdefs.h
<<\_ACEOF
6747 #define HAVE_SOLARIS 1
6754 V_CCOPT
="$V_CCOPT -fno-common"
6758 V_CCOPT
="$V_CCOPT -fPIC"
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6766 echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6768 if test "${ac_cv_prog_RANLIB+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir
=.
6779 for ac_exec_ext
in '' $ac_executable_extensions; do
6780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 RANLIB
=$ac_cv_prog_RANLIB
6791 if test -n "$RANLIB"; then
6792 echo "$as_me:$LINENO: result: $RANLIB" >&5
6793 echo "${ECHO_T}$RANLIB" >&6
6795 echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6
6800 if test -z "$ac_cv_prog_RANLIB"; then
6801 ac_ct_RANLIB
=$RANLIB
6802 # Extract the first word of "ranlib", so it can be a program name with args.
6803 set dummy ranlib
; ac_word
=$2
6804 echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 if test -n "$ac_ct_RANLIB"; then
6810 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir
=.
6817 for ac_exec_ext
in '' $ac_executable_extensions; do
6818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6829 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6830 if test -n "$ac_ct_RANLIB"; then
6831 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6832 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6834 echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6838 RANLIB
=$ac_ct_RANLIB
6840 RANLIB
="$ac_cv_prog_RANLIB"
6845 if test "${LBL_CFLAGS+set}" = set; then
6846 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
6848 if test -f .devel
; then
6849 if test "$GCC" = yes ; then
6850 if test "${LBL_CFLAGS+set}" != set; then
6851 if test "$ac_cv_prog_cc_g" = yes ; then
6852 V_CCOPT
="-g $V_CCOPT"
6854 V_CCOPT
="$V_CCOPT -Wall"
6855 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
6856 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
6860 case "$target_os" in
6863 V_CCOPT
="$V_CCOPT -n32"
6870 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
6872 if test -f $name ; then
6873 ln -s $name os-proto.h
6875 cat >>confdefs.h
<<\_ACEOF
6876 #define HAVE_OS_PROTO_H 1
6880 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
6881 echo "$as_me: WARNING: can't find $name" >&2;}
6885 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
6886 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6887 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 cat >conftest.
$ac_ext <<_ACEOF
6893 cat confdefs.h
>>conftest.
$ac_ext
6894 cat >>conftest.
$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6897 # include <sys/types.h>
6898 # include <sys/socket.h>
6902 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6907 rm -f conftest.
$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1
>conftest.err
6913 cat conftest.err
>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try
='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try
='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_lbl_sockaddr_has_sa_len
=yes
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.
$ac_ext >&5
6934 ac_cv_lbl_sockaddr_has_sa_len
=no
6936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
6940 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
6941 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
6943 cat >>confdefs.h
<<\_ACEOF
6944 #define HAVE_SOCKADDR_SA_LEN 1
6949 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
6950 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
6951 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 cat >conftest.
$ac_ext <<_ACEOF
6957 cat confdefs.h
>>conftest.
$ac_ext
6958 cat >>conftest.
$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6961 # include <sys/types.h>
6962 # include <sys/socket.h>
6966 u_int i = sizeof (struct sockaddr_storage)
6971 rm -f conftest.
$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>conftest.er1
6975 grep -v '^ *+' conftest.er1
>conftest.err
6977 cat conftest.err
>&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try
='test -z "$ac_c_werror_flag"
6981 || test ! -s conftest.err'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; } &&
6987 { ac_try
='test -s conftest.$ac_objext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_lbl_has_sockaddr_storage
=yes
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.
$ac_ext >&5
6998 ac_cv_lbl_has_sockaddr_storage
=no
7000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7003 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7004 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
7005 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7007 cat >>confdefs.h
<<\_ACEOF
7008 #define HAVE_SOCKADDR_STORAGE 1
7013 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7014 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
7015 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 cat >conftest.
$ac_ext <<_ACEOF
7021 cat confdefs.h
>>conftest.
$ac_ext
7022 cat >>conftest.
$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7025 # include <sys/types.h>
7026 # include <sys/dlpi.h>
7027 # include <sys/dlpi_ext.h>
7031 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7036 rm -f conftest.
$ac_objext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>conftest.er1
7040 grep -v '^ *+' conftest.er1
>conftest.err
7042 cat conftest.err
>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try
='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try
='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.
$ac_ext >&5
7063 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
7065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7069 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
7070 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7072 cat >>confdefs.h
<<\_ACEOF
7073 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
7078 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
7079 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
7080 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 # These are CPU types where:
7088 # the CPU faults on an unaligned access, but at least some
7089 # OSes that support that CPU catch the fault and simulate
7090 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7091 # the simulation is slow, so we don't want to use it;
7093 # the CPU, I infer (from the old
7095 # XXX: should also check that they don't do weird things (like on arm)
7097 # comment) doesn't fault on unaligned accesses, but doesn't
7098 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7100 # for whatever reason, the test program doesn't work
7101 # (this has been claimed to be the case for several of those
7102 # CPUs - I don't know what the problem is; the problem
7103 # was reported as "the test program dumps core" for SuperH,
7104 # but that's what the test program is *supposed* to do -
7105 # it dumps core before it writes anything, so the test
7106 # for an empty output file should find an empty output
7107 # file and conclude that unaligned accesses don't work).
7109 # This run-time test won't work if you're cross-compiling, so
7110 # in order to support cross-compiling for a particular CPU,
7111 # we have to wire in the list of CPU types anyway, as far as
7112 # I know, so perhaps we should just have a set of CPUs on
7113 # which we know it doesn't work, a set of CPUs on which we
7114 # know it does work, and have the script just fail on other
7115 # cpu types and update it when such a failure occurs.
7117 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
7118 ac_cv_lbl_unaligned_fail
=yes
7122 cat >conftest.c
<<EOF
7123 # include <sys/types.h>
7124 # include <sys/wait.h>
7126 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7131 /* avoid "core dumped" message */
7137 pid = waitpid(pid, &status, 0);
7140 exit(!WIFEXITED(status));
7143 i = *(unsigned int *)&a[1];
7148 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
7149 conftest.c
$LIBS >/dev
/null
2>&1
7150 if test ! -x conftest
; then
7151 ac_cv_lbl_unaligned_fail
=yes
7153 .
/conftest
>conftest.out
7154 if test ! -s conftest.out
; then
7155 ac_cv_lbl_unaligned_fail
=yes
7157 ac_cv_lbl_unaligned_fail
=no
7160 rm -f conftest
* core core.conftest
7165 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
7166 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
7167 if test $ac_cv_lbl_unaligned_fail = yes ; then
7169 cat >>confdefs.h
<<\_ACEOF
7176 # Makefile.in includes rules to generate version.h, so we assume
7177 # that it will be generated if autoconf is used.
7180 cat >>confdefs.h
<<\_ACEOF
7181 #define HAVE_VERSION_H 1
7186 ln -s ${srcdir}/bpf
/net net
7201 echo "$as_me:$LINENO: checking for USB sniffing support" >&5
7202 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6
7206 cat >>confdefs.h
<<\_ACEOF
7207 #define PCAP_SUPPORT_USB 1
7210 USB_SRC
=pcap-usb-linux.c
7211 echo "$as_me:$LINENO: result: yes" >&5
7212 echo "${ECHO_T}yes" >&6
7213 ac_usb_dev_name
=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
7214 if test $?
-ne 0 ; then
7215 ac_usb_dev_name
="usbmon"
7218 cat >>confdefs.h
<<_ACEOF
7219 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7222 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7223 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7226 echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6
7235 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7236 echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7237 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6
7238 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7242 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6
7244 # Is the header compilable?
7245 echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
7246 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6
7247 cat >conftest.
$ac_ext <<_ACEOF
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7254 #include <bluetooth/bluetooth.h>
7256 rm -f conftest.
$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7260 grep -v '^ *+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try
='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try
='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_header_compiler
=yes
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.
$ac_ext >&5
7283 ac_header_compiler
=no
7285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7287 echo "${ECHO_T}$ac_header_compiler" >&6
7289 # Is the header present?
7290 echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
7291 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6
7292 cat >conftest.
$ac_ext <<_ACEOF
7295 cat confdefs.h
>>conftest.
$ac_ext
7296 cat >>conftest.
$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 #include <bluetooth/bluetooth.h>
7300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7303 grep -v '^ *+' conftest.er1
>conftest.err
7305 cat conftest.err
>&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } >/dev
/null
; then
7308 if test -s conftest.err
; then
7309 ac_cpp_err
=$ac_c_preproc_warn_flag
7310 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7317 if test -z "$ac_cpp_err"; then
7318 ac_header_preproc
=yes
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.
$ac_ext >&5
7323 ac_header_preproc
=no
7325 rm -f conftest.err conftest.
$ac_ext
7326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7327 echo "${ECHO_T}$ac_header_preproc" >&6
7329 # So? What about this header?
7330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7332 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
7333 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7334 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
7335 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
7336 ac_header_preproc
=yes
7339 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
7340 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
7342 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
7343 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
7344 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
7346 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
7348 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
7350 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
7353 ## ------------------------------------------ ##
7354 ## Report this to the AC_PACKAGE_NAME lists. ##
7355 ## ------------------------------------------ ##
7358 sed "s/^/$as_me: WARNING: /" >&2
7361 echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7362 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6
7363 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_header_bluetooth_bluetooth_h
=$ac_header_preproc
7368 echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7369 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6
7372 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
7375 cat >>confdefs.h
<<\_ACEOF
7376 #define PCAP_SUPPORT_BT 1
7379 BT_SRC
=pcap-bt-linux.c
7380 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
7381 echo "$as_me: Bluetooth sniffing is supported" >&6;}
7384 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
7385 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
7392 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
7393 echo "$as_me: no Bluetooth sniffing support" >&6;}
7399 # Find a good install program. We prefer a C program (faster),
7400 # so one script is as good as another. But avoid the broken or
7401 # incompatible versions:
7402 # SysV /etc/install, /usr/sbin/install
7403 # SunOS /usr/etc/install
7404 # IRIX /sbin/install
7406 # AmigaOS /C/install, which installs bootblocks on floppy discs
7407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7410 # OS/2's system install, which has a completely different semantic
7411 # ./install, which can be erroneously created by make from ./install.sh.
7412 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7413 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7414 if test -z "$INSTALL"; then
7415 if test "${ac_cv_path_install+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir
=.
7423 # Account for people who put trailing slashes in PATH elements.
7425 .
/ | .
// |
/cC
/* | \
7426 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7427 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7430 # OSF1 and SCO ODT 3.0 have their own names for install.
7431 # Don't use installbsd from OSF since it installs stuff as root
7433 for ac_prog
in ginstall scoinst
install; do
7434 for ac_exec_ext
in '' $ac_executable_extensions; do
7435 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7436 if test $ac_prog = install &&
7437 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7438 # AIX install. It has an incompatible calling convention.
7440 elif test $ac_prog = install &&
7441 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7442 # program-specific install script used by HP pwplus--don't use.
7445 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7457 if test "${ac_cv_path_install+set}" = set; then
7458 INSTALL
=$ac_cv_path_install
7460 # As a last resort, use the slow shell script. We don't cache a
7461 # path for INSTALL within a source directory, because that will
7462 # break other packages using the cache if that directory is
7463 # removed, or if the path is relative.
7464 INSTALL
=$ac_install_sh
7467 echo "$as_me:$LINENO: result: $INSTALL" >&5
7468 echo "${ECHO_T}$INSTALL" >&6
7470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7471 # It thinks the first close brace ends the variable substitution.
7472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7476 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7479 ac_config_headers
="$ac_config_headers config.h"
7482 ac_config_files
="$ac_config_files Makefile"
7483 cat >confcache
<<\_ACEOF
7484 # This file is a shell script that caches the results of configure
7485 # tests run on this system so they can be shared between configure
7486 # scripts and configure runs, see configure's option --config-cache.
7487 # It is not useful on other systems. If it contains results you don't
7488 # want to keep, you may remove or edit it.
7490 # config.status only pays attention to the cache file if you give it
7491 # the --recheck option to rerun configure.
7493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7499 # The following way of writing the cache mishandles newlines in values,
7500 # but we know of no workaround that is simple, portable, and efficient.
7501 # So, don't put newlines in cache variables' values.
7502 # Ultrix sh set writes to stderr and can't be redirected directly,
7503 # and sets the high bit in the cache file unless we assign to the vars.
7506 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7508 # `set' does not quote correctly, so add quotes (double-quote
7509 # substitution turns \\\\ into \\, and sed turns \\ into \).
7512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7515 # `set' quotes correctly as required by POSIX, so do not add quotes.
7517 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7526 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7528 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7529 if test -w $cache_file; then
7530 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7531 cat confcache
>$cache_file
7533 echo "not updating unwritable cache $cache_file"
7538 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7539 # Let make expand exec_prefix.
7540 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7542 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7543 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7544 # trailing colons and then remove the whole line if VPATH becomes empty
7545 # (actually we leave an empty line to preserve line numbers).
7546 if test "x$srcdir" = x.
; then
7547 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7548 s/:*\$(srcdir):*/:/;
7549 s/:*\${srcdir}:*/:/;
7551 s/^\([^=]*=[ ]*\):*/\1/;
7557 DEFS
=-DHAVE_CONFIG_H
7561 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7562 # 1. Remove the extension, and $U if already installed.
7563 ac_i
=`echo "$ac_i" |
7564 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7566 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7567 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7571 LTLIBOBJS
=$ac_ltlibobjs
7575 : ${CONFIG_STATUS=./config.status}
7576 ac_clean_files_save
=$ac_clean_files
7577 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7578 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7579 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7580 cat >$CONFIG_STATUS <<_ACEOF
7582 # Generated by $as_me.
7583 # Run this file to recreate the current configuration.
7584 # Compiler output produced by configure, useful for debugging
7585 # configure, is in config.log if it exists.
7590 SHELL=\${CONFIG_SHELL-$SHELL}
7593 cat >>$CONFIG_STATUS <<\_ACEOF
7594 ## --------------------- ##
7595 ## M4sh Initialization. ##
7596 ## --------------------- ##
7598 # Be Bourne compatible
7599 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7602 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7603 # is contrary to our usage. Disable this feature.
7604 alias -g '${1+"$@"}'='"$@"'
7605 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7608 DUALCASE
=1; export DUALCASE
# for MKS sh
7610 # Support unset when possible.
7611 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7618 # Work around bugs in pre-3.0 UWIN ksh.
7619 $as_unset ENV MAIL MAILPATH
7626 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7627 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7628 LC_TELEPHONE LC_TIME
7630 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7631 eval $as_var=C
; export $as_var
7637 # Required to use basename.
7638 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7644 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7645 as_basename
=basename
7651 # Name of the executable.
7652 as_me
=`$as_basename "$0" ||
7653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7654 X"$0" : 'X\(//\)$' \| \
7655 X"$0" : 'X\(/\)$' \| \
7656 . : '\(.\)' 2>/dev/null ||
7658 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7659 /^X\/\(\/\/\)$/{ s//\1/; q; }
7660 /^X\/\(\/\).*/{ s//\1/; q; }
7664 # PATH needs CR, and LINENO needs CR and PATH.
7665 # Avoid depending upon Character Ranges.
7666 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7667 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7668 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7669 as_cr_digits
='0123456789'
7670 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7672 # The user is always right.
7673 if test "${PATH_SEPARATOR+set}" != set; then
7674 echo "#! /bin/sh" >conf$$.sh
7675 echo "exit 0" >>conf$$.sh
7677 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7688 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7689 test "x$as_lineno_1" != "x$as_lineno_2" &&
7690 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7691 # Find who we are. Look in the path if we contain no path at all
7694 *[\\/]* ) as_myself
=$0 ;;
7695 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir
=.
7700 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7705 # We did not find ourselves, most probably we were run as `sh COMMAND'
7706 # in which case we are not to be found in the path.
7707 if test "x$as_myself" = x
; then
7710 if test ! -f "$as_myself"; then
7711 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7712 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7713 { (exit 1); exit 1; }; }
7715 case $CONFIG_SHELL in
7717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7718 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7721 test -z "$as_dir" && as_dir
=.
7722 for as_base
in sh bash ksh sh5
; do
7725 if ("$as_dir/$as_base" -c '
7728 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7729 test "x$as_lineno_1" != "x$as_lineno_2" &&
7730 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7731 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7732 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7733 CONFIG_SHELL
=$as_dir/$as_base
7735 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7744 # uniformly replaced by the line number. The first 'sed' inserts a
7745 # line-number line before each line; the second 'sed' does the real
7746 # work. The second script uses 'N' to pair each line-number line
7747 # with the numbered line, and appends trailing '-' during
7748 # substitution so that $LINENO is not a special case at line end.
7749 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7750 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7751 sed '=' <$as_myself |
7756 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7759 s,^['$as_cr_digits']*\n,,
7761 chmod +x
$as_me.lineno ||
7762 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7763 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7764 { (exit 1); exit 1; }; }
7766 # Don't try to exec as it changes $[0], causing all sort of problems
7767 # (the dirname of $[0] is not the place where we might find the
7768 # original and so on. Autoconf is especially sensible to this).
7770 # Exit status is that of the last command.
7775 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7776 *c
*,-n*) ECHO_N
= ECHO_C
='
7778 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7779 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7782 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7788 rm -f conf$$ conf$$.exe conf$$.
file
7790 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7791 # We could just check for DJGPP; but this test a) works b) is more generic
7792 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7793 if test -f conf$$.exe
; then
7794 # Don't use ln at all; we don't have any links
7799 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7804 rm -f conf$$ conf$$.exe conf$$.
file
7806 if mkdir
-p .
2>/dev
/null
; then
7809 test -d .
/-p && rmdir .
/-p
7813 as_executable_p
="test -f"
7815 # Sed expression to map a string onto a valid CPP name.
7816 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7818 # Sed expression to map a string onto a valid variable name.
7819 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7823 # We need space, tab and new line, in precisely that order.
7833 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7834 # report actual input values of CONFIG_FILES etc. instead of their
7835 # values after options handling. Logging --version etc. is OK.
7839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7840 ## Running $as_me. ##
7845 This file was extended by $as_me, which was
7846 generated by GNU Autoconf 2.59. Invocation command line was
7848 CONFIG_FILES = $CONFIG_FILES
7849 CONFIG_HEADERS = $CONFIG_HEADERS
7850 CONFIG_LINKS = $CONFIG_LINKS
7851 CONFIG_COMMANDS = $CONFIG_COMMANDS
7855 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7859 # Files that config.status was made for.
7860 if test -n "$ac_config_files"; then
7861 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7864 if test -n "$ac_config_headers"; then
7865 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7868 if test -n "$ac_config_links"; then
7869 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7872 if test -n "$ac_config_commands"; then
7873 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7876 cat >>$CONFIG_STATUS <<\_ACEOF
7879 \`$as_me' instantiates files from templates according to the
7880 current configuration.
7882 Usage: $0 [OPTIONS] [FILE]...
7884 -h, --help print this help, then exit
7885 -V, --version print version number, then exit
7886 -q, --quiet do not print progress messages
7887 -d, --debug don't remove temporary files
7888 --recheck update $as_me by reconfiguring in the same conditions
7889 --file=FILE[:TEMPLATE]
7890 instantiate the configuration file FILE
7891 --header=FILE[:TEMPLATE]
7892 instantiate the configuration header FILE
7894 Configuration files:
7897 Configuration headers:
7900 Report bugs to <bug-autoconf@gnu.org>."
7903 cat >>$CONFIG_STATUS <<_ACEOF
7906 configured by $0, generated by GNU Autoconf 2.59,
7907 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7909 Copyright (C) 2003 Free Software Foundation, Inc.
7910 This config.status script is free software; the Free Software Foundation
7911 gives unlimited permission to copy, distribute and modify it."
7916 cat >>$CONFIG_STATUS <<\_ACEOF
7917 # If no file are specified by the user, then we need to provide default
7918 # value. By we need to know if files were specified by the user.
7924 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7925 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7933 *) # This is not an option, so the user has probably given explicit
7936 ac_need_defaults
=false
;;
7940 # Handling of the options.
7942 cat >>$CONFIG_STATUS <<\_ACEOF
7943 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7945 --version |
--vers* |
-V )
7946 echo "$ac_cs_version"; exit 0 ;;
7948 # Conflict between --help and --header
7949 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7950 Try \`$0 --help' for more information." >&5
7951 echo "$as_me: error: ambiguous option: $1
7952 Try \`$0 --help' for more information." >&2;}
7953 { (exit 1); exit 1; }; };;
7954 --help |
--hel |
-h )
7955 echo "$ac_cs_usage"; exit 0 ;;
7956 --debug |
--d* |
-d )
7958 --file |
--fil |
--fi |
--f )
7960 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7961 ac_need_defaults
=false
;;
7962 --header |
--heade |
--head |
--hea )
7964 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7965 ac_need_defaults
=false
;;
7966 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7967 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7971 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7972 Try \`$0 --help' for more information." >&5
7973 echo "$as_me: error: unrecognized option: $1
7974 Try \`$0 --help' for more information." >&2;}
7975 { (exit 1); exit 1; }; } ;;
7977 *) ac_config_targets
="$ac_config_targets $1" ;;
7983 ac_configure_extra_args
=
7985 if $ac_cs_silent; then
7987 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7991 cat >>$CONFIG_STATUS <<_ACEOF
7992 if \$ac_cs_recheck; then
7993 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7994 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8003 cat >>$CONFIG_STATUS <<\_ACEOF
8004 for ac_config_target
in $ac_config_targets
8006 case "$ac_config_target" in
8007 # Handling of arguments.
8008 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8009 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8010 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8011 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8012 { (exit 1); exit 1; }; };;
8016 # If the user did not use the arguments to specify the items to instantiate,
8017 # then the envvar interface is used. Set only those that are not.
8018 # We use the long form for the default assignment because of an extremely
8019 # bizarre bug on SunOS 4.1.3.
8020 if $ac_need_defaults; then
8021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8025 # Have a temporary directory for convenience. Make it in the build tree
8026 # simply because there is no reason to put it here, and in addition,
8027 # creating and moving files from /tmp can sometimes cause problems.
8028 # Create a temporary directory, and hook for its removal unless debugging.
8031 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8032 trap '{ (exit 1); exit 1; }' 1 2 13 15
8035 # Create a (secure) tmp directory for tmp files.
8038 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8039 test -n "$tmp" && test -d "$tmp"
8042 tmp
=.
/confstat$$
-$RANDOM
8043 (umask 077 && mkdir
$tmp)
8046 echo "$me: cannot create a temporary directory in ." >&2
8047 { (exit 1); exit 1; }
8052 cat >>$CONFIG_STATUS <<_ACEOF
8055 # CONFIG_FILES section.
8058 # No need to generate the scripts if there are no CONFIG_FILES.
8059 # This happens for instance when ./config.status config.h
8060 if test -n "\$CONFIG_FILES"; then
8061 # Protect against being on the right side of a sed subst in config.status.
8062 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8063 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8064 s,@SHELL@,$SHELL,;t t
8065 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8066 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8067 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8068 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8069 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8070 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8071 s,@exec_prefix@,$exec_prefix,;t t
8072 s,@prefix@,$prefix,;t t
8073 s,@program_transform_name@,$program_transform_name,;t t
8074 s,@bindir@,$bindir,;t t
8075 s,@sbindir@,$sbindir,;t t
8076 s,@libexecdir@,$libexecdir,;t t
8077 s,@datadir@,$datadir,;t t
8078 s,@sysconfdir@,$sysconfdir,;t t
8079 s,@sharedstatedir@,$sharedstatedir,;t t
8080 s,@localstatedir@,$localstatedir,;t t
8081 s,@libdir@,$libdir,;t t
8082 s,@includedir@,$includedir,;t t
8083 s,@oldincludedir@,$oldincludedir,;t t
8084 s,@infodir@,$infodir,;t t
8085 s,@mandir@,$mandir,;t t
8086 s,@build_alias@,$build_alias,;t t
8087 s,@host_alias@,$host_alias,;t t
8088 s,@target_alias@,$target_alias,;t t
8090 s,@ECHO_C@,$ECHO_C,;t t
8091 s,@ECHO_N@,$ECHO_N,;t t
8092 s,@ECHO_T@,$ECHO_T,;t t
8094 s,@build@,$build,;t t
8095 s,@build_cpu@,$build_cpu,;t t
8096 s,@build_vendor@,$build_vendor,;t t
8097 s,@build_os@,$build_os,;t t
8099 s,@host_cpu@,$host_cpu,;t t
8100 s,@host_vendor@,$host_vendor,;t t
8101 s,@host_os@,$host_os,;t t
8102 s,@target@,$target,;t t
8103 s,@target_cpu@,$target_cpu,;t t
8104 s,@target_vendor@,$target_vendor,;t t
8105 s,@target_os@,$target_os,;t t
8106 s,@SHLICC2@,$SHLICC2,;t t
8108 s,@CFLAGS@,$CFLAGS,;t t
8109 s,@LDFLAGS@,$LDFLAGS,;t t
8110 s,@CPPFLAGS@,$CPPFLAGS,;t t
8111 s,@ac_ct_CC@,$ac_ct_CC,;t t
8112 s,@EXEEXT@,$EXEEXT,;t t
8113 s,@OBJEXT@,$OBJEXT,;t t
8115 s,@EGREP@,$EGREP,;t t
8116 s,@LIBOBJS@,$LIBOBJS,;t t
8117 s,@V_LEX@,$V_LEX,;t t
8118 s,@V_YACC@,$V_YACC,;t t
8119 s,@RANLIB@,$RANLIB,;t t
8120 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8121 s,@V_CCOPT@,$V_CCOPT,;t t
8122 s,@V_DEFS@,$V_DEFS,;t t
8123 s,@V_INCLS@,$V_INCLS,;t t
8124 s,@V_LIBS@,$V_LIBS,;t t
8125 s,@V_PCAP@,$V_PCAP,;t t
8126 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
8127 s,@V_RANLIB@,$V_RANLIB,;t t
8129 s,@DYEXT@,$DYEXT,;t t
8130 s,@DAGLIBS@,$DAGLIBS,;t t
8131 s,@PCAP_SUPPORT_USB@,$PCAP_SUPPORT_USB,;t t
8132 s,@USB_SRC@,$USB_SRC,;t t
8133 s,@PCAP_SUPPORT_BT@,$PCAP_SUPPORT_BT,;t t
8134 s,@BT_SRC@,$BT_SRC,;t t
8135 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8136 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8137 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8138 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8143 cat >>$CONFIG_STATUS <<\_ACEOF
8144 # Split the substitutions into bite-sized pieces for seds with
8145 # small command number limits, like on Digital OSF/1 and HP-UX.
8147 ac_sed_frag
=1 # Number of current file.
8148 ac_beg
=1 # First line for current file.
8149 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8152 while $ac_more_lines; do
8153 if test $ac_beg -gt 1; then
8154 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8156 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8158 if test ! -s $tmp/subs.frag
; then
8161 # The purpose of the label and of the branching condition is to
8162 # speed up the sed processing (if there are no `@' at all, there
8163 # is no need to browse any of the substitutions).
8164 # These are the two extra sed commands mentioned above.
8166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8167 if test -z "$ac_sed_cmds"; then
8168 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8170 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8172 ac_sed_frag
=`expr $ac_sed_frag + 1`
8174 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8177 if test -z "$ac_sed_cmds"; then
8180 fi # test -n "$CONFIG_FILES"
8183 cat >>$CONFIG_STATUS <<\_ACEOF
8184 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8187 - |
*:- |
*:-:* ) # input from stdin
8189 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8190 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8191 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8192 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8193 * ) ac_file_in
=$ac_file.
in ;;
8196 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8197 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8199 X"$ac_file" : 'X\(//\)[^/]' \| \
8200 X"$ac_file" : 'X\(//\)$' \| \
8201 X"$ac_file" : 'X\(/\)' \| \
8202 . : '\(.\)' 2>/dev/null ||
8204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8206 /^X\(\/\/\)$/{ s//\1/; q; }
8207 /^X\(\/\).*/{ s//\1/; q; }
8209 { if $as_mkdir_p; then
8214 while test ! -d "$as_dir"; do
8215 as_dirs
="$as_dir $as_dirs"
8216 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8218 X"$as_dir" : 'X\(//\)[^/]' \| \
8219 X"$as_dir" : 'X\(//\)$' \| \
8220 X"$as_dir" : 'X\(/\)' \| \
8221 . : '\(.\)' 2>/dev/null ||
8223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8225 /^X\(\/\/\)$/{ s//\1/; q; }
8226 /^X\(\/\).*/{ s//\1/; q; }
8229 test ! -n "$as_dirs" || mkdir
$as_dirs
8230 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8231 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8232 { (exit 1); exit 1; }; }; }
8236 if test "$ac_dir" != .
; then
8237 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8238 # A "../" for each directory in $ac_dir_suffix.
8239 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8241 ac_dir_suffix
= ac_top_builddir
=
8245 .
) # No --srcdir option. We are building in place.
8247 if test -z "$ac_top_builddir"; then
8250 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8252 [\\/]* | ?
:[\\/]* ) # Absolute path.
8253 ac_srcdir
=$srcdir$ac_dir_suffix;
8254 ac_top_srcdir
=$srcdir ;;
8256 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8257 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8260 # Do not use `cd foo && pwd` to compute absolute paths, because
8261 # the directories may not exist.
8263 .
) ac_abs_builddir
="$ac_dir";;
8266 .
) ac_abs_builddir
=`pwd`;;
8267 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8268 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8271 case $ac_abs_builddir in
8272 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8274 case ${ac_top_builddir}.
in
8275 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8276 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8277 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8280 case $ac_abs_builddir in
8281 .
) ac_abs_srcdir
=$ac_srcdir;;
8284 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8285 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8286 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8289 case $ac_abs_builddir in
8290 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8292 case $ac_top_srcdir in
8293 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8294 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8295 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8301 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8302 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8305 if test x
"$ac_file" != x-
; then
8306 { echo "$as_me:$LINENO: creating $ac_file" >&5
8307 echo "$as_me: creating $ac_file" >&6;}
8310 # Let's still pretend it is `configure' which instantiates (i.e., don't
8311 # use $as_me), people would be surprised to read:
8312 # /* config.h. Generated by config.status. */
8313 if test x
"$ac_file" = x-
; then
8316 configure_input
="$ac_file. "
8318 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8319 sed 's,.*/,,'` by configure."
8321 # First look for the input files in the build tree, otherwise in the
8323 ac_file_inputs
=`IFS=:
8324 for f in $ac_file_in; do
8326 -) echo $tmp/stdin ;;
8328 # Absolute (can't be DOS-style, as IFS=:)
8329 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8330 echo "$as_me: error: cannot find input file: $f" >&2;}
8331 { (exit 1); exit 1; }; }
8334 if test -f "$f"; then
8337 elif test -f "$srcdir/$f"; then
8342 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8343 echo "$as_me: error: cannot find input file: $f" >&2;}
8344 { (exit 1); exit 1; }; }
8347 done` ||
{ (exit 1); exit 1; }
8349 cat >>$CONFIG_STATUS <<_ACEOF
8353 cat >>$CONFIG_STATUS <<\_ACEOF
8355 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8356 s
,@configure_input@
,$configure_input,;t t
8357 s
,@srcdir@
,$ac_srcdir,;t t
8358 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8359 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8360 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8361 s
,@builddir@
,$ac_builddir,;t t
8362 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8363 s
,@top_builddir@
,$ac_top_builddir,;t t
8364 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8365 s
,@INSTALL@
,$ac_INSTALL,;t t
8366 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8368 if test x"$ac_file" != x-; then
8369 mv $tmp/out $ac_file
8377 cat >>$CONFIG_STATUS <<\_ACEOF
8380 # CONFIG_HEADER section.
8383 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8384 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8386 # ac_d sets the value in "#define NAME VALUE" lines.
8387 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8388 ac_dB
='[ ].*$,\1#\2'
8391 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8392 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8393 ac_uB
='$,\1#\2define\3'
8397 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8398 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8400 - |
*:- |
*:-:* ) # input from stdin
8402 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8403 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8404 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8405 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8406 * ) ac_file_in
=$ac_file.
in ;;
8409 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8410 echo "$as_me: creating $ac_file" >&6;}
8412 # First look for the input files in the build tree, otherwise in the
8414 ac_file_inputs
=`IFS=:
8415 for f in $ac_file_in; do
8417 -) echo $tmp/stdin ;;
8419 # Absolute (can't be DOS-style, as IFS=:)
8420 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8421 echo "$as_me: error: cannot find input file: $f" >&2;}
8422 { (exit 1); exit 1; }; }
8423 # Do quote $f, to prevent DOS paths from being IFS'd.
8426 if test -f "$f"; then
8429 elif test -f "$srcdir/$f"; then
8434 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8435 echo "$as_me: error: cannot find input file: $f" >&2;}
8436 { (exit 1); exit 1; }; }
8439 done` ||
{ (exit 1); exit 1; }
8440 # Remove the trailing spaces.
8441 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8445 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8446 # `conftest.undefs', that substitutes the proper values into
8447 # config.h.in to produce config.h. The first handles `#define'
8448 # templates, and the second `#undef' templates.
8449 # And first: Protect against being on the right side of a sed subst in
8450 # config.status. Protect against being in an unquoted here document
8452 rm -f conftest.defines conftest.undefs
8453 # Using a here document instead of a string reduces the quoting nightmare.
8454 # Putting comments in sed scripts is not portable.
8456 # `end' is used to avoid that the second main sed command (meant for
8457 # 0-ary CPP macros) applies to n-ary macro definitions.
8458 # See the Autoconf documentation for `clear'.
8459 cat >confdef2sed.
sed <<\_ACEOF
8464 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8466 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8469 # If some macros were called several times there might be several times
8470 # the same #defines, which is useless. Nevertheless, we may not want to
8471 # sort them, since we want the *last* AC-DEFINE to be honored.
8472 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8473 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8474 rm -f confdef2sed.sed
8476 # This sed command replaces #undef with comments. This is necessary, for
8477 # example, in the case of _POSIX_SOURCE, which is predefined and required
8478 # on some systems where configure will not decide to define it.
8479 cat >>conftest.undefs <<\_ACEOF
8480 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8483 # Break up conftest.defines because some shells have a limit on the size
8484 # of here documents, and old seds have small limits too (100 cmds).
8485 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8486 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8487 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8488 echo ' :' >>$CONFIG_STATUS
8490 while grep . conftest.defines >/dev/null
8492 # Write a limited-size here document to $tmp/defines.sed.
8493 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8494 # Speed up: don't consider the non `#define' lines.
8495 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8496 # Work around the forget-to-reset-the-flag bug.
8497 echo 't clr' >>$CONFIG_STATUS
8498 echo ': clr' >>$CONFIG_STATUS
8499 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8501 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8505 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8506 rm -f conftest.defines
8507 mv conftest.
tail conftest.defines
8509 rm -f conftest.defines
8510 echo ' fi # grep' >>$CONFIG_STATUS
8511 echo >>$CONFIG_STATUS
8513 # Break up conftest.undefs because some shells have a limit on the size
8514 # of here documents, and old seds have small limits too (100 cmds).
8515 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8517 while grep . conftest.undefs
>/dev
/null
8519 # Write a limited-size here document to $tmp/undefs.sed.
8520 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8521 # Speed up: don't consider the non
`#undef'
8522 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8523 # Work around the forget-to-reset-the-flag bug.
8524 echo 't clr' >>$CONFIG_STATUS
8525 echo ': clr' >>$CONFIG_STATUS
8526 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8528 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8532 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8533 rm -f conftest.undefs
8534 mv conftest.tail conftest.undefs
8536 rm -f conftest.undefs
8538 cat >>$CONFIG_STATUS <<\_ACEOF
8539 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8540 # use $as_me), people would be surprised to read:
8541 # /* config.h. Generated by config.status. */
8542 if test x
"$ac_file" = x-
; then
8543 echo "/* Generated by configure. */" >$tmp/config.h
8545 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8547 cat $tmp/in >>$tmp/config.h
8549 if test x
"$ac_file" != x-
; then
8550 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8551 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8552 echo "$as_me: $ac_file is unchanged" >&6;}
8554 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8556 X"$ac_file" : 'X\(//\)[^/]' \| \
8557 X"$ac_file" : 'X\(//\)$' \| \
8558 X"$ac_file" : 'X\(/\)' \| \
8559 . : '\(.\)' 2>/dev/null ||
8561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8563 /^X\(\/\/\)$/{ s//\1/; q; }
8564 /^X\(\/\).*/{ s//\1/; q; }
8566 { if $as_mkdir_p; then
8571 while test ! -d "$as_dir"; do
8572 as_dirs
="$as_dir $as_dirs"
8573 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8575 X"$as_dir" : 'X\(//\)[^/]' \| \
8576 X"$as_dir" : 'X\(//\)$' \| \
8577 X"$as_dir" : 'X\(/\)' \| \
8578 . : '\(.\)' 2>/dev/null ||
8580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8582 /^X\(\/\/\)$/{ s//\1/; q; }
8583 /^X\(\/\).*/{ s//\1/; q; }
8586 test ! -n "$as_dirs" || mkdir
$as_dirs
8587 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8589 { (exit 1); exit 1; }; }; }
8592 mv $tmp/config.h
$ac_file
8601 cat >>$CONFIG_STATUS <<\_ACEOF
8603 { (exit 0); exit 0; }
8605 chmod +x
$CONFIG_STATUS
8606 ac_clean_files
=$ac_clean_files_save
8609 # configure is writing to config.log, and then calls config.status.
8610 # config.status does its own redirection, appending to config.log.
8611 # Unfortunately, on DOS this fails, as config.log is still kept open
8612 # by configure, so config.status won't be able to write to it; its
8613 # output is simply discarded. So we exec the FD to /dev/null,
8614 # effectively closing config.log, so it can be properly (re)opened and
8615 # appended to by config.status. When coming back to configure, we
8616 # need to make the FD available again.
8617 if test "$no_create" != yes; then
8619 ac_config_status_args
=
8620 test "$silent" = yes &&
8621 ac_config_status_args
="$ac_config_status_args --quiet"
8623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8626 # would make configure fail if this is the last instruction.
8627 $ac_cs_success ||
{ (exit 1); exit 1; }
8631 if test -f .devel
; then