2 # From configure.in Revision: 1.153 .
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 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-largefile omit support
for large files
850 --disable-protochain disable
\"protochain
\" insn
851 --enable-ipv6 build IPv6-capable version
[default
=yes, if getaddrinfo available
]
852 --enable-optimizer-dbg build optimizer debugging code
853 --enable-yydebug build parser debugging code
856 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
857 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
858 --without-gcc don
't use gcc
859 --with-sita include SITA support
860 --with-pcap=TYPE use packet capture TYPE
861 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
862 --with-dag-includes=DIR Endace DAG include directory
863 --with-dag-libraries=DIR Endace DAG library directory
864 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
865 --without-flex don't use flex
866 --without-bison don
't use bison
868 Some influential environment variables:
869 CC C compiler command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
872 nonstandard directory <lib dir>
873 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
874 headers in a nonstandard directory <include dir>
877 Use these variables to override the choices made by `configure' or to
help
878 it to
find libraries and programs with nonstandard names
/locations.
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
886 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
887 test -d $ac_dir ||
continue
890 if test "$ac_dir" != .
; then
891 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 ac_dir_suffix
= ac_top_builddir
=
899 .
) # No --srcdir option. We are building in place.
901 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
906 [\\/]* | ?
:[\\/]* ) # Absolute path.
907 ac_srcdir
=$srcdir$ac_dir_suffix;
908 ac_top_srcdir
=$srcdir ;;
910 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
917 .
) ac_abs_builddir
="$ac_dir";;
920 .
) ac_abs_builddir
=`pwd`;;
921 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
922 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
925 case $ac_abs_builddir in
926 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
928 case ${ac_top_builddir}.
in
929 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
930 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
931 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
934 case $ac_abs_builddir in
935 .
) ac_abs_srcdir
=$ac_srcdir;;
938 .
) ac_abs_srcdir
=$ac_abs_builddir;;
939 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
940 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
943 case $ac_abs_builddir in
944 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
948 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu
; then
957 $SHELL $ac_srcdir/configure.gnu
--help=recursive
958 elif test -f $ac_srcdir/configure
; then
960 $SHELL $ac_srcdir/configure
--help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.
in; then
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
976 Copyright
(C
) 2003 Free Software Foundation
, Inc.
977 This configure
script is free software
; the Free Software Foundation
978 gives unlimited permission to copy
, distribute and modify it.
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1022 test -z "$as_dir" && as_dir
=.
1023 echo "PATH: $as_dir"
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_must_keep_next
=false
1053 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1054 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1055 |
-silent |
--silent |
--silen |
--sile |
--sil)
1057 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true
; then
1065 ac_must_keep_next
=false
# Got value, back to normal.
1068 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1069 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1070 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1071 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 -* ) ac_must_keep_next
=true
;;
1079 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1086 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1087 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1105 # The following way of writing the cache mishandles newlines in values,
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1128 for ac_var in $ac_subst_vars
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -n "$ac_subst_files"; then
1142 for ac_var in $ac_subst_files
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -s confdefs.h; then
1157 sed "/^$/d" confdefs.h | sort
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 for ac_signal
in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest
* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h
<<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 cat >>confdefs.h
<<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 cat >>confdefs.h
<<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 cat >>confdefs.h
<<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 cat >>confdefs.h
<<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE
; then
1209 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1211 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file
in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1230 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1231 *) . .
/$cache_file;;
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1240 # Check that the precious variables saved in the cache have kept the same
1242 ac_cache_corrupted
=false
1243 for ac_var
in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1246 eval ac_new_set
=\
$ac_env_${ac_var}_set
1247 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val
="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted
=: ;;
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted
=: ;;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted
=:
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1273 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg
=$ac_var=$ac_new_val ;;
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1292 ac_cpp
='$CPP $CPPFLAGS'
1293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1317 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1318 if test -f $ac_dir/install-sh
; then
1320 ac_install_sh
="$ac_aux_dir/install-sh -c"
1322 elif test -f $ac_dir/install.sh
; then
1324 ac_install_sh
="$ac_aux_dir/install.sh -c"
1326 elif test -f $ac_dir/shtool
; then
1328 ac_install_sh
="$ac_aux_dir/shtool install -c"
1332 if test -z "$ac_aux_dir"; then
1333 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1334 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1335 { (exit 1); exit 1; }; }
1337 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1338 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1339 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1341 # Make sure we can run config.sub.
1342 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1343 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1344 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1345 { (exit 1); exit 1; }; }
1347 echo "$as_me:$LINENO: checking build system type" >&5
1348 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1349 if test "${ac_cv_build+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 ac_cv_build_alias
=$build_alias
1353 test -z "$ac_cv_build_alias" &&
1354 ac_cv_build_alias
=`$ac_config_guess`
1355 test -z "$ac_cv_build_alias" &&
1356 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1357 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1358 { (exit 1); exit 1; }; }
1359 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1360 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1361 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1362 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1366 echo "${ECHO_T}$ac_cv_build" >&6
1368 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373 echo "$as_me:$LINENO: checking host system type" >&5
1374 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1375 if test "${ac_cv_host+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 ac_cv_host_alias
=$host_alias
1379 test -z "$ac_cv_host_alias" &&
1380 ac_cv_host_alias
=$ac_cv_build_alias
1381 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1383 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1384 { (exit 1); exit 1; }; }
1387 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1388 echo "${ECHO_T}$ac_cv_host" >&6
1390 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395 echo "$as_me:$LINENO: checking target system type" >&5
1396 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1397 if test "${ac_cv_target+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 ac_cv_target_alias
=$target_alias
1401 test "x$ac_cv_target_alias" = "x" &&
1402 ac_cv_target_alias
=$ac_cv_host_alias
1403 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1405 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1406 { (exit 1); exit 1; }; }
1409 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1410 echo "${ECHO_T}$ac_cv_target" >&6
1411 target
=$ac_cv_target
1412 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417 # The aliases save the names the user supplied, while $host etc.
1418 # will get canonicalized.
1419 test -n "$target_alias" &&
1420 test "$program_prefix$program_suffix$program_transform_name" = \
1422 program_prefix
=${target_alias}-
1429 # Check whether --with-gcc or --without-gcc was given.
1430 if test "${with_gcc+set}" = set; then
1436 if test "${srcdir}" != "." ; then
1437 V_INCLS
="-I\$(srcdir)"
1439 if test "${CFLAGS+set}" = set; then
1440 LBL_CFLAGS
="$CFLAGS"
1442 if test -z "$CC" ; then
1443 case "$target_os" in
1446 # Extract the first word of "shlicc2", so it can be a program name with args.
1447 set dummy shlicc2
; ac_word
=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 if test -n "$SHLICC2"; then
1454 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir
=.
1461 for ac_exec_ext
in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_SHLICC2
="yes"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1473 SHLICC2
=$ac_cv_prog_SHLICC2
1474 if test -n "$SHLICC2"; then
1475 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1476 echo "${ECHO_T}$SHLICC2" >&6
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1482 if test $SHLICC2 = yes ; then
1489 if test -z "$CC" -a "$with_gcc" = no
; then
1494 ac_cpp
='$CPP $CPPFLAGS'
1495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1498 if test -n "$ac_tool_prefix"; then
1499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1500 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 if test -n "$CC"; then
1507 ac_cv_prog_CC
="$CC" # Let the user override the test.
1509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1513 test -z "$as_dir" && as_dir
=.
1514 for ac_exec_ext
in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 if test -n "$CC"; then
1527 echo "$as_me:$LINENO: result: $CC" >&5
1528 echo "${ECHO_T}$CC" >&6
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1535 if test -z "$ac_cv_prog_CC"; then
1537 # Extract the first word of "gcc", so it can be a program name with args.
1538 set dummy gcc
; ac_word
=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$ac_ct_CC"; then
1545 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir
=.
1552 for ac_exec_ext
in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_ac_ct_CC
="gcc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1564 if test -n "$ac_ct_CC"; then
1565 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1566 echo "${ECHO_T}$ac_ct_CC" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1577 if test -z "$CC"; then
1578 if test -n "$ac_tool_prefix"; then
1579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1580 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 if test -n "$CC"; then
1587 ac_cv_prog_CC
="$CC" # Let the user override the test.
1589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir
=.
1594 for ac_exec_ext
in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 if test -n "$CC"; then
1607 echo "$as_me:$LINENO: result: $CC" >&5
1608 echo "${ECHO_T}$CC" >&6
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1615 if test -z "$ac_cv_prog_CC"; then
1617 # Extract the first word of "cc", so it can be a program name with args.
1618 set dummy cc
; ac_word
=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$ac_ct_CC"; then
1625 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir
=.
1632 for ac_exec_ext
in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_ac_ct_CC
="cc"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1644 if test -n "$ac_ct_CC"; then
1645 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1646 echo "${ECHO_T}$ac_ct_CC" >&6
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1658 if test -z "$CC"; then
1659 # Extract the first word of "cc", so it can be a program name with args.
1660 set dummy cc
; ac_word
=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC
="$CC" # Let the user override the test.
1670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir
=.
1675 for ac_exec_ext
in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1678 ac_prog_rejected
=yes
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 if test $ac_prog_rejected = yes; then
1689 # We found a bogon in the path, so make sure we never use it.
1690 set dummy
$ac_cv_prog_CC
1692 if test $# != 0; then
1693 # We chose a different compiler from the bogus one.
1694 # However, it has the same basename, so the bogon will be chosen
1695 # first if we set CC to just the basename; use the full file name.
1697 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1703 if test -n "$CC"; then
1704 echo "$as_me:$LINENO: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1712 if test -z "$CC"; then
1713 if test -n "$ac_tool_prefix"; then
1716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1717 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC
="$CC" # Let the user override the test.
1726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir
=.
1731 for ac_exec_ext
in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 if test -n "$CC"; then
1744 echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1751 test -n "$CC" && break
1754 if test -z "$CC"; then
1758 # Extract the first word of "$ac_prog", so it can be a program name with args.
1759 set dummy
$ac_prog; ac_word
=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 if test -n "$ac_ct_CC"; then
1766 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir
=.
1773 for ac_exec_ext
in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_ac_ct_CC
="$ac_prog"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1785 if test -n "$ac_ct_CC"; then
1786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1787 echo "${ECHO_T}$ac_ct_CC" >&6
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1793 test -n "$ac_ct_CC" && break
1802 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1803 See \`config.log' for more details." >&5
1804 echo "$as_me: error: no acceptable C compiler found in \$PATH
1805 See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1808 # Provide some information about the compiler.
1809 echo "$as_me:$LINENO:" \
1810 "checking for C compiler version" >&5
1811 ac_compiler
=`set X $ac_compile; echo $2`
1812 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1813 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); }
1817 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1818 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }
1822 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1823 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }
1828 cat >conftest.
$ac_ext <<_ACEOF
1831 cat confdefs.h
>>conftest.
$ac_ext
1832 cat >>conftest.
$ac_ext <<_ACEOF
1833 /* end confdefs.h. */
1843 ac_clean_files_save
=$ac_clean_files
1844 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1845 # Try to create an executable without -o first, disregard a.out.
1846 # It will help us diagnose broken compilers, and finding out an intuition
1848 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1849 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1850 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1851 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1852 (eval $ac_link_default) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; then
1856 # Find the output, starting from the most likely. This scheme is
1857 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1860 # Be careful to initialize this variable, since it used to be cached.
1861 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1863 # b.out is created by i960 compilers.
1864 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1866 test -f "$ac_file" ||
continue
1868 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1871 # This is the source file.
1874 # We found the default executable, but exeext='' is most
1878 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1879 # FIXME: I believe we export ac_cv_exeext for Libtool,
1880 # but it would be cool to find out if it's true. Does anybody
1881 # maintain Libtool? --akim.
1889 echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.
$ac_ext >&5
1892 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: C compiler cannot create executables
1895 See \`config.log' for more details." >&2;}
1896 { (exit 77); exit 77; }; }
1899 ac_exeext
=$ac_cv_exeext
1900 echo "$as_me:$LINENO: result: $ac_file" >&5
1901 echo "${ECHO_T}$ac_file" >&6
1903 # Check the compiler produces executables we can run. If not, either
1904 # the compiler is broken, or we cross compile.
1905 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1906 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1907 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1908 # If not cross compiling, check that we can run a simple program.
1909 if test "$cross_compiling" != yes; then
1910 if { ac_try
='./$ac_file'
1911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }; }; then
1918 if test "$cross_compiling" = maybe
; then
1921 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1922 If you meant to cross compile, use \`--host'.
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: cannot run C compiled programs.
1925 If you meant to cross compile, use \`--host'.
1926 See \`config.log' for more details." >&2;}
1927 { (exit 1); exit 1; }; }
1931 echo "$as_me:$LINENO: result: yes" >&5
1932 echo "${ECHO_T}yes" >&6
1934 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1935 ac_clean_files
=$ac_clean_files_save
1936 # Check the compiler produces executables we can run. If not, either
1937 # the compiler is broken, or we cross compile.
1938 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1939 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1940 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1941 echo "${ECHO_T}$cross_compiling" >&6
1943 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1944 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1946 (eval $ac_link) 2>&5
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; then
1950 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1951 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1952 # work properly (i.e., refer to `conftest.exe'), while it won't with
1954 for ac_file
in conftest.exe conftest conftest.
*; do
1955 test -f "$ac_file" ||
continue
1957 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1958 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1965 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1966 See \`config.log' for more details." >&5
1967 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1968 See \`config.log' for more details." >&2;}
1969 { (exit 1); exit 1; }; }
1972 rm -f conftest
$ac_cv_exeext
1973 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1974 echo "${ECHO_T}$ac_cv_exeext" >&6
1976 rm -f conftest.
$ac_ext
1977 EXEEXT
=$ac_cv_exeext
1979 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1980 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1981 if test "${ac_cv_objext+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 cat >conftest.
$ac_ext <<_ACEOF
1987 cat confdefs.h
>>conftest.
$ac_ext
1988 cat >>conftest.
$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1999 rm -f conftest.o conftest.obj
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; then
2005 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2007 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2008 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.
$ac_ext >&5
2016 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2019 See \`config.log' for more details." >&2;}
2020 { (exit 1); exit 1; }; }
2023 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2025 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2026 echo "${ECHO_T}$ac_cv_objext" >&6
2027 OBJEXT
=$ac_cv_objext
2029 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2030 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2031 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 cat >conftest.
$ac_ext <<_ACEOF
2037 cat confdefs.h
>>conftest.
$ac_ext
2038 cat >>conftest.
$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2052 rm -f conftest.
$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2056 grep -v '^ *+' conftest.er1
>conftest.err
2058 cat conftest.err
>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try
='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try
='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.
$ac_ext >&5
2081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2082 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2085 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2086 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2087 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2088 ac_test_CFLAGS
=${CFLAGS+set}
2089 ac_save_CFLAGS
=$CFLAGS
2091 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2092 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2093 if test "${ac_cv_prog_cc_g+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 cat >conftest.
$ac_ext <<_ACEOF
2099 cat confdefs.h
>>conftest.
$ac_ext
2100 cat >>conftest.
$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2111 rm -f conftest.
$ac_objext
2112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>conftest.er1
2115 grep -v '^ *+' conftest.er1
>conftest.err
2117 cat conftest.err
>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); } &&
2120 { ac_try
='test -z "$ac_c_werror_flag"
2121 || test ! -s conftest.err'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; } &&
2127 { ac_try
='test -s conftest.$ac_objext'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2135 echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.
$ac_ext >&5
2140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2143 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2144 if test "$ac_test_CFLAGS" = set; then
2145 CFLAGS
=$ac_save_CFLAGS
2146 elif test $ac_cv_prog_cc_g = yes; then
2147 if test "$GCC" = yes; then
2153 if test "$GCC" = yes; then
2159 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2160 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2161 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 ac_cv_prog_cc_stdc
=no
2166 cat >conftest.
$ac_ext <<_ACEOF
2169 cat confdefs.h
>>conftest.
$ac_ext
2170 cat >>conftest.
$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2174 #include <sys/types.h>
2175 #include <sys/stat.h>
2176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2177 struct buf { int x; };
2178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2179 static char *e (p, i)
2185 static char *f (char * (*g) (char **, int), char **p, ...)
2190 s = g (p, va_arg (v,int));
2195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2196 function prototypes and stuff, but not '\xHH' hex character constants.
2197 These don't provoke an error unfortunately, instead are silently treated
2198 as 'x'. The following induces an error, until -std1 is added to get
2199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2200 array size at least. It's necessary to write '\x00'==0 to get something
2201 that's true only with -std1. */
2202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2204 int test (int i, double x);
2205 struct s1 {int (*f) (int a);};
2206 struct s2 {int (*f) (double a);};
2207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2218 # Don't try gcc -ansi; that turns off useful extensions and
2219 # breaks some systems' header files.
2220 # AIX -qlanglvl=ansi
2221 # Ultrix and OSF/1 -std1
2222 # HP-UX 10.20 and later -Ae
2223 # HP-UX older versions -Aa -D_HPUX_SOURCE
2224 # SVR4 -Xc -D__EXTENSIONS__
2225 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2227 CC
="$ac_save_CC $ac_arg"
2228 rm -f conftest.
$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2232 grep -v '^ *+' conftest.er1
>conftest.err
2234 cat conftest.err
>&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try
='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try
='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_cv_prog_cc_stdc
=$ac_arg
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.
$ac_ext >&5
2257 rm -f conftest.err conftest.
$ac_objext
2259 rm -f conftest.
$ac_ext conftest.
$ac_objext
2264 case "x$ac_cv_prog_cc_stdc" in
2266 echo "$as_me:$LINENO: result: none needed" >&5
2267 echo "${ECHO_T}none needed" >&6 ;;
2269 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2270 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2271 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2274 # Some people use a C++ compiler to compile C. Since we use `exit',
2275 # in C++ we need to declare it. In case someone uses the same compiler
2276 # for both compiling C and C++ we need to have the C++ compiler decide
2277 # the declaration of exit, since it's the most demanding environment.
2278 cat >conftest.
$ac_ext <<_ACEOF
2283 rm -f conftest.
$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2287 grep -v '^ *+' conftest.er1
>conftest.err
2289 cat conftest.err
>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try
='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try
='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 for ac_declaration
in \
2307 'extern "C" void std::exit (int) throw (); using std::exit;' \
2308 'extern "C" void std::exit (int); using std::exit;' \
2309 'extern "C" void exit (int) throw ();' \
2310 'extern "C" void exit (int);' \
2313 cat >conftest.
$ac_ext <<_ACEOF
2316 cat confdefs.h
>>conftest.
$ac_ext
2317 cat >>conftest.
$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2329 rm -f conftest.
$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>conftest.er1
2333 grep -v '^ *+' conftest.er1
>conftest.err
2335 cat conftest.err
>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); } &&
2338 { ac_try
='test -z "$ac_c_werror_flag"
2339 || test ! -s conftest.err'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; } &&
2345 { ac_try
='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.
$ac_ext >&5
2358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2359 cat >conftest.
$ac_ext <<_ACEOF
2362 cat confdefs.h
>>conftest.
$ac_ext
2363 cat >>conftest.
$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2374 rm -f conftest.
$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2378 grep -v '^ *+' conftest.er1
>conftest.err
2380 cat conftest.err
>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try
='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try
='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.
$ac_ext >&5
2402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2405 if test -n "$ac_declaration"; then
2406 echo '#ifdef __cplusplus' >>confdefs.h
2407 echo $ac_declaration >>confdefs.h
2408 echo '#endif' >>confdefs.h
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.
$ac_ext >&5
2416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2418 ac_cpp
='$CPP $CPPFLAGS'
2419 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2423 if test "$GCC" = yes ; then
2424 if test "$SHLICC2" = yes ; then
2425 ac_cv_lbl_gcc_vers
=2
2428 echo "$as_me:$LINENO: checking gcc version" >&5
2429 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2430 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2434 sed -e '/^gcc version /!d' \
2435 -e 's/^gcc version //' \
2436 -e 's/ .*//' -e 's/^[^0-9]*//' \
2440 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2441 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2442 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2447 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2448 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2449 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.
$ac_ext <<_ACEOF
2456 cat confdefs.h
>>conftest.
$ac_ext
2457 cat >>conftest.
$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2459 #include <sys/types.h>
2463 int frob(int, char *)
2468 rm -f conftest.
$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2472 grep -v '^ *+' conftest.er1
>conftest.err
2474 cat conftest.err
>&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try
='test -z "$ac_c_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try
='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 ac_cv_lbl_cc_ansi_prototypes
=yes
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.
$ac_ext >&5
2495 ac_cv_lbl_cc_ansi_prototypes
=no
2497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2500 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2501 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2502 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2503 case "$target_os" in
2506 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2507 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2508 savedcflags
="$CFLAGS"
2509 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2510 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 cat >conftest.
$ac_ext <<_ACEOF
2516 cat confdefs.h
>>conftest.
$ac_ext
2517 cat >>conftest.
$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #include <sys/types.h>
2523 int frob(int, char *)
2528 rm -f conftest.
$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1
>conftest.err
2534 cat conftest.err
>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try
='test -z "$ac_c_werror_flag"
2538 || test ! -s conftest.err'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; } &&
2544 { ac_try
='test -s conftest.$ac_objext'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 ac_cv_lbl_cc_hpux_cc_aa
=yes
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.
$ac_ext >&5
2555 ac_cv_lbl_cc_hpux_cc_aa
=no
2557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2560 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2561 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2562 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2563 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2564 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2565 { (exit 1); exit 1; }; }
2567 CFLAGS
="$savedcflags"
2568 V_CCOPT
="-Aa $V_CCOPT"
2570 cat >>confdefs.h
<<\_ACEOF
2571 #define _HPUX_SOURCE 1
2577 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2578 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2579 { (exit 1); exit 1; }; }
2583 V_INCLS
="$V_INCLS -I/usr/local/include"
2584 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2586 case "$target_os" in
2589 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
2593 V_CCOPT
="$V_CCOPT -std1 -g3"
2597 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2598 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2599 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 cat >conftest.
$ac_ext <<_ACEOF
2605 cat confdefs.h
>>conftest.
$ac_ext
2606 cat >>conftest.
$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608 #include <sys/types.h>
2612 struct a { int b; };
2613 void c(const struct a *)
2618 rm -f conftest.
$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1
>conftest.err
2624 cat conftest.err
>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try
='test -z "$ac_c_werror_flag"
2628 || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try
='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 ac_cv_lbl_cc_const_proto
=yes
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.
$ac_ext >&5
2645 ac_cv_lbl_cc_const_proto
=no
2647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2650 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2651 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2652 if test $ac_cv_lbl_cc_const_proto = no
; then
2653 cat >>confdefs.h
<<\_ACEOF
2662 echo "$as_me:$LINENO: checking for inline" >&5
2663 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2664 save_CFLAGS
="$CFLAGS"
2666 if test "${ac_cv_lbl_inline+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 for ac_lbl_inline
in inline __inline__ __inline
2674 cat >conftest.
$ac_ext <<_ACEOF
2677 cat confdefs.h
>>conftest.
$ac_ext
2678 cat >>conftest.
$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2680 #define inline $ac_lbl_inline
2681 static inline struct iltest *foo(void);
2687 static inline struct iltest *
2690 static struct iltest xxx;
2702 rm -f conftest.
$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1
>conftest.err
2708 cat conftest.err
>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try
='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try
='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 ac_lbl_cc_inline
=yes
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.
$ac_ext >&5
2730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2731 if test "$ac_lbl_cc_inline" = yes ; then
2735 if test "$ac_lbl_cc_inline" = yes ; then
2736 ac_cv_lbl_inline
=$ac_lbl_inline
2740 CFLAGS
="$save_CFLAGS"
2741 if test ! -z "$ac_cv_lbl_inline" ; then
2742 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2743 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2745 echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2749 cat >>confdefs.h
<<_ACEOF
2750 #define inline $ac_cv_lbl_inline
2754 echo "$as_me:$LINENO: checking for __attribute__" >&5
2755 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2756 if test "${ac_cv___attribute__+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 cat >conftest.
$ac_ext <<_ACEOF
2763 cat confdefs.h
>>conftest.
$ac_ext
2764 cat >>conftest.
$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2769 static void foo(void) __attribute__ ((noreturn));
2778 main(int argc, char **argv)
2784 rm -f conftest.
$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2788 grep -v '^ *+' conftest.er1
>conftest.err
2790 cat conftest.err
>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try
='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try
='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 ac_cv___attribute__
=yes
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.
$ac_ext >&5
2811 ac_cv___attribute__
=no
2813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2816 if test "$ac_cv___attribute__" = "yes"; then
2818 cat >>confdefs.h
<<\_ACEOF
2819 #define HAVE___ATTRIBUTE__ 1
2822 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2824 V_DEFS
="$V_DEFS -D_U_=\"\""
2826 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2827 echo "${ECHO_T}$ac_cv___attribute__" >&6
2830 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2831 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2832 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 cat >conftest.
$ac_ext <<_ACEOF
2838 cat confdefs.h
>>conftest.
$ac_ext
2839 cat >>conftest.
$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 # include "confdefs.h"
2843 # include <sys/types.h>
2845 # include <stdlib.h>
2846 # include <stddef.h>
2856 rm -f conftest.
$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>conftest.er1
2860 grep -v '^ *+' conftest.er1
>conftest.err
2862 cat conftest.err
>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try
='test -z "$ac_c_werror_flag"
2866 || test ! -s conftest.err'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; } &&
2872 { ac_try
='test -s conftest.$ac_objext'
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2878 ac_cv_lbl_have_u_int8_t
=yes
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.
$ac_ext >&5
2883 ac_cv_lbl_have_u_int8_t
=no
2885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2889 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2890 if test $ac_cv_lbl_have_u_int8_t = no
; then
2892 cat >>confdefs.h
<<\_ACEOF
2893 #define u_int8_t u_char
2897 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2898 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2899 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 cat >conftest.
$ac_ext <<_ACEOF
2905 cat confdefs.h
>>conftest.
$ac_ext
2906 cat >>conftest.
$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2909 # include "confdefs.h"
2910 # include <sys/types.h>
2912 # include <stdlib.h>
2913 # include <stddef.h>
2923 rm -f conftest.
$ac_objext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925 (eval $ac_compile) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1
>conftest.err
2929 cat conftest.err
>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try
='test -z "$ac_c_werror_flag"
2933 || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try
='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_cv_lbl_have_u_int16_t
=yes
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.
$ac_ext >&5
2950 ac_cv_lbl_have_u_int16_t
=no
2952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2956 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2957 if test $ac_cv_lbl_have_u_int16_t = no
; then
2959 cat >>confdefs.h
<<\_ACEOF
2960 #define u_int16_t u_short
2964 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2965 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2966 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 cat >conftest.
$ac_ext <<_ACEOF
2972 cat confdefs.h
>>conftest.
$ac_ext
2973 cat >>conftest.
$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2976 # include "confdefs.h"
2977 # include <sys/types.h>
2979 # include <stdlib.h>
2980 # include <stddef.h>
2990 rm -f conftest.
$ac_objext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2992 (eval $ac_compile) 2>conftest.er1
2994 grep -v '^ *+' conftest.er1
>conftest.err
2996 cat conftest.err
>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try
='test -z "$ac_c_werror_flag"
3000 || test ! -s conftest.err'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try
='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_cv_lbl_have_u_int32_t
=yes
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.
$ac_ext >&5
3017 ac_cv_lbl_have_u_int32_t
=no
3019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3022 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3023 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
3024 if test $ac_cv_lbl_have_u_int32_t = no
; then
3026 cat >>confdefs.h
<<\_ACEOF
3027 #define u_int32_t u_int
3031 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
3032 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
3033 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 cat >conftest.
$ac_ext <<_ACEOF
3039 cat confdefs.h
>>conftest.
$ac_ext
3040 cat >>conftest.
$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3043 # include "confdefs.h"
3044 # include <sys/types.h>
3046 # include <stdlib.h>
3047 # include <stddef.h>
3057 rm -f conftest.
$ac_objext
3058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059 (eval $ac_compile) 2>conftest.er1
3061 grep -v '^ *+' conftest.er1
>conftest.err
3063 cat conftest.err
>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 { ac_try
='test -z "$ac_c_werror_flag"
3067 || test ! -s conftest.err'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; } &&
3073 { ac_try
='test -s conftest.$ac_objext'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 ac_cv_lbl_have_u_int64_t
=yes
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 ac_cv_lbl_have_u_int64_t
=no
3086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3089 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
3090 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
3091 if test $ac_cv_lbl_have_u_int64_t = no
; then
3093 cat >>confdefs.h
<<\_ACEOF
3094 #define u_int64_t unsigned long long
3100 # Try to arrange for large file support.
3102 # Check whether --enable-largefile or --disable-largefile was given.
3103 if test "${enable_largefile+set}" = set; then
3104 enableval
="$enable_largefile"
3107 if test "$enable_largefile" != no
; then
3109 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3110 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3111 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 ac_cv_sys_largefile_CC
=no
3115 if test "$GCC" != yes; then
3118 # IRIX 6.2 and later do not support large files by default,
3119 # so use the C compiler's -n32 option if that helps.
3120 cat >conftest.
$ac_ext <<_ACEOF
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <sys/types.h>
3127 /* Check that off_t can represent 2**63 - 1 correctly.
3128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3129 since some C++ compilers masquerading as C compilers
3130 incorrectly reject 9223372036854775807. */
3131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3133 && LARGE_OFF_T % 2147483647 == 1)
3143 rm -f conftest.
$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
3147 grep -v '^ *+' conftest.er1
>conftest.err
3149 cat conftest.err
>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try
='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try
='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.
$ac_ext >&5
3171 rm -f conftest.err conftest.
$ac_objext
3173 rm -f conftest.
$ac_objext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3175 (eval $ac_compile) 2>conftest.er1
3177 grep -v '^ *+' conftest.er1
>conftest.err
3179 cat conftest.err
>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try
='test -z "$ac_c_werror_flag"
3183 || test ! -s conftest.err'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try
='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 ac_cv_sys_largefile_CC
=' -n32'; break
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.
$ac_ext >&5
3201 rm -f conftest.err conftest.
$ac_objext
3205 rm -f conftest.
$ac_ext
3208 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3209 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3210 if test "$ac_cv_sys_largefile_CC" != no
; then
3211 CC
=$CC$ac_cv_sys_largefile_CC
3214 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3215 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3216 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 ac_cv_sys_file_offset_bits
=no
3221 cat >conftest.
$ac_ext <<_ACEOF
3224 cat confdefs.h
>>conftest.
$ac_ext
3225 cat >>conftest.
$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227 #include <sys/types.h>
3228 /* Check that off_t can represent 2**63 - 1 correctly.
3229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3230 since some C++ compilers masquerading as C compilers
3231 incorrectly reject 9223372036854775807. */
3232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3234 && LARGE_OFF_T % 2147483647 == 1)
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1
>conftest.err
3250 cat conftest.err
>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try
='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.
$ac_ext >&5
3272 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3273 cat >conftest.
$ac_ext <<_ACEOF
3276 cat confdefs.h
>>conftest.
$ac_ext
3277 cat >>conftest.
$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #define _FILE_OFFSET_BITS 64
3280 #include <sys/types.h>
3281 /* Check that off_t can represent 2**63 - 1 correctly.
3282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3283 since some C++ compilers masquerading as C compilers
3284 incorrectly reject 9223372036854775807. */
3285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3287 && LARGE_OFF_T % 2147483647 == 1)
3297 rm -f conftest.
$ac_objext
3298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3299 (eval $ac_compile) 2>conftest.er1
3301 grep -v '^ *+' conftest.er1
>conftest.err
3303 cat conftest.err
>&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try
='test -z "$ac_c_werror_flag"
3307 || test ! -s conftest.err'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; } &&
3313 { ac_try
='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_sys_file_offset_bits
=64; break
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.
$ac_ext >&5
3325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3329 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3330 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3331 if test "$ac_cv_sys_file_offset_bits" != no
; then
3333 cat >>confdefs.h
<<_ACEOF
3334 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3339 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3340 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3341 if test "${ac_cv_sys_large_files+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 ac_cv_sys_large_files
=no
3346 cat >conftest.
$ac_ext <<_ACEOF
3349 cat confdefs.h
>>conftest.
$ac_ext
3350 cat >>conftest.
$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include <sys/types.h>
3353 /* Check that off_t can represent 2**63 - 1 correctly.
3354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3355 since some C++ compilers masquerading as C compilers
3356 incorrectly reject 9223372036854775807. */
3357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3359 && LARGE_OFF_T % 2147483647 == 1)
3369 rm -f conftest.
$ac_objext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>conftest.er1
3373 grep -v '^ *+' conftest.er1
>conftest.err
3375 cat conftest.err
>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try
='test -z "$ac_c_werror_flag"
3379 || test ! -s conftest.err'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try
='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.
$ac_ext >&5
3397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3398 cat >conftest.
$ac_ext <<_ACEOF
3401 cat confdefs.h
>>conftest.
$ac_ext
3402 cat >>conftest.
$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #define _LARGE_FILES 1
3405 #include <sys/types.h>
3406 /* Check that off_t can represent 2**63 - 1 correctly.
3407 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3408 since some C++ compilers masquerading as C compilers
3409 incorrectly reject 9223372036854775807. */
3410 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3411 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3412 && LARGE_OFF_T % 2147483647 == 1)
3422 rm -f conftest.
$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>conftest.er1
3426 grep -v '^ *+' conftest.er1
>conftest.err
3428 cat conftest.err
>&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try
='test -z "$ac_c_werror_flag"
3432 || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try
='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_cv_sys_large_files
=1; break
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.
$ac_ext >&5
3450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3454 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3455 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3456 if test "$ac_cv_sys_large_files" != no
; then
3458 cat >>confdefs.h
<<_ACEOF
3459 #define _LARGE_FILES $ac_cv_sys_large_files
3466 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
3467 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
3468 if test "${ac_cv_sys_largefile_source+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_sys_largefile_source
=no
3473 cat >conftest.
$ac_ext <<_ACEOF
3476 cat confdefs.h
>>conftest.
$ac_ext
3477 cat >>conftest.
$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3488 rm -f conftest.
$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3492 grep -v '^ *+' conftest.er1
>conftest.err
3494 cat conftest.err
>&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try
='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try
='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.
$ac_ext >&5
3516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3517 cat >conftest.
$ac_ext <<_ACEOF
3520 cat confdefs.h
>>conftest.
$ac_ext
3521 cat >>conftest.
$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #define _LARGEFILE_SOURCE 1
3533 rm -f conftest.
$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3537 grep -v '^ *+' conftest.er1
>conftest.err
3539 cat conftest.err
>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try
='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try
='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_sys_largefile_source
=1; break
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.
$ac_ext >&5
3561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3565 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
3566 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
3567 if test "$ac_cv_sys_largefile_source" != no
; then
3569 cat >>confdefs.h
<<_ACEOF
3570 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
3576 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
3577 # in glibc 2.1.3, but that breaks too many other things.
3578 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
3579 echo "$as_me:$LINENO: checking for fseeko" >&5
3580 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
3581 if test "${ac_cv_func_fseeko+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 cat >conftest.
$ac_ext <<_ACEOF
3587 cat confdefs.h
>>conftest.
$ac_ext
3588 cat >>conftest.
$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3594 return fseeko && fseeko (stdin, 0, 0);
3599 rm -f conftest.
$ac_objext conftest
$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1
>conftest.err
3605 cat conftest.err
>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try
='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try
='test -s conftest$ac_exeext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_cv_func_fseeko
=yes
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3626 ac_cv_func_fseeko
=no
3628 rm -f conftest.err conftest.
$ac_objext \
3629 conftest
$ac_exeext conftest.
$ac_ext
3631 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
3632 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
3633 if test $ac_cv_func_fseeko = yes; then
3635 cat >>confdefs.h
<<\_ACEOF
3636 #define HAVE_FSEEKO 1
3643 ac_cpp
='$CPP $CPPFLAGS'
3644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3647 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3648 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3649 # On Suns, sometimes $CPP names a directory.
3650 if test -n "$CPP" && test -d "$CPP"; then
3653 if test -z "$CPP"; then
3654 if test "${ac_cv_prog_CPP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # Double quotes because CPP needs to be expanded
3658 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3661 for ac_c_preproc_warn_flag
in '' yes
3663 # Use a header file that comes with gcc, so configuring glibc
3664 # with a fresh cross-compiler works.
3665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3666 # <limits.h> exists even on freestanding compilers.
3667 # On the NeXT, cc -E runs the code through the compiler's parser,
3668 # not just through cpp. "Syntax error" is here to catch this case.
3669 cat >conftest.
$ac_ext <<_ACEOF
3672 cat confdefs.h
>>conftest.
$ac_ext
3673 cat >>conftest.
$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3676 # include <limits.h>
3678 # include <assert.h>
3682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3683 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3685 grep -v '^ *+' conftest.er1
>conftest.err
3687 cat conftest.err
>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } >/dev
/null
; then
3690 if test -s conftest.err
; then
3691 ac_cpp_err
=$ac_c_preproc_warn_flag
3692 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3699 if test -z "$ac_cpp_err"; then
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.
$ac_ext >&5
3705 # Broken: fails on valid input.
3708 rm -f conftest.err conftest.
$ac_ext
3710 # OK, works on sane cases. Now check whether non-existent headers
3711 # can be detected and how.
3712 cat >conftest.
$ac_ext <<_ACEOF
3715 cat confdefs.h
>>conftest.
$ac_ext
3716 cat >>conftest.
$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 #include <ac_nonexistent.h>
3720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3721 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1
>conftest.err
3725 cat conftest.err
>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } >/dev
/null
; then
3728 if test -s conftest.err
; then
3729 ac_cpp_err
=$ac_c_preproc_warn_flag
3730 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3737 if test -z "$ac_cpp_err"; then
3738 # Broken: success on invalid input.
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.
$ac_ext >&5
3744 # Passes both tests.
3748 rm -f conftest.err conftest.
$ac_ext
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.err conftest.
$ac_ext
3753 if $ac_preproc_ok; then
3765 echo "$as_me:$LINENO: result: $CPP" >&5
3766 echo "${ECHO_T}$CPP" >&6
3768 for ac_c_preproc_warn_flag
in '' yes
3770 # Use a header file that comes with gcc, so configuring glibc
3771 # with a fresh cross-compiler works.
3772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773 # <limits.h> exists even on freestanding compilers.
3774 # On the NeXT, cc -E runs the code through the compiler's parser,
3775 # not just through cpp. "Syntax error" is here to catch this case.
3776 cat >conftest.
$ac_ext <<_ACEOF
3779 cat confdefs.h
>>conftest.
$ac_ext
3780 cat >>conftest.
$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3783 # include <limits.h>
3785 # include <assert.h>
3789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3790 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3792 grep -v '^ *+' conftest.er1
>conftest.err
3794 cat conftest.err
>&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } >/dev
/null
; then
3797 if test -s conftest.err
; then
3798 ac_cpp_err
=$ac_c_preproc_warn_flag
3799 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3806 if test -z "$ac_cpp_err"; then
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.
$ac_ext >&5
3812 # Broken: fails on valid input.
3815 rm -f conftest.err conftest.
$ac_ext
3817 # OK, works on sane cases. Now check whether non-existent headers
3818 # can be detected and how.
3819 cat >conftest.
$ac_ext <<_ACEOF
3822 cat confdefs.h
>>conftest.
$ac_ext
3823 cat >>conftest.
$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3828 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1
>conftest.err
3832 cat conftest.err
>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev
/null
; then
3835 if test -s conftest.err
; then
3836 ac_cpp_err
=$ac_c_preproc_warn_flag
3837 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3844 if test -z "$ac_cpp_err"; then
3845 # Broken: success on invalid input.
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.
$ac_ext >&5
3851 # Passes both tests.
3855 rm -f conftest.err conftest.
$ac_ext
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.
$ac_ext
3860 if $ac_preproc_ok; then
3863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3864 See \`config.log' for more details." >&5
3865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3866 See \`config.log' for more details." >&2;}
3867 { (exit 1); exit 1; }; }
3871 ac_cpp
='$CPP $CPPFLAGS'
3872 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3877 echo "$as_me:$LINENO: checking for egrep" >&5
3878 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3879 if test "${ac_cv_prog_egrep+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3883 then ac_cv_prog_egrep
='grep -E'
3884 else ac_cv_prog_egrep
='egrep'
3887 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3888 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3889 EGREP
=$ac_cv_prog_egrep
3892 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3893 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3894 if test "${ac_cv_header_stdc+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. */
3916 rm -f conftest.
$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>conftest.er1
3920 grep -v '^ *+' conftest.er1
>conftest.err
3922 cat conftest.err
>&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try
='test -z "$ac_c_werror_flag"
3926 || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try
='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_header_stdc
=yes
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.
$ac_ext >&5
3943 ac_cv_header_stdc
=no
3945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3947 if test $ac_cv_header_stdc = yes; then
3948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3949 cat >conftest.
$ac_ext <<_ACEOF
3952 cat confdefs.h
>>conftest.
$ac_ext
3953 cat >>conftest.
$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "memchr" >/dev
/null
2>&1; then
3962 ac_cv_header_stdc
=no
3968 if test $ac_cv_header_stdc = yes; then
3969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3970 cat >conftest.
$ac_ext <<_ACEOF
3973 cat confdefs.h
>>conftest.
$ac_ext
3974 cat >>conftest.
$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3980 $EGREP "free" >/dev
/null
2>&1; then
3983 ac_cv_header_stdc
=no
3989 if test $ac_cv_header_stdc = yes; then
3990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3991 if test "$cross_compiling" = yes; then
3994 cat >conftest.
$ac_ext <<_ACEOF
3997 cat confdefs.h
>>conftest.
$ac_ext
3998 cat >>conftest.
$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4001 #if ((' ' & 0x0FF) == 0x020)
4002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4005 # define ISLOWER(c) \
4006 (('a' <= (c) && (c) <= 'i') \
4007 || ('j' <= (c) && (c) <= 'r') \
4008 || ('s' <= (c) && (c) <= 'z'))
4009 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4017 for (i = 0; i < 256; i++)
4018 if (XOR (islower (i), ISLOWER (i))
4019 || toupper (i) != TOUPPER (i))
4024 rm -f conftest
$ac_exeext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4026 (eval $ac_link) 2>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4037 echo "$as_me: program exited with status $ac_status" >&5
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.
$ac_ext >&5
4042 ac_cv_header_stdc
=no
4044 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4048 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4049 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4050 if test $ac_cv_header_stdc = yes; then
4052 cat >>confdefs.h
<<\_ACEOF
4053 #define STDC_HEADERS 1
4058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4068 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4069 inttypes.h stdint.h unistd.h
4071 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4072 echo "$as_me:$LINENO: checking for $ac_header" >&5
4073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 cat >conftest.
$ac_ext <<_ACEOF
4080 cat confdefs.h
>>conftest.
$ac_ext
4081 cat >>conftest.
$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4085 #include <$ac_header>
4087 rm -f conftest.
$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4091 grep -v '^ *+' conftest.er1
>conftest.err
4093 cat conftest.err
>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try
='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try
='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 eval "$as_ac_Header=yes"
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.
$ac_ext >&5
4114 eval "$as_ac_Header=no"
4116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121 cat >>confdefs.h
<<_ACEOF
4122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4134 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
4136 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4138 echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4146 # Is the header compilable?
4147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4149 cat >conftest.
$ac_ext <<_ACEOF
4152 cat confdefs.h
>>conftest.
$ac_ext
4153 cat >>conftest.
$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 $ac_includes_default
4156 #include <$ac_header>
4158 rm -f conftest.
$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>conftest.er1
4162 grep -v '^ *+' conftest.er1
>conftest.err
4164 cat conftest.err
>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try
='test -z "$ac_c_werror_flag"
4168 || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try
='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_header_compiler
=yes
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.
$ac_ext >&5
4185 ac_header_compiler
=no
4187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4189 echo "${ECHO_T}$ac_header_compiler" >&6
4191 # Is the header present?
4192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4194 cat >conftest.
$ac_ext <<_ACEOF
4197 cat confdefs.h
>>conftest.
$ac_ext
4198 cat >>conftest.
$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <$ac_header>
4202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4203 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
4210 if test -s conftest.err
; then
4211 ac_cpp_err
=$ac_c_preproc_warn_flag
4212 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4219 if test -z "$ac_cpp_err"; then
4220 ac_header_preproc
=yes
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.
$ac_ext >&5
4225 ac_header_preproc
=no
4227 rm -f conftest.err conftest.
$ac_ext
4228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4229 echo "${ECHO_T}$ac_header_preproc" >&6
4231 # So? What about this header?
4232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4238 ac_header_preproc
=yes
4241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4255 ## ------------------------------------------ ##
4256 ## Report this to the AC_PACKAGE_NAME lists. ##
4257 ## ------------------------------------------ ##
4260 sed "s/^/$as_me: WARNING: /" >&2
4263 echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 eval "$as_ac_Header=\$ac_header_preproc"
4270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4275 cat >>confdefs.h
<<_ACEOF
4276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284 for ac_header
in net
/pfvar.h
4286 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 echo "$as_me:$LINENO: checking for $ac_header" >&5
4288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 cat >conftest.
$ac_ext <<_ACEOF
4295 cat confdefs.h
>>conftest.
$ac_ext
4296 cat >>conftest.
$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <sys/types.h>
4299 #include <sys/socket.h>
4302 #include <$ac_header>
4304 rm -f conftest.
$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1
>conftest.err
4310 cat conftest.err
>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try
='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try
='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 eval "$as_ac_Header=yes"
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.
$ac_ext >&5
4331 eval "$as_ac_Header=no"
4333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338 cat >>confdefs.h
<<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346 if test "$ac_cv_header_net_pfvar_h" == yes; then
4348 # Check for various PF actions.
4350 echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4351 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6
4352 cat >conftest.
$ac_ext <<_ACEOF
4355 cat confdefs.h
>>conftest.
$ac_ext
4356 cat >>conftest.
$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <sys/types.h>
4359 #include <sys/socket.h>
4361 #include <net/pfvar.h>
4365 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4370 rm -f conftest.
$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1
>conftest.err
4376 cat conftest.err
>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try
='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try
='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4393 echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6
4396 cat >>confdefs.h
<<\_ACEOF
4397 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.
$ac_ext >&5
4405 echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6
4408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4411 for ac_header
in netinet
/if_ether.h
4413 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414 echo "$as_me:$LINENO: checking for $ac_header" >&5
4415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 cat >conftest.
$ac_ext <<_ACEOF
4422 cat confdefs.h
>>conftest.
$ac_ext
4423 cat >>conftest.
$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <sys/types.h>
4426 #include <sys/socket.h>
4428 #include <$ac_header>
4430 rm -f conftest.
$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4434 grep -v '^ *+' conftest.er1
>conftest.err
4436 cat conftest.err
>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try
='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try
='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 eval "$as_ac_Header=yes"
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.
$ac_ext >&5
4457 eval "$as_ac_Header=no"
4459 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4464 cat >>confdefs.h
<<_ACEOF
4465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4472 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4474 # The simple test didn't work.
4475 # Do we need to include <net/if.h> first?
4476 # Unset ac_cv_header_netinet_if_ether_h so we don't
4477 # treat the previous failure as a cached value and
4478 # suppress the next test.
4480 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4481 echo "$as_me: Rechecking with some additional includes" >&6;}
4482 unset ac_cv_header_netinet_if_ether_h
4484 for ac_header
in netinet
/if_ether.h
4486 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487 echo "$as_me:$LINENO: checking for $ac_header" >&5
4488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 cat >conftest.
$ac_ext <<_ACEOF
4495 cat confdefs.h
>>conftest.
$ac_ext
4496 cat >>conftest.
$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 #include <sys/types.h>
4499 #include <sys/socket.h>
4500 #include <netinet/in.h>
4505 #include <$ac_header>
4507 rm -f conftest.
$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1
>conftest.err
4513 cat conftest.err
>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try
='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try
='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 eval "$as_ac_Header=yes"
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4534 eval "$as_ac_Header=no"
4536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541 cat >>confdefs.h
<<_ACEOF
4542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 if test "$GCC" = yes ; then
4552 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
4553 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
4554 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 cat >conftest.
$ac_ext <<_ACEOF
4560 cat confdefs.h
>>conftest.
$ac_ext
4561 cat >>conftest.
$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4564 * This generates a "duplicate case value" when fixincludes
4567 # include <sys/types.h>
4568 # include <sys/time.h>
4569 # include <sys/ioctl.h>
4570 # ifdef HAVE_SYS_IOCCOM_H
4571 # include <sys/ioccom.h>
4584 rm -f conftest.
$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>conftest.er1
4588 grep -v '^ *+' conftest.er1
>conftest.err
4590 cat conftest.err
>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try
='test -z "$ac_c_werror_flag"
4594 || test ! -s conftest.err'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; } &&
4600 { ac_try
='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_lbl_gcc_fixincludes
=yes
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.
$ac_ext >&5
4611 ac_cv_lbl_gcc_fixincludes
=no
4613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4616 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
4617 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
4618 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4619 # Don't cache failure
4620 unset ac_cv_lbl_gcc_fixincludes
4621 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
4622 echo "$as_me: error: see the INSTALL for more info" >&2;}
4623 { (exit 1); exit 1; }; }
4629 for ac_func
in strerror strlcpy
4631 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4632 echo "$as_me:$LINENO: checking for $ac_func" >&5
4633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4634 if eval "test \"\${$as_ac_var+set}\" = set"; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 cat confdefs.h
>>conftest.
$ac_ext
4641 cat >>conftest.
$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4645 #define $ac_func innocuous_$ac_func
4647 /* System header to define __stub macros and hopefully few prototypes,
4648 which can conflict with char $ac_func (); below.
4649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650 <limits.h> exists even on freestanding compilers. */
4653 # include <limits.h>
4655 # include <assert.h>
4660 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4668 /* The GNU C library defines this for functions which it implements
4669 to always fail with ENOSYS. Some functions are actually named
4670 something starting with __ and the normal name is an alias. */
4671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4674 char (*f) () = $ac_func;
4683 return f != $ac_func;
4688 rm -f conftest.
$ac_objext conftest
$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>conftest.er1
4692 grep -v '^ *+' conftest.er1
>conftest.err
4694 cat conftest.err
>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try
='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try
='test -s conftest$ac_exeext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 eval "$as_ac_var=yes"
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.
$ac_ext >&5
4715 eval "$as_ac_var=no"
4717 rm -f conftest.err conftest.
$ac_objext \
4718 conftest
$ac_exeext conftest.
$ac_ext
4720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4722 if test `eval echo '${'$as_ac_var'}'` = yes; then
4723 cat >>confdefs.h
<<_ACEOF
4724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4734 for ac_func
in vsnprintf snprintf
4736 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4737 echo "$as_me:$LINENO: checking for $ac_func" >&5
4738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4739 if eval "test \"\${$as_ac_var+set}\" = set"; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat >conftest.
$ac_ext <<_ACEOF
4745 cat confdefs.h
>>conftest.
$ac_ext
4746 cat >>conftest.
$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4750 #define $ac_func innocuous_$ac_func
4752 /* System header to define __stub macros and hopefully few prototypes,
4753 which can conflict with char $ac_func (); below.
4754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 <limits.h> exists even on freestanding compilers. */
4758 # include <limits.h>
4760 # include <assert.h>
4765 /* Override any gcc2 internal prototype to avoid an error. */
4770 /* We use char because int might match the return type of a gcc2
4771 builtin and then its argument prototype would still apply. */
4773 /* The GNU C library defines this for functions which it implements
4774 to always fail with ENOSYS. Some functions are actually named
4775 something starting with __ and the normal name is an alias. */
4776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 char (*f) () = $ac_func;
4788 return f != $ac_func;
4793 rm -f conftest.
$ac_objext conftest
$ac_exeext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795 (eval $ac_link) 2>conftest.er1
4797 grep -v '^ *+' conftest.er1
>conftest.err
4799 cat conftest.err
>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try
='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try
='test -s conftest$ac_exeext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 eval "$as_ac_var=yes"
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.
$ac_ext >&5
4820 eval "$as_ac_var=no"
4822 rm -f conftest.err conftest.
$ac_objext \
4823 conftest
$ac_exeext conftest.
$ac_ext
4825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4827 if test `eval echo '${'$as_ac_var'}'` = yes; then
4828 cat >>confdefs.h
<<_ACEOF
4829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4837 if test $needsnprintf = yes; then
4839 "snprintf.$ac_objext" | \
4840 *" snprintf.$ac_objext" | \
4841 "snprintf.$ac_objext "* | \
4842 *" snprintf.$ac_objext "* ) ;;
4843 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
4849 # Do this before checking for ether_hostton(), as it's a
4850 # "gethostbyname() -ish function".
4853 # Most operating systems have gethostbyname() in the default searched
4854 # libraries (i.e. libc):
4855 # Some OSes (eg. Solaris) place it in libnsl
4856 # Some strange OSes (SINIX) have it in libsocket:
4857 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4858 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
4859 if test "${ac_cv_search_gethostbyname+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 ac_func_search_save_LIBS
=$LIBS
4863 ac_cv_search_gethostbyname
=no
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 /* Override any gcc2 internal prototype to avoid an error. */
4875 /* We use char because int might match the return type of a gcc2
4876 builtin and then its argument prototype would still apply. */
4877 char gethostbyname ();
4886 rm -f conftest.
$ac_objext conftest
$ac_exeext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888 (eval $ac_link) 2>conftest.er1
4890 grep -v '^ *+' conftest.er1
>conftest.err
4892 cat conftest.err
>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try
='test -z "$ac_c_werror_flag"
4896 || test ! -s conftest.err'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; } &&
4902 { ac_try
='test -s conftest$ac_exeext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 ac_cv_search_gethostbyname
="none required"
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.
$ac_ext >&5
4914 rm -f conftest.err conftest.
$ac_objext \
4915 conftest
$ac_exeext conftest.
$ac_ext
4916 if test "$ac_cv_search_gethostbyname" = no
; then
4917 for ac_lib
in nsl socket resolv
; do
4918 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4919 cat >conftest.
$ac_ext <<_ACEOF
4922 cat confdefs.h
>>conftest.
$ac_ext
4923 cat >>conftest.
$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4926 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4932 char gethostbyname ();
4941 rm -f conftest.
$ac_objext conftest
$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>conftest.er1
4945 grep -v '^ *+' conftest.er1
>conftest.err
4947 cat conftest.err
>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try
='test -z "$ac_c_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try
='test -s conftest$ac_exeext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_cv_search_gethostbyname
="-l$ac_lib"
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.
$ac_ext >&5
4970 rm -f conftest.err conftest.
$ac_objext \
4971 conftest
$ac_exeext conftest.
$ac_ext
4974 LIBS
=$ac_func_search_save_LIBS
4976 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4977 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
4978 if test "$ac_cv_search_gethostbyname" != no
; then
4979 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
4983 # Unfortunately libsocket sometimes depends on libnsl and
4984 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4985 if test "$ac_cv_search_gethostbyname" = "no"
4987 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4988 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
4989 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_check_lib_save_LIBS
=$LIBS
4993 LIBS
="-lsocket -lnsl $LIBS"
4994 cat >conftest.
$ac_ext <<_ACEOF
4997 cat confdefs.h
>>conftest.
$ac_ext
4998 cat >>conftest.
$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5001 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5007 char gethostbyname ();
5016 rm -f conftest.
$ac_objext conftest
$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>conftest.er1
5020 grep -v '^ *+' conftest.er1
>conftest.err
5022 cat conftest.err
>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try
='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try
='test -s conftest$ac_exeext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_cv_lib_socket_gethostbyname
=yes
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.
$ac_ext >&5
5043 ac_cv_lib_socket_gethostbyname
=no
5045 rm -f conftest.err conftest.
$ac_objext \
5046 conftest
$ac_exeext conftest.
$ac_ext
5047 LIBS
=$ac_check_lib_save_LIBS
5049 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5050 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
5051 if test $ac_cv_lib_socket_gethostbyname = yes; then
5052 LIBS
="-lsocket -lnsl $LIBS"
5056 echo "$as_me:$LINENO: checking for library containing socket" >&5
5057 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5058 if test "${ac_cv_search_socket+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 ac_func_search_save_LIBS
=$LIBS
5062 ac_cv_search_socket
=no
5063 cat >conftest.
$ac_ext <<_ACEOF
5066 cat confdefs.h
>>conftest.
$ac_ext
5067 cat >>conftest.
$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5070 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5085 rm -f conftest.
$ac_objext conftest
$ac_exeext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5087 (eval $ac_link) 2>conftest.er1
5089 grep -v '^ *+' conftest.er1
>conftest.err
5091 cat conftest.err
>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try
='test -z "$ac_c_werror_flag"
5095 || test ! -s conftest.err'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try
='test -s conftest$ac_exeext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_cv_search_socket
="none required"
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.
$ac_ext >&5
5113 rm -f conftest.err conftest.
$ac_objext \
5114 conftest
$ac_exeext conftest.
$ac_ext
5115 if test "$ac_cv_search_socket" = no
; then
5116 for ac_lib
in socket
; do
5117 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5118 cat >conftest.
$ac_ext <<_ACEOF
5121 cat confdefs.h
>>conftest.
$ac_ext
5122 cat >>conftest.
$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5125 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5140 rm -f conftest.
$ac_objext conftest
$ac_exeext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>conftest.er1
5144 grep -v '^ *+' conftest.er1
>conftest.err
5146 cat conftest.err
>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try
='test -z "$ac_c_werror_flag"
5150 || test ! -s conftest.err'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; } &&
5156 { ac_try
='test -s conftest$ac_exeext'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 ac_cv_search_socket
="-l$ac_lib"
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.
$ac_ext >&5
5169 rm -f conftest.err conftest.
$ac_objext \
5170 conftest
$ac_exeext conftest.
$ac_ext
5173 LIBS
=$ac_func_search_save_LIBS
5175 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5176 echo "${ECHO_T}$ac_cv_search_socket" >&6
5177 if test "$ac_cv_search_socket" != no
; then
5178 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
5181 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5182 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5183 if test "${ac_cv_lib_socket_socket+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 ac_check_lib_save_LIBS
=$LIBS
5187 LIBS
="-lsocket -lnsl $LIBS"
5188 cat >conftest.
$ac_ext <<_ACEOF
5191 cat confdefs.h
>>conftest.
$ac_ext
5192 cat >>conftest.
$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5195 /* Override any gcc2 internal prototype to avoid an error. */
5199 /* We use char because int might match the return type of a gcc2
5200 builtin and then its argument prototype would still apply. */
5210 rm -f conftest.
$ac_objext conftest
$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>conftest.er1
5214 grep -v '^ *+' conftest.er1
>conftest.err
5216 cat conftest.err
>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try
='test -z "$ac_c_werror_flag"
5220 || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try
='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_lib_socket_socket
=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.
$ac_ext >&5
5237 ac_cv_lib_socket_socket
=no
5239 rm -f conftest.err conftest.
$ac_objext \
5240 conftest
$ac_exeext conftest.
$ac_ext
5241 LIBS
=$ac_check_lib_save_LIBS
5243 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5244 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5245 if test $ac_cv_lib_socket_socket = yes; then
5246 LIBS
="-lsocket -lnsl $LIBS"
5251 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5252 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5253 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
5254 if test "${ac_cv_search_putmsg+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 ac_func_search_save_LIBS
=$LIBS
5258 ac_cv_search_putmsg
=no
5259 cat >conftest.
$ac_ext <<_ACEOF
5262 cat confdefs.h
>>conftest.
$ac_ext
5263 cat >>conftest.
$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5266 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5281 rm -f conftest.
$ac_objext conftest
$ac_exeext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283 (eval $ac_link) 2>conftest.er1
5285 grep -v '^ *+' conftest.er1
>conftest.err
5287 cat conftest.err
>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try
='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try
='test -s conftest$ac_exeext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_search_putmsg
="none required"
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5309 rm -f conftest.err conftest.
$ac_objext \
5310 conftest
$ac_exeext conftest.
$ac_ext
5311 if test "$ac_cv_search_putmsg" = no
; then
5312 for ac_lib
in str
; do
5313 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5314 cat >conftest.
$ac_ext <<_ACEOF
5317 cat confdefs.h
>>conftest.
$ac_ext
5318 cat >>conftest.
$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5336 rm -f conftest.
$ac_objext conftest
$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>conftest.er1
5340 grep -v '^ *+' conftest.er1
>conftest.err
5342 cat conftest.err
>&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try
='test -z "$ac_c_werror_flag"
5346 || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try
='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_search_putmsg
="-l$ac_lib"
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.
$ac_ext >&5
5365 rm -f conftest.err conftest.
$ac_objext \
5366 conftest
$ac_exeext conftest.
$ac_ext
5369 LIBS
=$ac_func_search_save_LIBS
5371 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5372 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
5373 if test "$ac_cv_search_putmsg" != no
; then
5374 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
5381 # You are in a twisty little maze of UN*Xes, all different.
5382 # Some might not have ether_hostton().
5383 # Some might have it, but not declare it in any header file.
5384 # Some might have it, but declare it in <netinet/if_ether.h>.
5385 # Some might have it, but declare it in <netinet/ether.h>
5386 # (And some might have it but document it as something declared in
5387 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5389 # Before you is a C compiler.
5392 for ac_func
in ether_hostton
5394 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5395 echo "$as_me:$LINENO: checking for $ac_func" >&5
5396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5397 if eval "test \"\${$as_ac_var+set}\" = set"; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 cat >conftest.
$ac_ext <<_ACEOF
5403 cat confdefs.h
>>conftest.
$ac_ext
5404 cat >>conftest.
$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5408 #define $ac_func innocuous_$ac_func
5410 /* System header to define __stub macros and hopefully few prototypes,
5411 which can conflict with char $ac_func (); below.
5412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5413 <limits.h> exists even on freestanding compilers. */
5416 # include <limits.h>
5418 # include <assert.h>
5423 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5431 /* The GNU C library defines this for functions which it implements
5432 to always fail with ENOSYS. Some functions are actually named
5433 something starting with __ and the normal name is an alias. */
5434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5437 char (*f) () = $ac_func;
5446 return f != $ac_func;
5451 rm -f conftest.
$ac_objext conftest
$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1
>conftest.err
5457 cat conftest.err
>&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try
='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try
='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 eval "$as_ac_var=yes"
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.
$ac_ext >&5
5478 eval "$as_ac_var=no"
5480 rm -f conftest.err conftest.
$ac_objext \
5481 conftest
$ac_exeext conftest.
$ac_ext
5483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5485 if test `eval echo '${'$as_ac_var'}'` = yes; then
5486 cat >>confdefs.h
<<_ACEOF
5487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5493 if test "$ac_cv_func_ether_hostton" = yes; then
5495 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5497 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5499 # Yes. Does it declare ether_hostton()?
5501 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5502 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
5503 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 cat >conftest.
$ac_ext <<_ACEOF
5509 cat confdefs.h
>>conftest.
$ac_ext
5510 cat >>conftest.
$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5513 #include <sys/types.h>
5514 #include <sys/socket.h>
5515 #include <netinet/in.h>
5516 #include <arpa/inet.h>
5520 #include <netinet/if_ether.h>
5526 #ifndef ether_hostton
5527 char *p = (char *) ether_hostton;
5534 rm -f conftest.
$ac_objext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536 (eval $ac_compile) 2>conftest.er1
5538 grep -v '^ *+' conftest.er1
>conftest.err
5540 cat conftest.err
>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try
='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try
='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_have_decl_ether_hostton
=yes
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.
$ac_ext >&5
5561 ac_cv_have_decl_ether_hostton
=no
5563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5565 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5566 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
5567 if test $ac_cv_have_decl_ether_hostton = yes; then
5570 cat >>confdefs.h
<<\_ACEOF
5571 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5581 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5583 # No, how about <netinet/ether.h>, as on Linux?
5586 for ac_header
in netinet
/ether.h
5588 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5590 echo "$as_me:$LINENO: checking for $ac_header" >&5
5591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5598 # Is the header compilable?
5599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5601 cat >conftest.
$ac_ext <<_ACEOF
5604 cat confdefs.h
>>conftest.
$ac_ext
5605 cat >>conftest.
$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5608 #include <$ac_header>
5610 rm -f conftest.
$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5614 grep -v '^ *+' conftest.er1
>conftest.err
5616 cat conftest.err
>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try
='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try
='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_header_compiler
=yes
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.
$ac_ext >&5
5637 ac_header_compiler
=no
5639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5641 echo "${ECHO_T}$ac_header_compiler" >&6
5643 # Is the header present?
5644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5646 cat >conftest.
$ac_ext <<_ACEOF
5649 cat confdefs.h
>>conftest.
$ac_ext
5650 cat >>conftest.
$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <$ac_header>
5654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5655 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5657 grep -v '^ *+' conftest.er1
>conftest.err
5659 cat conftest.err
>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } >/dev
/null
; then
5662 if test -s conftest.err
; then
5663 ac_cpp_err
=$ac_c_preproc_warn_flag
5664 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5671 if test -z "$ac_cpp_err"; then
5672 ac_header_preproc
=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.
$ac_ext >&5
5677 ac_header_preproc
=no
5679 rm -f conftest.err conftest.
$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681 echo "${ECHO_T}$ac_header_preproc" >&6
5683 # So? What about this header?
5684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5690 ac_header_preproc
=yes
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5707 ## ------------------------------------------ ##
5708 ## Report this to the AC_PACKAGE_NAME lists. ##
5709 ## ------------------------------------------ ##
5712 sed "s/^/$as_me: WARNING: /" >&2
5715 echo "$as_me:$LINENO: checking for $ac_header" >&5
5716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 eval "$as_ac_Header=\$ac_header_preproc"
5722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5727 cat >>confdefs.h
<<_ACEOF
5728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735 if test "$ac_cv_header_netinet_ether_h" = yes; then
5737 # We have it - does it declare ether_hostton()?
5738 # Unset ac_cv_have_decl_ether_hostton so we don't
5739 # treat the previous failure as a cached value and
5740 # suppress the next test.
5742 unset ac_cv_have_decl_ether_hostton
5743 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5744 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
5745 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 cat >conftest.
$ac_ext <<_ACEOF
5751 cat confdefs.h
>>conftest.
$ac_ext
5752 cat >>conftest.
$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5755 #include <netinet/ether.h>
5761 #ifndef ether_hostton
5762 char *p = (char *) ether_hostton;
5769 rm -f conftest.
$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1
>conftest.err
5775 cat conftest.err
>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try
='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try
='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_have_decl_ether_hostton
=yes
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.
$ac_ext >&5
5796 ac_cv_have_decl_ether_hostton
=no
5798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5800 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5801 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
5802 if test $ac_cv_have_decl_ether_hostton = yes; then
5805 cat >>confdefs.h
<<\_ACEOF
5806 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
5815 # Is ether_hostton() declared?
5817 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5819 # No, we'll have to declare it ourselves.
5820 # Do we have "struct ether_addr"?
5822 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
5823 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
5824 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 cat >conftest.
$ac_ext <<_ACEOF
5830 cat confdefs.h
>>conftest.
$ac_ext
5831 cat >>conftest.
$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 #include <sys/types.h>
5835 #include <sys/socket.h>
5836 #include <netinet/in.h>
5837 #include <arpa/inet.h>
5841 #include <netinet/if_ether.h>
5847 if ((struct ether_addr *) 0)
5849 if (sizeof (struct ether_addr))
5855 rm -f conftest.
$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5859 grep -v '^ *+' conftest.er1
>conftest.err
5861 cat conftest.err
>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try
='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try
='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_cv_type_struct_ether_addr
=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5882 ac_cv_type_struct_ether_addr
=no
5884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5886 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
5887 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
5888 if test $ac_cv_type_struct_ether_addr = yes; then
5890 cat >>confdefs.h
<<_ACEOF
5891 #define HAVE_STRUCT_ETHER_ADDR 1
5898 cat >>confdefs.h
<<\_ACEOF
5899 #define HAVE_DECL_ETHER_HOSTTON 0
5904 cat >>confdefs.h
<<\_ACEOF
5905 #define HAVE_DECL_ETHER_HOSTTON 1
5911 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
5912 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
5913 # Check whether --enable-protochain or --disable-protochain was given.
5914 if test "${enable_protochain+set}" = set; then
5915 enableval
="$enable_protochain"
5918 case "x$enable_protochain" in
5919 xyes
) enable_protochain
=enabled
;;
5920 xno
) enable_protochain
=disabled
;;
5921 x
) enable_protochain
=enabled
;;
5924 if test "$enable_protochain" = "disabled"; then
5926 cat >>confdefs.h
<<\_ACEOF
5927 #define NO_PROTOCHAIN 1
5931 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
5932 echo "${ECHO_T}${enable_protochain}" >&6
5935 # SITA support is mutually exclusive with native capture support;
5936 # "--with-sita" selects SITA support.
5939 # Check whether --with-sita or --without-sita was given.
5940 if test "${with_sita+set}" = set; then
5941 withval
="$with_sita"
5944 cat >>confdefs.h
<<\_ACEOF
5948 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
5949 echo "$as_me: Enabling SITA ACN support" >&6;}
5955 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5956 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
5957 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
5958 { (exit 1); exit 1; }; }
5961 # Check whether --with-pcap or --without-pcap was given.
5962 if test "${with_pcap+set}" = set; then
5963 withval
="$with_pcap"
5966 echo "$as_me:$LINENO: checking packet capture type" >&5
5967 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
5968 if test ! -z "$with_pcap" ; then
5970 elif test -r /dev
/bpf
; then
5972 # Cloning BPF device.
5976 cat >>confdefs.h
<<\_ACEOF
5977 #define HAVE_CLONING_BPF 1
5980 elif test -r /dev
/bpf0
; then
5982 elif test -r /usr
/include
/net
/pfilt.h
; then
5984 elif test -r /dev
/enet
; then
5986 elif test -r /dev
/nit
; then
5988 elif test -r /usr
/include
/sys
/net
/nit.h
; then
5990 elif test -r /usr
/include
/linux
/socket.h
; then
5992 elif test -r /usr
/include
/net
/raw.h
; then
5994 elif test -r /usr
/include
/odmi.h
; then
5996 # On AIX, the BPF devices might not yet be present - they're
5997 # created the first time libpcap runs after booting.
5998 # We check for odmi.h instead.
6001 elif test -r /usr
/include
/sys
/dlpi.h
; then
6003 elif test -c /dev
/bpf0
; then # check again in case not readable
6005 elif test -c /dev
/enet
; then # check again in case not readable
6007 elif test -c /dev
/nit
; then # check again in case not readable
6012 echo "$as_me:$LINENO: result: $V_PCAP" >&5
6013 echo "${ECHO_T}$V_PCAP" >&6
6015 if test "$V_PCAP" = dlpi
6018 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6019 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6020 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6021 # private version also existed, which did not have the same APIs.
6022 # Due to a gcc bug, the default search path for 32-bit libraries does
6023 # not include /lib, we add it explicitly here.
6024 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6025 # Also, due to the bug above applications that link to libpcap with
6026 # libdlpi will have to add "-L/lib" option to "configure".
6028 saved_ldflags
=$LDFLAGS
6029 LDFLAGS
="$LIBS -L/lib"
6030 echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6031 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6
6032 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_check_lib_save_LIBS
=$LIBS
6037 cat >conftest.
$ac_ext <<_ACEOF
6040 cat confdefs.h
>>conftest.
$ac_ext
6041 cat >>conftest.
$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6044 /* Override any gcc2 internal prototype to avoid an error. */
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6059 rm -f conftest.
$ac_objext conftest
$ac_exeext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061 (eval $ac_link) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1
>conftest.err
6065 cat conftest.err
>&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try
='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try
='test -s conftest$ac_exeext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_lib_dlpi_dlpi_walk
=yes
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.
$ac_ext >&5
6086 ac_cv_lib_dlpi_dlpi_walk
=no
6088 rm -f conftest.err conftest.
$ac_objext \
6089 conftest
$ac_exeext conftest.
$ac_ext
6090 LIBS
=$ac_check_lib_save_LIBS
6092 echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6093 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6
6094 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
6098 cat >>confdefs.h
<<\_ACEOF
6099 #define HAVE_LIBDLPI 1
6106 LDFLAGS
=$saved_ldflags
6109 if test "$V_PCAP" = null
6112 # We can't capture, so we can't open any capture
6113 # devices, so we won't return any interfaces.
6117 echo "$as_me:$LINENO: checking for getifaddrs" >&5
6118 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
6119 if test "${ac_cv_func_getifaddrs+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
6129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6130 #define getifaddrs innocuous_getifaddrs
6132 /* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char getifaddrs (); below.
6134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135 <limits.h> exists even on freestanding compilers. */
6138 # include <limits.h>
6140 # include <assert.h>
6145 /* Override any gcc2 internal prototype to avoid an error. */
6150 /* We use char because int might match the return type of a gcc2
6151 builtin and then its argument prototype would still apply. */
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
6159 char (*f) () = getifaddrs;
6168 return f != getifaddrs;
6173 rm -f conftest.
$ac_objext conftest
$ac_exeext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>conftest.er1
6177 grep -v '^ *+' conftest.er1
>conftest.err
6179 cat conftest.err
>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try
='test -z "$ac_c_werror_flag"
6183 || test ! -s conftest.err'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try
='test -s conftest$ac_exeext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_func_getifaddrs
=yes
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.
$ac_ext >&5
6200 ac_cv_func_getifaddrs
=no
6202 rm -f conftest.err conftest.
$ac_objext \
6203 conftest
$ac_exeext conftest.
$ac_ext
6205 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
6206 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
6207 if test $ac_cv_func_getifaddrs = yes; then
6210 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6211 # as well, just in case some platform is really weird.
6213 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6214 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6215 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
6216 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6220 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
6222 # Is the header compilable?
6223 echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6224 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
6225 cat >conftest.
$ac_ext <<_ACEOF
6228 cat confdefs.h
>>conftest.
$ac_ext
6229 cat >>conftest.
$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 $ac_includes_default
6232 #include <ifaddrs.h>
6234 rm -f conftest.
$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6238 grep -v '^ *+' conftest.er1
>conftest.err
6240 cat conftest.err
>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try
='test -z "$ac_c_werror_flag"
6244 || test ! -s conftest.err'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; } &&
6250 { ac_try
='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_header_compiler
=yes
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.
$ac_ext >&5
6261 ac_header_compiler
=no
6263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6265 echo "${ECHO_T}$ac_header_compiler" >&6
6267 # Is the header present?
6268 echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6269 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
6270 cat >conftest.
$ac_ext <<_ACEOF
6273 cat confdefs.h
>>conftest.
$ac_ext
6274 cat >>conftest.
$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <ifaddrs.h>
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } >/dev
/null
; then
6286 if test -s conftest.err
; then
6287 ac_cpp_err
=$ac_c_preproc_warn_flag
6288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6295 if test -z "$ac_cpp_err"; then
6296 ac_header_preproc
=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.
$ac_ext >&5
6301 ac_header_preproc
=no
6303 rm -f conftest.err conftest.
$ac_ext
6304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6305 echo "${ECHO_T}$ac_header_preproc" >&6
6307 # So? What about this header?
6308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6310 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6311 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6313 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6314 ac_header_preproc
=yes
6317 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6318 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6320 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6322 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6324 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6326 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6328 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
6331 ## ------------------------------------------ ##
6332 ## Report this to the AC_PACKAGE_NAME lists. ##
6333 ## ------------------------------------------ ##
6336 sed "s/^/$as_me: WARNING: /" >&2
6339 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6340 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
6341 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 ac_cv_header_ifaddrs_h
=$ac_header_preproc
6346 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6347 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
6350 if test $ac_cv_header_ifaddrs_h = yes; then
6353 # We have the header, so we use "getifaddrs()" to
6354 # get the list of interfaces.
6361 # We don't have the header - give up.
6362 # XXX - we could also fall back on some other
6363 # mechanism, but, for now, this'll catch this
6364 # problem so that we can at least try to figure
6365 # out something to do on systems with "getifaddrs()"
6366 # but without "ifaddrs.h", if there is something
6367 # we can do on those systems.
6369 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
6370 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
6371 { (exit 1); exit 1; }; }
6380 # Well, we don't have "getifaddrs()", so we have to use
6381 # some other mechanism; determine what that mechanism is.
6383 # The first thing we use is the type of capture mechanism,
6384 # which is somewhat of a proxy for the OS we're using.
6391 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
6393 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395 echo "$as_me:$LINENO: checking for $ac_header" >&5
6396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 # Is the header compilable?
6404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6406 cat >conftest.
$ac_ext <<_ACEOF
6409 cat confdefs.h
>>conftest.
$ac_ext
6410 cat >>conftest.
$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6413 #include <$ac_header>
6415 rm -f conftest.
$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6419 grep -v '^ *+' conftest.er1
>conftest.err
6421 cat conftest.err
>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try
='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try
='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 ac_header_compiler
=no
6444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.
$ac_ext <<_ACEOF
6454 cat confdefs.h
>>conftest.
$ac_ext
6455 cat >>conftest.
$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <$ac_header>
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1
>conftest.err
6464 cat conftest.err
>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev
/null
; then
6467 if test -s conftest.err
; then
6468 ac_cpp_err
=$ac_c_preproc_warn_flag
6469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc
=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6482 ac_header_preproc
=no
6484 rm -f conftest.err conftest.
$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6495 ac_header_preproc
=yes
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6512 ## ------------------------------------------ ##
6513 ## Report this to the AC_PACKAGE_NAME lists. ##
6514 ## ------------------------------------------ ##
6517 sed "s/^/$as_me: WARNING: /" >&2
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 eval "$as_ac_Header=\$ac_header_preproc"
6527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h
<<_ACEOF
6533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 # This might be Solaris 8 or later, with
6542 # SIOCGLIFCONF, or it might be some other OS
6543 # or some older version of Solaris, with
6546 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
6547 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
6548 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.
$ac_ext <<_ACEOF
6554 cat confdefs.h
>>conftest.
$ac_ext
6555 cat >>conftest.
$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <sys/param.h>
6558 #include <sys/file.h>
6559 #include <sys/ioctl.h>
6560 #include <sys/socket.h>
6561 #include <sys/sockio.h>
6565 ioctl(0, SIOCGLIFCONF, (char *)0);
6570 rm -f conftest.
$ac_objext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>conftest.er1
6574 grep -v '^ *+' conftest.er1
>conftest.err
6576 cat conftest.err
>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try
='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try
='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_lbl_have_siocglifconf
=yes
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.
$ac_ext >&5
6597 ac_cv_lbl_have_siocglifconf
=no
6599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
6603 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
6604 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6610 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6617 # Assume we just have SIOCGIFCONF.
6618 # (XXX - on at least later Linux kernels, there's
6619 # another mechanism, and we should be using that
6631 echo "$as_me:$LINENO: checking for socklen_t" >&5
6632 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6640 #include <sys/types.h>
6641 #include <sys/socket.h>
6651 rm -f conftest.
$ac_objext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>conftest.er1
6655 grep -v '^ *+' conftest.er1
>conftest.err
6657 cat conftest.err
>&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try
='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try
='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.
$ac_ext >&5
6680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6681 if test "x$have_socklen_t" = "xyes"; then
6683 cat >>confdefs.h
<<\_ACEOF
6684 #define HAVE_SOCKLEN_T 1
6688 echo "$as_me:$LINENO: result: $have_socklen_t" >&5
6689 echo "${ECHO_T}$have_socklen_t" >&6
6691 # Check whether --enable-ipv6 or --disable-ipv6 was given.
6692 if test "${enable_ipv6+set}" = set; then
6693 enableval
="$enable_ipv6"
6696 enable_ipv6
=ifavailable
6698 if test "$enable_ipv6" != "no"; then
6699 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
6700 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
6701 if test "${ac_cv_func_getaddrinfo+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 cat >conftest.
$ac_ext <<_ACEOF
6707 cat confdefs.h
>>conftest.
$ac_ext
6708 cat >>conftest.
$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
6711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6712 #define getaddrinfo innocuous_getaddrinfo
6714 /* System header to define __stub macros and hopefully few prototypes,
6715 which can conflict with char getaddrinfo (); below.
6716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6717 <limits.h> exists even on freestanding compilers. */
6720 # include <limits.h>
6722 # include <assert.h>
6727 /* Override any gcc2 internal prototype to avoid an error. */
6732 /* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6734 char getaddrinfo ();
6735 /* The GNU C library defines this for functions which it implements
6736 to always fail with ENOSYS. Some functions are actually named
6737 something starting with __ and the normal name is an alias. */
6738 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
6741 char (*f) () = getaddrinfo;
6750 return f != getaddrinfo;
6755 rm -f conftest.
$ac_objext conftest
$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1
>conftest.err
6761 cat conftest.err
>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try
='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try
='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_func_getaddrinfo
=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6782 ac_cv_func_getaddrinfo
=no
6784 rm -f conftest.err conftest.
$ac_objext \
6785 conftest
$ac_exeext conftest.
$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
6788 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
6789 if test $ac_cv_func_getaddrinfo = yes; then
6792 cat >>confdefs.h
<<\_ACEOF
6799 if test "$enable_ipv6" != "ifavailable"; then
6800 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
6801 See \`config.log' for more details." >&5
6802 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
6803 See \`config.log' for more details." >&2;}
6804 { (exit 1); exit 1; }; }
6811 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
6812 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
6813 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
6814 if test "${enable_optimizer_dbg+set}" = set; then
6815 enableval
="$enable_optimizer_dbg"
6818 if test "$enable_optimizer_dbg" = "yes"; then
6820 cat >>confdefs.h
<<\_ACEOF
6825 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
6826 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
6828 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
6829 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
6830 # Check whether --enable-yydebug or --disable-yydebug was given.
6831 if test "${enable_yydebug+set}" = set; then
6832 enableval
="$enable_yydebug"
6835 if test "$enable_yydebug" = "yes"; then
6837 cat >>confdefs.h
<<\_ACEOF
6842 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
6843 echo "${ECHO_T}${enable_yydebug-no}" >&6
6848 echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
6849 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6
6850 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 cat >conftest.
$ac_ext <<_ACEOF
6856 cat confdefs.h
>>conftest.
$ac_ext
6857 cat >>conftest.
$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6860 #include <sys/types.h>
6861 #include <sys/time.h>
6862 #include <sys/dlpi.h>
6867 int i = DL_PROMISC_PHYS;
6872 rm -f conftest.
$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1
>conftest.err
6878 cat conftest.err
>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try
='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try
='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_sys_dlpi_usable
=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.
$ac_ext >&5
6899 ac_cv_sys_dlpi_usable
=no
6901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6904 echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
6905 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6
6906 if test $ac_cv_sys_dlpi_usable = no
; then
6907 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
6908 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
6909 { (exit 1); exit 1; }; }
6911 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
6912 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
6913 if test -c /dev
/dlpi
; then
6914 echo "$as_me:$LINENO: result: yes" >&5
6915 echo "${ECHO_T}yes" >&6
6917 cat >>confdefs.h
<<\_ACEOF
6918 #define HAVE_DEV_DLPI 1
6922 echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6
6925 echo "$as_me:$LINENO: checking for $dir directory" >&5
6926 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
6927 if test -d $dir ; then
6928 echo "$as_me:$LINENO: result: yes" >&5
6929 echo "${ECHO_T}yes" >&6
6931 cat >>confdefs.h
<<_ACEOF
6932 #define PCAP_DEV_PREFIX "$dir"
6936 echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6
6941 # This check is for Solaris with DLPI support for passive modes.
6942 # See dlpi(7P) for more details.
6944 echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
6945 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6
6946 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.
$ac_ext <<_ACEOF
6952 cat confdefs.h
>>conftest.
$ac_ext
6953 cat >>conftest.
$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6956 # include <sys/types.h>
6957 # include <sys/dlpi.h>
6961 u_int i = sizeof(dl_passive_req_t)
6966 rm -f conftest.
$ac_objext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968 (eval $ac_compile) 2>conftest.er1
6970 grep -v '^ *+' conftest.er1
>conftest.err
6972 cat conftest.err
>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try
='test -z "$ac_c_werror_flag"
6976 || test ! -s conftest.err'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; } &&
6982 { ac_try
='test -s conftest.$ac_objext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 ac_cv_lbl_has_dl_passive_req_t
=yes
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.
$ac_ext >&5
6993 ac_cv_lbl_has_dl_passive_req_t
=no
6995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6998 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
6999 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6
7000 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7002 cat >>confdefs.h
<<\_ACEOF
7003 #define HAVE_DLPI_PASSIVE 1
7010 echo "$as_me:$LINENO: checking Linux kernel version" >&5
7011 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
7012 if test "$cross_compiling" = yes; then
7013 if test "${ac_cv_linux_vers+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 ac_cv_linux_vers
=unknown
7020 if test "${ac_cv_linux_vers+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 ac_cv_linux_vers
=`uname -r 2>&1 | \
7024 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7028 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
7029 echo "${ECHO_T}$ac_cv_linux_vers" >&6
7030 if test $ac_cv_linux_vers = unknown
; then
7031 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
7032 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
7033 { (exit 1); exit 1; }; }
7035 if test $ac_cv_linux_vers -lt 2 ; then
7036 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
7037 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
7038 { (exit 1); exit 1; }; }
7041 for ac_header
in linux
/wireless.h
7043 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7044 echo "$as_me:$LINENO: checking for $ac_header" >&5
7045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 cat >conftest.
$ac_ext <<_ACEOF
7052 cat confdefs.h
>>conftest.
$ac_ext
7053 cat >>conftest.
$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7056 #include <sys/socket.h>
7058 #include <linux/types.h>
7061 #include <$ac_header>
7063 rm -f conftest.
$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>conftest.er1
7067 grep -v '^ *+' conftest.er1
>conftest.err
7069 cat conftest.err
>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try
='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try
='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 eval "$as_ac_Header=yes"
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.
$ac_ext >&5
7090 eval "$as_ac_Header=no"
7092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097 cat >>confdefs.h
<<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7107 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7109 echo "$as_me:$LINENO: checking for $ac_header" >&5
7110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7117 # Is the header compilable?
7118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7120 cat >conftest.
$ac_ext <<_ACEOF
7123 cat confdefs.h
>>conftest.
$ac_ext
7124 cat >>conftest.
$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 #include <$ac_header>
7129 rm -f conftest.
$ac_objext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131 (eval $ac_compile) 2>conftest.er1
7133 grep -v '^ *+' conftest.er1
>conftest.err
7135 cat conftest.err
>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try
='test -z "$ac_c_werror_flag"
7139 || test ! -s conftest.err'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; } &&
7145 { ac_try
='test -s conftest.$ac_objext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 ac_header_compiler
=yes
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.
$ac_ext >&5
7156 ac_header_compiler
=no
7158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7160 echo "${ECHO_T}$ac_header_compiler" >&6
7162 # Is the header present?
7163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7165 cat >conftest.
$ac_ext <<_ACEOF
7168 cat confdefs.h
>>conftest.
$ac_ext
7169 cat >>conftest.
$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <$ac_header>
7173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7174 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1
>conftest.err
7178 cat conftest.err
>&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } >/dev
/null
; then
7181 if test -s conftest.err
; then
7182 ac_cpp_err
=$ac_c_preproc_warn_flag
7183 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7190 if test -z "$ac_cpp_err"; then
7191 ac_header_preproc
=yes
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.
$ac_ext >&5
7196 ac_header_preproc
=no
7198 rm -f conftest.err conftest.
$ac_ext
7199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7200 echo "${ECHO_T}$ac_header_preproc" >&6
7202 # So? What about this header?
7203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7209 ac_header_preproc
=yes
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7226 ## ------------------------------------------ ##
7227 ## Report this to the AC_PACKAGE_NAME lists. ##
7228 ## ------------------------------------------ ##
7231 sed "s/^/$as_me: WARNING: /" >&2
7234 echo "$as_me:$LINENO: checking for $ac_header" >&5
7235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 eval "$as_ac_Header=\$ac_header_preproc"
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h
<<_ACEOF
7247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7254 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7255 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
7256 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7266 # include <linux/if_packet.h>
7270 struct tpacket_stats stats
7275 rm -f conftest.
$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1
>conftest.err
7281 cat conftest.err
>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try
='test -z "$ac_c_werror_flag"
7285 || test ! -s conftest.err'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try
='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_cv_lbl_tpacket_stats
=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.
$ac_ext >&5
7302 ac_cv_lbl_tpacket_stats
=no
7304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7307 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7308 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
7309 if test $ac_cv_lbl_tpacket_stats = yes; then
7311 cat >>confdefs.h
<<\_ACEOF
7312 #define HAVE_TPACKET_STATS 1
7320 # Check whether we have the *BSD-style ioctls.
7323 for ac_header
in net
/if_media.h
7325 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7327 echo "$as_me:$LINENO: checking for $ac_header" >&5
7328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7335 # Is the header compilable?
7336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7338 cat >conftest.
$ac_ext <<_ACEOF
7341 cat confdefs.h
>>conftest.
$ac_ext
7342 cat >>conftest.
$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7345 #include <$ac_header>
7347 rm -f conftest.
$ac_objext
7348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7349 (eval $ac_compile) 2>conftest.er1
7351 grep -v '^ *+' conftest.er1
>conftest.err
7353 cat conftest.err
>&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
7356 { ac_try
='test -z "$ac_c_werror_flag"
7357 || test ! -s conftest.err'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; } &&
7363 { ac_try
='test -s conftest.$ac_objext'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7369 ac_header_compiler
=yes
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.
$ac_ext >&5
7374 ac_header_compiler
=no
7376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7378 echo "${ECHO_T}$ac_header_compiler" >&6
7380 # Is the header present?
7381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7383 cat >conftest.
$ac_ext <<_ACEOF
7386 cat confdefs.h
>>conftest.
$ac_ext
7387 cat >>conftest.
$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 #include <$ac_header>
7391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7392 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7394 grep -v '^ *+' conftest.er1
>conftest.err
7396 cat conftest.err
>&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } >/dev
/null
; then
7399 if test -s conftest.err
; then
7400 ac_cpp_err
=$ac_c_preproc_warn_flag
7401 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7408 if test -z "$ac_cpp_err"; then
7409 ac_header_preproc
=yes
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.
$ac_ext >&5
7414 ac_header_preproc
=no
7416 rm -f conftest.err conftest.
$ac_ext
7417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7418 echo "${ECHO_T}$ac_header_preproc" >&6
7420 # So? What about this header?
7421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7427 ac_header_preproc
=yes
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7444 ## ------------------------------------------ ##
7445 ## Report this to the AC_PACKAGE_NAME lists. ##
7446 ## ------------------------------------------ ##
7449 sed "s/^/$as_me: WARNING: /" >&2
7452 echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 eval "$as_ac_Header=\$ac_header_preproc"
7459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7464 cat >>confdefs.h
<<_ACEOF
7465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7475 V_DEFS
="$V_DEFS -DDAG_ONLY"
7479 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
7483 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7484 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7486 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7491 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
7492 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
7493 if test -r /proc
/net
/dev
; then
7494 ac_cv_lbl_proc_net_dev
=yes
7496 ac_cv_lbl_proc_net_dev
=no
7498 if test $ac_cv_lbl_proc_net_dev = yes; then
7500 cat >>confdefs.h
<<\_ACEOF
7501 #define HAVE_PROC_NET_DEV 1
7505 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
7506 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
7508 # Check for Endace DAG card support.
7510 # Check whether --with-dag or --without-dag was given.
7511 if test "${with_dag+set}" = set; then
7514 if test "$withval" = no
7516 # User doesn't want DAG support.
7518 elif test "$withval" = yes
7520 # User wants DAG support but hasn't specified a directory.
7523 # User wants DAG support and has specified a directory, so use the provided value.
7531 # Use DAG API if present, otherwise don't
7538 # Check whether --with-dag-includes or --without-dag-includes was given.
7539 if test "${with_dag_includes+set}" = set; then
7540 withval
="$with_dag_includes"
7542 # User wants DAG support and has specified a header directory, so use the provided value.
7544 dag_include_dir
=$withval
7549 # Check whether --with-dag-libraries or --without-dag-libraries was given.
7550 if test "${with_dag_libraries+set}" = set; then
7551 withval
="$with_dag_libraries"
7553 # User wants DAG support and has specified a library directory, so use the provided value.
7555 dag_lib_dir
=$withval
7562 # We support the DAG API if we're on Linux or BSD, or if we're
7563 # building a DAG-only libpcap.
7568 # If the user explicitly requested DAG, tell them it's not
7571 # If they expressed no preference, don't include it.
7573 if test $want_dag = yes; then
7574 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
7575 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
7576 { (exit 1); exit 1; }; }
7577 elif test $want_dag = yes; then
7583 ac_cv_lbl_dag_api
=no
7584 if test "$want_dag" != no
; then
7586 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
7587 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
7589 # If necessary, set default paths for DAG API headers and libraries.
7590 if test -z "$dag_root"; then
7594 if test -z "$dag_include_dir"; then
7595 dag_include_dir
="$dag_root/include"
7598 if test -z "$dag_lib_dir"; then
7599 dag_lib_dir
="$dag_root/lib"
7602 if test -z "$dag_tools_dir"; then
7603 dag_tools_dir
="$dag_root/tools"
7606 if test -r $dag_include_dir/dagapi.h
; then
7607 ac_cv_lbl_dag_api
=yes
7609 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
7610 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
7613 if test $ac_cv_lbl_dag_api = yes; then
7615 echo "$as_me:$LINENO: checking dagapi.o" >&5
7616 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
7618 if test -r $dag_tools_dir/dagapi.o
; then
7620 dagapi_obj
=$dag_tools_dir/dagapi.o
7621 elif test -r $dag_lib_dir/dagapi.o
; then
7623 dagapi_obj
=$dag_lib_dir/dagapi.o
7624 elif test -r $dag_lib_dir/libdag.a
; then
7626 ar x
$dag_lib_dir/libdag.a dagapi.o
2>/dev
/null
7627 if test -r .
/dagapi.o
; then
7628 dagapi_obj
=.
/dagapi.o
7630 ar x
$dag_lib_dir/libdag.a libdag_la-dagapi.o
2>/dev
/null
7631 if test -r .
/libdag_la-dagapi.o
; then
7632 dagapi_obj
=.
/libdag_la-dagapi.o
7637 if test $dagapi_obj = no
; then
7638 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
7639 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
7640 ac_cv_lbl_dag_api
=no
7642 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
7643 echo "${ECHO_T}yes ($dagapi_obj)" >&6
7647 if test $ac_cv_lbl_dag_api = yes; then
7649 echo "$as_me:$LINENO: checking dagopts.o" >&5
7650 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
7652 if test -r $dag_tools_dir/dagopts.o
; then
7654 dagopts_obj
=$dag_tools_dir/dagopts.o
7655 elif test -r $dag_lib_dir/dagopts.o
; then
7657 dagopts_obj
=$dag_lib_dir/dagopts.o
7658 elif test -r $dag_lib_dir/libdag.a
; then
7660 ar x
$dag_lib_dir/libdag.a dagopts.o
2>/dev
/null
7661 if test -r .
/dagopts.o
; then
7662 dagopts_obj
=.
/dagopts.o
7664 ar x
$dag_lib_dir/libdag.a libdag_la-dagopts.o
2>/dev
/null
7665 if test -r .
/libdag_la-dagopts.o
; then
7666 dagopts_obj
=.
/libdag_la-dagopts.o
7671 if test $dagopts_obj = no
; then
7672 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
7673 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
7674 ac_cv_lbl_dag_api
=no
7676 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
7677 echo "${ECHO_T}yes ($dagopts_obj)" >&6
7681 if test $ac_cv_lbl_dag_api = yes; then
7682 # Under 2.5.x only we need to add dagreg.o.
7683 if test -r $dag_include_dir/dagreg.h
; then
7684 echo "$as_me:$LINENO: checking dagreg.o" >&5
7685 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
7687 if test -r $dag_lib_dir/dagreg.o
; then
7688 # Object file is ready and waiting.
7689 dagreg_obj
=$dag_lib_dir/dagreg.o
7690 elif test -r $dag_lib_dir/libdag.a
; then
7691 # Extract from libdag.a.
7692 ar x
$dag_lib_dir/libdag.a dagreg.o
2>/dev
/null
7693 if test -r .
/dagreg.o
; then
7694 dagreg_obj
=.
/dagreg.o
7696 ar x
$dag_lib_dir/libdag.a libdag_la-dagreg.o
2>/dev
/null
7697 if test -r .
/libdag_la-dagreg.o
; then
7698 dagreg_obj
=.
/libdag_la-dagreg.o
7703 if test $dagreg_obj = no
; then
7704 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
7705 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
7706 ac_cv_lbl_dag_api
=no
7708 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
7709 echo "${ECHO_T}yes ($dagreg_obj)" >&6
7714 if test $ac_cv_lbl_dag_api = yes; then
7715 V_INCLS
="$V_INCLS -I$dag_include_dir"
7716 V_LIBS
="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
7717 if test $V_PCAP != dag
; then
7721 # See if we can find a general version string.
7722 # Don't need to save and restore LIBS to prevent -ldag being
7723 # included if there's a found-action (arg 3).
7724 saved_ldflags
=$LDFLAGS
7725 LDFLAGS
="-L$dag_lib_dir"
7726 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
7727 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
7728 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 ac_check_lib_save_LIBS
=$LIBS
7733 cat >conftest.
$ac_ext <<_ACEOF
7736 cat confdefs.h
>>conftest.
$ac_ext
7737 cat >>conftest.
$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7740 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746 char dag_attach_stream ();
7750 dag_attach_stream ();
7755 rm -f conftest.
$ac_objext conftest
$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>conftest.er1
7759 grep -v '^ *+' conftest.er1
>conftest.err
7761 cat conftest.err
>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try
='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try
='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_lib_dag_dag_attach_stream
=yes
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.
$ac_ext >&5
7782 ac_cv_lib_dag_dag_attach_stream
=no
7784 rm -f conftest.err conftest.
$ac_objext \
7785 conftest
$ac_exeext conftest.
$ac_ext
7786 LIBS
=$ac_check_lib_save_LIBS
7788 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7789 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
7790 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
7796 echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
7797 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6
7798 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_check_lib_save_LIBS
=$LIBS
7803 cat >conftest.
$ac_ext <<_ACEOF
7806 cat confdefs.h
>>conftest.
$ac_ext
7807 cat >>conftest.
$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7810 /* Override any gcc2 internal prototype to avoid an error. */
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7816 char dag_get_erf_types ();
7820 dag_get_erf_types ();
7825 rm -f conftest.
$ac_objext conftest
$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7829 grep -v '^ *+' conftest.er1
>conftest.err
7831 cat conftest.err
>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try
='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try
='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_lib_dag_dag_get_erf_types
=yes
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7852 ac_cv_lib_dag_dag_get_erf_types
=no
7854 rm -f conftest.err conftest.
$ac_objext \
7855 conftest
$ac_exeext conftest.
$ac_ext
7856 LIBS
=$ac_check_lib_save_LIBS
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7859 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6
7860 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
7863 cat >>confdefs.h
<<\_ACEOF
7864 #define HAVE_DAG_GET_ERF_TYPES 1
7869 echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
7870 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6
7871 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_check_lib_save_LIBS
=$LIBS
7876 cat >conftest.
$ac_ext <<_ACEOF
7879 cat confdefs.h
>>conftest.
$ac_ext
7880 cat >>conftest.
$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7883 /* Override any gcc2 internal prototype to avoid an error. */
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7889 char dag_get_stream_erf_types ();
7893 dag_get_stream_erf_types ();
7898 rm -f conftest.
$ac_objext conftest
$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>conftest.er1
7902 grep -v '^ *+' conftest.er1
>conftest.err
7904 cat conftest.err
>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try
='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try
='test -s conftest$ac_exeext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.
$ac_ext >&5
7925 ac_cv_lib_dag_dag_get_stream_erf_types
=no
7927 rm -f conftest.err conftest.
$ac_objext \
7928 conftest
$ac_exeext conftest.
$ac_ext
7929 LIBS
=$ac_check_lib_save_LIBS
7931 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7932 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6
7933 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
7936 cat >>confdefs.h
<<\_ACEOF
7937 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
7942 LDFLAGS
=$saved_ldflags
7944 if test "$dag_streams" = 1; then
7946 cat >>confdefs.h
<<\_ACEOF
7947 #define HAVE_DAG_STREAMS_API 1
7954 cat >>confdefs.h
<<\_ACEOF
7955 #define HAVE_DAG_API 1
7960 echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
7961 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6
7963 if test $ac_cv_lbl_dag_api = no
; then
7964 echo "$as_me:$LINENO: result: no" >&5
7965 echo "${ECHO_T}no" >&6
7966 if test "$want_dag" = yes; then
7967 # User wanted DAG support but we couldn't find it.
7968 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
7969 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
7970 { (exit 1); exit 1; }; }
7973 if test "$V_PCAP" = dag
; then
7974 # User requested "dag" capture type but the DAG API wasn't
7976 { { 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
7977 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;}
7978 { (exit 1); exit 1; }; }
7981 echo "$as_me:$LINENO: result: yes" >&5
7982 echo "${ECHO_T}yes" >&6
7986 # Check whether --with-septel or --without-septel was given.
7987 if test "${with_septel+set}" = set; then
7988 withval
="$with_septel"
7990 if test "$withval" = no
7993 elif test "$withval" = yes
7999 septel_root
=$withval
8005 # Use Septel API if present, otherwise don't
8007 want_septel
=ifpresent
8008 septel_root
=.
/..
/septel
8011 ac_cv_lbl_septel_api
=no
8015 # We support the Septel API if we're on Linux, or if we're building
8016 # a Septel-only libpcap.
8021 # If the user explicitly requested Septel, tell them it's not
8024 # If they expressed no preference, don't include it.
8026 if test $want_septel = yes; then
8027 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
8028 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
8029 { (exit 1); exit 1; }; }
8030 elif test $want_septel = yes; then
8036 if test "$with_septel" != no
; then
8037 echo "$as_me:$LINENO: checking whether we have Septel API" >&5
8038 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6
8040 if test -z "$septel_root"; then
8041 septel_root
=$srcdir/..
/septel
8045 septel_tools_dir
="$septel_root"
8046 septel_include_dir
="$septel_root/INC"
8047 DEF
="-DHAVE_SEPTEL_API"
8049 ac_cv_lbl_septel_api
=no
8050 if test -r "$septel_include_dir/msg.h"; then
8051 V_INCLS
="$V_INCLS -I$septel_include_dir"
8052 V_DEFS
="$V_DEFS $DEF"
8053 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 "
8055 if test "$V_PCAP" != septel
; then
8056 SSRC
="pcap-septel.c"
8059 ac_cv_lbl_septel_api
=yes
8062 echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
8063 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6
8064 if test $ac_cv_lbl_septel_api = no
; then
8065 if test "$want_septel" = yes; then
8066 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
8067 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
8068 { (exit 1); exit 1; }; }
8072 cat >>confdefs.h
<<\_ACEOF
8073 #define HAVE_SEPTEL_API 1
8079 if test "$V_PCAP" = septel
-a "$ac_cv_lbl_septel_api" = no
; then
8080 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
8081 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
8082 { (exit 1); exit 1; }; }
8087 # Check whether --with-flex or --without-flex was given.
8088 if test "${with_flex+set}" = set; then
8089 withval
="$with_flex"
8093 # Check whether --with-bison or --without-bison was given.
8094 if test "${with_bison+set}" = set; then
8095 withval
="$with_bison"
8098 if test "$with_flex" = no
; then
8103 # Extract the first word of "$ac_prog", so it can be a program name with args.
8104 set dummy
$ac_prog; ac_word
=$2
8105 echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107 if test "${ac_cv_prog_V_LEX+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 if test -n "$V_LEX"; then
8111 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
8113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir
=.
8118 for ac_exec_ext
in '' $ac_executable_extensions; do
8119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_V_LEX
="$ac_prog"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 V_LEX
=$ac_cv_prog_V_LEX
8130 if test -n "$V_LEX"; then
8131 echo "$as_me:$LINENO: result: $V_LEX" >&5
8132 echo "${ECHO_T}$V_LEX" >&6
8134 echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6
8138 test -n "$V_LEX" && break
8140 test -n "$V_LEX" || V_LEX
="lex"
8143 if test "$V_LEX" = flex
; then
8144 # The -V flag was added in 2.4
8145 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
8146 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
8147 if test "${ac_cv_lbl_flex_v24+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 if flex
-V >/dev
/null
2>&1; then
8151 ac_cv_lbl_flex_v24
=yes
8153 ac_cv_lbl_flex_v24
=no
8157 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
8158 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
8159 if test $ac_cv_lbl_flex_v24 = no
; then
8160 s
="2.4 or higher required"
8161 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
8162 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
8166 if test "$with_bison" = no
; then
8169 for ac_prog
in bison
8171 # Extract the first word of "$ac_prog", so it can be a program name with args.
8172 set dummy
$ac_prog; ac_word
=$2
8173 echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8175 if test "${ac_cv_prog_V_YACC+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 if test -n "$V_YACC"; then
8179 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
8181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir
=.
8186 for ac_exec_ext
in '' $ac_executable_extensions; do
8187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_V_YACC
="$ac_prog"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 V_YACC
=$ac_cv_prog_V_YACC
8198 if test -n "$V_YACC"; then
8199 echo "$as_me:$LINENO: result: $V_YACC" >&5
8200 echo "${ECHO_T}$V_YACC" >&6
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8206 test -n "$V_YACC" && break
8208 test -n "$V_YACC" || V_YACC
="yacc"
8211 if test "$V_YACC" = bison
; then
8214 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
8215 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
8216 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
8220 if test "$V_LEX" = flex
-a -n "pcap_" ; then
8221 V_LEX
="$V_LEX -Ppcap_"
8222 V_YACC
="$V_YACC -p pcap_"
8224 if test "$V_LEX" = lex ; then
8225 # Some versions of lex can't handle the definitions section of scanner.l .
8226 # Try lexing it and complain if it can't deal.
8227 echo "$as_me:$LINENO: checking for capable lex" >&5
8228 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
8229 if test "${tcpdump_cv_capable_lex+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 if lex -t scanner.l
> /dev
/null
2>&1; then
8233 tcpdump_cv_capable_lex
=yes
8235 tcpdump_cv_capable_lex
=insufficient
8238 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
8239 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
8240 if test $tcpdump_cv_capable_lex = insufficient
; then
8241 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
8242 libpcap. flex is a lex replacement that has many advantages, including
8243 being able to compile libpcap. For more information, see
8244 http://www.gnu.org/software/flex/flex.html ." >&5
8245 echo "$as_me: error: Your operating system's lex is insufficient to compile
8246 libpcap. flex is a lex replacement that has many advantages, including
8247 being able to compile libpcap. For more information, see
8248 http://www.gnu.org/software/flex/flex.html ." >&2;}
8249 { (exit 1); exit 1; }; }
8258 cat >>confdefs.h
<<\_ACEOF
8266 cat >>confdefs.h
<<\_ACEOF
8267 #define HAVE_HPUX9 1
8280 cat >>confdefs.h
<<\_ACEOF
8281 #define HAVE_HPUX10_20_OR_LATER 1
8287 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
8288 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
8289 if test "${ac_cv_cc_sinix_defined+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.
$ac_ext <<_ACEOF
8295 cat confdefs.h
>>conftest.
$ac_ext
8296 cat >>conftest.
$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8307 rm -f conftest.
$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1
>conftest.err
8313 cat conftest.err
>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try
='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try
='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_cv_cc_sinix_defined
=yes
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.
$ac_ext >&5
8334 ac_cv_cc_sinix_defined
=no
8336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
8340 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
8341 if test $ac_cv_cc_sinix_defined = no
; then
8343 cat >>confdefs.h
<<\_ACEOF
8352 cat >>confdefs.h
<<\_ACEOF
8353 #define HAVE_SOLARIS 1
8360 V_CCOPT
="$V_CCOPT -fno-common"
8364 V_CCOPT
="$V_CCOPT -fPIC"
8369 if test -n "$ac_tool_prefix"; then
8370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8371 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8372 echo "$as_me:$LINENO: checking for $ac_word" >&5
8373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8374 if test "${ac_cv_prog_RANLIB+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 if test -n "$RANLIB"; then
8378 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8384 test -z "$as_dir" && as_dir
=.
8385 for ac_exec_ext
in '' $ac_executable_extensions; do
8386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8387 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 RANLIB
=$ac_cv_prog_RANLIB
8397 if test -n "$RANLIB"; then
8398 echo "$as_me:$LINENO: result: $RANLIB" >&5
8399 echo "${ECHO_T}$RANLIB" >&6
8401 echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6
8406 if test -z "$ac_cv_prog_RANLIB"; then
8407 ac_ct_RANLIB
=$RANLIB
8408 # Extract the first word of "ranlib", so it can be a program name with args.
8409 set dummy ranlib
; ac_word
=$2
8410 echo "$as_me:$LINENO: checking for $ac_word" >&5
8411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 if test -n "$ac_ct_RANLIB"; then
8416 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8422 test -z "$as_dir" && as_dir
=.
8423 for ac_exec_ext
in '' $ac_executable_extensions; do
8424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8435 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8436 if test -n "$ac_ct_RANLIB"; then
8437 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8438 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8440 echo "$as_me:$LINENO: result: no" >&5
8441 echo "${ECHO_T}no" >&6
8444 RANLIB
=$ac_ct_RANLIB
8446 RANLIB
="$ac_cv_prog_RANLIB"
8451 if test "${LBL_CFLAGS+set}" = set; then
8452 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
8454 if test -f .devel
; then
8455 if test "$GCC" = yes ; then
8456 if test "${LBL_CFLAGS+set}" != set; then
8457 if test "$ac_cv_prog_cc_g" = yes ; then
8458 V_CCOPT
="-g $V_CCOPT"
8460 V_CCOPT
="$V_CCOPT -Wall"
8461 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
8462 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
8466 case "$target_os" in
8469 V_CCOPT
="$V_CCOPT -n32"
8476 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8478 if test -f $name ; then
8479 ln -s $name os-proto.h
8481 cat >>confdefs.h
<<\_ACEOF
8482 #define HAVE_OS_PROTO_H 1
8486 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
8487 echo "$as_me: WARNING: can't find $name" >&2;}
8491 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8492 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8493 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 cat >conftest.
$ac_ext <<_ACEOF
8499 cat confdefs.h
>>conftest.
$ac_ext
8500 cat >>conftest.
$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8503 # include <sys/types.h>
8504 # include <sys/socket.h>
8508 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8513 rm -f conftest.
$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8517 grep -v '^ *+' conftest.er1
>conftest.err
8519 cat conftest.err
>&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try
='test -z "$ac_c_werror_flag"
8523 || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try
='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_lbl_sockaddr_has_sa_len
=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.
$ac_ext >&5
8540 ac_cv_lbl_sockaddr_has_sa_len
=no
8542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8546 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
8547 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8549 cat >>confdefs.h
<<\_ACEOF
8550 #define HAVE_SOCKADDR_SA_LEN 1
8555 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
8556 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
8557 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 cat >conftest.
$ac_ext <<_ACEOF
8563 cat confdefs.h
>>conftest.
$ac_ext
8564 cat >>conftest.
$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8567 # include <sys/types.h>
8568 # include <sys/socket.h>
8572 u_int i = sizeof (struct sockaddr_storage)
8577 rm -f conftest.
$ac_objext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8579 (eval $ac_compile) 2>conftest.er1
8581 grep -v '^ *+' conftest.er1
>conftest.err
8583 cat conftest.err
>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try
='test -z "$ac_c_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try
='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_lbl_has_sockaddr_storage
=yes
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.
$ac_ext >&5
8604 ac_cv_lbl_has_sockaddr_storage
=no
8606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8609 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8610 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
8611 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8613 cat >>confdefs.h
<<\_ACEOF
8614 #define HAVE_SOCKADDR_STORAGE 1
8619 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8620 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
8621 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 cat >conftest.
$ac_ext <<_ACEOF
8627 cat confdefs.h
>>conftest.
$ac_ext
8628 cat >>conftest.
$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 # include <sys/types.h>
8632 # include <sys/dlpi.h>
8633 # include <sys/dlpi_ext.h>
8637 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8642 rm -f conftest.
$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>conftest.er1
8646 grep -v '^ *+' conftest.er1
>conftest.err
8648 cat conftest.err
>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try
='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try
='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.
$ac_ext >&5
8669 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
8671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8674 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8675 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
8676 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8678 cat >>confdefs.h
<<\_ACEOF
8679 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
8684 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
8685 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
8686 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 # These are CPU types where:
8694 # the CPU faults on an unaligned access, but at least some
8695 # OSes that support that CPU catch the fault and simulate
8696 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8697 # the simulation is slow, so we don't want to use it;
8699 # the CPU, I infer (from the old
8701 # XXX: should also check that they don't do weird things (like on arm)
8703 # comment) doesn't fault on unaligned accesses, but doesn't
8704 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8706 # for whatever reason, the test program doesn't work
8707 # (this has been claimed to be the case for several of those
8708 # CPUs - I don't know what the problem is; the problem
8709 # was reported as "the test program dumps core" for SuperH,
8710 # but that's what the test program is *supposed* to do -
8711 # it dumps core before it writes anything, so the test
8712 # for an empty output file should find an empty output
8713 # file and conclude that unaligned accesses don't work).
8715 # This run-time test won't work if you're cross-compiling, so
8716 # in order to support cross-compiling for a particular CPU,
8717 # we have to wire in the list of CPU types anyway, as far as
8718 # I know, so perhaps we should just have a set of CPUs on
8719 # which we know it doesn't work, a set of CPUs on which we
8720 # know it does work, and have the script just fail on other
8721 # cpu types and update it when such a failure occurs.
8723 alpha
*|arm
*|bfin
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
8724 ac_cv_lbl_unaligned_fail
=yes
8728 cat >conftest.c
<<EOF
8729 # include <sys/types.h>
8730 # include <sys/wait.h>
8732 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8737 /* avoid "core dumped" message */
8743 pid = waitpid(pid, &status, 0);
8746 exit(!WIFEXITED(status));
8749 i = *(unsigned int *)&a[1];
8754 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
8755 conftest.c
$LIBS >/dev
/null
2>&1
8756 if test ! -x conftest
; then
8757 ac_cv_lbl_unaligned_fail
=yes
8759 .
/conftest
>conftest.out
8760 if test ! -s conftest.out
; then
8761 ac_cv_lbl_unaligned_fail
=yes
8763 ac_cv_lbl_unaligned_fail
=no
8766 rm -f conftest
* core core.conftest
8771 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
8772 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
8773 if test $ac_cv_lbl_unaligned_fail = yes ; then
8775 cat >>confdefs.h
<<\_ACEOF
8782 # Makefile.in includes rules to generate version.h, so we assume
8783 # that it will be generated if autoconf is used.
8786 cat >>confdefs.h
<<\_ACEOF
8787 #define HAVE_VERSION_H 1
8792 ln -s ${srcdir}/bpf
/net net
8806 echo "$as_me:$LINENO: checking for USB sniffing support" >&5
8807 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6
8811 cat >>confdefs.h
<<\_ACEOF
8812 #define PCAP_SUPPORT_USB 1
8815 USB_SRC
=pcap-usb-linux.c
8816 echo "$as_me:$LINENO: result: yes" >&5
8817 echo "${ECHO_T}yes" >&6
8818 ac_usb_dev_name
=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
8819 if test $?
-ne 0 ; then
8820 ac_usb_dev_name
="usbmon"
8823 cat >>confdefs.h
<<_ACEOF
8824 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8827 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8828 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8831 echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6
8840 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
8841 echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
8842 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6
8843 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
8847 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6
8849 # Is the header compilable?
8850 echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
8851 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6
8852 cat >conftest.
$ac_ext <<_ACEOF
8855 cat confdefs.h
>>conftest.
$ac_ext
8856 cat >>conftest.
$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8859 #include <bluetooth/bluetooth.h>
8861 rm -f conftest.
$ac_objext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8863 (eval $ac_compile) 2>conftest.er1
8865 grep -v '^ *+' conftest.er1
>conftest.err
8867 cat conftest.err
>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try
='test -z "$ac_c_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try
='test -s conftest.$ac_objext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 ac_header_compiler
=yes
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.
$ac_ext >&5
8888 ac_header_compiler
=no
8890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8892 echo "${ECHO_T}$ac_header_compiler" >&6
8894 # Is the header present?
8895 echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
8896 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6
8897 cat >conftest.
$ac_ext <<_ACEOF
8900 cat confdefs.h
>>conftest.
$ac_ext
8901 cat >>conftest.
$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 #include <bluetooth/bluetooth.h>
8905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8906 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8908 grep -v '^ *+' conftest.er1
>conftest.err
8910 cat conftest.err
>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } >/dev
/null
; then
8913 if test -s conftest.err
; then
8914 ac_cpp_err
=$ac_c_preproc_warn_flag
8915 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8922 if test -z "$ac_cpp_err"; then
8923 ac_header_preproc
=yes
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.
$ac_ext >&5
8928 ac_header_preproc
=no
8930 rm -f conftest.err conftest.
$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8932 echo "${ECHO_T}$ac_header_preproc" >&6
8934 # So? What about this header?
8935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8937 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
8938 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
8940 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
8941 ac_header_preproc
=yes
8944 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
8945 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
8947 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
8948 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
8949 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
8950 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
8951 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
8953 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
8955 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
8958 ## ------------------------------------------ ##
8959 ## Report this to the AC_PACKAGE_NAME lists. ##
8960 ## ------------------------------------------ ##
8963 sed "s/^/$as_me: WARNING: /" >&2
8966 echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
8967 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6
8968 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 ac_cv_header_bluetooth_bluetooth_h
=$ac_header_preproc
8973 echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
8974 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6
8977 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
8980 cat >>confdefs.h
<<\_ACEOF
8981 #define PCAP_SUPPORT_BT 1
8984 BT_SRC
=pcap-bt-linux.c
8985 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
8986 echo "$as_me: Bluetooth sniffing is supported" >&6;}
8989 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8990 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8997 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
8998 echo "$as_me: no Bluetooth sniffing support" >&6;}
9004 # Find a good install program. We prefer a C program (faster),
9005 # so one script is as good as another. But avoid the broken or
9006 # incompatible versions:
9007 # SysV /etc/install, /usr/sbin/install
9008 # SunOS /usr/etc/install
9009 # IRIX /sbin/install
9011 # AmigaOS /C/install, which installs bootblocks on floppy discs
9012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9015 # OS/2's system install, which has a completely different semantic
9016 # ./install, which can be erroneously created by make from ./install.sh.
9017 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9019 if test -z "$INSTALL"; then
9020 if test "${ac_cv_path_install+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9027 test -z "$as_dir" && as_dir
=.
9028 # Account for people who put trailing slashes in PATH elements.
9030 .
/ | .
// |
/cC
/* | \
9031 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9032 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
9035 # OSF1 and SCO ODT 3.0 have their own names for install.
9036 # Don't use installbsd from OSF since it installs stuff as root
9038 for ac_prog
in ginstall scoinst
install; do
9039 for ac_exec_ext
in '' $ac_executable_extensions; do
9040 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9041 if test $ac_prog = install &&
9042 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9043 # AIX install. It has an incompatible calling convention.
9045 elif test $ac_prog = install &&
9046 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9047 # program-specific install script used by HP pwplus--don't use.
9050 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9062 if test "${ac_cv_path_install+set}" = set; then
9063 INSTALL
=$ac_cv_path_install
9065 # As a last resort, use the slow shell script. We don't cache a
9066 # path for INSTALL within a source directory, because that will
9067 # break other packages using the cache if that directory is
9068 # removed, or if the path is relative.
9069 INSTALL
=$ac_install_sh
9072 echo "$as_me:$LINENO: result: $INSTALL" >&5
9073 echo "${ECHO_T}$INSTALL" >&6
9075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9076 # It thinks the first close brace ends the variable substitution.
9077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9081 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9084 ac_config_headers
="$ac_config_headers config.h"
9087 ac_config_files
="$ac_config_files Makefile"
9088 cat >confcache
<<\_ACEOF
9089 # This file is a shell script that caches the results of configure
9090 # tests run on this system so they can be shared between configure
9091 # scripts and configure runs, see configure's option --config-cache.
9092 # It is not useful on other systems. If it contains results you don't
9093 # want to keep, you may remove or edit it.
9095 # config.status only pays attention to the cache file if you give it
9096 # the --recheck option to rerun configure.
9098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9104 # The following way of writing the cache mishandles newlines in values,
9105 # but we know of no workaround that is simple, portable, and efficient.
9106 # So, don't put newlines in cache variables' values.
9107 # Ultrix sh set writes to stderr and can't be redirected directly,
9108 # and sets the high bit in the cache file unless we assign to the vars.
9111 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9113 # `set' does not quote correctly, so add quotes (double-quote
9114 # substitution turns \\\\ into \\, and sed turns \\ into \).
9117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9120 # `set' quotes correctly as required by POSIX, so do not add quotes.
9122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9131 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9133 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
9134 if test -w $cache_file; then
9135 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9136 cat confcache
>$cache_file
9138 echo "not updating unwritable cache $cache_file"
9143 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9144 # Let make expand exec_prefix.
9145 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9147 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9148 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9149 # trailing colons and then remove the whole line if VPATH becomes empty
9150 # (actually we leave an empty line to preserve line numbers).
9151 if test "x$srcdir" = x.
; then
9152 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9153 s/:*\$(srcdir):*/:/;
9154 s/:*\${srcdir}:*/:/;
9156 s/^\([^=]*=[ ]*\):*/\1/;
9162 DEFS
=-DHAVE_CONFIG_H
9166 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9167 # 1. Remove the extension, and $U if already installed.
9168 ac_i
=`echo "$ac_i" |
9169 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9171 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
9172 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
9176 LTLIBOBJS
=$ac_ltlibobjs
9180 : ${CONFIG_STATUS=./config.status}
9181 ac_clean_files_save
=$ac_clean_files
9182 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9183 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9184 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9185 cat >$CONFIG_STATUS <<_ACEOF
9187 # Generated by $as_me.
9188 # Run this file to recreate the current configuration.
9189 # Compiler output produced by configure, useful for debugging
9190 # configure, is in config.log if it exists.
9195 SHELL=\${CONFIG_SHELL-$SHELL}
9198 cat >>$CONFIG_STATUS <<\_ACEOF
9199 ## --------------------- ##
9200 ## M4sh Initialization. ##
9201 ## --------------------- ##
9203 # Be Bourne compatible
9204 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9208 # is contrary to our usage. Disable this feature.
9209 alias -g '${1+"$@"}'='"$@"'
9210 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9213 DUALCASE
=1; export DUALCASE
# for MKS sh
9215 # Support unset when possible.
9216 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9223 # Work around bugs in pre-3.0 UWIN ksh.
9224 $as_unset ENV MAIL MAILPATH
9231 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9232 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9233 LC_TELEPHONE LC_TIME
9235 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9236 eval $as_var=C
; export $as_var
9242 # Required to use basename.
9243 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9249 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
9250 as_basename
=basename
9256 # Name of the executable.
9257 as_me
=`$as_basename "$0" ||
9258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9259 X"$0" : 'X\(//\)$' \| \
9260 X"$0" : 'X\(/\)$' \| \
9261 . : '\(.\)' 2>/dev/null ||
9263 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9264 /^X\/\(\/\/\)$/{ s//\1/; q; }
9265 /^X\/\(\/\).*/{ s//\1/; q; }
9269 # PATH needs CR, and LINENO needs CR and PATH.
9270 # Avoid depending upon Character Ranges.
9271 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9272 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9273 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9274 as_cr_digits
='0123456789'
9275 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9277 # The user is always right.
9278 if test "${PATH_SEPARATOR+set}" != set; then
9279 echo "#! /bin/sh" >conf$$.sh
9280 echo "exit 0" >>conf$$.sh
9282 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9293 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9294 test "x$as_lineno_1" != "x$as_lineno_2" &&
9295 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9296 # Find who we are. Look in the path if we contain no path at all
9299 *[\\/]* ) as_myself
=$0 ;;
9300 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9304 test -z "$as_dir" && as_dir
=.
9305 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9310 # We did not find ourselves, most probably we were run as `sh COMMAND'
9311 # in which case we are not to be found in the path.
9312 if test "x$as_myself" = x
; then
9315 if test ! -f "$as_myself"; then
9316 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9317 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9318 { (exit 1); exit 1; }; }
9320 case $CONFIG_SHELL in
9322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9323 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9326 test -z "$as_dir" && as_dir
=.
9327 for as_base
in sh bash ksh sh5
; do
9330 if ("$as_dir/$as_base" -c '
9333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9334 test "x$as_lineno_1" != "x$as_lineno_2" &&
9335 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9336 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
9337 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
9338 CONFIG_SHELL
=$as_dir/$as_base
9340 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9349 # uniformly replaced by the line number. The first 'sed' inserts a
9350 # line-number line before each line; the second 'sed' does the real
9351 # work. The second script uses 'N' to pair each line-number line
9352 # with the numbered line, and appends trailing '-' during
9353 # substitution so that $LINENO is not a special case at line end.
9354 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9355 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9356 sed '=' <$as_myself |
9361 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9364 s,^['$as_cr_digits']*\n,,
9366 chmod +x
$as_me.lineno ||
9367 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9368 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9369 { (exit 1); exit 1; }; }
9371 # Don't try to exec as it changes $[0], causing all sort of problems
9372 # (the dirname of $[0] is not the place where we might find the
9373 # original and so on. Autoconf is especially sensible to this).
9375 # Exit status is that of the last command.
9380 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9381 *c
*,-n*) ECHO_N
= ECHO_C
='
9383 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9384 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9387 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9393 rm -f conf$$ conf$$.exe conf$$.
file
9395 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9396 # We could just check for DJGPP; but this test a) works b) is more generic
9397 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9398 if test -f conf$$.exe
; then
9399 # Don't use ln at all; we don't have any links
9404 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9409 rm -f conf$$ conf$$.exe conf$$.
file
9411 if mkdir
-p .
2>/dev
/null
; then
9414 test -d .
/-p && rmdir .
/-p
9418 as_executable_p
="test -f"
9420 # Sed expression to map a string onto a valid CPP name.
9421 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9423 # Sed expression to map a string onto a valid variable name.
9424 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9428 # We need space, tab and new line, in precisely that order.
9438 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9439 # report actual input values of CONFIG_FILES etc. instead of their
9440 # values after options handling. Logging --version etc. is OK.
9444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9445 ## Running $as_me. ##
9450 This file was extended by $as_me, which was
9451 generated by GNU Autoconf 2.59. Invocation command line was
9453 CONFIG_FILES = $CONFIG_FILES
9454 CONFIG_HEADERS = $CONFIG_HEADERS
9455 CONFIG_LINKS = $CONFIG_LINKS
9456 CONFIG_COMMANDS = $CONFIG_COMMANDS
9460 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9464 # Files that config.status was made for.
9465 if test -n "$ac_config_files"; then
9466 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9469 if test -n "$ac_config_headers"; then
9470 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9473 if test -n "$ac_config_links"; then
9474 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9477 if test -n "$ac_config_commands"; then
9478 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9481 cat >>$CONFIG_STATUS <<\_ACEOF
9484 \`$as_me' instantiates files from templates according to the
9485 current configuration.
9487 Usage: $0 [OPTIONS] [FILE]...
9489 -h, --help print this help, then exit
9490 -V, --version print version number, then exit
9491 -q, --quiet do not print progress messages
9492 -d, --debug don't remove temporary files
9493 --recheck update $as_me by reconfiguring in the same conditions
9494 --file=FILE[:TEMPLATE]
9495 instantiate the configuration file FILE
9496 --header=FILE[:TEMPLATE]
9497 instantiate the configuration header FILE
9499 Configuration files:
9502 Configuration headers:
9505 Report bugs to <bug-autoconf@gnu.org>."
9508 cat >>$CONFIG_STATUS <<_ACEOF
9511 configured by $0, generated by GNU Autoconf 2.59,
9512 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9514 Copyright (C) 2003 Free Software Foundation, Inc.
9515 This config.status script is free software; the Free Software Foundation
9516 gives unlimited permission to copy, distribute and modify it."
9521 cat >>$CONFIG_STATUS <<\_ACEOF
9522 # If no file are specified by the user, then we need to provide default
9523 # value. By we need to know if files were specified by the user.
9529 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9530 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9538 *) # This is not an option, so the user has probably given explicit
9541 ac_need_defaults
=false
;;
9545 # Handling of the options.
9547 cat >>$CONFIG_STATUS <<\_ACEOF
9548 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9550 --version |
--vers* |
-V )
9551 echo "$ac_cs_version"; exit 0 ;;
9553 # Conflict between --help and --header
9554 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9555 Try \`$0 --help' for more information." >&5
9556 echo "$as_me: error: ambiguous option: $1
9557 Try \`$0 --help' for more information." >&2;}
9558 { (exit 1); exit 1; }; };;
9559 --help |
--hel |
-h )
9560 echo "$ac_cs_usage"; exit 0 ;;
9561 --debug |
--d* |
-d )
9563 --file |
--fil |
--fi |
--f )
9565 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9566 ac_need_defaults
=false
;;
9567 --header |
--heade |
--head |
--hea )
9569 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9570 ac_need_defaults
=false
;;
9571 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9572 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9576 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9577 Try \`$0 --help' for more information." >&5
9578 echo "$as_me: error: unrecognized option: $1
9579 Try \`$0 --help' for more information." >&2;}
9580 { (exit 1); exit 1; }; } ;;
9582 *) ac_config_targets
="$ac_config_targets $1" ;;
9588 ac_configure_extra_args
=
9590 if $ac_cs_silent; then
9592 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9596 cat >>$CONFIG_STATUS <<_ACEOF
9597 if \$ac_cs_recheck; then
9598 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9599 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9608 cat >>$CONFIG_STATUS <<\_ACEOF
9609 for ac_config_target
in $ac_config_targets
9611 case "$ac_config_target" in
9612 # Handling of arguments.
9613 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9614 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9615 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9616 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9617 { (exit 1); exit 1; }; };;
9621 # If the user did not use the arguments to specify the items to instantiate,
9622 # then the envvar interface is used. Set only those that are not.
9623 # We use the long form for the default assignment because of an extremely
9624 # bizarre bug on SunOS 4.1.3.
9625 if $ac_need_defaults; then
9626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9630 # Have a temporary directory for convenience. Make it in the build tree
9631 # simply because there is no reason to put it here, and in addition,
9632 # creating and moving files from /tmp can sometimes cause problems.
9633 # Create a temporary directory, and hook for its removal unless debugging.
9636 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9637 trap '{ (exit 1); exit 1; }' 1 2 13 15
9640 # Create a (secure) tmp directory for tmp files.
9643 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9644 test -n "$tmp" && test -d "$tmp"
9647 tmp
=.
/confstat$$
-$RANDOM
9648 (umask 077 && mkdir
$tmp)
9651 echo "$me: cannot create a temporary directory in ." >&2
9652 { (exit 1); exit 1; }
9657 cat >>$CONFIG_STATUS <<_ACEOF
9660 # CONFIG_FILES section.
9663 # No need to generate the scripts if there are no CONFIG_FILES.
9664 # This happens for instance when ./config.status config.h
9665 if test -n "\$CONFIG_FILES"; then
9666 # Protect against being on the right side of a sed subst in config.status.
9667 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9668 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9669 s,@SHELL@,$SHELL,;t t
9670 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9671 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9672 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9673 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9674 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9675 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9676 s,@exec_prefix@,$exec_prefix,;t t
9677 s,@prefix@,$prefix,;t t
9678 s,@program_transform_name@,$program_transform_name,;t t
9679 s,@bindir@,$bindir,;t t
9680 s,@sbindir@,$sbindir,;t t
9681 s,@libexecdir@,$libexecdir,;t t
9682 s,@datadir@,$datadir,;t t
9683 s,@sysconfdir@,$sysconfdir,;t t
9684 s,@sharedstatedir@,$sharedstatedir,;t t
9685 s,@localstatedir@,$localstatedir,;t t
9686 s,@libdir@,$libdir,;t t
9687 s,@includedir@,$includedir,;t t
9688 s,@oldincludedir@,$oldincludedir,;t t
9689 s,@infodir@,$infodir,;t t
9690 s,@mandir@,$mandir,;t t
9691 s,@build_alias@,$build_alias,;t t
9692 s,@host_alias@,$host_alias,;t t
9693 s,@target_alias@,$target_alias,;t t
9695 s,@ECHO_C@,$ECHO_C,;t t
9696 s,@ECHO_N@,$ECHO_N,;t t
9697 s,@ECHO_T@,$ECHO_T,;t t
9699 s,@build@,$build,;t t
9700 s,@build_cpu@,$build_cpu,;t t
9701 s,@build_vendor@,$build_vendor,;t t
9702 s,@build_os@,$build_os,;t t
9704 s,@host_cpu@,$host_cpu,;t t
9705 s,@host_vendor@,$host_vendor,;t t
9706 s,@host_os@,$host_os,;t t
9707 s,@target@,$target,;t t
9708 s,@target_cpu@,$target_cpu,;t t
9709 s,@target_vendor@,$target_vendor,;t t
9710 s,@target_os@,$target_os,;t t
9711 s,@SHLICC2@,$SHLICC2,;t t
9713 s,@CFLAGS@,$CFLAGS,;t t
9714 s,@LDFLAGS@,$LDFLAGS,;t t
9715 s,@CPPFLAGS@,$CPPFLAGS,;t t
9716 s,@ac_ct_CC@,$ac_ct_CC,;t t
9717 s,@EXEEXT@,$EXEEXT,;t t
9718 s,@OBJEXT@,$OBJEXT,;t t
9720 s,@EGREP@,$EGREP,;t t
9721 s,@LIBOBJS@,$LIBOBJS,;t t
9722 s,@V_LEX@,$V_LEX,;t t
9723 s,@V_YACC@,$V_YACC,;t t
9724 s,@RANLIB@,$RANLIB,;t t
9725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9726 s,@V_CCOPT@,$V_CCOPT,;t t
9727 s,@V_DEFS@,$V_DEFS,;t t
9728 s,@V_INCLS@,$V_INCLS,;t t
9729 s,@V_LIBS@,$V_LIBS,;t t
9730 s,@V_PCAP@,$V_PCAP,;t t
9731 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
9733 s,@DYEXT@,$DYEXT,;t t
9734 s,@DAGLIBS@,$DAGLIBS,;t t
9735 s,@PCAP_SUPPORT_USB@,$PCAP_SUPPORT_USB,;t t
9736 s,@USB_SRC@,$USB_SRC,;t t
9737 s,@PCAP_SUPPORT_BT@,$PCAP_SUPPORT_BT,;t t
9738 s,@BT_SRC@,$BT_SRC,;t t
9739 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9740 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9741 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9742 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9747 cat >>$CONFIG_STATUS <<\_ACEOF
9748 # Split the substitutions into bite-sized pieces for seds with
9749 # small command number limits, like on Digital OSF/1 and HP-UX.
9751 ac_sed_frag
=1 # Number of current file.
9752 ac_beg
=1 # First line for current file.
9753 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9756 while $ac_more_lines; do
9757 if test $ac_beg -gt 1; then
9758 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9760 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9762 if test ! -s $tmp/subs.frag
; then
9765 # The purpose of the label and of the branching condition is to
9766 # speed up the sed processing (if there are no `@' at all, there
9767 # is no need to browse any of the substitutions).
9768 # These are the two extra sed commands mentioned above.
9770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9771 if test -z "$ac_sed_cmds"; then
9772 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9774 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9776 ac_sed_frag
=`expr $ac_sed_frag + 1`
9778 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9781 if test -z "$ac_sed_cmds"; then
9784 fi # test -n "$CONFIG_FILES"
9787 cat >>$CONFIG_STATUS <<\_ACEOF
9788 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9791 - |
*:- |
*:-:* ) # input from stdin
9793 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9794 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9795 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9796 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9797 * ) ac_file_in
=$ac_file.
in ;;
9800 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9801 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9803 X"$ac_file" : 'X\(//\)[^/]' \| \
9804 X"$ac_file" : 'X\(//\)$' \| \
9805 X"$ac_file" : 'X\(/\)' \| \
9806 . : '\(.\)' 2>/dev/null ||
9808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9810 /^X\(\/\/\)$/{ s//\1/; q; }
9811 /^X\(\/\).*/{ s//\1/; q; }
9813 { if $as_mkdir_p; then
9818 while test ! -d "$as_dir"; do
9819 as_dirs
="$as_dir $as_dirs"
9820 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9822 X"$as_dir" : 'X\(//\)[^/]' \| \
9823 X"$as_dir" : 'X\(//\)$' \| \
9824 X"$as_dir" : 'X\(/\)' \| \
9825 . : '\(.\)' 2>/dev/null ||
9827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9829 /^X\(\/\/\)$/{ s//\1/; q; }
9830 /^X\(\/\).*/{ s//\1/; q; }
9833 test ! -n "$as_dirs" || mkdir
$as_dirs
9834 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9836 { (exit 1); exit 1; }; }; }
9840 if test "$ac_dir" != .
; then
9841 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9842 # A "../" for each directory in $ac_dir_suffix.
9843 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9845 ac_dir_suffix
= ac_top_builddir
=
9849 .
) # No --srcdir option. We are building in place.
9851 if test -z "$ac_top_builddir"; then
9854 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9856 [\\/]* | ?
:[\\/]* ) # Absolute path.
9857 ac_srcdir
=$srcdir$ac_dir_suffix;
9858 ac_top_srcdir
=$srcdir ;;
9860 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9861 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9864 # Do not use `cd foo && pwd` to compute absolute paths, because
9865 # the directories may not exist.
9867 .
) ac_abs_builddir
="$ac_dir";;
9870 .
) ac_abs_builddir
=`pwd`;;
9871 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9872 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9875 case $ac_abs_builddir in
9876 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9878 case ${ac_top_builddir}.
in
9879 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9880 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9881 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9884 case $ac_abs_builddir in
9885 .
) ac_abs_srcdir
=$ac_srcdir;;
9888 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9889 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9890 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9893 case $ac_abs_builddir in
9894 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9896 case $ac_top_srcdir in
9897 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9898 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9899 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9905 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9906 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9909 if test x
"$ac_file" != x-
; then
9910 { echo "$as_me:$LINENO: creating $ac_file" >&5
9911 echo "$as_me: creating $ac_file" >&6;}
9914 # Let's still pretend it is `configure' which instantiates (i.e., don't
9915 # use $as_me), people would be surprised to read:
9916 # /* config.h. Generated by config.status. */
9917 if test x
"$ac_file" = x-
; then
9920 configure_input
="$ac_file. "
9922 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9923 sed 's,.*/,,'` by configure."
9925 # First look for the input files in the build tree, otherwise in the
9927 ac_file_inputs
=`IFS=:
9928 for f in $ac_file_in; do
9930 -) echo $tmp/stdin ;;
9932 # Absolute (can't be DOS-style, as IFS=:)
9933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9934 echo "$as_me: error: cannot find input file: $f" >&2;}
9935 { (exit 1); exit 1; }; }
9938 if test -f "$f"; then
9941 elif test -f "$srcdir/$f"; then
9946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9947 echo "$as_me: error: cannot find input file: $f" >&2;}
9948 { (exit 1); exit 1; }; }
9951 done` ||
{ (exit 1); exit 1; }
9953 cat >>$CONFIG_STATUS <<_ACEOF
9957 cat >>$CONFIG_STATUS <<\_ACEOF
9959 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9960 s
,@configure_input@
,$configure_input,;t t
9961 s
,@srcdir@
,$ac_srcdir,;t t
9962 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9963 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9964 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9965 s
,@builddir@
,$ac_builddir,;t t
9966 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9967 s
,@top_builddir@
,$ac_top_builddir,;t t
9968 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9969 s
,@INSTALL@
,$ac_INSTALL,;t t
9970 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9972 if test x"$ac_file" != x-; then
9973 mv $tmp/out $ac_file
9981 cat >>$CONFIG_STATUS <<\_ACEOF
9984 # CONFIG_HEADER section.
9987 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9988 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9990 # ac_d sets the value in "#define NAME VALUE" lines.
9991 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9992 ac_dB
='[ ].*$,\1#\2'
9995 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9996 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9997 ac_uB
='$,\1#\2define\3'
10001 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
10002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10004 - |
*:- |
*:-:* ) # input from stdin
10006 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10007 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10008 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10009 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10010 * ) ac_file_in
=$ac_file.
in ;;
10013 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
10014 echo "$as_me: creating $ac_file" >&6;}
10016 # First look for the input files in the build tree, otherwise in the
10018 ac_file_inputs
=`IFS=:
10019 for f in $ac_file_in; do
10021 -) echo $tmp/stdin ;;
10023 # Absolute (can't be DOS-style, as IFS=:)
10024 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10025 echo "$as_me: error: cannot find input file: $f" >&2;}
10026 { (exit 1); exit 1; }; }
10027 # Do quote $f, to prevent DOS paths from being IFS'd.
10030 if test -f "$f"; then
10033 elif test -f "$srcdir/$f"; then
10038 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10039 echo "$as_me: error: cannot find input file: $f" >&2;}
10040 { (exit 1); exit 1; }; }
10043 done` ||
{ (exit 1); exit 1; }
10044 # Remove the trailing spaces.
10045 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10049 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10050 # `conftest.undefs', that substitutes the proper values into
10051 # config.h.in to produce config.h. The first handles `#define'
10052 # templates, and the second `#undef' templates.
10053 # And first: Protect against being on the right side of a sed subst in
10054 # config.status. Protect against being in an unquoted here document
10055 # in config.status.
10056 rm -f conftest.defines conftest.undefs
10057 # Using a here document instead of a string reduces the quoting nightmare.
10058 # Putting comments in sed scripts is not portable.
10060 # `end' is used to avoid that the second main sed command (meant for
10061 # 0-ary CPP macros) applies to n-ary macro definitions.
10062 # See the Autoconf documentation for `clear'.
10063 cat >confdef2sed.
sed <<\_ACEOF
10068 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10070 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10073 # If some macros were called several times there might be several times
10074 # the same #defines, which is useless. Nevertheless, we may not want to
10075 # sort them, since we want the *last* AC-DEFINE to be honored.
10076 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10077 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10078 rm -f confdef2sed.sed
10080 # This sed command replaces #undef with comments. This is necessary, for
10081 # example, in the case of _POSIX_SOURCE, which is predefined and required
10082 # on some systems where configure will not decide to define it.
10083 cat >>conftest.undefs <<\_ACEOF
10084 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10087 # Break up conftest.defines because some shells have a limit on the size
10088 # of here documents, and old seds have small limits too (100 cmds).
10089 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10090 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10091 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10092 echo ' :' >>$CONFIG_STATUS
10093 rm -f conftest.tail
10094 while grep . conftest.defines >/dev/null
10096 # Write a limited-size here document to $tmp/defines.sed.
10097 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10098 # Speed up: don't consider the non `#define' lines.
10099 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10100 # Work around the forget-to-reset-the-flag bug.
10101 echo 't clr' >>$CONFIG_STATUS
10102 echo ': clr' >>$CONFIG_STATUS
10103 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10105 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10107 mv $tmp/out $tmp/in
10109 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10110 rm -f conftest.defines
10111 mv conftest.
tail conftest.defines
10113 rm -f conftest.defines
10114 echo ' fi # grep' >>$CONFIG_STATUS
10115 echo >>$CONFIG_STATUS
10117 # Break up conftest.undefs because some shells have a limit on the size
10118 # of here documents, and old seds have small limits too (100 cmds).
10119 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10120 rm -f conftest.
tail
10121 while grep . conftest.undefs
>/dev
/null
10123 # Write a limited-size here document to $tmp/undefs.sed.
10124 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10125 # Speed up: don't consider the non
`#undef'
10126 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10127 # Work around the forget-to-reset-the-flag bug.
10128 echo 't clr' >>$CONFIG_STATUS
10129 echo ': clr' >>$CONFIG_STATUS
10130 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10132 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10134 mv $tmp/out $tmp/in
10136 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10137 rm -f conftest.undefs
10138 mv conftest.tail conftest.undefs
10140 rm -f conftest.undefs
10142 cat >>$CONFIG_STATUS <<\_ACEOF
10143 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10144 # use $as_me), people would be surprised to read:
10145 # /* config.h. Generated by config.status. */
10146 if test x
"$ac_file" = x-
; then
10147 echo "/* Generated by configure. */" >$tmp/config.h
10149 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10151 cat $tmp/in >>$tmp/config.h
10153 if test x
"$ac_file" != x-
; then
10154 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
10155 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10156 echo "$as_me: $ac_file is unchanged" >&6;}
10158 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10159 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10160 X"$ac_file" : 'X\(//\)[^/]' \| \
10161 X"$ac_file" : 'X\(//\)$' \| \
10162 X"$ac_file" : 'X\(/\)' \| \
10163 . : '\(.\)' 2>/dev/null ||
10165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10167 /^X\(\/\/\)$/{ s//\1/; q; }
10168 /^X\(\/\).*/{ s//\1/; q; }
10170 { if $as_mkdir_p; then
10175 while test ! -d "$as_dir"; do
10176 as_dirs
="$as_dir $as_dirs"
10177 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10179 X"$as_dir" : 'X\(//\)[^/]' \| \
10180 X"$as_dir" : 'X\(//\)$' \| \
10181 X"$as_dir" : 'X\(/\)' \| \
10182 . : '\(.\)' 2>/dev/null ||
10184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10186 /^X\(\/\/\)$/{ s//\1/; q; }
10187 /^X\(\/\).*/{ s//\1/; q; }
10190 test ! -n "$as_dirs" || mkdir
$as_dirs
10191 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10192 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10193 { (exit 1); exit 1; }; }; }
10196 mv $tmp/config.h
$ac_file
10200 rm -f $tmp/config.h
10205 cat >>$CONFIG_STATUS <<\_ACEOF
10207 { (exit 0); exit 0; }
10209 chmod +x
$CONFIG_STATUS
10210 ac_clean_files
=$ac_clean_files_save
10213 # configure is writing to config.log, and then calls config.status.
10214 # config.status does its own redirection, appending to config.log.
10215 # Unfortunately, on DOS this fails, as config.log is still kept open
10216 # by configure, so config.status won't be able to write to it; its
10217 # output is simply discarded. So we exec the FD to /dev/null,
10218 # effectively closing config.log, so it can be properly (re)opened and
10219 # appended to by config.status. When coming back to configure, we
10220 # need to make the FD available again.
10221 if test "$no_create" != yes; then
10223 ac_config_status_args
=
10224 test "$silent" = yes &&
10225 ac_config_status_args
="$ac_config_status_args --quiet"
10227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10230 # would make configure fail if this is the last instruction.
10231 $ac_cs_success ||
{ (exit 1); exit 1; }
10235 if test -f .devel
; then