2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.9.0-PRE-GIT.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
579 PACKAGE_TARNAME
='pcap'
580 PACKAGE_VERSION
='1.9.0-PRE-GIT'
581 PACKAGE_STRING
='pcap 1.9.0-PRE-GIT'
585 ac_unique_file
="pcap.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
627 PCAP_SUPPORT_RDMASNIFF
637 PCAP_SUPPORT_NETFILTER
672 PCAP_SUPPORT_PACKET_RING
673 HAVE_LINUX_TPACKET_AUXDATA
726 program_transform_name
739 enable_option_checking
767 ac_precious_vars
='build_alias
780 # Initialize some variables set by options.
782 ac_init_version
=false
783 ac_unrecognized_opts
=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
794 program_transform_name
=s
,x
,x
,
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir
='${exec_prefix}/bin'
809 sbindir
='${exec_prefix}/sbin'
810 libexecdir
='${exec_prefix}/libexec'
811 datarootdir
='${prefix}/share'
812 datadir
='${datarootdir}'
813 sysconfdir
='${prefix}/etc'
814 sharedstatedir
='${prefix}/com'
815 localstatedir
='${prefix}/var'
816 includedir
='${prefix}/include'
817 oldincludedir
='/usr/include'
818 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir
='${datarootdir}/info'
824 libdir
='${exec_prefix}/lib'
825 localedir
='${datarootdir}/locale'
826 mandir
='${datarootdir}/man'
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\
$ac_option
840 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
853 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
856 -build |
--build |
--buil |
--bui |
--bu)
857 ac_prev
=build_alias
;;
858 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
859 build_alias
=$ac_optarg ;;
861 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
862 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
863 ac_prev
=cache_file
;;
864 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
865 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
866 cache_file
=$ac_optarg ;;
869 cache_file
=config.cache
;;
871 -datadir |
--datadir |
--datadi |
--datad)
873 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
874 datadir
=$ac_optarg ;;
876 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
877 |
--dataroo |
--dataro |
--datar)
878 ac_prev
=datarootdir
;;
879 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
880 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
881 datarootdir
=$ac_optarg ;;
883 -disable-* |
--disable-*)
884 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
887 as_fn_error $?
"invalid feature name: $ac_useropt"
888 ac_useropt_orig
=$ac_useropt
889 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep
=', ';;
897 eval enable_
$ac_useropt=no
;;
899 -docdir |
--docdir |
--docdi |
--doc |
--do)
901 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
904 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
906 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
909 -enable-* |
--enable-*)
910 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
913 as_fn_error $?
"invalid feature name: $ac_useropt"
914 ac_useropt_orig
=$ac_useropt
915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep
=', ';;
923 eval enable_
$ac_useropt=\
$ac_optarg ;;
925 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
926 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
927 |
--exec |
--exe |
--ex)
928 ac_prev
=exec_prefix
;;
929 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
930 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
931 |
--exec=* |
--exe=* |
--ex=*)
932 exec_prefix
=$ac_optarg ;;
934 -gas |
--gas |
--ga |
--g)
935 # Obsolete; use --with-gas.
938 -help |
--help |
--hel |
--he |
-h)
940 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
941 ac_init_help
=recursive
;;
942 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
943 ac_init_help
=short
;;
945 -host |
--host |
--hos |
--ho)
946 ac_prev
=host_alias
;;
947 -host=* |
--host=* |
--hos=* |
--ho=*)
948 host_alias
=$ac_optarg ;;
950 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
952 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
954 htmldir
=$ac_optarg ;;
956 -includedir |
--includedir |
--includedi |
--included |
--include \
957 |
--includ |
--inclu |
--incl |
--inc)
958 ac_prev
=includedir
;;
959 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
960 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
961 includedir
=$ac_optarg ;;
963 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
965 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
966 infodir
=$ac_optarg ;;
968 -libdir |
--libdir |
--libdi |
--libd)
970 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
973 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
974 |
--libexe |
--libex |
--libe)
975 ac_prev
=libexecdir
;;
976 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
977 |
--libexe=* |
--libex=* |
--libe=*)
978 libexecdir
=$ac_optarg ;;
980 -localedir |
--localedir |
--localedi |
--localed |
--locale)
982 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
983 localedir
=$ac_optarg ;;
985 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
986 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
987 ac_prev
=localstatedir
;;
988 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
989 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
990 localstatedir
=$ac_optarg ;;
992 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
994 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
998 # Obsolete; use --without-fp.
1001 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1002 |
--no-cr |
--no-c |
-n)
1005 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1006 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1009 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1010 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1011 |
--oldin |
--oldi |
--old |
--ol |
--o)
1012 ac_prev
=oldincludedir
;;
1013 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1014 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1015 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1016 oldincludedir
=$ac_optarg ;;
1018 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1020 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1021 prefix
=$ac_optarg ;;
1023 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1024 |
--program-pre |
--program-pr |
--program-p)
1025 ac_prev
=program_prefix
;;
1026 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1027 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1028 program_prefix
=$ac_optarg ;;
1030 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1031 |
--program-suf |
--program-su |
--program-s)
1032 ac_prev
=program_suffix
;;
1033 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1034 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1035 program_suffix
=$ac_optarg ;;
1037 -program-transform-name |
--program-transform-name \
1038 |
--program-transform-nam |
--program-transform-na \
1039 |
--program-transform-n |
--program-transform- \
1040 |
--program-transform |
--program-transfor \
1041 |
--program-transfo |
--program-transf \
1042 |
--program-trans |
--program-tran \
1043 |
--progr-tra |
--program-tr |
--program-t)
1044 ac_prev
=program_transform_name
;;
1045 -program-transform-name=* |
--program-transform-name=* \
1046 |
--program-transform-nam=* |
--program-transform-na=* \
1047 |
--program-transform-n=* |
--program-transform-=* \
1048 |
--program-transform=* |
--program-transfor=* \
1049 |
--program-transfo=* |
--program-transf=* \
1050 |
--program-trans=* |
--program-tran=* \
1051 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1052 program_transform_name
=$ac_optarg ;;
1054 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1056 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1057 pdfdir
=$ac_optarg ;;
1059 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1061 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1064 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1065 |
-silent |
--silent |
--silen |
--sile |
--sil)
1068 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1070 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1072 sbindir
=$ac_optarg ;;
1074 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1075 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1076 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1078 ac_prev
=sharedstatedir
;;
1079 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1080 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1081 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1083 sharedstatedir
=$ac_optarg ;;
1085 -site |
--site |
--sit)
1087 -site=* |
--site=* |
--sit=*)
1090 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1092 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1093 srcdir
=$ac_optarg ;;
1095 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1096 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1097 ac_prev
=sysconfdir
;;
1098 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1099 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1100 sysconfdir
=$ac_optarg ;;
1102 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1103 ac_prev
=target_alias
;;
1104 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1105 target_alias
=$ac_optarg ;;
1107 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1110 -version |
--version |
--versio |
--versi |
--vers |
-V)
1111 ac_init_version
=: ;;
1114 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error $?
"invalid package name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval with_
$ac_useropt=\
$ac_optarg ;;
1129 -without-* |
--without-*)
1130 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1133 as_fn_error $?
"invalid package name: $ac_useropt"
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval with_
$ac_useropt=no
;;
1146 # Obsolete; use --with-x.
1149 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1150 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1151 ac_prev
=x_includes
;;
1152 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1153 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1154 x_includes
=$ac_optarg ;;
1156 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1157 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1158 ac_prev
=x_libraries
;;
1159 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1160 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1161 x_libraries
=$ac_optarg ;;
1163 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1168 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1172 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\
$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 if test -n "$ac_prev"; then
1189 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $?
"missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val
=\$
$ac_var
1208 # Remove trailing slashes.
1211 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\
$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$
]* | ?
:[\\/]* ) continue;;
1217 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1219 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target
=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x
; then
1231 if test "x$build_alias" = x
; then
1232 cross_compiling
=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1241 test "$silent" = yes && exec 6>/dev
/null
1244 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di
=`ls -di .` &&
1246 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $?
"working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $?
"pwd does not report name of working directory"
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted
=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir
=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted
=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1288 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1290 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var
in $ac_precious_vars; do
1305 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1307 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures pcap 1.9.0-PRE-GIT to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure
for building on BUILD
[guessed
]
1377 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1378 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive
) echo "Configuration of pcap 1.9.0-PRE-GIT:";;
1389 --disable-option-checking ignore unrecognized
--enable/--with options
1390 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1391 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1392 --disable-largefile omit support
for large files
1393 --disable-protochain disable
\"protochain
\" insn
1394 --enable-packet-ring enable Linux packet ring support
[default
=yes]
1395 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1396 getaddrinfo available
]
1397 --enable-remote enable remote packet capture
[default
=no
]
1398 --disable-remote disable remote packet capture
1399 --enable-optimizer-dbg build optimizer debugging code
1400 --enable-yydebug build parser debugging code
1401 --disable-universal don
't build universal on macOS
1402 --enable-shared build shared libraries [default=yes, if support
1404 --enable-usb enable USB capture support [default=yes, if support
1406 --enable-netmap enable netmap support [default=yes, if support
1408 --enable-bluetooth enable Bluetooth support [default=yes, if support
1410 --enable-dbus enable D-Bus capture support [default=yes, if
1412 --enable-rdma enable RDMA capture support [default=yes, if support
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --without-gcc don't use gcc
1419 --with-sita include SITA support
1420 --with-pcap=TYPE use packet capture TYPE
1421 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1423 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1424 DIR
, if supplied
).
[default
=yes, if present
]
1425 --with-dag-includes=IDIR
1426 Endace DAG include directory
, if not DIR
/include
1427 --with-dag-libraries=LDIR
1428 Endace DAG library directory
, if not DIR
/lib
1429 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1430 supplied
).
[default
=yes, if present
]
1431 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1432 DIR
, if supplied
).
[default
=yes, if present
]
1433 --with-snf-includes=IDIR
1434 Myricom SNF include directory
, if not DIR
/include
1435 --with-snf-libraries=LDIR
1436 Myricom SNF library directory
, if not DIR
/lib
1437 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1438 directory DIR
, if supplied
).
[default
=yes, if
1441 Some influential environment variables
:
1442 CC C compiler
command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1445 nonstandard directory
<lib dir
>
1446 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1447 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1448 you have headers
in a nonstandard directory
<include dir
>
1450 YACC The
`Yet Another Compiler Compiler' implementation to use.
1451 Defaults to the first program found out of: `bison
-y', `byacc',
1453 YFLAGS The list of arguments that will be passed by default to $YACC.
1454 This script will default YFLAGS to the empty string to avoid a
1455 default value of `-d' given by some make applications.
1457 Use these variables to override the choices made by `configure' or to
help
1458 it to
find libraries and programs with nonstandard names
/locations.
1460 Report bugs to the package provider.
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1474 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1476 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1481 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1484 ac_abs_top_builddir
=$ac_pwd
1485 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir
=$ac_top_build_prefix
1490 .
) # We are building in place.
1492 ac_top_srcdir
=$ac_top_builddir_sub
1493 ac_abs_top_srcdir
=$ac_pwd ;;
1494 [\\/]* | ?
:[\\/]* ) # Absolute name.
1495 ac_srcdir
=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir
=$srcdir
1497 ac_abs_top_srcdir
=$srcdir ;;
1499 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1503 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1523 pcap configure
1.9.0-PRE-GIT
1524 generated by GNU Autoconf
2.69
1526 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1527 This configure
script is free software
; the Free Software Foundation
1528 gives unlimited permission to copy
, distribute and modify it.
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile
()
1542 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1543 rm -f conftest.
$ac_objext
1544 if { { ac_try
="$ac_compile"
1546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1573 } # ac_fn_c_try_compile
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1585 *) ac_try_echo
=$ac_try;;
1587 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1591 if test -s conftest.err
; then
1592 grep -v '^ *+' conftest.err
>conftest.er1
1593 cat conftest.er1
>&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest
$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 test -x conftest
$ac_exeext
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.
$ac_ext >&5
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status
$ac_retval
1619 } # ac_fn_c_try_link
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1627 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661 # the include files in INCLUDES and setting the cache variable VAR
1663 ac_fn_c_check_header_mongrel ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if eval \${$3+:} false; then :
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1676 # Is the header compilable?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678 $as_echo_n "checking $2 usability... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 ac_header_compiler=yes
1687 ac_header_compiler=no
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691 $as_echo "$ac_header_compiler" >&6; }
1693 # Is the header present?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695 $as_echo_n "checking $2 presence... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1700 if ac_fn_c_try_cpp "$LINENO"; then :
1701 ac_header_preproc=yes
1703 ac_header_preproc=no
1705 rm -f conftest.err conftest.i conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707 $as_echo "$ac_header_preproc" >&6; }
1709 # So? What about this header?
1710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1735 eval "$3=\$ac_header_compiler"
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 } # ac_fn_c_check_header_mongrel
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1755 *) ac_try_echo
=$ac_try;;
1757 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=$ac_status
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1787 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists and can be compiled using the include files in
1790 # INCLUDES, setting the cache variable VAR accordingly.
1791 ac_fn_c_check_header_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1804 if ac_fn_c_try_compile "$LINENO"; then :
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 } # ac_fn_c_check_header_compile
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1841 # include <limits.h>
1843 # include <assert.h>
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1870 if ac_fn_c_try_link "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_func
1885 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1886 # ---------------------------------------------
1887 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1889 ac_fn_c_check_decl ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1893 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1895 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1905 #ifndef $as_decl_name
1907 (void) $as_decl_use;
1909 (void) $as_decl_name;
1917 if ac_fn_c_try_compile "$LINENO"; then :
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_decl
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_type
1984 cat >config.log <<_ACEOF
1985 This file contains any messages produced by compilers while
1986 running configure, to aid debugging if configure makes a mistake.
1988 It was created by pcap $as_me 1.9.0-PRE-GIT, which was
1989 generated by GNU Autoconf 2.69. Invocation command line was
2001 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2002 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2003 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2004 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2005 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2007 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2008 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2010 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2011 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2012 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2013 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2014 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2015 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2016 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 $as_echo "PATH: $as_dir"
2041 # Keep a trace of the command line.
2042 # Strip out --no-create and --no-recursion so they do not pile up.
2043 # Strip out --silent because we don't want to record it for future runs.
2044 # Also quote any args containing shell meta-characters.
2045 # Make two passes to allow for proper duplicate-argument suppression.
2049 ac_must_keep_next=false
2055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057 | -silent | --silent | --silen | --sile | --sil)
2060 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2065 as_fn_append ac_configure_args1 " '$ac_arg'"
2066 if test $ac_must_keep_next = true; then
2067 ac_must_keep_next=false # Got value, back to normal.
2070 *=* | --config-cache | -C | -disable-* | --disable-* \
2071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073 | -with-* | --with-* | -without-* | --without-* | --x)
2074 case "$ac_configure_args0 " in
2075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 -* ) ac_must_keep_next=true ;;
2081 as_fn_append ac_configure_args " '$ac_arg'"
2086 { ac_configure_args0=; unset ac_configure_args0;}
2087 { ac_configure_args1=; unset ac_configure_args1;}
2089 # When interrupted or exit'd, cleanup temporary files, and complete
2090 # config.log. We remove comments because anyway the quotes in there
2091 # would cause problems or look ugly.
2092 # WARNING: Use '\'' to represent an apostrophe within the trap.
2093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094 trap 'exit_status=$?
2095 # Save into config.log some information that might help in debugging.
2099 $as_echo "## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##"
2103 # The following way of writing the cache mishandles newlines in values,
2105 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2106 eval ac_val=\$$ac_var
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2121 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2135 $as_echo "## ----------------- ##
2136 ## Output variables. ##
2137 ## ----------------- ##"
2139 for ac_var in $ac_subst_vars
2141 eval ac_val=\$$ac_var
2143 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 $as_echo "$ac_var='\''$ac_val'\''"
2149 if test -n "$ac_subst_files"; then
2150 $as_echo "## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##"
2154 for ac_var in $ac_subst_files
2156 eval ac_val=\$$ac_var
2158 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 $as_echo "$ac_var='\''$ac_val'\''"
2165 if test -s confdefs.h; then
2166 $as_echo "## ----------- ##
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2189 $as_echo "/* confdefs.h */" > confdefs.h
2191 # Predefined preprocessor variables.
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2222 if test -n "$CONFIG_SITE"; then
2223 # We do not want a PATH search for config.site.
2224 case $CONFIG_SITE in #((
2225 -*) ac_site_file1=./$CONFIG_SITE;;
2226 */*) ac_site_file1=$CONFIG_SITE;;
2227 *) ac_site_file1=./$CONFIG_SITE;;
2229 elif test "x$prefix" != xNONE; then
2230 ac_site_file1=$prefix/share/config.site
2231 ac_site_file2=$prefix/etc/config.site
2233 ac_site_file1=$ac_default_prefix/share/config.site
2234 ac_site_file2=$ac_default_prefix/etc/config.site
2236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2238 test "x$ac_site_file" = xNONE && continue
2239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242 sed 's/^/| /' "$ac_site_file" >&5
2244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 as_fn_error $? "failed to load site
script $ac_site_file
2247 See \
`config.log' for more details" "$LINENO" 5; }
2251 if test -r "$cache_file"; then
2252 # Some versions of bash will fail to source /dev/null (special files
2253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256 $as_echo "$as_me: loading cache $cache_file" >&6;}
2258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259 *) . "./$cache_file";;
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264 $as_echo "$as_me: creating cache $cache_file" >&6;}
2268 # Check that the precious variables saved in the cache have kept the same
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2279 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2283 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x
$ac_old_val`
2290 ac_new_val_w=`echo x
$ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2294 ac_cache_corrupted=:
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341 if test -f "$ac_dir/install-sh"; then
2343 ac_install_sh="$ac_aux_dir/install-sh -c"
2345 elif test -f "$ac_dir/install.sh"; then
2347 ac_install_sh="$ac_aux_dir/install.sh -c"
2349 elif test -f "$ac_dir/shtool"; then
2351 ac_install_sh="$ac_aux_dir/shtool install -c"
2355 if test -z "$ac_aux_dir"; then
2356 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359 # These three variables are undocumented and unsupported,
2360 # and are intended to be withdrawn in a future Autoconf release.
2361 # They can cause serious problems if a builder's source tree is in a directory
2362 # whose full name contains unusual characters.
2363 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2364 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2365 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2368 # Make sure we can run config.sub.
2369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2370 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2373 $as_echo_n "checking build system type... " >&6; }
2374 if ${ac_cv_build+:} false; then :
2375 $as_echo_n "(cached) " >&6
2377 ac_build_alias=$build_alias
2378 test "x$ac_build_alias" = x &&
2379 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2380 test "x$ac_build_alias" = x &&
2381 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2387 $as_echo "$ac_cv_build" >&6; }
2388 case $ac_cv_build in
2390 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2393 ac_save_IFS=$IFS; IFS='-'
2399 # Remember, the first character of IFS is used to create $*,
2400 # except with old shells:
2403 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2407 $as_echo_n "checking host system type... " >&6; }
2408 if ${ac_cv_host+:} false; then :
2409 $as_echo_n "(cached) " >&6
2411 if test "x$host_alias" = x; then
2412 ac_cv_host=$ac_cv_build
2414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2420 $as_echo "$ac_cv_host" >&6; }
2423 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2426 ac_save_IFS=$IFS; IFS='-'
2432 # Remember, the first character of IFS is used to create $*,
2433 # except with old shells:
2436 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2440 $as_echo_n "checking target system type... " >&6; }
2441 if ${ac_cv_target+:} false; then :
2442 $as_echo_n "(cached) " >&6
2444 if test "x$target_alias" = x; then
2445 ac_cv_target=$ac_cv_host
2447 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2453 $as_echo "$ac_cv_target" >&6; }
2454 case $ac_cv_target in
2456 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2458 target=$ac_cv_target
2459 ac_save_IFS=$IFS; IFS='-'
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2469 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2472 # The aliases save the names the user supplied, while $host etc.
2473 # will get canonicalized.
2474 test -n "$target_alias" &&
2475 test "$program_prefix$program_suffix$program_transform_name" = \
2477 program_prefix=${target_alias}-
2486 # Check whether --with-gcc was given.
2487 if test "${with_gcc+set}" = set; then :
2492 if test "${srcdir}" != "." ; then
2493 V_CCOPT="-I\$(srcdir)"
2495 if test "${CFLAGS+set}" = set; then
2496 LBL_CFLAGS="$CFLAGS"
2498 if test -z "$CC" ; then
2502 # Extract the first word of "shlicc2", so it can be a program name with args.
2503 set dummy shlicc2; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_SHLICC2+:} false; then :
2507 $as_echo_n "(cached) " >&6
2509 if test -n "$SHLICC2"; then
2510 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_SHLICC2="yes"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2530 SHLICC2=$ac_cv_prog_SHLICC2
2531 if test -n "$SHLICC2"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2533 $as_echo "$SHLICC2" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2540 if test $SHLICC2 = yes ; then
2547 if test -z "$CC" -a "$with_gcc" = no ; then
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_CC+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2596 if test -z "$ac_cv_prog_CC"; then
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2628 $as_echo "$ac_ct_CC" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2634 if test "x$ac_ct_CC" = x; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}cc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_CC+:} false; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2725 if test $# != 0; then
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2746 if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 for ac_prog in cl.exe
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$CC" && break
2790 if test -z "$CC"; then
2792 for ac_prog in cl.exe
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2831 test -n "$ac_ct_CC" && break
2834 if test "x$ac_ct_CC" = x; then
2837 case $cross_compiling:$ac_tool_warned in
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2853 See \
`config.log' for more details" "$LINENO" 5; }
2855 # Provide some information about the compiler.
2856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2859 for ac_option in --version -v -V -qversion; do
2860 { { ac_try="$ac_compiler $ac_option >&5"
2862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2863 *) ac_try_echo
=$ac_try;;
2865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2869 if test -s conftest.err
; then
2871 ... rest of stderr output deleted ...
2872 10q' conftest.err
>conftest.er1
2873 cat conftest.er1
>&5
2875 rm -f conftest.er1 conftest.err
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2891 ac_clean_files_save
=$ac_clean_files
2892 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2893 # Try to create an executable without -o first, disregard a.out.
2894 # It will help us diagnose broken compilers, and finding out an intuition
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2897 $as_echo_n "checking whether the C compiler works... " >&6; }
2898 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900 # The possible output files:
2901 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2904 for ac_file
in $ac_files
2907 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2908 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2913 if { { ac_try
="$ac_link_default"
2915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link_default") 2>&5
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; then :
2924 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2925 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2926 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2927 # so that the user can short-circuit this test for compilers unknown to
2929 for ac_file in $ac_files ''
2931 test -f "$ac_file" || continue
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2936 # We found the default executable, but exeext='' is most
2940 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 # We set ac_cv_exeext here because the later test for it is not
2945 # safe: cross compilers may not add the suffix if given an `-o'
2946 # argument, so we may need to know it at that point already.
2947 # Even if this section looks crufty: it has the advantage of
2954 test "$ac_cv_exeext" = no && ac_cv_exeext=
2959 if test -z "$ac_file"; then :
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 $as_echo "$as_me: failed program was:" >&5
2963 sed 's
/^
/|
/' conftest.$ac_ext >&5
2965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2967 as_fn_error 77 "C compiler cannot create executables
2968 See \`config.log
' for more details" "$LINENO" 5; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2974 $as_echo_n "checking for C compiler default output file name... " >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2976 $as_echo "$ac_file" >&6; }
2977 ac_exeext=$ac_cv_exeext
2979 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2980 ac_clean_files=$ac_clean_files_save
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2982 $as_echo_n "checking for suffix of executables... " >&6; }
2983 if { { ac_try="$ac_link"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989 $as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_link") 2>&5
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2995 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2996 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2998 for ac_file
in conftest.exe conftest conftest.
*; do
2999 test -f "$ac_file" ||
continue
3001 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3002 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3011 See \`config.log' for more details" "$LINENO" 5; }
3013 rm -f conftest conftest
$ac_cv_exeext
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3015 $as_echo "$ac_cv_exeext" >&6; }
3017 rm -f conftest.
$ac_ext
3018 EXEEXT
=$ac_cv_exeext
3020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3026 FILE *f = fopen ("conftest.out", "w");
3027 return ferror (f) || fclose (f) != 0;
3033 ac_clean_files
="$ac_clean_files conftest.out"
3034 # Check that the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3037 $as_echo_n "checking whether we are cross compiling... " >&6; }
3038 if test "$cross_compiling" != yes; then
3039 { { ac_try
="$ac_link"
3041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_link") 2>&5
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }
3050 if { ac_try='./conftest$ac_cv_exeext'
3051 { { case "(($ac_try" in
3052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3053 *) ac_try_echo
=$ac_try;;
3055 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_try") 2>&5
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; }; then
3063 if test "$cross_compiling" = maybe
; then
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $?
"cannot run C compiled programs.
3069 If you meant to cross compile, use \`--host'.
3070 See \`config.log' for more details" "$LINENO" 5; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3075 $as_echo "$cross_compiling" >&6; }
3077 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3078 ac_clean_files
=$ac_clean_files_save
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3080 $as_echo_n "checking for suffix of object files... " >&6; }
3081 if ${ac_cv_objext+:} false
; then :
3082 $as_echo_n "(cached) " >&6
3084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3095 rm -f conftest.o conftest.obj
3096 if { { ac_try
="$ac_compile"
3098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compile") 2>&5
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 for ac_file in conftest.o conftest.obj conftest.*; do
3108 test -f "$ac_file" || continue;
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3116 $as_echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3122 See \
`config.log' for more details" "$LINENO" 5; }
3124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3127 $as_echo "$ac_cv_objext" >&6; }
3128 OBJEXT=$ac_cv_objext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3132 if ${ac_cv_c_compiler_gnu+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3149 if ac_fn_c_try_compile "$LINENO"; then :
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3160 if test $ac_compiler_gnu = yes; then
3165 ac_test_CFLAGS=${CFLAGS+set}
3166 ac_save_CFLAGS=$CFLAGS
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3169 if ${ac_cv_prog_cc_g+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 ac_save_c_werror_flag=$ac_c_werror_flag
3173 ac_c_werror_flag=yes
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3187 if ac_fn_c_try_compile "$LINENO"; then :
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_c_werror_flag=$ac_save_c_werror_flag
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3218 if ac_fn_c_try_compile "$LINENO"; then :
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3229 $as_echo "$ac_cv_prog_cc_g" >&6; }
3230 if test "$ac_test_CFLAGS" = set; then
3231 CFLAGS=$ac_save_CFLAGS
3232 elif test $ac_cv_prog_cc_g = yes; then
3233 if test "$GCC" = yes; then
3239 if test "$GCC" = yes; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3246 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3247 if ${ac_cv_prog_cc_c89+:} false; then :
3248 $as_echo_n "(cached) " >&6
3250 ac_cv_prog_cc_c89=no
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3258 struct buf { int x; };
3259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3260 static char *e (p, i)
3266 static char *f (char * (*g) (char **, int), char **p, ...)
3271 s = g (p, va_arg (v,int));
3276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3277 function prototypes and stuff, but not '\xHH' hex character constants.
3278 These don't provoke an error unfortunately, instead are silently treated
3279 as 'x'. The following induces an error, until -std is added to get
3280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3281 array size at least. It's necessary to write '\x00'==0 to get something
3282 that's true only with -std. */
3283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3286 inside strings and character constants. */
3288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290 int test (int i, double x);
3291 struct s1 {int (*f) (int a);};
3292 struct s2 {int (*f) (double a);};
3293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307 CC="$ac_save_CC $ac_arg"
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_cv_prog_cc_c89=$ac_arg
3311 rm -f core conftest.err conftest.$ac_objext
3312 test "x$ac_cv_prog_cc_c89" != "xno" && break
3314 rm -f conftest.$ac_ext
3319 case "x$ac_cv_prog_cc_c89" in
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3322 $as_echo "none needed" >&6; } ;;
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3325 $as_echo "unsupported" >&6; } ;;
3327 CC="$CC $ac_cv_prog_cc_c89"
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3331 if test "x$ac_cv_prog_cc_c89" != xno; then :
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346 if test "$GCC" = yes ; then
3348 # -Werror forces warnings to be errors.
3350 ac_lbl_cc_force_warning_errors=-Werror
3353 # Try to have the compiler default to hiding symbols,
3354 # so that only symbols explicitly exported with
3355 # PCAP_API will be visible outside (shared) libraries.
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3359 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3360 save_CFLAGS="$CFLAGS"
3361 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3363 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3364 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3366 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3367 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3369 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3371 CFLAGS="$CFLAGS -fvisibility=hidden"
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3384 if ac_fn_c_try_compile "$LINENO"; then :
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387 $as_echo "yes" >&6; }
3388 CFLAGS="$save_CFLAGS"
3389 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 CFLAGS="$save_CFLAGS"
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 V_INCLS="$V_INCLS -I/usr/local/include"
3402 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3408 # This is assumed either to be GCC or clang, both
3409 # of which use -Werror to force warnings to be errors.
3411 ac_lbl_cc_force_warning_errors=-Werror
3414 # Try to have the compiler default to hiding symbols,
3415 # so that only symbols explicitly exported with
3416 # PCAP_API will be visible outside (shared) libraries.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3420 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3421 save_CFLAGS="$CFLAGS"
3422 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3424 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3425 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3427 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3428 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3430 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3432 CFLAGS="$CFLAGS -fvisibility=hidden"
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3445 if ac_fn_c_try_compile "$LINENO"; then :
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3449 CFLAGS="$save_CFLAGS"
3450 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 CFLAGS="$save_CFLAGS"
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 # HP C, which is what we presume we're using, doesn't
3466 # exit with a non-zero exit status if we hand it an
3467 # invalid -W flag, can't be forced to do so even with
3468 # +We, and doesn't handle GCC-style -W flags, so we
3469 # don't want to try using GCC-style -W flags.
3471 ac_lbl_cc_dont_try_gcc_dashW=yes
3476 # MIPS C, which is what we presume we're using, doesn't
3477 # necessarily exit with a non-zero exit status if we
3478 # hand it an invalid -W flag, can't be forced to do
3479 # so, and doesn't handle GCC-style -W flags, so we
3480 # don't want to try using GCC-style -W flags.
3482 ac_lbl_cc_dont_try_gcc_dashW=yes
3484 # It also, apparently, defaults to "char" being
3485 # unsigned, unlike most other C implementations;
3486 # I suppose we could say "signed char" whenever
3487 # we want to guarantee a signed "char", but let's
3488 # just force signed chars.
3490 # -xansi is normally the default, but the
3491 # configure script was setting it; perhaps -cckr
3492 # was the default in the Old Days. (Then again,
3493 # that would probably be for backwards compatibility
3494 # in the days when ANSI C was Shiny and New, i.e.
3495 # 1989 and the early '90's, so maybe we can just
3496 # drop support for those compilers.)
3498 # -g is equivalent to -g2, which turns off
3499 # optimization; we choose -g3, which generates
3500 # debugging information but doesn't turn off
3501 # optimization (even if the optimization would
3502 # cause inaccuracies in debugging).
3504 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3509 # Presumed to be DEC OSF/1, Digital UNIX, or
3512 # The DEC C compiler, which is what we presume we're
3513 # using, doesn't exit with a non-zero exit status if we
3514 # hand it an invalid -W flag, can't be forced to do
3515 # so, and doesn't handle GCC-style -W flags, so we
3516 # don't want to try using GCC-style -W flags.
3518 ac_lbl_cc_dont_try_gcc_dashW=yes
3520 # -g is equivalent to -g2, which turns off
3521 # optimization; we choose -g3, which generates
3522 # debugging information but doesn't turn off
3523 # optimization (even if the optimization would
3524 # cause inaccuracies in debugging).
3526 V_CCOPT="$V_CCOPT -g3"
3531 # Assumed to be Sun C, which requires -errwarn to force
3532 # warnings to be treated as errors.
3534 ac_lbl_cc_force_warning_errors=-errwarn
3537 # Try to have the compiler default to hiding symbols,
3538 # so that only symbols explicitly exported with
3539 # PCAP_API will be visible outside (shared) libraries.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3543 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3544 save_CFLAGS="$CFLAGS"
3545 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3547 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3548 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3550 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3551 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3553 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3555 CFLAGS="$CFLAGS -xldscope=hidden"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3568 if ac_fn_c_try_compile "$LINENO"; then :
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572 CFLAGS="$save_CFLAGS"
3573 V_CCOPT="$V_CCOPT -xldscope=hidden"
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 CFLAGS="$save_CFLAGS"
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3588 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3589 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3590 $as_echo_n "(cached) " >&6
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594 #include <sys/types.h>
3598 struct a { int b; };
3599 void c(const struct a *)
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_cv_lbl_cc_const_proto=yes
3607 ac_cv_lbl_cc_const_proto=no
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3613 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3614 if test $ac_cv_lbl_cc_const_proto = no ; then
3616 $as_echo "#define const /**/" >>confdefs.h
3621 V_CCOPT="$V_CCOPT -O"
3625 if test "$GCC" = yes ; then
3627 # On platforms where we build a shared library:
3629 # add options to generate position-independent code,
3630 # if necessary (it's the default in AIX and Darwin/OS X);
3632 # define option to set the soname of the shared library,
3633 # if the OS supports that;
3635 # add options to specify, at link time, a directory to
3636 # add to the run-time search path, if that's necessary.
3638 V_SHLIB_CMD="\$(CC)"
3639 V_SHLIB_OPT="-shared"
3645 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3647 # Platforms where the linker is the GNU linker
3648 # or accepts command-line arguments like
3649 # those the GNU linker accepts.
3651 # Some instruction sets require -fPIC on some
3652 # operating systems. Check for them. If you
3653 # have a combination that requires it, add it
3668 V_CCOPT="$V_CCOPT $PIC_OPT"
3669 V_SONAME_OPT="-Wl,-soname,"
3670 V_RPATH_OPT="-Wl,-rpath,"
3674 V_CCOPT="$V_CCOPT -fpic"
3676 # XXX - this assumes GCC is using the HP linker,
3677 # rather than the GNU linker, and that the "+h"
3678 # option is used on all HP-UX platforms, both .sl
3681 V_SONAME_OPT="-Wl,+h,"
3683 # By default, directories specifed with -L
3684 # are added to the run-time search path, so
3685 # we don't add them in pcap-config.
3690 V_CCOPT="$V_CCOPT -fpic"
3692 # XXX - this assumes GCC is using the Sun linker,
3693 # rather than the GNU linker.
3695 V_SONAME_OPT="-Wl,-h,"
3696 V_RPATH_OPT="-Wl,-R,"
3701 # Set the appropriate compiler flags and, on platforms
3702 # where we build a shared library:
3704 # add options to generate position-independent code,
3705 # if necessary (it's the default in Darwin/OS X);
3707 # if we generate ".so" shared libraries, define the
3708 # appropriate options for building the shared library;
3710 # add options to specify, at link time, a directory to
3711 # add to the run-time search path, if that's necessary.
3713 # Note: spaces after V_SONAME_OPT are significant; on
3714 # some platforms the soname is passed with a GCC-like
3715 # "-Wl,-soname,{soname}" option, with the soname part
3716 # of the option, while on other platforms the C compiler
3717 # driver takes it as a regular option with the soname
3718 # following the option. The same applies to V_RPATH_OPT.
3723 V_SHLIB_CMD="\$(CC)"
3724 V_SHLIB_OPT="-G -bnoentry -bexpall"
3727 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3731 V_CCOPT="$V_CCOPT -fpic"
3732 V_SHLIB_CMD="\$(CC)"
3733 V_SHLIB_OPT="-shared"
3734 V_SONAME_OPT="-Wl,-soname,"
3735 V_RPATH_OPT="-Wl,-rpath,"
3739 V_CCOPT="$V_CCOPT +z"
3740 V_SHLIB_CMD="\$(LD)"
3744 # By default, directories specifed with -L
3745 # are added to the run-time search path, so
3746 # we don't add them in pcap-config.
3752 # Presumed to be DEC OSF/1, Digital UNIX, or
3755 V_SHLIB_CMD="\$(CC)"
3756 V_SHLIB_OPT="-shared"
3757 V_SONAME_OPT="-soname "
3758 V_RPATH_OPT="-rpath "
3762 V_CCOPT="$V_CCOPT -Kpic"
3763 V_SHLIB_CMD="\$(CC)"
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3772 $as_echo_n "checking for inline... " >&6; }
3773 save_CFLAGS="$CFLAGS"
3775 if ${ac_cv_lbl_inline+:} false; then :
3776 $as_echo_n "(cached) " >&6
3781 for ac_lbl_inline in inline __inline__ __inline
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785 #define inline $ac_lbl_inline
3786 static inline struct iltest *foo(void);
3792 static inline struct iltest *
3795 static struct iltest xxx;
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_lbl_cc_inline=yes
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 if test "$ac_lbl_cc_inline" = yes ; then
3815 if test "$ac_lbl_cc_inline" = yes ; then
3816 ac_cv_lbl_inline=$ac_lbl_inline
3820 CFLAGS="$save_CFLAGS"
3821 if test ! -z "$ac_cv_lbl_inline" ; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3823 $as_echo "$ac_cv_lbl_inline" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3829 cat >>confdefs.h <<_ACEOF
3830 #define inline $ac_cv_lbl_inline
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3835 $as_echo_n "checking for __attribute__... " >&6; }
3836 if ${ac_cv___attribute__+:} false; then :
3837 $as_echo_n "(cached) " >&6
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3846 static void foo(void) __attribute__ ((noreturn));
3855 main(int argc, char **argv)
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv___attribute__=yes
3864 ac_cv___attribute__=no
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 if test "$ac_cv___attribute__" = "yes"; then
3871 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3875 # We can't use __attribute__, so we can't use __attribute__((unused)),
3876 # so we define _U_ to an empty string.
3878 V_DEFS="$V_DEFS -D_U_=\"\""
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3881 $as_echo "$ac_cv___attribute__" >&6; }
3883 if test "$ac_cv___attribute__" = "yes"; then
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3886 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3887 if ${ac_cv___attribute___unused+:} false; then :
3888 $as_echo_n "(cached) " >&6
3891 save_CFLAGS="$CFLAGS"
3892 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3901 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3903 printf("Hello, world!\n");
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv___attribute___unused=yes
3911 ac_cv___attribute___unused=no
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 CFLAGS="$save_CFLAGS"
3917 if test "$ac_cv___attribute___unused" = "yes"; then
3918 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3920 V_DEFS="$V_DEFS -D_U_=\"\""
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3923 $as_echo "$ac_cv___attribute___unused" >&6; }
3928 # Try to arrange for large file support.
3930 # Check whether --enable-largefile was given.
3931 if test "${enable_largefile+set}" = set; then :
3932 enableval=$enable_largefile;
3935 if test "$enable_largefile" != no; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3938 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3939 if ${ac_cv_sys_largefile_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 ac_cv_sys_largefile_CC=no
3943 if test "$GCC" != yes; then
3946 # IRIX 6.2 and later do not support large files by default,
3947 # so use the C compiler's -n32 option if that helps.
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <sys/types.h>
3951 /* Check that off_t can represent 2**63 - 1 correctly.
3952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3953 since some C++ compilers masquerading as C compilers
3954 incorrectly reject 9223372036854775807. */
3955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3957 && LARGE_OFF_T % 2147483647 == 1)
3967 if ac_fn_c_try_compile "$LINENO"; then :
3970 rm -f core conftest.err conftest.$ac_objext
3972 if ac_fn_c_try_compile "$LINENO"; then :
3973 ac_cv_sys_largefile_CC=' -n32'; break
3975 rm -f core conftest.err conftest.$ac_objext
3979 rm -f conftest.$ac_ext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3983 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3984 if test "$ac_cv_sys_largefile_CC" != no; then
3985 CC=$CC$ac_cv_sys_largefile_CC
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3989 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3990 if ${ac_cv_sys_file_offset_bits+:} false; then :
3991 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <sys/types.h>
3997 /* Check that off_t can represent 2**63 - 1 correctly.
3998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3999 since some C++ compilers masquerading as C compilers
4000 incorrectly reject 9223372036854775807. */
4001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4003 && LARGE_OFF_T % 2147483647 == 1)
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_sys_file_offset_bits=no; break
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #define _FILE_OFFSET_BITS 64
4020 #include <sys/types.h>
4021 /* Check that off_t can represent 2**63 - 1 correctly.
4022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4023 since some C++ compilers masquerading as C compilers
4024 incorrectly reject 9223372036854775807. */
4025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4027 && LARGE_OFF_T % 2147483647 == 1)
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_sys_file_offset_bits=64; break
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_cv_sys_file_offset_bits=unknown
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4046 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4047 case $ac_cv_sys_file_offset_bits in #(
4050 cat >>confdefs.h <<_ACEOF
4051 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4056 if test $ac_cv_sys_file_offset_bits = unknown; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4058 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4059 if ${ac_cv_sys_large_files+:} false; then :
4060 $as_echo_n "(cached) " >&6
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <sys/types.h>
4066 /* Check that off_t can represent 2**63 - 1 correctly.
4067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4068 since some C++ compilers masquerading as C compilers
4069 incorrectly reject 9223372036854775807. */
4070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4072 && LARGE_OFF_T % 2147483647 == 1)
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_sys_large_files=no; break
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #define _LARGE_FILES 1
4089 #include <sys/types.h>
4090 /* Check that off_t can represent 2**63 - 1 correctly.
4091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4092 since some C++ compilers masquerading as C compilers
4093 incorrectly reject 9223372036854775807. */
4094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4096 && LARGE_OFF_T % 2147483647 == 1)
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_sys_large_files=1; break
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_cv_sys_large_files=unknown
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4115 $as_echo "$ac_cv_sys_large_files" >&6; }
4116 case $ac_cv_sys_large_files in #(
4119 cat >>confdefs.h <<_ACEOF
4120 #define _LARGE_FILES $ac_cv_sys_large_files
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4131 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4132 if ${ac_cv_sys_largefile_source+:} false; then :
4133 $as_echo_n "(cached) " >&6
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <sys/types.h> /* for off_t */
4143 int (*fp) (FILE *, off_t, int) = fseeko;
4144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4149 if ac_fn_c_try_link "$LINENO"; then :
4150 ac_cv_sys_largefile_source=no; break
4152 rm -f core conftest.err conftest.$ac_objext \
4153 conftest$ac_exeext conftest.$ac_ext
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 #define _LARGEFILE_SOURCE 1
4157 #include <sys/types.h> /* for off_t */
4162 int (*fp) (FILE *, off_t, int) = fseeko;
4163 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4168 if ac_fn_c_try_link "$LINENO"; then :
4169 ac_cv_sys_largefile_source=1; break
4171 rm -f core conftest.err conftest.$ac_objext \
4172 conftest$ac_exeext conftest.$ac_ext
4173 ac_cv_sys_largefile_source=unknown
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4178 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4179 case $ac_cv_sys_largefile_source in #(
4182 cat >>confdefs.h <<_ACEOF
4183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4189 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4190 # in glibc 2.1.3, but that breaks too many other things.
4191 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4192 if test $ac_cv_sys_largefile_source != unknown; then
4194 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4205 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4206 # On Suns, sometimes $CPP names a directory.
4207 if test -n "$CPP" && test -d "$CPP"; then
4210 if test -z "$CPP"; then
4211 if ${ac_cv_prog_CPP+:} false; then :
4212 $as_echo_n "(cached) " >&6
4214 # Double quotes because CPP needs to be expanded
4215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4218 for ac_c_preproc_warn_flag in '' yes
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4229 # include <limits.h>
4231 # include <assert.h>
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4238 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4253 # Passes both tests.
4257 rm -f conftest.err conftest.i conftest.$ac_ext
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.i conftest.err conftest.
$ac_ext
4262 if $ac_preproc_ok; then :
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4275 $as_echo "$CPP" >&6; }
4277 for ac_c_preproc_warn_flag
in '' yes
4279 # Use a header file that comes with gcc, so configuring glibc
4280 # with a fresh cross-compiler works.
4281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 # <limits.h> exists even on freestanding compilers.
4283 # On the NeXT, cc -E runs the code through the compiler's parser,
4284 # not just through cpp. "Syntax error" is here to catch this case.
4285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4288 # include <limits.h>
4290 # include <assert.h>
4294 if ac_fn_c_try_cpp
"$LINENO"; then :
4297 # Broken: fails on valid input.
4300 rm -f conftest.err conftest.i conftest.
$ac_ext
4302 # OK, works on sane cases. Now check whether nonexistent headers
4303 # can be detected and how.
4304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <ac_nonexistent.h>
4308 if ac_fn_c_try_cpp
"$LINENO"; then :
4309 # Broken: success on invalid input.
4312 # Passes both tests.
4316 rm -f conftest.err conftest.i conftest.
$ac_ext
4319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4320 rm -f conftest.i conftest.err conftest.
$ac_ext
4321 if $ac_preproc_ok; then :
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4327 See \`config.log' for more details" "$LINENO" 5; }
4331 ac_cpp
='$CPP $CPPFLAGS'
4332 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4338 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4339 if ${ac_cv_path_GREP+:} false
; then :
4340 $as_echo_n "(cached) " >&6
4342 if test -z "$GREP"; then
4343 ac_path_GREP_found
=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4346 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4349 test -z "$as_dir" && as_dir
=.
4350 for ac_prog
in grep ggrep
; do
4351 for ac_exec_ext
in '' $ac_executable_extensions; do
4352 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4353 as_fn_executable_p
"$ac_path_GREP" ||
continue
4354 # Check for GNU ac_path_GREP and select it if it is found.
4355 # Check for GNU $ac_path_GREP
4356 case `"$ac_path_GREP" --version 2>&1` in
4358 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4361 $as_echo_n 0123456789 >"conftest.in"
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'GREP' >> "conftest.nl"
4368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4369 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4370 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_GREP
="$ac_path_GREP"
4374 ac_path_GREP_max
=$ac_count
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4379 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4382 $ac_path_GREP_found && break 3
4387 if test -z "$ac_cv_path_GREP"; then
4388 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4391 ac_cv_path_GREP
=$GREP
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4396 $as_echo "$ac_cv_path_GREP" >&6; }
4397 GREP
="$ac_cv_path_GREP"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4401 $as_echo_n "checking for egrep... " >&6; }
4402 if ${ac_cv_path_EGREP+:} false
; then :
4403 $as_echo_n "(cached) " >&6
4405 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4406 then ac_cv_path_EGREP
="$GREP -E"
4408 if test -z "$EGREP"; then
4409 ac_path_EGREP_found
=false
4410 # Loop through the user's path and test for each of PROGNAME-LIST
4411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4412 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4415 test -z "$as_dir" && as_dir
=.
4416 for ac_prog
in egrep; do
4417 for ac_exec_ext
in '' $ac_executable_extensions; do
4418 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4419 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4420 # Check for GNU ac_path_EGREP and select it if it is found.
4421 # Check for GNU $ac_path_EGREP
4422 case `"$ac_path_EGREP" --version 2>&1` in
4424 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4427 $as_echo_n 0123456789 >"conftest.in"
4430 cat "conftest.in" "conftest.in" >"conftest.tmp"
4431 mv "conftest.tmp" "conftest.in"
4432 cp "conftest.in" "conftest.nl"
4433 $as_echo 'EGREP' >> "conftest.nl"
4434 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4435 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4436 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4437 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4438 # Best one so far, save it but keep looking for a better one
4439 ac_cv_path_EGREP
="$ac_path_EGREP"
4440 ac_path_EGREP_max
=$ac_count
4442 # 10*(2^10) chars as input seems more than enough
4443 test $ac_count -gt 10 && break
4445 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4448 $ac_path_EGREP_found && break 3
4453 if test -z "$ac_cv_path_EGREP"; then
4454 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457 ac_cv_path_EGREP
=$EGREP
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4463 $as_echo "$ac_cv_path_EGREP" >&6; }
4464 EGREP
="$ac_cv_path_EGREP"
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4468 $as_echo_n "checking for ANSI C header files... " >&6; }
4469 if ${ac_cv_header_stdc+:} false
; then :
4470 $as_echo_n "(cached) " >&6
4472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4487 if ac_fn_c_try_compile
"$LINENO"; then :
4488 ac_cv_header_stdc
=yes
4490 ac_cv_header_stdc
=no
4492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4494 if test $ac_cv_header_stdc = yes; then
4495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 $EGREP "memchr" >/dev
/null
2>&1; then :
4505 ac_cv_header_stdc
=no
4511 if test $ac_cv_header_stdc = yes; then
4512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4519 $EGREP "free" >/dev
/null
2>&1; then :
4522 ac_cv_header_stdc
=no
4528 if test $ac_cv_header_stdc = yes; then
4529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4530 if test "$cross_compiling" = yes; then :
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 #if ((' ' & 0x0FF) == 0x020)
4538 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4539 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4541 # define ISLOWER(c) \
4542 (('a' <= (c) && (c) <= 'i') \
4543 || ('j' <= (c) && (c) <= 'r') \
4544 || ('s' <= (c) && (c) <= 'z'))
4545 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4553 for (i = 0; i < 256; i++)
4554 if (XOR (islower (i), ISLOWER (i))
4555 || toupper (i) != TOUPPER (i))
4560 if ac_fn_c_try_run
"$LINENO"; then :
4563 ac_cv_header_stdc
=no
4565 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4566 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4572 $as_echo "$ac_cv_header_stdc" >&6; }
4573 if test $ac_cv_header_stdc = yes; then
4575 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4579 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4580 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4581 inttypes.h stdint.h unistd.h
4583 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4586 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4587 cat >>confdefs.h
<<_ACEOF
4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4596 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h
4598 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4599 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4600 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4601 cat >>confdefs.h
<<_ACEOF
4602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4609 for ac_header
in netpacket
/packet.h
4611 ac_fn_c_check_header_mongrel
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4612 if test "x$ac_cv_header_netpacket_packet_h" = xyes
; then :
4613 cat >>confdefs.h
<<_ACEOF
4614 #define HAVE_NETPACKET_PACKET_H 1
4621 for ac_header
in net
/pfvar.h
4623 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4624 #include <sys/socket.h>
4627 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4628 cat >>confdefs.h
<<_ACEOF
4629 #define HAVE_NET_PFVAR_H 1
4636 if test "$ac_cv_header_net_pfvar_h" = yes; then
4638 # Check for various PF actions.
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4641 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <sys/types.h>
4645 #include <sys/socket.h>
4647 #include <net/pfvar.h>
4651 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4656 if ac_fn_c_try_compile
"$LINENO"; then :
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4659 $as_echo "yes" >&6; }
4661 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4673 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4675 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4676 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4677 #include <sys/socket.h>
4678 #include <linux/if.h>
4681 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4682 cat >>confdefs.h
<<_ACEOF
4683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4693 if test "$GCC" = yes ; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4695 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4696 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4697 $as_echo_n "(cached) " >&6
4699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4702 * This generates a "duplicate case value" when fixincludes
4705 # include <sys/types.h>
4706 # include <sys/time.h>
4707 # include <sys/ioctl.h>
4708 # ifdef HAVE_SYS_IOCCOM_H
4709 # include <sys/ioccom.h>
4722 if ac_fn_c_try_compile
"$LINENO"; then :
4723 ac_cv_lbl_gcc_fixincludes
=yes
4725 ac_cv_lbl_gcc_fixincludes
=no
4727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4731 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4732 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4733 # Don't cache failure
4734 unset ac_cv_lbl_gcc_fixincludes
4735 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
4739 for ac_func
in strerror strerror_r strlcpy strlcat
4741 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4742 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4743 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4744 cat >>confdefs.h
<<_ACEOF
4745 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4753 for ac_func
in vsnprintf snprintf
4755 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4756 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4757 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4758 cat >>confdefs.h
<<_ACEOF
4759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4767 if test $needsnprintf = yes; then
4768 case " $LIBOBJS " in
4769 *" snprintf.$ac_objext "* ) ;;
4770 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4777 for ac_func
in strtok_r
4779 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4780 if test "x$ac_cv_func_strtok_r" = xyes
; then :
4781 cat >>confdefs.h
<<_ACEOF
4782 #define HAVE_STRTOK_R 1
4790 if test $needstrtok_r = yes; then
4791 case " $LIBOBJS " in
4792 *" strtok_r.$ac_objext "* ) ;;
4793 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
4800 # Do we have ffs(), and is it declared in <strings.h>?
4804 ac_fn_c_check_func
"$LINENO" "ffs" "ac_cv_func_ffs"
4805 if test "x$ac_cv_func_ffs" = xyes
; then :
4806 cat >>confdefs.h
<<_ACEOF
4813 if test "$ac_cv_func_ffs" = yes; then
4815 # We have ffs(); is it declared in <strings.h>?
4817 # This test fails if we don't have <strings.h> or if we do
4818 # but it doesn't declare ffs().
4820 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "
4821 #include <strings.h>
4824 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
4827 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
4835 # Do this before checking for ether_hostton(), as it's a
4836 # "gethostbyname() -ish function".
4839 # Most operating systems have gethostbyname() in the default searched
4840 # libraries (i.e. libc):
4841 # Some OSes (eg. Solaris) place it in libnsl
4842 # Some strange OSes (SINIX) have it in libsocket:
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4844 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4845 if ${ac_cv_search_gethostbyname+:} false
; then :
4846 $as_echo_n "(cached) " >&6
4848 ac_func_search_save_LIBS
=$LIBS
4849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4852 /* Override any GCC internal prototype to avoid an error.
4853 Use char because int might match the return type of a GCC
4854 builtin and then its argument prototype would still apply. */
4858 char gethostbyname ();
4862 return gethostbyname ();
4867 for ac_lib
in '' nsl socket resolv
; do
4868 if test -z "$ac_lib"; then
4869 ac_res
="none required"
4872 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4874 if ac_fn_c_try_link
"$LINENO"; then :
4875 ac_cv_search_gethostbyname
=$ac_res
4877 rm -f core conftest.err conftest.
$ac_objext \
4879 if ${ac_cv_search_gethostbyname+:} false
; then :
4883 if ${ac_cv_search_gethostbyname+:} false
; then :
4886 ac_cv_search_gethostbyname
=no
4889 LIBS
=$ac_func_search_save_LIBS
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4892 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4893 ac_res
=$ac_cv_search_gethostbyname
4894 if test "$ac_res" != no
; then :
4895 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4899 # Unfortunately libsocket sometimes depends on libnsl and
4900 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4901 if test "$ac_cv_search_gethostbyname" = "no"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
4904 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
4905 if ${ac_cv_lib_socket_gethostbyname+:} false
; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_check_lib_save_LIBS
=$LIBS
4909 LIBS
="-lsocket -lnsl $LIBS"
4910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4913 /* Override any GCC internal prototype to avoid an error.
4914 Use char because int might match the return type of a GCC
4915 builtin and then its argument prototype would still apply. */
4919 char gethostbyname ();
4923 return gethostbyname ();
4928 if ac_fn_c_try_link
"$LINENO"; then :
4929 ac_cv_lib_socket_gethostbyname
=yes
4931 ac_cv_lib_socket_gethostbyname
=no
4933 rm -f core conftest.err conftest.
$ac_objext \
4934 conftest
$ac_exeext conftest.
$ac_ext
4935 LIBS
=$ac_check_lib_save_LIBS
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4938 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4939 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
; then :
4940 LIBS
="-lsocket -lnsl $LIBS"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4945 $as_echo_n "checking for library containing socket... " >&6; }
4946 if ${ac_cv_search_socket+:} false
; then :
4947 $as_echo_n "(cached) " >&6
4949 ac_func_search_save_LIBS
=$LIBS
4950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4953 /* Override any GCC internal prototype to avoid an error.
4954 Use char because int might match the return type of a GCC
4955 builtin and then its argument prototype would still apply. */
4968 for ac_lib
in '' socket
; do
4969 if test -z "$ac_lib"; then
4970 ac_res
="none required"
4973 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4975 if ac_fn_c_try_link
"$LINENO"; then :
4976 ac_cv_search_socket
=$ac_res
4978 rm -f core conftest.err conftest.
$ac_objext \
4980 if ${ac_cv_search_socket+:} false
; then :
4984 if ${ac_cv_search_socket+:} false
; then :
4987 ac_cv_search_socket
=no
4990 LIBS
=$ac_func_search_save_LIBS
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4993 $as_echo "$ac_cv_search_socket" >&6; }
4994 ac_res
=$ac_cv_search_socket
4995 if test "$ac_res" != no
; then :
4996 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5000 $as_echo_n "checking for socket in -lsocket... " >&6; }
5001 if ${ac_cv_lib_socket_socket+:} false
; then :
5002 $as_echo_n "(cached) " >&6
5004 ac_check_lib_save_LIBS
=$LIBS
5005 LIBS
="-lsocket -lnsl $LIBS"
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5009 /* Override any GCC internal prototype to avoid an error.
5010 Use char because int might match the return type of a GCC
5011 builtin and then its argument prototype would still apply. */
5024 if ac_fn_c_try_link
"$LINENO"; then :
5025 ac_cv_lib_socket_socket
=yes
5027 ac_cv_lib_socket_socket
=no
5029 rm -f core conftest.err conftest.
$ac_objext \
5030 conftest
$ac_exeext conftest.
$ac_ext
5031 LIBS
=$ac_check_lib_save_LIBS
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5034 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5035 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
5036 LIBS
="-lsocket -lnsl $LIBS"
5041 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5043 $as_echo_n "checking for library containing putmsg... " >&6; }
5044 if ${ac_cv_search_putmsg+:} false
; then :
5045 $as_echo_n "(cached) " >&6
5047 ac_func_search_save_LIBS
=$LIBS
5048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 /* Override any GCC internal prototype to avoid an error.
5052 Use char because int might match the return type of a GCC
5053 builtin and then its argument prototype would still apply. */
5066 for ac_lib
in '' str
; do
5067 if test -z "$ac_lib"; then
5068 ac_res
="none required"
5071 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5073 if ac_fn_c_try_link
"$LINENO"; then :
5074 ac_cv_search_putmsg
=$ac_res
5076 rm -f core conftest.err conftest.
$ac_objext \
5078 if ${ac_cv_search_putmsg+:} false
; then :
5082 if ${ac_cv_search_putmsg+:} false
; then :
5085 ac_cv_search_putmsg
=no
5088 LIBS
=$ac_func_search_save_LIBS
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5091 $as_echo "$ac_cv_search_putmsg" >&6; }
5092 ac_res
=$ac_cv_search_putmsg
5093 if test "$ac_res" != no
; then :
5094 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5101 # You are in a twisty little maze of UN*Xes, all different.
5102 # Some might not have ether_hostton().
5103 # Some might have it and declare it in <net/ethernet.h>.
5104 # Some might have it and declare it in <netinet/ether.h>
5105 # Some might have it and declare it in <sys/ethernet.h>.
5106 # Some might have it and declare it in <arpa/inet.h>.
5107 # Some might have it and declare it in <netinet/if_ether.h>.
5108 # Some might have it and not declare it in any header file.
5110 # Before you is a C compiler.
5112 for ac_func
in ether_hostton
5114 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5115 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5116 cat >>confdefs.h
<<_ACEOF
5117 #define HAVE_ETHER_HOSTTON 1
5123 if test "$ac_cv_func_ether_hostton" = yes; then
5125 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5127 # This test fails if we don't have <net/ethernet.h> or if we do
5128 # but it doesn't declare ether_hostton().
5130 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5131 #include <net/ethernet.h>
5134 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5137 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5145 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5147 # No, how about <netinet/ether.h>, as on Linux?
5149 # This test fails if we don't have <netinet/ether.h>
5150 # or if we do but it doesn't declare ether_hostton().
5152 # Unset ac_cv_have_decl_ether_hostton so we don't
5153 # treat the previous failure as a cached value and
5154 # suppress the next test.
5156 unset ac_cv_have_decl_ether_hostton
5157 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5158 #include <netinet/ether.h>
5161 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5164 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5173 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5175 # No, how about <sys/ethernet.h>, as on Solaris 10
5178 # This test fails if we don't have <sys/ethernet.h>
5179 # or if we do but it doesn't declare ether_hostton().
5181 # Unset ac_cv_have_decl_ether_hostton so we don't
5182 # treat the previous failure as a cached value and
5183 # suppress the next test.
5185 unset ac_cv_have_decl_ether_hostton
5186 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5187 #include <sys/ethernet.h>
5190 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5193 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5202 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5204 # No, how about <arpa/inet.h>, as in AIX?
5206 # This test fails if we don't have <arpa/inet.h>
5207 # (if we have ether_hostton(), we should have
5208 # networking, and if we have networking, we should
5209 # have <arapa/inet.h>) or if we do but it doesn't
5210 # declare ether_hostton().
5212 # Unset ac_cv_have_decl_ether_hostton so we don't
5213 # treat the previous failure as a cached value and
5214 # suppress the next test.
5216 unset ac_cv_have_decl_ether_hostton
5217 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5218 #include <arpa/inet.h>
5221 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5224 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5233 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5235 # No, how about <netinet/if_ether.h>?
5236 # On some platforms, it requires <net/if.h> and
5237 # <netinet/in.h>, and we always include it with
5238 # both of them, so test it with both of them.
5240 # This test fails if we don't have <netinet/if_ether.h>
5241 # and the headers we include before it, or if we do but
5242 # <netinet/if_ether.h> doesn't declare ether_hostton().
5244 # Unset ac_cv_have_decl_ether_hostton so we don't
5245 # treat the previous failure as a cached value and
5246 # suppress the next test.
5248 unset ac_cv_have_decl_ether_hostton
5249 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5250 #include <sys/types.h>
5251 #include <sys/socket.h>
5253 #include <netinet/in.h>
5254 #include <netinet/if_ether.h>
5257 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5260 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5267 # After all that, is ether_hostton() declared?
5269 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5274 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5278 # No, we'll have to declare it ourselves.
5279 # Do we have "struct ether_addr" if we include
5280 # <netinet/if_ether.h>?
5282 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5283 #include <sys/types.h>
5284 #include <sys/socket.h>
5286 #include <netinet/in.h>
5287 #include <netinet/if_ether.h>
5290 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5292 cat >>confdefs.h
<<_ACEOF
5293 #define HAVE_STRUCT_ETHER_ADDR 1
5303 # For various things that might use pthreads.
5305 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5306 if test "x$ac_cv_header_pthread_h" = xyes
; then :
5309 # OK, we have pthread.h. Do we have pthread_create in the
5312 ac_fn_c_check_func
"$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5313 if test "x$ac_cv_func_pthread_create" = xyes
; then :
5318 ac_lbl_have_pthreads
="found"
5323 # No - do we have it in -lpthreads?
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5326 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5327 if ${ac_cv_lib_pthreads_pthread_create+:} false
; then :
5328 $as_echo_n "(cached) " >&6
5330 ac_check_lib_save_LIBS
=$LIBS
5331 LIBS
="-lpthreads $LIBS"
5332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5335 /* Override any GCC internal prototype to avoid an error.
5336 Use char because int might match the return type of a GCC
5337 builtin and then its argument prototype would still apply. */
5341 char pthread_create ();
5345 return pthread_create ();
5350 if ac_fn_c_try_link
"$LINENO"; then :
5351 ac_cv_lib_pthreads_pthread_create
=yes
5353 ac_cv_lib_pthreads_pthread_create
=no
5355 rm -f core conftest.err conftest.
$ac_objext \
5356 conftest
$ac_exeext conftest.
$ac_ext
5357 LIBS
=$ac_check_lib_save_LIBS
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5360 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5361 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
; then :
5364 # Yes - add -lpthreads.
5366 ac_lbl_have_pthreads
="found"
5367 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthreads"
5372 # No - do we have it in -lpthread?
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5375 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5376 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
5377 $as_echo_n "(cached) " >&6
5379 ac_check_lib_save_LIBS
=$LIBS
5380 LIBS
="-lpthread $LIBS"
5381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5384 /* Override any GCC internal prototype to avoid an error.
5385 Use char because int might match the return type of a GCC
5386 builtin and then its argument prototype would still apply. */
5390 char pthread_create ();
5394 return pthread_create ();
5399 if ac_fn_c_try_link
"$LINENO"; then :
5400 ac_cv_lib_pthread_pthread_create
=yes
5402 ac_cv_lib_pthread_pthread_create
=no
5404 rm -f core conftest.err conftest.
$ac_objext \
5405 conftest
$ac_exeext conftest.
$ac_ext
5406 LIBS
=$ac_check_lib_save_LIBS
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5409 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5410 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
5413 # Yes - add -lpthread.
5415 ac_lbl_have_pthreads
="found"
5416 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthread"
5423 ac_lbl_have_pthreads
="not found"
5437 # We didn't find pthread.h.
5439 ac_lbl_have_pthreads
="not found"
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5447 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5448 # Check whether --enable-protochain was given.
5449 if test "${enable_protochain+set}" = set; then :
5450 enableval
=$enable_protochain;
5453 case "x$enable_protochain" in
5454 xyes
) enable_protochain
=enabled
;;
5455 xno
) enable_protochain
=disabled
;;
5456 x
) enable_protochain
=enabled
;;
5459 if test "$enable_protochain" = "disabled"; then
5461 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5465 $as_echo "${enable_protochain}" >&6; }
5468 # valgrindtest directly uses the native capture mechanism, but
5469 # only tests with BPF and PF_PACKET sockets; only enable it if
5470 # we have BPF or PF_PACKET sockets.
5475 # SITA support is mutually exclusive with native capture support;
5476 # "--with-sita" selects SITA support.
5479 # Check whether --with-sita was given.
5480 if test "${with_sita+set}" = set; then :
5482 if test ! "x$withval" = "xno" ; then
5484 $as_echo "#define SITA 1" >>confdefs.h
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5487 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5494 # Check whether --with-pcap was given.
5495 if test "${with_pcap+set}" = set; then :
5499 if test ! -z "$with_pcap" ; then
5503 # Check for a bunch of headers for various packet
5504 # capture mechanisms.
5506 for ac_header
in net
/bpf.h
5508 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
5510 cat >>confdefs.h
<<_ACEOF
5511 #define HAVE_NET_BPF_H 1
5518 if test "$ac_cv_header_net_bpf_h" = yes; then
5520 # Does it define BIOCSETIF?
5521 # I.e., is it a header for an LBL/BSD-style capture
5522 # mechanism, or is it just a header for a BPF filter
5523 # engine? Some versions of Arch Linux, for example,
5524 # have a net/bpf.h that doesn't define BIOCSETIF;
5525 # as it's a Linux, it should use packet sockets,
5530 # sys/types.h, because FreeBSD 10's net/bpf.h
5531 # requires that various BSD-style integer types
5534 # sys/ioctl.h and, if we have it, sys/ioccom.h,
5535 # because net/bpf.h defines ioctls;
5537 # net/if.h, because it defines some structures
5538 # used in ioctls defined by net/bpf.h;
5540 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
5541 # defines some structure fields as being
5544 # and net/bpf.h doesn't necessarily include all
5545 # of those headers itself.
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
5548 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
5549 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false
; then :
5550 $as_echo_n "(cached) " >&6
5552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5555 #include <sys/types.h>
5556 #include <sys/ioctl.h>
5557 #include <sys/socket.h>
5558 #ifdef HAVE_SYS_IOCCOM_H
5559 #include <sys/ioccom.h>
5561 #include <net/bpf.h>
5567 u_int i = BIOCSETIF;
5572 if ac_fn_c_try_compile
"$LINENO"; then :
5573 ac_cv_lbl_bpf_h_defines_biocsetif
=yes
5575 ac_cv_lbl_bpf_h_defines_biocsetif
=no
5577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
5581 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
5583 for ac_header
in net
/pfilt.h net
/enet.h
5585 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5586 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5587 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5588 cat >>confdefs.h
<<_ACEOF
5589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5596 for ac_header
in net
/nit.h sys
/net
/nit.h
5598 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5599 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5600 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5601 cat >>confdefs.h
<<_ACEOF
5602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609 for ac_header
in linux
/socket.h net
/raw.h sys
/dlpi.h
5611 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5612 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5613 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5614 cat >>confdefs.h
<<_ACEOF
5615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5623 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
5626 # Check this before DLPI, so that we pick BPF on
5627 # Solaris 11 and later.
5632 # We have BPF, so build valgrindtest with "make test"
5633 # on macOS, FreeBSD, and Linux (add your OS once
5634 # there's a valgrind for it).
5638 freebsd
*|darwin
*|linux
*)
5639 VALGRINDTEST
=valgrindtest
5642 elif test "$ac_cv_header_linux_socket_h" = yes; then
5644 # No prizes for guessing this one.
5649 # XXX - this won't work with older kernels that have
5650 # SOCK_PACKET sockets but not PF_PACKET sockets.
5652 VALGRINDTEST
=valgrindtest
5653 elif test "$ac_cv_header_net_pfilt_h" = yes; then
5655 # DEC OSF/1, Digital UNIX, Tru64 UNIX
5658 elif test "$ac_cv_header_net_enet_h" = yes; then
5660 # Stanford Enetfilter.
5663 elif test "$ac_cv_header_net_nit_h" = yes; then
5665 # SunOS 4.x STREAMS NIT.
5668 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
5670 # Pre-SunOS 4.x non-STREAMS NIT.
5673 elif test "$ac_cv_header_net_raw_h" = yes; then
5678 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
5680 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
5685 # Nothing we support.
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
5689 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
5691 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5695 $as_echo_n "checking packet capture type... " >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5697 $as_echo "$V_PCAP" >&6; }
5701 # Do capture-mechanism-dependent tests.
5706 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5711 # Checks for some header files.
5713 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5715 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5716 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5717 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5718 cat >>confdefs.h
<<_ACEOF
5719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5728 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5729 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5730 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5731 # private version also existed, which did not have the same APIs.
5732 # Due to a gcc bug, the default search path for 32-bit libraries does
5733 # not include /lib, we add it explicitly here.
5734 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5735 # Also, due to the bug above applications that link to libpcap with
5736 # libdlpi will have to add "-L/lib" option to "configure".
5738 saved_ldflags
=$LDFLAGS
5739 LDFLAGS
="$LIBS -L/lib"
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5741 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5742 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
5743 $as_echo_n "(cached) " >&6
5745 ac_check_lib_save_LIBS
=$LIBS
5747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5750 /* Override any GCC internal prototype to avoid an error.
5751 Use char because int might match the return type of a GCC
5752 builtin and then its argument prototype would still apply. */
5760 return dlpi_walk ();
5765 if ac_fn_c_try_link
"$LINENO"; then :
5766 ac_cv_lib_dlpi_dlpi_walk
=yes
5768 ac_cv_lib_dlpi_dlpi_walk
=no
5770 rm -f core conftest.err conftest.
$ac_objext \
5771 conftest
$ac_exeext conftest.
$ac_ext
5772 LIBS
=$ac_check_lib_save_LIBS
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5775 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5776 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
5781 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5788 LDFLAGS
=$saved_ldflags
5791 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5795 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5796 if ${ac_cv_sys_dlpi_usable+:} false
; then :
5797 $as_echo_n "(cached) " >&6
5799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5802 #include <sys/types.h>
5803 #include <sys/time.h>
5804 #include <sys/dlpi.h>
5809 int i = DL_PROMISC_PHYS;
5814 if ac_fn_c_try_compile
"$LINENO"; then :
5815 ac_cv_sys_dlpi_usable
=yes
5817 ac_cv_sys_dlpi_usable
=no
5819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5823 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5824 if test $ac_cv_sys_dlpi_usable = no
; then
5825 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5829 # This check is for Solaris with DLPI support for passive modes.
5830 # See dlpi(7P) for more details.
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5833 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5834 if ${ac_cv_lbl_has_dl_passive_req_t+:} false
; then :
5835 $as_echo_n "(cached) " >&6
5837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5840 # include <sys/types.h>
5841 # include <sys/dlpi.h>
5845 u_int i = sizeof(dl_passive_req_t)
5850 if ac_fn_c_try_compile
"$LINENO"; then :
5851 ac_cv_lbl_has_dl_passive_req_t
=yes
5853 ac_cv_lbl_has_dl_passive_req_t
=no
5855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5859 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5860 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5862 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5869 # Do we have the wireless extensions?
5871 for ac_header
in linux
/wireless.h
5873 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5874 #include <sys/socket.h>
5875 #include <linux/if.h>
5876 #include <linux/types.h>
5879 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
5880 cat >>confdefs.h
<<_ACEOF
5881 #define HAVE_LINUX_WIRELESS_H 1
5893 # Check whether --with-libnl was given.
5894 if test "${with_libnl+set}" = set; then :
5895 withval
=$with_libnl; with_libnl
=$withval
5897 with_libnl
=if_available
5901 if test x
$with_libnl != xno
; then
5904 incdir
=-I/usr
/include
/libnl3
5906 case "$with_libnl" in
5912 if test -d $withval; then
5913 libnldir
=-L${withval}/lib
/.libs
5914 incdir
=-I${withval}/include
5920 # Try libnl 3.x first.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5923 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5924 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
5925 $as_echo_n "(cached) " >&6
5927 ac_check_lib_save_LIBS
=$LIBS
5928 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5932 /* Override any GCC internal prototype to avoid an error.
5933 Use char because int might match the return type of a GCC
5934 builtin and then its argument prototype would still apply. */
5938 char nl_socket_alloc ();
5942 return nl_socket_alloc ();
5947 if ac_fn_c_try_link
"$LINENO"; then :
5948 ac_cv_lib_nl_3_nl_socket_alloc
=yes
5950 ac_cv_lib_nl_3_nl_socket_alloc
=no
5952 rm -f core conftest.err conftest.
$ac_objext \
5953 conftest
$ac_exeext conftest.
$ac_ext
5954 LIBS
=$ac_check_lib_save_LIBS
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5957 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5958 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
5961 # Yes, we have libnl 3.x.
5963 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5965 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5968 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5971 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5974 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5976 V_INCLS
="$V_INCLS ${incdir}"
5982 if test x
$have_any_nl = xno
; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5987 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5988 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 ac_check_lib_save_LIBS
=$LIBS
5993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5996 /* Override any GCC internal prototype to avoid an error.
5997 Use char because int might match the return type of a GCC
5998 builtin and then its argument prototype would still apply. */
6002 char nl_socket_alloc ();
6006 return nl_socket_alloc ();
6011 if ac_fn_c_try_link
"$LINENO"; then :
6012 ac_cv_lib_nl_nl_socket_alloc
=yes
6014 ac_cv_lib_nl_nl_socket_alloc
=no
6016 rm -f core conftest.err conftest.
$ac_objext \
6017 conftest
$ac_exeext conftest.
$ac_ext
6018 LIBS
=$ac_check_lib_save_LIBS
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6021 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6022 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
6025 # Yes, we have libnl 2.x.
6027 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
6029 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6032 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6035 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6038 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6046 if test x
$have_any_nl = xno
; then
6048 # No, we don't; do we have libnl 1.x?
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6051 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6052 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
6053 $as_echo_n "(cached) " >&6
6055 ac_check_lib_save_LIBS
=$LIBS
6057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6060 /* Override any GCC internal prototype to avoid an error.
6061 Use char because int might match the return type of a GCC
6062 builtin and then its argument prototype would still apply. */
6066 char nl_handle_alloc ();
6070 return nl_handle_alloc ();
6075 if ac_fn_c_try_link
"$LINENO"; then :
6076 ac_cv_lib_nl_nl_handle_alloc
=yes
6078 ac_cv_lib_nl_nl_handle_alloc
=no
6080 rm -f core conftest.err conftest.
$ac_objext \
6081 conftest
$ac_exeext conftest.
$ac_ext
6082 LIBS
=$ac_check_lib_save_LIBS
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6085 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6086 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
6091 LIBS
="${libnldir} -lnl $LIBS"
6093 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6101 if test x
$have_any_nl = xno
; then
6103 # No, we don't have libnl at all.
6105 if test x
$with_libnl = xyes
; then
6106 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
6111 for ac_header
in linux
/ethtool.h
6113 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6114 $ac_includes_default
6115 #include <linux/types.h>
6118 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
6119 cat >>confdefs.h
<<_ACEOF
6120 #define HAVE_LINUX_ETHTOOL_H 1
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
6128 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
6129 if ${ac_cv_lbl_tpacket_stats+:} false
; then :
6130 $as_echo_n "(cached) " >&6
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6135 # include <linux/if_packet.h>
6139 struct tpacket_stats stats
6144 if ac_fn_c_try_compile
"$LINENO"; then :
6145 ac_cv_lbl_tpacket_stats
=yes
6147 ac_cv_lbl_tpacket_stats
=no
6149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
6153 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
6154 if test $ac_cv_lbl_tpacket_stats = yes; then
6156 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
6160 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
6161 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false
; then :
6162 $as_echo_n "(cached) " >&6
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6167 # include <sys/types.h>
6168 # include <linux/if_packet.h>
6172 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6177 if ac_fn_c_try_compile
"$LINENO"; then :
6178 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=yes
6180 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=no
6182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6186 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6187 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6188 HAVE_LINUX_TPACKET_AUXDATA
=tp_vlan_tci
6191 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
6198 # Check whether we have the *BSD-style ioctls.
6200 for ac_header
in net
/if_media.h
6202 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6203 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
6204 cat >>confdefs.h
<<_ACEOF
6205 #define HAVE_NET_IF_MEDIA_H 1
6214 # Check whether we have struct BPF_TIMEVAL.
6216 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6217 #include <sys/types.h>
6218 #include <sys/ioctl.h>
6219 #ifdef HAVE_SYS_IOCCOM_H
6220 #include <sys/ioccom.h>
6222 #include <net/bpf.h>
6225 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
6227 cat >>confdefs.h
<<_ACEOF
6228 #define HAVE_STRUCT_BPF_TIMEVAL 1
6238 # --with-pcap=dag is the only way to get here, and it means
6239 # "DAG support but nothing else"
6241 V_DEFS
="$V_DEFS -DDAG_ONLY"
6247 # --with-pcap=septel is the only way to get here, and it means
6248 # "Septel support but nothing else"
6250 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6256 # --with-pcap=snf is the only way to get here, and it means
6257 # "SNF support but nothing else"
6259 V_DEFS
="$V_DEFS -DSNF_ONLY"
6267 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
6271 if test "$V_PCAP" != null
6273 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6274 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
6277 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6278 # as well, just in case some platform is really weird.
6280 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6281 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6284 # We have the header, so we use "getifaddrs()" to
6285 # get the list of interfaces.
6287 V_FINDALLDEVS
=fad-getad.c
6292 # We don't have the header - give up.
6293 # XXX - we could also fall back on some other
6294 # mechanism, but, for now, this'll catch this
6295 # problem so that we can at least try to figure
6296 # out something to do on systems with "getifaddrs()"
6297 # but without "ifaddrs.h", if there is something
6298 # we can do on those systems.
6300 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6309 # Well, we don't have "getifaddrs()", so we have to use
6310 # some other mechanism; determine what that mechanism is.
6312 # The first thing we use is the type of capture mechanism,
6313 # which is somewhat of a proxy for the OS we're using.
6319 # This might be Solaris 8 or later, with
6320 # SIOCGLIFCONF, or it might be some other OS
6321 # or some older version of Solaris, with
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6325 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6326 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6327 $as_echo_n "(cached) " >&6
6329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 #include <sys/param.h>
6332 #include <sys/file.h>
6333 #include <sys/ioctl.h>
6334 #include <sys/socket.h>
6335 #include <sys/sockio.h>
6339 ioctl(0, SIOCGLIFCONF, (char *)0);
6344 if ac_fn_c_try_compile
"$LINENO"; then :
6345 ac_cv_lbl_have_siocglifconf
=yes
6347 ac_cv_lbl_have_siocglifconf
=no
6349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6353 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6354 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6355 V_FINDALLDEVS
=fad-glifc.c
6357 V_FINDALLDEVS
=fad-gifc.c
6363 # Assume we just have SIOCGIFCONF.
6364 # (XXX - on at least later Linux kernels, there's
6365 # another mechanism, and we should be using that
6368 V_FINDALLDEVS
=fad-gifc.c
6380 for ac_header
in linux
/net_tstamp.h
6382 ac_fn_c_check_header_mongrel
"$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6383 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
; then :
6384 cat >>confdefs.h
<<_ACEOF
6385 #define HAVE_LINUX_NET_TSTAMP_H 1
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6395 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6399 # Check whether --enable-packet-ring was given.
6400 if test "${enable_packet_ring+set}" = set; then :
6401 enableval
=$enable_packet_ring;
6403 enable_packet_ring
=yes
6407 if test "x$enable_packet_ring" != "xno" ; then
6409 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6415 $as_echo_n "checking for socklen_t... " >&6; }
6416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6419 #include <sys/types.h>
6420 #include <sys/socket.h>
6430 if ac_fn_c_try_compile
"$LINENO"; then :
6435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6436 if test "x$have_socklen_t" = "xyes"; then
6438 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6442 $as_echo "$have_socklen_t" >&6; }
6444 # Check whether --enable-ipv6 was given.
6445 if test "${enable_ipv6+set}" = set; then :
6446 enableval
=$enable_ipv6;
6448 enable_ipv6
=ifavailable
6451 if test "$enable_ipv6" != "no"; then
6452 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6453 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
6456 $as_echo "#define INET6 1" >>confdefs.h
6461 if test "$enable_ipv6" != "ifavailable"; then
6462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6464 as_fn_error $?
"--enable-ipv6 was given, but getaddrinfo isn't available
6465 See \`config.log' for more details" "$LINENO" 5; }
6472 # Check for Endace DAG card support.
6474 # Check whether --with-dag was given.
6475 if test "${with_dag+set}" = set; then :
6477 if test "$withval" = no
6479 # User doesn't want DAG support.
6481 elif test "$withval" = yes
6483 # User wants DAG support but hasn't specified a directory.
6486 # User wants DAG support and has specified a directory, so use the provided value.
6493 if test "$V_PCAP" = dag
; then
6494 # User requested DAG-only libpcap, so we'd better have
6497 elif test "xxx_only" = yes; then
6498 # User requested something-else-only pcap, so they don't
6503 # Use DAG API if present, otherwise don't
6512 # Check whether --with-dag-includes was given.
6513 if test "${with_dag_includes+set}" = set; then :
6514 withval
=$with_dag_includes;
6515 # User wants DAG support and has specified a header directory, so use the provided value.
6517 dag_include_dir
=$withval
6523 # Check whether --with-dag-libraries was given.
6524 if test "${with_dag_libraries+set}" = set; then :
6525 withval
=$with_dag_libraries;
6526 # User wants DAG support and has specified a library directory, so use the provided value.
6528 dag_lib_dir
=$withval
6533 ac_cv_lbl_dag_api
=no
6534 if test "$want_dag" != no
; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6537 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6539 # If necessary, set default paths for DAG API headers and libraries.
6540 if test -z "$dag_root"; then
6544 if test -z "$dag_include_dir"; then
6545 dag_include_dir
="$dag_root/include"
6548 if test -z "$dag_lib_dir"; then
6549 dag_lib_dir
="$dag_root/lib"
6552 if test -z "$dag_tools_dir"; then
6553 dag_tools_dir
="$dag_root/tools"
6556 if test -r $dag_include_dir/dagapi.h
; then
6557 ac_cv_lbl_dag_api
=yes
6560 if test "$ac_cv_lbl_dag_api" = yes; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($dag_include_dir)" >&5
6562 $as_echo "yes ($dag_include_dir)" >&6; }
6564 V_INCLS
="$V_INCLS -I$dag_include_dir"
6566 if test $V_PCAP != dag
; then
6567 SSRC
="$SSRC pcap-dag.c"
6570 # Check for various DAG API functions.
6571 # Don't need to save and restore LIBS to prevent -ldag being
6572 # included if there's a found-action (arg 3).
6573 saved_ldflags
=$LDFLAGS
6574 LDFLAGS
="-L$dag_lib_dir"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6576 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6577 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
6578 $as_echo_n "(cached) " >&6
6580 ac_check_lib_save_LIBS
=$LIBS
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6585 /* Override any GCC internal prototype to avoid an error.
6586 Use char because int might match the return type of a GCC
6587 builtin and then its argument prototype would still apply. */
6591 char dag_attach_stream ();
6595 return dag_attach_stream ();
6600 if ac_fn_c_try_link
"$LINENO"; then :
6601 ac_cv_lib_dag_dag_attach_stream
=yes
6603 ac_cv_lib_dag_dag_attach_stream
=no
6605 rm -f core conftest.err conftest.
$ac_objext \
6606 conftest
$ac_exeext conftest.
$ac_ext
6607 LIBS
=$ac_check_lib_save_LIBS
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6610 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6611 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
6612 cat >>confdefs.h
<<_ACEOF
6613 #define HAVE_LIBDAG 1
6619 as_fn_error $?
"DAG library lacks streams support" "$LINENO" 5
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
6623 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
6624 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
6625 $as_echo_n "(cached) " >&6
6627 ac_check_lib_save_LIBS
=$LIBS
6629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6632 /* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */
6638 char dag_attach_stream64 ();
6642 return dag_attach_stream64 ();
6647 if ac_fn_c_try_link
"$LINENO"; then :
6648 ac_cv_lib_dag_dag_attach_stream64
=yes
6650 ac_cv_lib_dag_dag_attach_stream64
=no
6652 rm -f core conftest.err conftest.
$ac_objext \
6653 conftest
$ac_exeext conftest.
$ac_ext
6654 LIBS
=$ac_check_lib_save_LIBS
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
6657 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
6658 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
6659 dag_large_streams
="1"
6661 dag_large_streams
="0"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6665 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6666 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
6667 $as_echo_n "(cached) " >&6
6669 ac_check_lib_save_LIBS
=$LIBS
6671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6674 /* Override any GCC internal prototype to avoid an error.
6675 Use char because int might match the return type of a GCC
6676 builtin and then its argument prototype would still apply. */
6680 char dag_get_erf_types ();
6684 return dag_get_erf_types ();
6689 if ac_fn_c_try_link
"$LINENO"; then :
6690 ac_cv_lib_dag_dag_get_erf_types
=yes
6692 ac_cv_lib_dag_dag_get_erf_types
=no
6694 rm -f core conftest.err conftest.
$ac_objext \
6695 conftest
$ac_exeext conftest.
$ac_ext
6696 LIBS
=$ac_check_lib_save_LIBS
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6699 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6700 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
6703 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6708 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6709 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
6710 $as_echo_n "(cached) " >&6
6712 ac_check_lib_save_LIBS
=$LIBS
6714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6717 /* Override any GCC internal prototype to avoid an error.
6718 Use char because int might match the return type of a GCC
6719 builtin and then its argument prototype would still apply. */
6723 char dag_get_stream_erf_types ();
6727 return dag_get_stream_erf_types ();
6732 if ac_fn_c_try_link
"$LINENO"; then :
6733 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
6735 ac_cv_lib_dag_dag_get_stream_erf_types
=no
6737 rm -f core conftest.err conftest.
$ac_objext \
6738 conftest
$ac_exeext conftest.
$ac_ext
6739 LIBS
=$ac_check_lib_save_LIBS
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6742 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6743 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
6746 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6751 LDFLAGS
=$saved_ldflags
6754 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
6756 if test "$dag_large_streams" = 1; then
6758 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6761 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6762 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
6763 $as_echo_n "(cached) " >&6
6765 ac_check_lib_save_LIBS
=$LIBS
6767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6770 /* Override any GCC internal prototype to avoid an error.
6771 Use char because int might match the return type of a GCC
6772 builtin and then its argument prototype would still apply. */
6776 char vdag_set_device_info ();
6780 return vdag_set_device_info ();
6785 if ac_fn_c_try_link
"$LINENO"; then :
6786 ac_cv_lib_vdag_vdag_set_device_info
=yes
6788 ac_cv_lib_vdag_vdag_set_device_info
=no
6790 rm -f core conftest.err conftest.
$ac_objext \
6791 conftest
$ac_exeext conftest.
$ac_ext
6792 LIBS
=$ac_check_lib_save_LIBS
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6795 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6796 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
6797 ac_dag_have_vdag
="1"
6799 ac_dag_have_vdag
="0"
6802 if test "$ac_dag_have_vdag" = 1; then
6804 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6806 if test "$ac_lbl_have_pthreads" != "found"; then
6807 as_fn_error $?
"DAG requires pthreads, but we didn't find them" "$LINENO" 5
6809 LIBS
="$LIBS $PTHREAD_LIBS"
6814 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6820 if test "$V_PCAP" = dag
; then
6821 # User requested "dag" capture type but we couldn't
6822 # find the DAG API support.
6823 as_fn_error $?
"DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6826 if test "$want_dag" = yes; then
6827 # User wanted DAG support but we couldn't find it.
6828 as_fn_error $?
"DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6834 # Check whether --with-septel was given.
6835 if test "${with_septel+set}" = set; then :
6836 withval
=$with_septel;
6837 if test "$withval" = no
6840 elif test "$withval" = yes
6846 septel_root
=$withval
6851 if test "$V_PCAP" = septel
; then
6852 # User requested Septel-only libpcap, so we'd better have
6855 elif test "xxx_only" = yes; then
6856 # User requested something-else-only pcap, so they don't
6857 # want Septel support.
6861 # Use Septel API if present, otherwise don't
6863 want_septel
=ifpresent
6869 ac_cv_lbl_septel_api
=no
6870 if test "$with_septel" != no
; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
6873 $as_echo_n "checking whether we have Septel API headers... " >&6; }
6875 # If necessary, set default paths for Septel API headers and libraries.
6876 if test -z "$septel_root"; then
6877 septel_root
=$srcdir/..
/septel
6880 septel_tools_dir
="$septel_root"
6881 septel_include_dir
="$septel_root/INC"
6883 if test -r "$septel_include_dir/msg.h"; then
6884 ac_cv_lbl_septel_api
=yes
6887 if test "$ac_cv_lbl_septel_api" = yes; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
6889 $as_echo "yes ($septel_include_dir)" >&6; }
6891 V_INCLS
="$V_INCLS -I$septel_include_dir"
6892 ADDLOBJS
="$ADDLOBJS $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"
6893 ADDLARCHIVEOBJS
="$ADDLARCHIVEOBJS $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"
6895 if test "$V_PCAP" != septel
; then
6896 SSRC
="$SSRC pcap-septel.c"
6900 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6906 if test "$V_PCAP" = septel
; then
6907 # User requested "septel" capture type but
6908 # we couldn't find the Septel API support.
6909 as_fn_error $?
"Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6912 if test "$want_septel" = yes; then
6913 # User wanted Septel support but we couldn't find it.
6914 as_fn_error $?
"Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6919 # Check for Myricom SNF support.
6921 # Check whether --with-snf was given.
6922 if test "${with_snf+set}" = set; then :
6924 if test "$withval" = no
6926 # User explicitly doesn't want SNF
6928 elif test "$withval" = yes
6930 # User wants SNF support but hasn't specified a directory.
6933 # User wants SNF support with a specified directory.
6940 if test "$V_PCAP" = snf
; then
6941 # User requested Sniffer-only libpcap, so we'd better have
6944 elif test "xxx_only" = yes; then
6945 # User requested something-else-only pcap, so they don't
6950 # Use Sniffer API if present, otherwise don't
6959 # Check whether --with-snf-includes was given.
6960 if test "${with_snf_includes+set}" = set; then :
6961 withval
=$with_snf_includes;
6962 # User wants SNF with specific header directory
6964 snf_include_dir
=$withval
6970 # Check whether --with-snf-libraries was given.
6971 if test "${with_snf_libraries+set}" = set; then :
6972 withval
=$with_snf_libraries;
6973 # User wants SNF with specific lib directory
6975 snf_lib_dir
=$withval
6980 ac_cv_lbl_snf_api
=no
6981 if test "$with_snf" != no
; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6984 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6986 # If necessary, set default paths for Sniffer headers and libraries.
6987 if test -z "$snf_root"; then
6991 if test -z "$snf_include_dir"; then
6992 snf_include_dir
="$snf_root/include"
6995 if test -z "$snf_lib_dir"; then
6996 snf_lib_dir
="$snf_root/lib"
6999 if test -f "$snf_include_dir/snf.h"; then
7000 # We found a header; make sure we can link with the library
7001 saved_ldflags
=$LDFLAGS
7002 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7004 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7005 if ${ac_cv_lib_snf_snf_init+:} false
; then :
7006 $as_echo_n "(cached) " >&6
7008 ac_check_lib_save_LIBS
=$LIBS
7010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7013 /* Override any GCC internal prototype to avoid an error.
7014 Use char because int might match the return type of a GCC
7015 builtin and then its argument prototype would still apply. */
7028 if ac_fn_c_try_link
"$LINENO"; then :
7029 ac_cv_lib_snf_snf_init
=yes
7031 ac_cv_lib_snf_snf_init
=no
7033 rm -f core conftest.err conftest.
$ac_objext \
7034 conftest
$ac_exeext conftest.
$ac_ext
7035 LIBS
=$ac_check_lib_save_LIBS
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7038 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7039 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
7040 ac_cv_lbl_snf_api
="yes"
7043 LDFLAGS
="$saved_ldflags"
7044 if test "$ac_cv_lbl_snf_api" = no
; then
7045 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7049 if test "$ac_cv_lbl_snf_api" = yes; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7051 $as_echo "yes ($snf_root)" >&6; }
7053 V_INCLS
="$V_INCLS -I$snf_include_dir"
7055 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7057 if test "$V_PCAP" != snf
; then
7058 SSRC
="$SSRC pcap-snf.c"
7062 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7068 if test "$want_snf" = yes; then
7069 # User requested "snf" capture type but
7070 # we couldn't find the Sniffer API support.
7071 as_fn_error $?
"Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7074 if test "$want_snf" = yes; then
7075 as_fn_error $?
"Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7080 # Check for Riverbed TurboCap support.
7082 # Check whether --with-turbocap was given.
7083 if test "${with_turbocap+set}" = set; then :
7084 withval
=$with_turbocap;
7085 if test "$withval" = no
7087 # User explicitly doesn't want TurboCap
7089 elif test "$withval" = yes
7091 # User wants TurboCap support but hasn't specified a directory.
7094 # User wants TurboCap support with a specified directory.
7096 turbocap_root
=$withval
7101 if test "xxx_only" = yes; then
7102 # User requested something-else-only pcap, so they don't
7103 # want TurboCap support.
7107 # Use TurboCap API if present, otherwise don't
7109 want_turbocap
=ifpresent
7115 ac_cv_lbl_turbocap_api
=no
7116 if test "$want_turbocap" != no
; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7119 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7121 save_CFLAGS
="$CFLAGS"
7123 if test ! -z "$turbocap_root"; then
7124 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
7125 TURBOCAP_LIBS
="-L$turbocap_root/lib"
7126 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
7129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7138 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7140 (void)TcInstanceCreateByName("foo", &i);
7146 if ac_fn_c_try_compile
"$LINENO"; then :
7147 ac_cv_lbl_turbocap_api
=yes
7149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 CFLAGS
="$save_CFLAGS"
7152 if test $ac_cv_lbl_turbocap_api = yes; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7154 $as_echo "yes" >&6; }
7156 SSRC
="$SSRC pcap-tc.c"
7157 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
7158 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7161 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7167 if test "$want_turbocap" = yes; then
7168 # User wanted Turbo support but we couldn't find it.
7169 as_fn_error $?
"TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7175 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7176 # Check whether --enable-remote was given.
7177 if test "${enable_remote+set}" = set; then :
7178 enableval
=$enable_remote;
7183 case "$enableval" in
7184 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7185 $as_echo "yes" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7187 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7189 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7191 # rpcapd requires pthreads on UN*X.
7193 if test "$ac_lbl_have_pthreads" != "found"; then
7194 as_fn_error $?
"rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7197 # It also requires crypt().
7198 # Do we have it in the system libraries?
7200 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
7201 if test "x$ac_cv_func_crypt" = xyes
; then :
7206 # No. Do we have it in -lcrypt?
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7209 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7210 if ${ac_cv_lib_crypt_crypt+:} false
; then :
7211 $as_echo_n "(cached) " >&6
7213 ac_check_lib_save_LIBS
=$LIBS
7214 LIBS
="-lcrypt $LIBS"
7215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7218 /* Override any GCC internal prototype to avoid an error.
7219 Use char because int might match the return type of a GCC
7220 builtin and then its argument prototype would still apply. */
7233 if ac_fn_c_try_link
"$LINENO"; then :
7234 ac_cv_lib_crypt_crypt
=yes
7236 ac_cv_lib_crypt_crypt
=no
7238 rm -f core conftest.err conftest.
$ac_objext \
7239 conftest
$ac_exeext conftest.
$ac_ext
7240 LIBS
=$ac_check_lib_save_LIBS
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7243 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7244 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
7247 # Yes; add -lcrypt to the libraries for rpcapd.
7249 RPCAPD_LIBS
="$RPCAPD_LIBS -lcrypt"
7253 as_fn_error $?
"rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7262 # OK, we have crypt(). Do we have getspnam()?
7264 for ac_func
in getspnam
7266 ac_fn_c_check_func
"$LINENO" "getspnam" "ac_cv_func_getspnam"
7267 if test "x$ac_cv_func_getspnam" = xyes
; then :
7268 cat >>confdefs.h
<<_ACEOF
7269 #define HAVE_GETSPNAM 1
7277 # Check for various members of struct msghdr.
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has a msg_control member" >&5
7280 $as_echo_n "checking if struct msghdr has a msg_control member... " >&6; }
7281 if ${ac_cv_lbl_struct_msghdr_has_msg_control+:} false
; then :
7282 $as_echo_n "(cached) " >&6
7284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7287 # include <sys/socket.h>
7291 u_int i = sizeof(((struct msghdr *)0)->msg_control)
7296 if ac_fn_c_try_compile
"$LINENO"; then :
7297 ac_cv_lbl_struct_msghdr_has_msg_control
=yes
7299 ac_cv_lbl_struct_msghdr_has_msg_control
=no
7301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_struct_msghdr_has_msg_control" >&5
7305 $as_echo "$ac_cv_lbl_struct_msghdr_has_msg_control" >&6; }
7306 if test $ac_cv_lbl_struct_msghdr_has_msg_control = yes ; then
7308 $as_echo "#define STRUCT_MSGHDR_HAS_MSG_CONTROL 1" >>confdefs.h
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has a msg_flags member" >&5
7312 $as_echo_n "checking if struct msghdr has a msg_flags member... " >&6; }
7313 if ${ac_cv_lbl_struct_msghdr_has_msg_flags+:} false
; then :
7314 $as_echo_n "(cached) " >&6
7316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7319 # include <sys/socket.h>
7323 u_int i = sizeof(((struct msghdr *)0)->msg_flags)
7328 if ac_fn_c_try_compile
"$LINENO"; then :
7329 ac_cv_lbl_struct_msghdr_has_msg_flags
=yes
7331 ac_cv_lbl_struct_msghdr_has_msg_flags
=no
7333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_struct_msghdr_has_msg_flags" >&5
7337 $as_echo "$ac_cv_lbl_struct_msghdr_has_msg_flags" >&6; }
7338 if test $ac_cv_lbl_struct_msghdr_has_msg_flags = yes ; then
7340 $as_echo "#define STRUCT_MSGHDR_HAS_MSG_FLAGS 1" >>confdefs.h
7345 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7347 SSRC
="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7348 BUILD_RPCAPD
=build-rpcapd
7349 INSTALL_RPCAPD
=install-rpcapd
7351 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7357 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7358 # Check whether --enable-optimizer-dbg was given.
7359 if test "${enable_optimizer_dbg+set}" = set; then :
7360 enableval
=$enable_optimizer_dbg;
7363 if test "$enable_optimizer_dbg" = "yes"; then
7365 $as_echo "#define BDEBUG 1" >>confdefs.h
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7369 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7372 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7373 # Check whether --enable-yydebug was given.
7374 if test "${enable_yydebug+set}" = set; then :
7375 enableval
=$enable_yydebug;
7378 if test "$enable_yydebug" = "yes"; then
7380 $as_echo "#define YYDEBUG 1" >>confdefs.h
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7384 $as_echo "${enable_yydebug-no}" >&6; }
7389 for ac_prog
in flex
lex
7391 # Extract the first word of "$ac_prog", so it can be a program name with args.
7392 set dummy
$ac_prog; ac_word
=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_LEX+:} false
; then :
7396 $as_echo_n "(cached) " >&6
7398 if test -n "$LEX"; then
7399 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
7401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir
=.
7406 for ac_exec_ext
in '' $ac_executable_extensions; do
7407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_LEX
="$ac_prog"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 if test -n "$LEX"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7421 $as_echo "$LEX" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7428 test -n "$LEX" && break
7430 test -n "$LEX" || LEX
=":"
7432 if test "x$LEX" != "x:"; then
7433 cat >conftest.l
<<_ACEOF
7439 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7440 yyless ((input () != 0)); }
7441 f { unput (yytext[0]); }
7442 . { BEGIN INITIAL; }
7444 #ifdef YYTEXT_POINTER
7445 extern char *yytext;
7450 return ! yylex () + ! yywrap ();
7453 { { ac_try
="$LEX conftest.l"
7455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7459 $as_echo "$ac_try_echo"; } >&5
7460 (eval "$LEX conftest.l") 2>&5
7462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7463 test $ac_status = 0; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7465 $as_echo_n "checking lex output file root... " >&6; }
7466 if ${ac_cv_prog_lex_root+:} false; then :
7467 $as_echo_n "(cached) " >&6
7470 if test -f lex.yy.c; then
7471 ac_cv_prog_lex_root=lex.yy
7472 elif test -f lexyy.c; then
7473 ac_cv_prog_lex_root=lexyy
7475 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7479 $as_echo "$ac_cv_prog_lex_root" >&6; }
7480 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7482 if test -z "${LEXLIB+set}"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7484 $as_echo_n "checking lex library... " >&6; }
7485 if ${ac_cv_lib_lex+:} false; then :
7486 $as_echo_n "(cached) " >&6
7490 ac_cv_lib_lex='none needed'
7491 for ac_lib in '' -lfl -ll; do
7492 LIBS="$ac_lib $ac_save_LIBS"
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 `cat $LEX_OUTPUT_ROOT.c
`
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 ac_cv_lib_lex=$ac_lib
7500 rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 test "$ac_cv_lib_lex" != 'none needed' && break
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7508 $as_echo "$ac_cv_lib_lex" >&6; }
7509 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7514 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7515 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7516 $as_echo_n "(cached) " >&6
7518 # POSIX says lex can declare yytext either as a pointer or an array; the
7519 # default is implementation-dependent. Figure out which it is, since
7520 # not all implementations provide the %pointer and %array declarations.
7521 ac_cv_prog_lex_yytext_pointer=no
7523 LIBS="$LEXLIB $ac_save_LIBS"
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7527 #define YYTEXT_POINTER 1
7528 `cat $LEX_OUTPUT_ROOT.c
`
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 ac_cv_prog_lex_yytext_pointer=yes
7533 rm -f core conftest.err conftest.$ac_objext \
7534 conftest$ac_exeext conftest.$ac_ext
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7539 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7540 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7542 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7545 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7548 if test "$LEX" = ":"; then
7549 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7553 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7554 # and supports processing our scanner.l.
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7557 $as_echo_n "checking for capable lex... " >&6; }
7558 if ${tcpdump_cv_capable_lex+:} false; then :
7559 $as_echo_n "(cached) " >&6
7561 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7562 tcpdump_cv_capable_lex=yes
7564 tcpdump_cv_capable_lex=insufficient
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7568 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7569 if test $tcpdump_cv_capable_lex = insufficient ; then
7570 as_fn_error $? "$LEX is insufficient to compile libpcap.
7571 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7575 # Look for yacc/bison/byacc.
7577 for ac_prog in 'bison -y' byacc
7579 # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_prog_YACC+:} false; then :
7584 $as_echo_n "(cached) " >&6
7586 if test -n "$YACC"; then
7587 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596 ac_cv_prog_YACC="$ac_prog"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 YACC=$ac_cv_prog_YACC
7607 if test -n "$YACC"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7609 $as_echo "$YACC" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7616 test -n "$YACC" && break
7618 test -n "$YACC" || YACC="yacc"
7622 # Make sure it supports the -p flag and supports processing our
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7626 $as_echo_n "checking for capable yacc/bison... " >&6; }
7627 if ${tcpdump_cv_capable_yacc+:} false; then :
7628 $as_echo_n "(cached) " >&6
7630 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7631 tcpdump_cv_capable_yacc=yes
7633 tcpdump_cv_capable_yacc=insufficient
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7637 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7638 if test $tcpdump_cv_capable_yacc = insufficient ; then
7639 as_fn_error $? "$YACC is insufficient to compile libpcap.
7640 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7644 # Do various checks for various OSes and versions of those OSes.
7646 # Assume, by default, no support for shared libraries and V7/BSD convention
7647 # for man pages (file formats in section 5, miscellaneous info in section 7).
7648 # Individual cases can override this.
7653 MAN_USERMOD_SECTION=8
7658 $as_echo "#define _SUN 1" >>confdefs.h
7662 # AIX makes it fun to build shared and static libraries,
7663 # because they're *both* ".a" archive libraries. We
7664 # build the static library for the benefit of the traditional
7665 # scheme of building libpcap and tcpdump in subdirectories of
7666 # the same directory, with tcpdump statically linked with the
7667 # libpcap in question, but we also build a shared library as
7668 # "libpcap.shareda" and install *it*, rather than the static
7669 # library, as "libpcap.a".
7677 # If we're using DLPI, applications will need to
7678 # use /lib/pse.exp if present, as we use the
7681 pseexe="/lib/pse.exp"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7683 $as_echo_n "checking for $pseexe... " >&6; }
7684 if test -f $pseexe ; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686 $as_echo "yes" >&6; }
7693 # If we're using BPF, we need "-lodm" and "-lcfg", as
7694 # we use them to load the BPF module.
7703 V_CCOPT="$V_CCOPT -fno-common"
7704 # Check whether --enable-universal was given.
7705 if test "${enable_universal+set}" = set; then :
7706 enableval=$enable_universal;
7709 if test "$enable_universal" != "no"; then
7714 # Pre-Tiger. Build only for 32-bit PowerPC; no
7715 # need for any special compiler or linker flags.
7721 # Tiger, prior to Intel support. Build for 32-bit
7722 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7723 # first. (I'm guessing that's what Apple does.)
7725 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7726 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7731 # Tiger, subsequent to Intel support but prior to
7732 # x86-64 support. Build for 32-bit PowerPC, 64-bit
7733 # PowerPC, and x86, with 32-bit PowerPC first.
7734 # (I'm guessing that's what Apple does.)
7736 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7737 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7742 # All other Tiger, so subsequent to x86-64
7743 # support. Build for 32-bit PowerPC, 64-bit
7744 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7745 # first. (I'm guessing that's what Apple does.)
7747 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7748 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7753 # Leopard. Build for 32-bit PowerPC, 64-bit
7754 # PowerPC, x86, and x86-64, with 32-bit PowerPC
7755 # first. (That's what Apple does.)
7757 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7758 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7763 # Snow Leopard. Build for x86-64, x86, and
7764 # 32-bit PowerPC, with x86-64 first. (That's
7765 # what Apple does, even though Snow Leopard
7766 # doesn't run on PPC, so PPC libpcap runs under
7767 # Rosetta, and Rosetta doesn't support BPF
7768 # ioctls, so PPC programs can't do live
7771 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7772 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7777 # Post-Snow Leopard. Build for x86-64 and
7778 # x86, with x86-64 first. (That's probably what
7779 # Apple does, given that Rosetta is gone.)
7780 # XXX - update if and when Apple drops support
7781 # for 32-bit x86 code.
7783 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7784 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
7792 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7796 # Use System V conventions for man pages.
7805 # Use System V conventions for man pages.
7814 # Use System V conventions for man pages.
7822 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7824 if test "`uname
-m`" = "ia64"; then
7831 # "-b" builds a shared library; "+h" sets the soname.
7837 # Use System V conventions for man pages.
7845 # Use System V conventions for man pages.
7851 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7855 # Compiler assumed to be GCC; run-time linker may require a -R
7858 if test "$libdir" != "/usr/lib"; then
7859 V_RFLAGS=-Wl,-R$libdir
7867 # Use System V conventions for man pages.
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7875 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7876 if ${ac_cv_cc_sinix_defined+:} false; then :
7877 $as_echo_n "(cached) " >&6
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 ac_cv_cc_sinix_defined=yes
7893 ac_cv_cc_sinix_defined=no
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7899 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7900 if test $ac_cv_cc_sinix_defined = no ; then
7902 $as_echo "#define sinix 1" >>confdefs.h
7909 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7915 # Make sure errno is thread-safe, in case we're called in
7916 # a multithreaded program. We don't guarantee that two
7917 # threads can use the *same* pcap_t safely, but the
7918 # current version does guarantee that you can use different
7919 # pcap_t's in different threads, and even that pcap_compile()
7920 # is thread-safe (it wasn't thread-safe in some older versions).
7922 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
7924 case "`uname
-r`" in
7931 # Use System V conventions for man pages.
7933 MAN_USERMOD_SECTION=1m
7940 # Check whether --enable-shared was given.
7941 if test "${enable_shared+set}" = set; then :
7942 enableval=$enable_shared;
7945 test "x$enable_shared" = "xno" && DYEXT="none"
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_RANLIB+:} false; then :
7953 $as_echo_n "(cached) " >&6
7955 if test -n "$RANLIB"; then
7956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 RANLIB=$ac_cv_prog_RANLIB
7976 if test -n "$RANLIB"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7978 $as_echo "$RANLIB" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7986 if test -z "$ac_cv_prog_RANLIB"; then
7987 ac_ct_RANLIB=$RANLIB
7988 # Extract the first word of "ranlib", so it can be a program name with args.
7989 set dummy ranlib; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7993 $as_echo_n "(cached) " >&6
7995 if test -n "$ac_ct_RANLIB"; then
7996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_ac_ct_RANLIB="ranlib"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8016 if test -n "$ac_ct_RANLIB"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8018 $as_echo "$ac_ct_RANLIB" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8024 if test "x$ac_ct_RANLIB" = x; then
8027 case $cross_compiling:$ac_tool_warned in
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8033 RANLIB=$ac_ct_RANLIB
8036 RANLIB="$ac_cv_prog_RANLIB"
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}ar; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_AR+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 if test -n "$AR"; then
8048 ac_cv_prog_AR="$AR" # Let the user override the test.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_AR="${ac_tool_prefix}ar"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 if test -n "$AR"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8070 $as_echo "$AR" >&6; }
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8078 if test -z "$ac_cv_prog_AR"; then
8080 # Extract the first word of "ar", so it can be a program name with args.
8081 set dummy ar; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8085 $as_echo_n "(cached) " >&6
8087 if test -n "$ac_ct_AR"; then
8088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_ac_ct_AR="ar"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8108 if test -n "$ac_ct_AR"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8110 $as_echo "$ac_ct_AR" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8116 if test "x$ac_ct_AR" = x; then
8119 case $cross_compiling:$ac_tool_warned in
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8133 $as_echo_n "checking whether ln -s works... " >&6; }
8135 if test "$LN_S" = "ln -s"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137 $as_echo "yes" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8140 $as_echo "no, using $LN_S" >&6; }
8146 if test "${LBL_CFLAGS+set}" = set; then
8147 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8149 if test -f .devel ; then
8151 # Skip all the warning option stuff on some compilers.
8153 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8156 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8157 save_CFLAGS="$CFLAGS"
8158 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8170 if ac_fn_c_try_compile "$LINENO"; then :
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8175 # We're assuming this is clang, where
8176 # -Werror=unknown-warning-option is the appropriate
8177 # option to force the compiler to fail.
8179 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8184 $as_echo "yes" >&6; }
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 CFLAGS="$save_CFLAGS"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8192 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8193 save_CFLAGS="$CFLAGS"
8194 if expr "x-Wall" : "x-W.*" >/dev/null
8196 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8197 elif expr "x-Wall" : "x-f.*" >/dev/null
8199 CFLAGS="$CFLAGS -Werror -Wall"
8200 elif expr "x-Wall" : "x-m.*" >/dev/null
8202 CFLAGS="$CFLAGS -Werror -Wall"
8204 CFLAGS="$CFLAGS -Wall"
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8217 if ac_fn_c_try_compile "$LINENO"; then :
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8220 $as_echo "yes" >&6; }
8221 CFLAGS="$save_CFLAGS"
8222 V_CCOPT="$V_CCOPT -Wall"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 CFLAGS="$save_CFLAGS"
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
8235 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
8236 save_CFLAGS="$CFLAGS"
8237 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
8239 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
8240 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
8242 CFLAGS="$CFLAGS -Werror -Wsign-compare"
8243 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
8245 CFLAGS="$CFLAGS -Werror -Wsign-compare"
8247 CFLAGS="$CFLAGS -Wsign-compare"
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8260 if ac_fn_c_try_compile "$LINENO"; then :
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8263 $as_echo "yes" >&6; }
8264 CFLAGS="$save_CFLAGS"
8265 V_CCOPT="$V_CCOPT -Wsign-compare"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 CFLAGS="$save_CFLAGS"
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
8278 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
8279 save_CFLAGS="$CFLAGS"
8280 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
8282 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
8283 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
8285 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
8286 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
8288 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
8290 CFLAGS="$CFLAGS -Wmissing-prototypes"
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8303 if ac_fn_c_try_compile "$LINENO"; then :
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8306 $as_echo "yes" >&6; }
8307 CFLAGS="$save_CFLAGS"
8308 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 CFLAGS="$save_CFLAGS"
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
8321 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
8322 save_CFLAGS="$CFLAGS"
8323 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
8325 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
8326 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
8328 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
8329 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
8331 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
8333 CFLAGS="$CFLAGS -Wstrict-prototypes"
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8346 if ac_fn_c_try_compile "$LINENO"; then :
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8349 $as_echo "yes" >&6; }
8350 CFLAGS="$save_CFLAGS"
8351 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 CFLAGS="$save_CFLAGS"
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
8364 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
8365 save_CFLAGS="$CFLAGS"
8366 if expr "x-Wshadow" : "x-W.*" >/dev/null
8368 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
8369 elif expr "x-Wshadow" : "x-f.*" >/dev/null
8371 CFLAGS="$CFLAGS -Werror -Wshadow"
8372 elif expr "x-Wshadow" : "x-m.*" >/dev/null
8374 CFLAGS="$CFLAGS -Werror -Wshadow"
8376 CFLAGS="$CFLAGS -Wshadow"
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8389 if ac_fn_c_try_compile "$LINENO"; then :
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8392 $as_echo "yes" >&6; }
8393 CFLAGS="$save_CFLAGS"
8394 V_CCOPT="$V_CCOPT -Wshadow"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 CFLAGS="$save_CFLAGS"
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
8407 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
8408 save_CFLAGS="$CFLAGS"
8409 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
8411 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
8412 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
8414 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8415 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
8417 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8419 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8432 if ac_fn_c_try_compile "$LINENO"; then :
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8435 $as_echo "yes" >&6; }
8436 CFLAGS="$save_CFLAGS"
8437 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 CFLAGS="$save_CFLAGS"
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
8450 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
8451 save_CFLAGS="$CFLAGS"
8452 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
8454 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
8455 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
8457 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8458 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
8460 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8462 CFLAGS="$CFLAGS -Wused-but-marked-unused"
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8475 if ac_fn_c_try_compile "$LINENO"; then :
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8478 $as_echo "yes" >&6; }
8479 CFLAGS="$save_CFLAGS"
8480 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486 CFLAGS="$save_CFLAGS"
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
8494 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
8495 if test "$GCC" = yes ; then
8497 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
8498 # though it's not); we assume that, in this case, the flag
8501 ac_lbl_dependency_flag="-M"
8504 # Not GCC or a compiler deemed to be GCC; what platform is
8505 # this? (We're assuming that if the compiler isn't GCC
8506 # it's the compiler from the vendor of the OS; that won't
8507 # necessarily be true for x86 platforms, where it might be
8508 # the Intel C compiler.)
8514 # MIPS C for IRIX, DEC C, and clang all use -M.
8516 ac_lbl_dependency_flag="-M"
8523 ac_lbl_dependency_flag="-xM"
8528 # HP's older C compilers don't support this.
8529 # HP's newer C compilers support this with
8530 # either +M or +Make; the older compilers
8531 # interpret +M as something completely
8532 # different, so we use +Make so we don't
8533 # think it works with the older compilers.
8535 ac_lbl_dependency_flag="+Make"
8540 # Not one of the above; assume no support for
8541 # generating dependencies.
8543 ac_lbl_dependency_flag=""
8549 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
8550 # complain about it?
8552 # Note: clang doesn't seem to exit with an error status when handed
8553 # an unknown non-warning error, even if you pass it
8554 # -Werror=unknown-warning-option. However, it always supports
8555 # -M, so the fact that this test always succeeds with clang
8558 if test ! -z "$ac_lbl_dependency_flag"; then
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 int main(void) { return 0; }
8563 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
8564 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
8566 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
8567 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
8568 MKDEP='${srcdir}/mkdep'
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8573 # We can't run mkdep, so have "make depend" do
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8583 # We can't run mkdep, so have "make depend" do
8592 # We used to set -n32 for IRIX 6 when not using GCC (presumed
8593 # to mean that we're using MIPS C or MIPSpro C); it specified
8594 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
8595 # not sure why that would be something to do *only* with a
8596 # .devel file; why should the ABI for which we produce code
8599 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8601 if test -f $name ; then
8602 ln -s $name os-proto.h
8604 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
8608 $as_echo "$as_me: WARNING: can't find $name" >&2;}
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
8613 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
8614 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
8615 $as_echo_n "(cached) " >&6
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8620 # include <sys/types.h>
8621 # include <sys/socket.h>
8625 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 ac_cv_lbl_sockaddr_has_sa_len=yes
8633 ac_cv_lbl_sockaddr_has_sa_len=no
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8639 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8640 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8642 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
8647 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
8648 if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
8649 $as_echo_n "(cached) " >&6
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8654 # include <sys/types.h>
8655 # include <sys/socket.h>
8659 u_int i = sizeof (struct sockaddr_storage)
8664 if ac_fn_c_try_compile "$LINENO"; then :
8665 ac_cv_lbl_has_sockaddr_storage=yes
8667 ac_cv_lbl_has_sockaddr_storage=no
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8673 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
8674 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8676 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8681 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
8682 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
8683 $as_echo_n "(cached) " >&6
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8688 # include <sys/types.h>
8689 # include <sys/dlpi.h>
8690 # include <sys/dlpi_ext.h>
8694 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8699 if ac_fn_c_try_compile "$LINENO"; then :
8700 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8702 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8708 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8709 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8711 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
8716 $as_echo_n "checking if unaligned accesses fail... " >&6; }
8717 if ${ac_cv_lbl_unaligned_fail+:} false; then :
8718 $as_echo_n "(cached) " >&6
8723 # These are CPU types where:
8725 # the CPU faults on an unaligned access, but at least some
8726 # OSes that support that CPU catch the fault and simulate
8727 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8728 # the simulation is slow, so we don't want to use it;
8730 # the CPU, I infer (from the old
8732 # XXX: should also check that they don't do weird things (like on arm)
8734 # comment) doesn't fault on unaligned accesses, but doesn't
8735 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8737 # for whatever reason, the test program doesn't work
8738 # (this has been claimed to be the case for several of those
8739 # CPUs - I don't know what the problem is; the problem
8740 # was reported as "the test program dumps core" for SuperH,
8741 # but that's what the test program is *supposed* to do -
8742 # it dumps core before it writes anything, so the test
8743 # for an empty output file should find an empty output
8744 # file and conclude that unaligned accesses don't work).
8746 # This run-time test won't work if you're cross-compiling, so
8747 # in order to support cross-compiling for a particular CPU,
8748 # we have to wire in the list of CPU types anyway, as far as
8749 # I know, so perhaps we should just have a set of CPUs on
8750 # which we know it doesn't work, a set of CPUs on which we
8751 # know it does work, and have the script just fail on other
8752 # cpu types and update it when such a failure occurs.
8754 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8755 ac_cv_lbl_unaligned_fail=yes
8759 cat >conftest.c <<EOF
8760 # include <sys/types.h>
8761 # include <sys/wait.h>
8763 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8768 /* avoid "core dumped" message */
8774 pid = waitpid(pid, &status, 0);
8777 exit(!WIFEXITED(status));
8780 i = *(unsigned int *)&a[1];
8785 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8786 conftest.c $LIBS >/dev/null 2>&1
8787 if test ! -x conftest ; then
8788 ac_cv_lbl_unaligned_fail=yes
8790 ./conftest >conftest.out
8791 if test ! -s conftest.out ; then
8792 ac_cv_lbl_unaligned_fail=yes
8794 ac_cv_lbl_unaligned_fail=no
8797 rm -f -r conftest* core core.conftest
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
8803 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
8804 if test $ac_cv_lbl_unaligned_fail = yes ; then
8806 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
8811 ln -s ${srcdir}/bpf/net net
8836 # Check whether --enable-usb was given.
8837 if test "${enable_usb+set}" = set; then :
8838 enableval=$enable_usb;
8844 if test "xxx_only" = yes; then
8845 # User requested something-else-only pcap, so they don't
8850 if test "x$enable_usb" != "xno" ; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
8852 $as_echo_n "checking for USB sniffing support... " >&6; }
8856 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
8858 USB_SRC=pcap-usb-linux.c
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8860 $as_echo "yes" >&6; }
8861 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
8862 if test $? -ne 0 ; then
8863 ac_usb_dev_name="usbmon"
8866 cat >>confdefs.h <<_ACEOF
8867 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8871 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8873 # Do we have a version of <linux/compiler.h> available?
8874 # If so, we might need it for <linux/usbdevice_fs.h>.
8876 for ac_header in linux/compiler.h
8878 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
8879 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
8880 cat >>confdefs.h <<_ACEOF
8881 #define HAVE_LINUX_COMPILER_H 1
8888 if test "$ac_cv_header_linux_compiler_h" = yes; then
8890 # Yes - include it when testing for <linux/usbdevice_fs.h>.
8892 for ac_header in linux/usbdevice_fs.h
8894 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
8896 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8897 cat >>confdefs.h <<_ACEOF
8898 #define HAVE_LINUX_USBDEVICE_FS_H 1
8906 for ac_header in linux/usbdevice_fs.h
8908 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
8909 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8910 cat >>confdefs.h <<_ACEOF
8911 #define HAVE_LINUX_USBDEVICE_FS_H 1
8919 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
8921 # OK, does it define bRequestType? Older versions of the kernel
8922 # define fields with names like "requesttype, "request", and
8923 # "value", rather than "bRequestType", "bRequest", and
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
8927 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
8928 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
8929 $as_echo_n "(cached) " >&6
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 $ac_includes_default
8935 #ifdef HAVE_LINUX_COMPILER_H
8936 #include <linux/compiler.h>
8938 #include <linux/usbdevice_fs.h>
8942 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
8947 if ac_fn_c_try_compile "$LINENO"; then :
8948 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
8950 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
8956 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
8957 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
8959 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
8966 # This just uses BPF in FreeBSD 8.4 and later; we don't need
8967 # to check for anything special for capturing.
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
8970 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8982 if test "xxx_only" != yes; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
8984 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988 $as_echo "yes" >&6; }
8990 # Life's too short to deal with trying to get this to compile
8991 # if you don't get the right types defined with
8992 # __KERNEL_STRICT_NAMES getting defined by some other include.
8994 # Check whether the includes Just Work. If not, don't turn on
8995 # netfilter support.
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
8998 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
8999 if ${ac_cv_netfilter_can_compile+:} false; then :
9000 $as_echo_n "(cached) " >&6
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9005 $ac_includes_default
9006 #include <sys/socket.h>
9007 #include <netinet/in.h>
9008 #include <linux/types.h>
9010 #include <linux/netlink.h>
9011 #include <linux/netfilter.h>
9012 #include <linux/netfilter/nfnetlink.h>
9013 #include <linux/netfilter/nfnetlink_log.h>
9014 #include <linux/netfilter/nfnetlink_queue.h>
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 ac_cv_netfilter_can_compile=yes
9026 ac_cv_netfilter_can_compile=no
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
9032 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
9033 if test $ac_cv_netfilter_can_compile = yes ; then
9035 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
9037 NETFILTER_SRC=pcap-netfilter-linux.c
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9049 # Check whether --enable-netmap was given.
9050 if test "${enable_netmap+set}" = set; then :
9051 enableval=$enable_netmap;
9057 if test "x$enable_netmap" != "xno" ; then
9059 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
9060 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
9061 # is defined, for example, as it includes a non-existent malloc.h
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
9065 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
9066 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
9067 $as_echo_n "(cached) " >&6
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9072 $ac_includes_default
9073 #define NETMAP_WITH_LIBS
9074 #include <net/netmap_user.h>
9083 if ac_fn_c_try_compile "$LINENO"; then :
9084 ac_cv_net_netmap_user_can_compile=yes
9086 ac_cv_net_netmap_user_can_compile=no
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
9092 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
9093 if test $ac_cv_net_netmap_user_can_compile = yes ; then
9095 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
9097 NETMAP_SRC=pcap-netmap.c
9104 # Check whether --enable-bluetooth was given.
9105 if test "${enable_bluetooth+set}" = set; then :
9106 enableval=$enable_bluetooth;
9108 enable_bluetooth=ifsupportavailable
9112 if test "xxx_only" = yes; then
9113 # User requested something-else-only pcap, so they don't
9114 # want Bluetooth support.
9118 if test "x$enable_bluetooth" != "xno" ; then
9121 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
9122 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
9125 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
9127 BT_SRC=pcap-bt-linux.c
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
9129 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
9132 # OK, does struct sockaddr_hci have an hci_channel
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
9136 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
9137 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
9138 $as_echo_n "(cached) " >&6
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9143 #include <bluetooth/bluetooth.h>
9144 #include <bluetooth/hci.h>
9149 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
9154 if ac_fn_c_try_compile "$LINENO"; then :
9155 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
9157 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
9163 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
9164 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
9166 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
9170 # OK, is HCI_CHANNEL_MONITOR defined?
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
9173 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
9174 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
9175 $as_echo_n "(cached) " >&6
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9180 #include <bluetooth/bluetooth.h>
9181 #include <bluetooth/hci.h>
9186 u_int i = HCI_CHANNEL_MONITOR
9191 if ac_fn_c_try_compile "$LINENO"; then :
9192 ac_cv_lbl_hci_channel_monitor_is_defined=yes
9194 ac_cv_lbl_hci_channel_monitor_is_defined=no
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
9200 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
9201 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
9203 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
9205 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
9208 ac_lbl_bluetooth_available=yes
9211 ac_lbl_bluetooth_available=no
9216 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
9217 if test "x$enable_bluetooth" = "xyes" ; then
9218 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
9221 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
9226 if test "x$enable_bluetooth" = "xyes" ; then
9227 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
9230 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
9239 # Check whether --enable-dbus was given.
9240 if test "${enable_dbus+set}" = set; then :
9241 enableval=$enable_dbus;
9243 enable_dbus=ifavailable
9247 if test "xxx_only" = yes; then
9248 # User requested something-else-only pcap, so they don't
9249 # want D-Bus support.
9253 if test "x$enable_dbus" != "xno"; then
9254 if test "x$enable_dbus" = "xyes"; then
9259 # We don't support D-Bus sniffing on macOS; see
9261 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
9263 # The user requested it, so fail.
9265 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
9272 # We don't support D-Bus sniffing on macOS; see
9274 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
9276 # The user dind't explicitly request it, so just
9277 # silently refuse to enable it.
9285 if test "x$enable_dbus" != "xno"; then
9286 # Extract the first word of "pkg-config", so it can be a program name with args.
9287 set dummy pkg-config; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if ${ac_cv_prog_PKGCONFIG+:} false; then :
9291 $as_echo_n "(cached) " >&6
9293 if test -n "$PKGCONFIG"; then
9294 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303 ac_cv_prog_PKGCONFIG="pkg-config"
9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
9314 PKGCONFIG=$ac_cv_prog_PKGCONFIG
9315 if test -n "$PKGCONFIG"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9317 $as_echo "$PKGCONFIG" >&6; }
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9324 if test "x$PKGCONFIG" != "xno"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
9326 $as_echo_n "checking for D-Bus... " >&6; }
9327 if "$PKGCONFIG" dbus-1; then
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9329 $as_echo "yes" >&6; }
9330 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
9331 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
9332 save_CFLAGS="$CFLAGS"
9334 CFLAGS="$CFLAGS $DBUS_CFLAGS"
9335 LIBS="$LIBS $DBUS_LIBS"
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
9337 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9343 #include <sys/time.h>
9345 #include <dbus/dbus.h>
9349 return dbus_connection_read_write(NULL, 0);
9354 if ac_fn_c_try_link "$LINENO"; then :
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9357 $as_echo "yes" >&6; }
9359 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
9361 DBUS_SRC=pcap-dbus.c
9362 V_INCLS="$V_INCLS $DBUS_CFLAGS"
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9368 if test "x$enable_dbus" = "xyes"; then
9369 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
9374 rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376 CFLAGS="$save_CFLAGS"
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9380 if test "x$enable_dbus" = "xyes"; then
9381 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
9389 # Check whether --enable-rdma was given.
9390 if test "${enable_rdma+set}" = set; then :
9391 enableval=$enable_rdma;
9393 enable_rdmasniff=ifavailable
9397 if test "xxx_only" = yes; then
9398 # User requested something-else-only pcap, so they don't
9399 # want RDMA support.
9403 if test "x$enable_rdmasniff" != "xno"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
9405 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
9406 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
9407 $as_echo_n "(cached) " >&6
9409 ac_check_lib_save_LIBS=$LIBS
9410 LIBS="-libverbs $LIBS"
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9414 /* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9420 char ibv_get_device_list ();
9424 return ibv_get_device_list ();
9429 if ac_fn_c_try_link "$LINENO"; then :
9430 ac_cv_lib_ibverbs_ibv_get_device_list=yes
9432 ac_cv_lib_ibverbs_ibv_get_device_list=no
9434 rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436 LIBS=$ac_check_lib_save_LIBS
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
9439 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
9440 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
9442 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
9443 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
9446 # ibv_create_flow may be defined as a static inline
9447 # function in infiniband/verbs.h, so we can't
9450 # Too bad autoconf has no AC_SYMBOL_EXISTS()
9451 # macro that works like CMake's check_symbol_exists()
9452 # function, to check do a compile check like
9453 # this (they do a clever trick to avoid having
9454 # to know the function's signature).
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
9457 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9461 #include <infiniband/verbs.h>
9467 (void) ibv_create_flow((struct ibv_qp *) NULL,
9468 (struct ibv_flow_attr *) NULL);
9474 if ac_fn_c_try_link "$LINENO"; then :
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9477 $as_echo "yes" >&6; }
9479 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
9481 RDMA_SRC=pcap-rdmasniff.c
9482 LIBS="-libverbs $LIBS"
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9504 # Find a good install program. We prefer a C program (faster),
9505 # so one script is as good as another. But avoid the broken or
9506 # incompatible versions:
9507 # SysV /etc/install, /usr/sbin/install
9508 # SunOS /usr/etc/install
9509 # IRIX /sbin/install
9511 # AmigaOS /C/install, which installs bootblocks on floppy discs
9512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9515 # OS/2's system install, which has a completely different semantic
9516 # ./install, which can be erroneously created by make from ./install.sh.
9517 # Reject install programs that cannot install multiple files.
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9519 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9520 if test -z "$INSTALL"; then
9521 if ${ac_cv_path_install+:} false; then :
9522 $as_echo_n "(cached) " >&6
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 test -z "$as_dir" && as_dir=.
9529 # Account for people who put trailing slashes in PATH elements.
9530 case $as_dir/ in #((
9531 ./ | .// | /[cC]/* | \
9532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9536 # OSF1 and SCO ODT 3.0 have their own names for install.
9537 # Don't use installbsd from OSF since it installs stuff as root
9539 for ac_prog in ginstall scoinst install; do
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9542 if test $ac_prog = install &&
9543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9544 # AIX install. It has an incompatible calling convention.
9546 elif test $ac_prog = install &&
9547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9548 # program-specific install script used by HP pwplus--don't use.
9551 rm -rf conftest.one conftest.two conftest.dir
9552 echo one > conftest.one
9553 echo two > conftest.two
9555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9556 test -s conftest.one && test -s conftest.two &&
9557 test -s conftest.dir/conftest.one &&
9558 test -s conftest.dir/conftest.two
9560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9573 rm -rf conftest.one conftest.two conftest.dir
9576 if test "${ac_cv_path_install+set}" = set; then
9577 INSTALL=$ac_cv_path_install
9579 # As a last resort, use the slow shell script. Don't cache a
9580 # value for INSTALL within a source directory, because that will
9581 # break other packages using the cache if that directory is
9582 # removed, or if the value is a relative name.
9583 INSTALL=$ac_install_sh
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9587 $as_echo "$INSTALL" >&6; }
9589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9590 # It thinks the first close brace ends the variable substitution.
9591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9598 ac_config_headers="$ac_config_headers config.h"
9601 ac_config_commands="$ac_config_commands default-1"
9603 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile"
9605 cat >confcache <<\_ACEOF
9606 # This file is a shell script that caches the results of configure
9607 # tests run on this system so they can be shared between configure
9608 # scripts and configure runs, see configure's option --config-cache.
9609 # It is not useful on other systems. If it contains results you don't
9610 # want to keep, you may remove or edit it.
9612 # config.status only pays attention to the cache file if you give it
9613 # the --recheck option to rerun configure.
9615 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9621 # The following way of writing the cache mishandles newlines in values,
9622 # but we know of no workaround that is simple, portable, and efficient.
9623 # So, we kill variables containing newlines.
9624 # Ultrix sh set writes to stderr and can't be redirected directly,
9625 # and sets the high bit in the cache file unless we assign to the vars.
9627 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9628 eval ac_val
=\$
$ac_var
9632 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9636 _ | IFS | as_nl
) ;; #(
9637 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9638 *) { eval $ac_var=; unset $ac_var;} ;;
9644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9645 *${as_nl}ac_space
=\
*)
9646 # `set' does not quote correctly, so add quotes: double-quote
9647 # substitution turns \\\\ into \\, and sed turns \\ into \.
9650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9653 # `set' quotes correctly as required by POSIX, so do not add quotes.
9654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9667 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9668 if test -w "$cache_file"; then
9669 if test "x$cache_file" != "x/dev/null"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9671 $as_echo "$as_me: updating cache $cache_file" >&6;}
9672 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9673 cat confcache
>"$cache_file"
9675 case $cache_file in #(
9677 mv -f confcache
"$cache_file"$$
&&
9678 mv -f "$cache_file"$$
"$cache_file" ;; #(
9680 mv -f confcache
"$cache_file" ;;
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9686 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9691 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9692 # Let make expand exec_prefix.
9693 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9695 DEFS
=-DHAVE_CONFIG_H
9700 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9701 # 1. Remove the extension, and $U if already installed.
9702 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9703 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9705 # will be set to the directory where LIBOBJS objects are built.
9706 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9707 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9711 LTLIBOBJS
=$ac_ltlibobjs
9715 : "${CONFIG_STATUS=./config.status}"
9717 ac_clean_files_save
=$ac_clean_files
9718 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9720 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9722 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9724 # Generated by $as_me.
9725 # Run this file to recreate the current configuration.
9726 # Compiler output produced by configure, useful for debugging
9727 # configure, is in config.log if it exists.
9733 SHELL=\${CONFIG_SHELL-$SHELL}
9736 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9737 ## -------------------- ##
9738 ## M4sh Initialization. ##
9739 ## -------------------- ##
9741 # Be more Bourne compatible
9742 DUALCASE
=1; export DUALCASE
# for MKS sh
9743 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9747 # is contrary to our usage. Disable this feature.
9748 alias -g '${1+"$@"}'='"$@"'
9749 setopt NO_GLOB_SUBST
9751 case `(set -o) 2>/dev/null` in #(
9763 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9764 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9767 # Prefer a ksh shell builtin over an external printf program on Solaris,
9768 # but without wasting forks for bash or zsh.
9769 if test -z "$BASH_VERSION$ZSH_VERSION" \
9770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9771 as_echo='print
-r --'
9772 as_echo_n='print
-rn --'
9773 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9774 as_echo='printf %s
\n'
9775 as_echo_n='printf %s
'
9777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9778 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9779 as_echo_n='/usr
/ucb
/echo -n'
9781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9782 as_echo_n_body='eval
9786 expr "X$arg" : "X\\(.*\\)$as_nl";
9787 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9789 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9791 export as_echo_n_body
9792 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9795 as_echo='sh
-c $as_echo_body as_echo
'
9798 # The user is always right.
9799 if test "${PATH_SEPARATOR+set}" != set; then
9801 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9802 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9809 # We need space, tab and new line, in precisely that order. Quoting is
9810 # there to prevent editors from complaining about space-tab.
9811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9812 # splitting by setting IFS to empty value.)
9815 # Find who we are. Look in the path if we contain no directory separator.
9818 *[\\/]* ) as_myself=$0 ;;
9819 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 test -z "$as_dir" && as_dir=.
9824 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9830 # We did not find ourselves, most probably we were run as `sh COMMAND'
9831 # in which case we are not to be found in the path.
9832 if test "x$as_myself" = x
; then
9835 if test ! -f "$as_myself"; then
9836 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9840 # Unset variables that we do not need and which cause bugs (e.g. in
9841 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9842 # suppresses any "Segmentation fault" message there. '((' could
9843 # trigger a bug in pdksh 5.2.14.
9844 for as_var
in BASH_ENV ENV MAIL MAILPATH
9845 do eval test x\
${$as_var+set} = xset \
9846 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9859 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9862 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9863 # ----------------------------------------
9864 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9865 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9866 # script with STATUS, using 1 if that was 0.
9869 as_status
=$1; test $as_status -eq 0 && as_status
=1
9871 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9872 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9874 $as_echo "$as_me: error: $2" >&2
9875 as_fn_exit
$as_status
9879 # as_fn_set_status STATUS
9880 # -----------------------
9881 # Set $? to STATUS, without forking.
9885 } # as_fn_set_status
9889 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9899 # Portably unset VAR.
9902 { eval $1=; unset $1;}
9904 as_unset
=as_fn_unset
9905 # as_fn_append VAR VALUE
9906 # ----------------------
9907 # Append the text in VALUE to the end of the definition contained in VAR. Take
9908 # advantage of any shell optimizations that allow amortized linear growth over
9909 # repeated appends, instead of the typical quadratic growth present in naive
9911 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9912 eval 'as_fn_append ()
9923 # as_fn_arith ARG...
9924 # ------------------
9925 # Perform arithmetic evaluation on the ARGs, and store the result in the
9926 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9927 # must be portable across $(()) and expr.
9928 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9929 eval 'as_fn_arith ()
9936 as_val
=`expr "$@" || test $? -eq 1`
9941 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9942 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9948 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9949 as_basename
=basename
9954 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9960 as_me
=`$as_basename -- "$0" ||
9961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9962 X"$0" : 'X\(//\)$' \| \
9963 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9965 sed '/^.*\/\([^/][^/]*\)\/*$/{
9979 # Avoid depending upon Character Ranges.
9980 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9981 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9982 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9983 as_cr_digits
='0123456789'
9984 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9986 ECHO_C
= ECHO_N
= ECHO_T
=
9987 case `echo -n x` in #(((((
9989 case `echo 'xy\c'` in
9990 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9992 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9999 rm -f conf$$ conf$$.exe conf$$.
file
10000 if test -d conf$$.dir
; then
10001 rm -f conf$$.dir
/conf$$.
file
10004 mkdir conf$$.dir
2>/dev
/null
10006 if (echo >conf$$.
file) 2>/dev
/null
; then
10007 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10009 # ... but there are two gotchas:
10010 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10011 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10012 # In both cases, we have to default to `cp -pR'.
10013 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10015 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10023 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10024 rmdir conf$$.dir
2>/dev
/null
10029 # Create "$as_dir" as a directory, including parents if necessary.
10034 -*) as_dir
=.
/$as_dir;;
10036 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10040 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10041 *) as_qdir
=$as_dir;;
10043 as_dirs
="'$as_qdir' $as_dirs"
10044 as_dir
=`$as_dirname -- "$as_dir" ||
10045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10046 X"$as_dir" : 'X\(//\)[^/]' \| \
10047 X"$as_dir" : 'X\(//\)$' \| \
10048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10049 $as_echo X"$as_dir" |
10050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10054 /^X\(\/\/\)[^/].*/{
10067 test -d "$as_dir" && break
10069 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10070 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10074 if mkdir
-p .
2>/dev
/null
; then
10075 as_mkdir_p
='mkdir -p "$as_dir"'
10077 test -d .
/-p && rmdir .
/-p
10082 # as_fn_executable_p FILE
10083 # -----------------------
10084 # Test if FILE is an executable regular file.
10085 as_fn_executable_p
()
10087 test -f "$1" && test -x "$1"
10088 } # as_fn_executable_p
10089 as_test_x
='test -x'
10090 as_executable_p
=as_fn_executable_p
10092 # Sed expression to map a string onto a valid CPP name.
10093 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10095 # Sed expression to map a string onto a valid variable name.
10096 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10100 ## ----------------------------------- ##
10101 ## Main body of $CONFIG_STATUS script. ##
10102 ## ----------------------------------- ##
10104 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10107 # Save the log message, to keep $0 and so on meaningful, and to
10108 # report actual input values of CONFIG_FILES etc. instead of their
10109 # values after options handling.
10111 This file was extended by pcap $as_me 1.9.0-PRE-GIT, which was
10112 generated by GNU Autoconf 2.69. Invocation command line was
10114 CONFIG_FILES = $CONFIG_FILES
10115 CONFIG_HEADERS = $CONFIG_HEADERS
10116 CONFIG_LINKS = $CONFIG_LINKS
10117 CONFIG_COMMANDS = $CONFIG_COMMANDS
10120 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10125 case $ac_config_files in *"
10126 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10129 case $ac_config_headers in *"
10130 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10135 # Files that config.status was made for.
10136 config_files="$ac_config_files"
10137 config_headers="$ac_config_headers"
10138 config_commands="$ac_config_commands"
10142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10144 \`$as_me' instantiates files and other configuration actions
10145 from templates according to the current configuration. Unless the files
10146 and actions are specified as TAGs, all are instantiated by default.
10148 Usage: $0 [OPTION]... [TAG]...
10150 -h, --help print this help, then exit
10151 -V, --version print version number and configuration settings, then exit
10152 --config print configuration, then exit
10153 -q, --quiet, --silent
10154 do not print progress messages
10155 -d, --debug don't remove temporary files
10156 --recheck update $as_me by reconfiguring in the same conditions
10157 --file=FILE[:TEMPLATE]
10158 instantiate the configuration file FILE
10159 --header=FILE[:TEMPLATE]
10160 instantiate the configuration header FILE
10162 Configuration files:
10165 Configuration headers:
10168 Configuration commands:
10171 Report bugs to the package provider."
10174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10177 pcap config.status 1.9.0-PRE-GIT
10178 configured by $0, generated by GNU Autoconf 2.69,
10179 with options \\"\$ac_cs_config\\"
10181 Copyright (C) 2012 Free Software Foundation, Inc.
10182 This config.status script is free software; the Free Software Foundation
10183 gives unlimited permission to copy, distribute and modify it."
10188 test -n "\$AWK" || AWK=awk
10191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10192 # The default lists apply if the user does not specify any file.
10198 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10199 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10203 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10215 # Handling of the options.
10216 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10218 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10219 $as_echo "$ac_cs_version"; exit ;;
10220 --config |
--confi |
--conf |
--con |
--co |
--c )
10221 $as_echo "$ac_cs_config"; exit ;;
10222 --debug |
--debu |
--deb |
--de |
--d |
-d )
10224 --file |
--fil |
--fi |
--f )
10227 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10228 '') as_fn_error $?
"missing file argument" ;;
10230 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10231 ac_need_defaults
=false
;;
10232 --header |
--heade |
--head |
--hea )
10235 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10237 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10238 ac_need_defaults
=false
;;
10240 # Conflict between --help and --header
10241 as_fn_error $?
"ambiguous option: \`$1'
10242 Try \`$0 --help' for more information.";;
10243 --help |
--hel |
-h )
10244 $as_echo "$ac_cs_usage"; exit ;;
10245 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10246 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10249 # This is an error.
10250 -*) as_fn_error $?
"unrecognized option: \`$1'
10251 Try \`$0 --help' for more information." ;;
10253 *) as_fn_append ac_config_targets
" $1"
10254 ac_need_defaults
=false
;;
10260 ac_configure_extra_args
=
10262 if $ac_cs_silent; then
10264 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10269 if \$ac_cs_recheck; then
10270 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10273 CONFIG_SHELL='$SHELL'
10274 export CONFIG_SHELL
10279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10284 ## Running $as_me. ##
10290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10300 # Handling of arguments.
10301 for ac_config_target
in $ac_config_targets
10303 case $ac_config_target in
10304 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10305 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
10306 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10307 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
10308 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
10309 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
10310 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
10311 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
10312 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
10313 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
10314 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10315 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
10316 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10317 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
10318 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10319 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10320 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
10321 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
10322 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
10324 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10329 # If the user did not use the arguments to specify the items to instantiate,
10330 # then the envvar interface is used. Set only those that are not.
10331 # We use the long form for the default assignment because of an extremely
10332 # bizarre bug on SunOS 4.1.3.
10333 if $ac_need_defaults; then
10334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10339 # Have a temporary directory for convenience. Make it in the build tree
10340 # simply because there is no reason against having it here, and in addition,
10341 # creating and moving files from /tmp can sometimes cause problems.
10342 # Hook for its removal unless debugging.
10343 # Note that there is a small window in which the directory will not be cleaned:
10344 # after its creation but before its name has been assigned to `$tmp'.
10348 trap 'exit_status=$?
10349 : "${ac_tmp:=$tmp}"
10350 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10352 trap 'as_fn_exit 1' 1 2 13 15
10354 # Create a (secure) tmp directory for tmp files.
10357 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10361 tmp
=.
/conf$$
-$RANDOM
10362 (umask 077 && mkdir
"$tmp")
10363 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10366 # Set up the scripts for CONFIG_FILES section.
10367 # No need to generate them if there are no CONFIG_FILES.
10368 # This happens for instance with `./config.status config.h'.
10369 if test -n "$CONFIG_FILES"; then
10372 ac_cr
=`echo X | tr X '\015'`
10373 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10374 # But we know of no other shell where ac_cr would be empty at this
10375 # point, so we can use a bashism as a fallback.
10376 if test "x$ac_cr" = x
; then
10377 eval ac_cr
=\$
\'\\r
\'
10379 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10380 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10383 ac_cs_awk_cr
=$ac_cr
10386 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10391 echo "cat >conf$$subs.awk <<_ACEOF" &&
10392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10394 } >conf$$subs.sh ||
10395 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10398 for ac_last_try in false false false false false :; do
10399 . ./conf$$subs.sh ||
10400 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10402 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10403 if test $ac_delim_n = $ac_delim_num; then
10405 elif $ac_last_try; then
10406 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10408 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10411 rm -f conf$$subs.sh
10413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10414 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10418 s/^/S["/; s
/!.
*/"]=/
10428 s/\(.\{148\}\)..*/\1/
10430 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10435 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10442 s/\(.\{148\}\)..*/\1/
10444 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10448 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10453 ' <conf$$subs.awk | sed '
10458 ' >>$CONFIG_STATUS || ac_write_fail=1
10459 rm -f conf$$subs.awk
10460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10462 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10463 for (key in S) S_is_set[key] = 1
10469 nfields = split(line, field, "@
")
10471 len = length(field[1])
10472 for (i = 2; i < nfields; i++) {
10474 keylen = length(key)
10475 if (S_is_set[key]) {
10477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10478 len += length(value) + length(field[++i])
10489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10490 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10491 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10494 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10495 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10498 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10499 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10500 # trailing colons and then remove the whole line if VPATH becomes empty
10501 # (actually we leave an empty line to preserve line numbers).
10502 if test "x
$srcdir" = x.; then
10503 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10522 fi # test -n "$CONFIG_FILES"
10524 # Set up the scripts for CONFIG_HEADERS section.
10525 # No need to generate them if there are no CONFIG_HEADERS.
10526 # This happens for instance with `./config.status Makefile'.
10527 if test -n "$CONFIG_HEADERS"; then
10528 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10532 # Transform confdefs.h into an awk script `defines.awk', embedded as
10533 # here-document in config.status, that substitutes the proper values into
10534 # config.h.in to produce config.h.
10536 # Create a delimiter string that does not exist in confdefs.h, to ease
10537 # handling of long lines.
10539 for ac_last_try in false false :; do
10540 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10541 if test -z "$ac_tt"; then
10543 elif $ac_last_try; then
10544 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10546 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10550 # For the awk script, D is an array of macro values keyed by name,
10551 # likewise P contains macro parameters if any. Preserve backslash
10552 # newline sequences.
10554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10556 s/.\{148\}/&'"$ac_delim"'/g
10559 s/^[ ]*#[ ]*define[ ][ ]*/ /
10566 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10568 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10573 D["\
1"]=" \
3\\\\\\n
"\\/p
10575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10580 s/.\{148\}/&'"$ac_delim"'/g
10585 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10588 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10590 ' <confdefs.h | sed '
10591 s/'"$ac_delim"'/"\\\
10592 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10595 for (key in D) D_is_set[key] = 1
10598 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10600 split(line, arg, " ")
10601 if (arg[1] == "#") {
10605 defundef
= substr
(arg
[1], 2)
10608 split(mac1
, mac2
, "(") #)
10610 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10611 if (D_is_set
[macro
]) {
10612 # Preserve the white space surrounding the "#".
10613 print prefix
"define", macro P
[macro
] D
[macro
]
10616 # Replace #undef with comments. This is necessary, for example,
10617 # in the case of _POSIX_SOURCE, which is predefined and required
10618 # on some systems where configure will not decide to define it.
10619 if (defundef
== "undef") {
10620 print
"/*", prefix defundef
, macro
, "*/"
10628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10629 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10630 fi # test -n "$CONFIG_HEADERS"
10633 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10638 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10640 case $ac_mode$ac_tag in
10642 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10643 :[FH
]-) ac_tag
=-:-;;
10644 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10661 -) ac_f
="$ac_tmp/stdin";;
10662 *) # Look for the file first in the build tree, then in the source tree
10663 # (if the path is not absolute). The absolute path cannot be DOS-style,
10664 # because $ac_f cannot contain `:'.
10668 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10670 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10672 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10673 as_fn_append ac_file_inputs
" '$ac_f'"
10676 # Let's still pretend it is `configure' which instantiates (i.e., don't
10677 # use $as_me), people would be surprised to read:
10678 # /* config.h. Generated by config.status. */
10679 configure_input
='Generated from '`
10680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10682 if test x
"$ac_file" != x-
; then
10683 configure_input
="$ac_file. $configure_input"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10685 $as_echo "$as_me: creating $ac_file" >&6;}
10687 # Neutralize special characters interpreted by sed in replacement strings.
10688 case $configure_input in #(
10689 *\
&* |
*\|
* |
*\\* )
10690 ac_sed_conf_input
=`$as_echo "$configure_input" |
10691 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10692 *) ac_sed_conf_input
=$configure_input;;
10696 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10697 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10702 ac_dir
=`$as_dirname -- "$ac_file" ||
10703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10704 X"$ac_file" : 'X\(//\)[^/]' \| \
10705 X"$ac_file" : 'X\(//\)$' \| \
10706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10707 $as_echo X"$ac_file" |
10708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10712 /^X\(\/\/\)[^/].*/{
10725 as_dir
="$ac_dir"; as_fn_mkdir_p
10729 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10731 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10732 # A ".." for each directory in $ac_dir_suffix.
10733 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10734 case $ac_top_builddir_sub in
10735 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10736 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10739 ac_abs_top_builddir
=$ac_pwd
10740 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10741 # for backward compatibility:
10742 ac_top_builddir
=$ac_top_build_prefix
10745 .
) # We are building in place.
10747 ac_top_srcdir
=$ac_top_builddir_sub
10748 ac_abs_top_srcdir
=$ac_pwd ;;
10749 [\\/]* | ?
:[\\/]* ) # Absolute name.
10750 ac_srcdir
=$srcdir$ac_dir_suffix;
10751 ac_top_srcdir
=$srcdir
10752 ac_abs_top_srcdir
=$srcdir ;;
10753 *) # Relative name.
10754 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10755 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10756 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10758 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10768 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10769 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10774 # If the template does not know about datarootdir, expand it.
10775 # FIXME: This hack should be removed a few years after 2.60.
10776 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10787 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10788 *datarootdir
*) ac_datarootdir_seen
=yes;;
10789 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10791 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10794 ac_datarootdir_hack='
10795 s&@datadir@&$datadir&g
10796 s&@docdir@&$docdir&g
10797 s&@infodir@&$infodir&g
10798 s&@localedir@&$localedir&g
10799 s&@mandir@&$mandir&g
10800 s&\\\${datarootdir}&$datarootdir&g' ;;
10804 # Neutralize VPATH when `$srcdir' = `.'.
10805 # Shell code in configure.ac might set extrasub.
10806 # FIXME: do we really want to maintain this feature?
10807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10808 ac_sed_extra="$ac_vpsub
10811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10813 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10814 s|@configure_input@|
$ac_sed_conf_input|
;t t
10815 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10816 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10817 s
&@srcdir@
&$ac_srcdir&;t t
10818 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10819 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10820 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10821 s
&@builddir@
&$ac_builddir&;t t
10822 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10823 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10824 s
&@INSTALL@
&$ac_INSTALL&;t t
10825 $ac_datarootdir_hack
10827 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10828 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10833 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10835 which seems to be undefined. Please make sure it is defined" >&5
10836 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10837 which seems to be undefined. Please make sure it is defined" >&2;}
10839 rm -f "$ac_tmp/stdin"
10841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10850 if test x"$ac_file" != x-; then
10852 $as_echo "/* $configure_input */" \
10853 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10854 } >"$ac_tmp/config.h" \
10855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10856 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10858 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10861 mv "$ac_tmp/config.h" "$ac_file" \
10862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10865 $as_echo "/* $configure_input */" \
10866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10867 || as_fn_error $? "could not create -" "$LINENO" 5
10871 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10872 $as_echo "$as_me: executing $ac_file commands" >&6;}
10877 case $ac_file$ac_mode in
10878 "default-1":C) if test -f .devel; then
10879 echo timestamp > stamp-h
10880 cat Makefile-devel-adds >> Makefile
10890 ac_clean_files=$ac_clean_files_save
10892 test $ac_write_fail = 0 ||
10893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10896 # configure is writing to config.log, and then calls config.status.
10897 # config.status does its own redirection, appending to config.log.
10898 # Unfortunately, on DOS this fails, as config.log is still kept open
10899 # by configure, so config.status won't be able to
write to it
; its
10900 # output is simply discarded. So we exec the FD to /dev/null,
10901 # effectively closing config.log, so it can be properly (re)opened and
10902 # appended to by config.status. When coming back to configure, we
10903 # need to make the FD available again.
10904 if test "$no_create" != yes; then
10906 ac_config_status_args
=
10907 test "$silent" = yes &&
10908 ac_config_status_args
="$ac_config_status_args --quiet"
10910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10913 # would make configure fail if this is the last instruction.
10914 $ac_cs_success || as_fn_exit
1
10916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}