2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.10.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.10.0-PRE-GIT'
581 PACKAGE_STRING
='pcap 1.10.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
679 PCAP_SUPPORT_PACKET_RING
732 program_transform_name
745 enable_option_checking
772 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 ac_unrecognized_opts
=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name
=s
,x
,x
,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir
='${exec_prefix}/bin'
814 sbindir
='${exec_prefix}/sbin'
815 libexecdir
='${exec_prefix}/libexec'
816 datarootdir
='${prefix}/share'
817 datadir
='${datarootdir}'
818 sysconfdir
='${prefix}/etc'
819 sharedstatedir
='${prefix}/com'
820 localstatedir
='${prefix}/var'
821 includedir
='${prefix}/include'
822 oldincludedir
='/usr/include'
823 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir
='${datarootdir}/info'
829 libdir
='${exec_prefix}/lib'
830 localedir
='${datarootdir}/locale'
831 mandir
='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\
$ac_option
845 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
858 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
861 -build |
--build |
--buil |
--bui |
--bu)
862 ac_prev
=build_alias
;;
863 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
864 build_alias
=$ac_optarg ;;
866 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
867 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
868 ac_prev
=cache_file
;;
869 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
870 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
871 cache_file
=$ac_optarg ;;
874 cache_file
=config.cache
;;
876 -datadir |
--datadir |
--datadi |
--datad)
878 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
879 datadir
=$ac_optarg ;;
881 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
882 |
--dataroo |
--dataro |
--datar)
883 ac_prev
=datarootdir
;;
884 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
885 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
886 datarootdir
=$ac_optarg ;;
888 -disable-* |
--disable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error $?
"invalid feature name: $ac_useropt"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error $?
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=\
$ac_optarg ;;
930 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
931 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
932 |
--exec |
--exe |
--ex)
933 ac_prev
=exec_prefix
;;
934 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
935 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
936 |
--exec=* |
--exe=* |
--ex=*)
937 exec_prefix
=$ac_optarg ;;
939 -gas |
--gas |
--ga |
--g)
940 # Obsolete; use --with-gas.
943 -help |
--help |
--hel |
--he |
-h)
945 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
946 ac_init_help
=recursive
;;
947 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
948 ac_init_help
=short
;;
950 -host |
--host |
--hos |
--ho)
951 ac_prev
=host_alias
;;
952 -host=* |
--host=* |
--hos=* |
--ho=*)
953 host_alias
=$ac_optarg ;;
955 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
957 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
959 htmldir
=$ac_optarg ;;
961 -includedir |
--includedir |
--includedi |
--included |
--include \
962 |
--includ |
--inclu |
--incl |
--inc)
963 ac_prev
=includedir
;;
964 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
965 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
966 includedir
=$ac_optarg ;;
968 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
970 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
971 infodir
=$ac_optarg ;;
973 -libdir |
--libdir |
--libdi |
--libd)
975 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
978 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
979 |
--libexe |
--libex |
--libe)
980 ac_prev
=libexecdir
;;
981 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
982 |
--libexe=* |
--libex=* |
--libe=*)
983 libexecdir
=$ac_optarg ;;
985 -localedir |
--localedir |
--localedi |
--localed |
--locale)
987 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
988 localedir
=$ac_optarg ;;
990 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
991 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
992 ac_prev
=localstatedir
;;
993 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
994 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
995 localstatedir
=$ac_optarg ;;
997 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
999 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1000 mandir
=$ac_optarg ;;
1002 -nfp |
--nfp |
--nf)
1003 # Obsolete; use --without-fp.
1006 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1007 |
--no-cr |
--no-c |
-n)
1010 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1011 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1014 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1015 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1016 |
--oldin |
--oldi |
--old |
--ol |
--o)
1017 ac_prev
=oldincludedir
;;
1018 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1019 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1020 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1021 oldincludedir
=$ac_optarg ;;
1023 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1025 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1026 prefix
=$ac_optarg ;;
1028 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1029 |
--program-pre |
--program-pr |
--program-p)
1030 ac_prev
=program_prefix
;;
1031 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1032 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1033 program_prefix
=$ac_optarg ;;
1035 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1036 |
--program-suf |
--program-su |
--program-s)
1037 ac_prev
=program_suffix
;;
1038 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1039 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1040 program_suffix
=$ac_optarg ;;
1042 -program-transform-name |
--program-transform-name \
1043 |
--program-transform-nam |
--program-transform-na \
1044 |
--program-transform-n |
--program-transform- \
1045 |
--program-transform |
--program-transfor \
1046 |
--program-transfo |
--program-transf \
1047 |
--program-trans |
--program-tran \
1048 |
--progr-tra |
--program-tr |
--program-t)
1049 ac_prev
=program_transform_name
;;
1050 -program-transform-name=* |
--program-transform-name=* \
1051 |
--program-transform-nam=* |
--program-transform-na=* \
1052 |
--program-transform-n=* |
--program-transform-=* \
1053 |
--program-transform=* |
--program-transfor=* \
1054 |
--program-transfo=* |
--program-transf=* \
1055 |
--program-trans=* |
--program-tran=* \
1056 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1057 program_transform_name
=$ac_optarg ;;
1059 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1061 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1062 pdfdir
=$ac_optarg ;;
1064 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1066 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1070 |
-silent |
--silent |
--silen |
--sile |
--sil)
1073 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1075 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1077 sbindir
=$ac_optarg ;;
1079 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1080 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1081 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1083 ac_prev
=sharedstatedir
;;
1084 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1085 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1086 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1088 sharedstatedir
=$ac_optarg ;;
1090 -site |
--site |
--sit)
1092 -site=* |
--site=* |
--sit=*)
1095 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1097 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1098 srcdir
=$ac_optarg ;;
1100 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1101 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1102 ac_prev
=sysconfdir
;;
1103 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1104 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1105 sysconfdir
=$ac_optarg ;;
1107 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1108 ac_prev
=target_alias
;;
1109 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1110 target_alias
=$ac_optarg ;;
1112 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1115 -version |
--version |
--versio |
--versi |
--vers |
-V)
1116 ac_init_version
=: ;;
1119 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1122 as_fn_error $?
"invalid package name: $ac_useropt"
1123 ac_useropt_orig
=$ac_useropt
1124 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep
=', ';;
1132 eval with_
$ac_useropt=\
$ac_optarg ;;
1134 -without-* |
--without-*)
1135 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error $?
"invalid package name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval with_
$ac_useropt=no
;;
1151 # Obsolete; use --with-x.
1154 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1155 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1156 ac_prev
=x_includes
;;
1157 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1158 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1159 x_includes
=$ac_optarg ;;
1161 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1162 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1163 ac_prev
=x_libraries
;;
1164 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1165 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1166 x_libraries
=$ac_optarg ;;
1168 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1173 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1177 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\
$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 if test -n "$ac_prev"; then
1194 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $?
"missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val
=\$
$ac_var
1213 # Remove trailing slashes.
1216 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\
$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$
]* | ?
:[\\/]* ) continue;;
1222 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1224 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target
=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x
; then
1236 if test "x$build_alias" = x
; then
1237 cross_compiling
=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1246 test "$silent" = yes && exec 6>/dev
/null
1249 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di
=`ls -di .` &&
1251 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $?
"working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $?
"pwd does not report name of working directory"
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted
=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir
=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted
=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1293 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1295 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var
in $ac_precious_vars; do
1310 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1312 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures pcap 1.10.0-PRE-GIT to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure
for building on BUILD
[guessed
]
1382 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1383 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive
) echo "Configuration of pcap 1.10.0-PRE-GIT:";;
1394 --disable-option-checking ignore unrecognized
--enable/--with options
1395 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1396 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1397 --disable-largefile omit support
for large files
1398 --disable-protochain disable
\"protochain
\" insn
1399 --enable-packet-ring enable packet ring support on Linux
[default
=yes]
1400 --enable-ipv6 build IPv6-capable version
[default
=yes]
1401 --enable-remote enable remote packet capture
[default
=no
]
1402 --disable-remote disable remote packet capture
1403 --enable-optimizer-dbg build optimizer debugging code
1404 --enable-yydebug build parser debugging code
1405 --disable-universal don
't build universal on macOS
1406 --enable-shared build shared libraries [default=yes, if support
1408 --enable-usb enable USB capture support [default=yes, if support
1410 --enable-netmap enable netmap support [default=yes, if support
1412 --enable-bluetooth enable Bluetooth support [default=yes, if support
1414 --enable-dbus enable D-Bus capture support [default=yes, if
1416 --enable-rdma enable RDMA capture support [default=yes, if support
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --without-gcc don't use gcc
1423 --with-pcap=TYPE use packet capture TYPE
1424 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1426 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1427 DIR
, if supplied
).
[default
=yes, if present
]
1428 --with-dag-includes=IDIR
1429 Endace DAG include directory
, if not DIR
/include
1430 --with-dag-libraries=LDIR
1431 Endace DAG library directory
, if not DIR
/lib
1432 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1433 supplied
).
[default
=yes, if present
]
1434 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1435 DIR
, if supplied
).
[default
=yes, if present
]
1436 --with-snf-includes=IDIR
1437 Myricom SNF include directory
, if not DIR
/include
1438 --with-snf-libraries=LDIR
1439 Myricom SNF library directory
, if not DIR
/lib
1440 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1441 directory DIR
, if supplied
).
[default
=yes, if
1444 Some influential environment variables
:
1445 CC C compiler
command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1448 nonstandard directory
<lib dir
>
1449 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1450 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1451 you have headers
in a nonstandard directory
<include dir
>
1453 YACC The
`Yet Another Compiler Compiler' implementation to use.
1454 Defaults to the first program found out of: `bison
-y', `byacc',
1456 YFLAGS The list of arguments that will be passed by default to $YACC.
1457 This script will default YFLAGS to the empty string to avoid a
1458 default value of `-d' given by some make applications.
1460 Use these variables to override the choices made by `configure' or to
help
1461 it to
find libraries and programs with nonstandard names
/locations.
1463 Report bugs to the package provider.
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1477 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1479 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1484 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1487 ac_abs_top_builddir
=$ac_pwd
1488 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir
=$ac_top_build_prefix
1493 .
) # We are building in place.
1495 ac_top_srcdir
=$ac_top_builddir_sub
1496 ac_abs_top_srcdir
=$ac_pwd ;;
1497 [\\/]* | ?
:[\\/]* ) # Absolute name.
1498 ac_srcdir
=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir
=$srcdir
1500 ac_abs_top_srcdir
=$srcdir ;;
1502 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1506 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1508 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1526 pcap configure
1.10.0-PRE-GIT
1527 generated by GNU Autoconf
2.69
1529 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1530 This configure
script is free software
; the Free Software Foundation
1531 gives unlimited permission to copy
, distribute and modify it.
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile
()
1545 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1546 rm -f conftest.
$ac_objext
1547 if { { ac_try
="$ac_compile"
1549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1576 } # ac_fn_c_try_compile
1578 # ac_fn_c_try_link LINENO
1579 # -----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest$ac_exeext
1585 if { { ac_try="$ac_link"
1587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1588 *) ac_try_echo
=$ac_try;;
1590 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>conftest.err
1594 if test -s conftest.err
; then
1595 grep -v '^ *+' conftest.err
>conftest.er1
1596 cat conftest.er1
>&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest
$ac_exeext && {
1604 test "$cross_compiling" = yes ||
1605 test -x conftest
$ac_exeext
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.
$ac_ext >&5
1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616 # interfere with the next link command; also delete a directory that is
1617 # left behind by Apple's compiler. We do this before executing the actions.
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status
$ac_retval
1622 } # ac_fn_c_try_link
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1630 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1666 ac_fn_c_check_header_mongrel ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if eval \${$3+:} false; then :
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1679 # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688 ac_header_compiler=yes
1690 ac_header_compiler=no
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1703 if ac_fn_c_try_cpp "$LINENO"; then :
1704 ac_header_preproc=yes
1706 ac_header_preproc=no
1708 rm -f conftest.err conftest.i conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1712 # So? What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1738 eval "$3=\$ac_header_compiler"
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_mongrel
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1758 *) ac_try_echo
=$ac_try;;
1760 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=$ac_status
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1807 if ac_fn_c_try_compile "$LINENO"; then :
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 } # ac_fn_c_check_header_compile
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836 #define $2 innocuous_$2
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1844 # include <limits.h>
1846 # include <assert.h>
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1873 if ac_fn_c_try_link "$LINENO"; then :
1878 rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_func
1888 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1889 # ---------------------------------------------
1890 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1892 ac_fn_c_check_decl ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1896 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1898 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1908 #ifndef $as_decl_name
1910 (void) $as_decl_use;
1912 (void) $as_decl_name;
1920 if ac_fn_c_try_compile "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_decl
1934 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1935 # -------------------------------------------
1936 # Tests whether TYPE exists after having included INCLUDES, setting cache
1937 # variable VAR accordingly.
1938 ac_fn_c_check_type ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1972 if ac_fn_c_try_compile "$LINENO"; then :
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_type
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 $as_echo_n "checking for $2.$3... " >&6; }
1997 if eval \${$4+:} false; then :
1998 $as_echo_n "(cached) " >&6
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2013 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2023 if (sizeof ac_aggr.$3)
2029 if ac_fn_c_try_compile "$LINENO"; then :
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_member
2044 cat >config.log <<_ACEOF
2045 This file contains any messages produced by compilers while
2046 running configure, to aid debugging if configure makes a mistake.
2048 It was created by pcap $as_me 1.10.0-PRE-GIT, which was
2049 generated by GNU Autoconf 2.69. Invocation command line was
2061 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2062 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2063 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2064 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2065 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2067 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2068 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2070 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2071 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2072 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2073 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2074 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2075 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2076 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 $as_echo "PATH: $as_dir"
2101 # Keep a trace of the command line.
2102 # Strip out --no-create and --no-recursion so they do not pile up.
2103 # Strip out --silent because we don't want to record it for future runs.
2104 # Also quote any args containing shell meta-characters.
2105 # Make two passes to allow for proper duplicate-argument suppression.
2109 ac_must_keep_next=false
2115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117 | -silent | --silent | --silen | --sile | --sil)
2120 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2125 as_fn_append ac_configure_args1 " '$ac_arg'"
2126 if test $ac_must_keep_next = true; then
2127 ac_must_keep_next=false # Got value, back to normal.
2130 *=* | --config-cache | -C | -disable-* | --disable-* \
2131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133 | -with-* | --with-* | -without-* | --without-* | --x)
2134 case "$ac_configure_args0 " in
2135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138 -* ) ac_must_keep_next=true ;;
2141 as_fn_append ac_configure_args " '$ac_arg'"
2146 { ac_configure_args0=; unset ac_configure_args0;}
2147 { ac_configure_args1=; unset ac_configure_args1;}
2149 # When interrupted or exit'd, cleanup temporary files, and complete
2150 # config.log. We remove comments because anyway the quotes in there
2151 # would cause problems or look ugly.
2152 # WARNING: Use '\'' to represent an apostrophe within the trap.
2153 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154 trap 'exit_status=$?
2155 # Save into config.log some information that might help in debugging.
2159 $as_echo "## ---------------- ##
2160 ## Cache variables. ##
2161 ## ---------------- ##"
2163 # The following way of writing the cache mishandles newlines in values,
2165 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2166 eval ac_val=\$$ac_var
2170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174 _ | IFS | as_nl) ;; #(
2175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176 *) { eval $ac_var=; unset $ac_var;} ;;
2181 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2182 *${as_nl}ac_space=\ *)
2184 "s/'\''/'\''\\\\'\'''\''/g;
2185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2195 $as_echo "## ----------------- ##
2196 ## Output variables. ##
2197 ## ----------------- ##"
2199 for ac_var in $ac_subst_vars
2201 eval ac_val=\$$ac_var
2203 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 $as_echo "$ac_var='\''$ac_val'\''"
2209 if test -n "$ac_subst_files"; then
2210 $as_echo "## ------------------- ##
2211 ## File substitutions. ##
2212 ## ------------------- ##"
2214 for ac_var in $ac_subst_files
2216 eval ac_val=\$$ac_var
2218 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 $as_echo "$ac_var='\''$ac_val'\''"
2225 if test -s confdefs.h; then
2226 $as_echo "## ----------- ##
2233 test "$ac_signal" != 0 &&
2234 $as_echo "$as_me: caught signal $ac_signal"
2235 $as_echo "$as_me: exit $exit_status"
2237 rm -f core *.core core.conftest.* &&
2238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2241 for ac_signal in 1 2 13 15; do
2242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2247 rm -f -r conftest* confdefs.h
2249 $as_echo "/* confdefs.h */" > confdefs.h
2251 # Predefined preprocessor variables.
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_NAME "$PACKAGE_NAME"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_STRING "$PACKAGE_STRING"
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_URL "$PACKAGE_URL"
2278 # Let the site file select an alternate cache file if it wants to.
2279 # Prefer an explicitly selected file to automatically selected ones.
2282 if test -n "$CONFIG_SITE"; then
2283 # We do not want a PATH search for config.site.
2284 case $CONFIG_SITE in #((
2285 -*) ac_site_file1=./$CONFIG_SITE;;
2286 */*) ac_site_file1=$CONFIG_SITE;;
2287 *) ac_site_file1=./$CONFIG_SITE;;
2289 elif test "x$prefix" != xNONE; then
2290 ac_site_file1=$prefix/share/config.site
2291 ac_site_file2=$prefix/etc/config.site
2293 ac_site_file1=$ac_default_prefix/share/config.site
2294 ac_site_file2=$ac_default_prefix/etc/config.site
2296 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2298 test "x$ac_site_file" = xNONE && continue
2299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302 sed 's/^/| /' "$ac_site_file" >&5
2304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 as_fn_error $? "failed to load site
script $ac_site_file
2307 See \
`config.log' for more details" "$LINENO" 5; }
2311 if test -r "$cache_file"; then
2312 # Some versions of bash will fail to source /dev/null (special files
2313 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316 $as_echo "$as_me: loading cache $cache_file" >&6;}
2318 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2319 *) . "./$cache_file";;
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324 $as_echo "$as_me: creating cache $cache_file" >&6;}
2328 # Check that the precious variables saved in the cache have kept the same
2330 ac_cache_corrupted=false
2331 for ac_var in $ac_precious_vars; do
2332 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333 eval ac_new_set=\$ac_env_${ac_var}_set
2334 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335 eval ac_new_val=\$ac_env_${ac_var}_value
2336 case $ac_old_set,$ac_new_set in
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2339 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2343 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2347 if test "x$ac_old_val" != "x$ac_new_val"; then
2348 # differences in whitespace do not lead to failure.
2349 ac_old_val_w=`echo x
$ac_old_val`
2350 ac_new_val_w=`echo x
$ac_new_val`
2351 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2354 ac_cache_corrupted=:
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2357 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358 eval $ac_var=\$ac_old_val
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2361 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2363 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2366 # Pass precious variables to config.status.
2367 if test "$ac_new_set" = set; then
2369 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2370 *) ac_arg=$ac_var=$ac_new_val ;;
2372 case " $ac_configure_args " in
2373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2374 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2378 if $ac_cache_corrupted; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2385 ## -------------------- ##
2386 ## Main body of script. ##
2387 ## -------------------- ##
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2401 if test -f "$ac_dir/install-sh"; then
2403 ac_install_sh="$ac_aux_dir/install-sh -c"
2405 elif test -f "$ac_dir/install.sh"; then
2407 ac_install_sh="$ac_aux_dir/install.sh -c"
2409 elif test -f "$ac_dir/shtool"; then
2411 ac_install_sh="$ac_aux_dir/shtool install -c"
2415 if test -z "$ac_aux_dir"; then
2416 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2419 # These three variables are undocumented and unsupported,
2420 # and are intended to be withdrawn in a future Autoconf release.
2421 # They can cause serious problems if a builder's source tree is in a directory
2422 # whose full name contains unusual characters.
2423 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2424 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2425 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2428 # Make sure we can run config.sub.
2429 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2430 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2433 $as_echo_n "checking build system type... " >&6; }
2434 if ${ac_cv_build+:} false; then :
2435 $as_echo_n "(cached) " >&6
2437 ac_build_alias=$build_alias
2438 test "x$ac_build_alias" = x &&
2439 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2440 test "x$ac_build_alias" = x &&
2441 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2447 $as_echo "$ac_cv_build" >&6; }
2448 case $ac_cv_build in
2450 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2453 ac_save_IFS=$IFS; IFS='-'
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2463 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2467 $as_echo_n "checking host system type... " >&6; }
2468 if ${ac_cv_host+:} false; then :
2469 $as_echo_n "(cached) " >&6
2471 if test "x$host_alias" = x; then
2472 ac_cv_host=$ac_cv_build
2474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2480 $as_echo "$ac_cv_host" >&6; }
2483 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2486 ac_save_IFS=$IFS; IFS='-'
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2496 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2500 $as_echo_n "checking target system type... " >&6; }
2501 if ${ac_cv_target+:} false; then :
2502 $as_echo_n "(cached) " >&6
2504 if test "x$target_alias" = x; then
2505 ac_cv_target=$ac_cv_host
2507 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2513 $as_echo "$ac_cv_target" >&6; }
2514 case $ac_cv_target in
2516 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2518 target=$ac_cv_target
2519 ac_save_IFS=$IFS; IFS='-'
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2529 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2532 # The aliases save the names the user supplied, while $host etc.
2533 # will get canonicalized.
2534 test -n "$target_alias" &&
2535 test "$program_prefix$program_suffix$program_transform_name" = \
2537 program_prefix=${target_alias}-
2546 # Check whether --with-gcc was given.
2547 if test "${with_gcc+set}" = set; then :
2552 if test "${srcdir}" != "." ; then
2553 V_CCOPT="-I\$(srcdir)"
2555 if test "${CFLAGS+set}" = set; then
2556 LBL_CFLAGS="$CFLAGS"
2558 if test -z "$CC" ; then
2562 # Extract the first word of "shlicc2", so it can be a program name with args.
2563 set dummy shlicc2; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_SHLICC2+:} false; then :
2567 $as_echo_n "(cached) " >&6
2569 if test -n "$SHLICC2"; then
2570 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579 ac_cv_prog_SHLICC2="yes"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2590 SHLICC2=$ac_cv_prog_SHLICC2
2591 if test -n "$SHLICC2"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2593 $as_echo "$SHLICC2" >&6; }
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2600 if test $SHLICC2 = yes ; then
2607 if test -z "$CC" -a "$with_gcc" = no ; then
2613 # Try to enable as many C99 features as we can.
2614 # At minimum, we want C++/C99-style // comments.
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_CC+:} false; then :
2627 $as_echo_n "(cached) " >&6
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2660 if test -z "$ac_cv_prog_CC"; then
2662 # Extract the first word of "gcc", so it can be a program name with args.
2663 set dummy gcc; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_ac_ct_CC="gcc"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2692 $as_echo "$ac_ct_CC" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2698 if test "x$ac_ct_CC" = x; then
2701 case $cross_compiling:$ac_tool_warned in
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2713 if test -z "$CC"; then
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}cc; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_CC+:} false; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_CC="${ac_tool_prefix}cc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2754 if test -z "$CC"; then
2755 # Extract the first word of "cc", so it can be a program name with args.
2756 set dummy cc; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_CC+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2774 ac_prog_rejected=yes
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test $ac_prog_rejected = yes; then
2786 # We found a bogon in the path, so make sure we never use it.
2787 set dummy $ac_cv_prog_CC
2789 if test $# != 0; then
2790 # We chose a different compiler from the bogus one.
2791 # However, it has the same basename, so the bogon will be chosen
2792 # first if we set CC to just the basename; use the full file name.
2794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2800 if test -n "$CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 $as_echo "$CC" >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 for ac_prog in cl.exe
2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2851 test -n "$CC" && break
2854 if test -z "$CC"; then
2856 for ac_prog in cl.exe
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_CC="$ac_prog"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2886 if test -n "$ac_ct_CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2888 $as_echo "$ac_ct_CC" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2895 test -n "$ac_ct_CC" && break
2898 if test "x$ac_ct_CC" = x; then
2901 case $cross_compiling:$ac_tool_warned in
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2914 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2917 See \
`config.log' for more details" "$LINENO" 5; }
2919 # Provide some information about the compiler.
2920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2923 for ac_option in --version -v -V -qversion; do
2924 { { ac_try="$ac_compiler $ac_option >&5"
2926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2927 *) ac_try_echo
=$ac_try;;
2929 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2933 if test -s conftest.err
; then
2935 ... rest of stderr output deleted ...
2936 10q' conftest.err
>conftest.er1
2937 cat conftest.er1
>&5
2939 rm -f conftest.er1 conftest.err
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }
2944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2955 ac_clean_files_save
=$ac_clean_files
2956 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2957 # Try to create an executable without -o first, disregard a.out.
2958 # It will help us diagnose broken compilers, and finding out an intuition
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2961 $as_echo_n "checking whether the C compiler works... " >&6; }
2962 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964 # The possible output files:
2965 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2968 for ac_file
in $ac_files
2971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2972 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2977 if { { ac_try
="$ac_link_default"
2979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link_default") 2>&5
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2989 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2990 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2991 # so that the user can short-circuit this test for compilers unknown to
2993 for ac_file in $ac_files ''
2995 test -f "$ac_file" || continue
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3000 # We found the default executable, but exeext='' is most
3004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 # We set ac_cv_exeext here because the later test for it is not
3009 # safe: cross compilers may not add the suffix if given an `-o'
3010 # argument, so we may need to know it at that point already.
3011 # Even if this section looks crufty: it has the advantage of
3018 test "$ac_cv_exeext" = no && ac_cv_exeext=
3023 if test -z "$ac_file"; then :
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 $as_echo "$as_me: failed program was:" >&5
3027 sed 's
/^
/|
/' conftest.$ac_ext >&5
3029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3031 as_fn_error 77 "C compiler cannot create executables
3032 See \`config.log
' for more details" "$LINENO" 5; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3035 $as_echo "yes" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3038 $as_echo_n "checking for C compiler default output file name... " >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040 $as_echo "$ac_file" >&6; }
3041 ac_exeext=$ac_cv_exeext
3043 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3044 ac_clean_files=$ac_clean_files_save
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046 $as_echo_n "checking for suffix of executables... " >&6; }
3047 if { { ac_try="$ac_link"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3059 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3060 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3062 for ac_file
in conftest.exe conftest conftest.
*; do
3063 test -f "$ac_file" ||
continue
3065 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3066 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3075 See \`config.log' for more details" "$LINENO" 5; }
3077 rm -f conftest conftest
$ac_cv_exeext
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079 $as_echo "$ac_cv_exeext" >&6; }
3081 rm -f conftest.
$ac_ext
3082 EXEEXT
=$ac_cv_exeext
3084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3090 FILE *f = fopen ("conftest.out", "w");
3091 return ferror (f) || fclose (f) != 0;
3097 ac_clean_files
="$ac_clean_files conftest.out"
3098 # Check that the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3101 $as_echo_n "checking whether we are cross compiling... " >&6; }
3102 if test "$cross_compiling" != yes; then
3103 { { ac_try
="$ac_link"
3105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 if { ac_try='./conftest$ac_cv_exeext'
3115 { { case "(($ac_try" in
3116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3117 *) ac_try_echo
=$ac_try;;
3119 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_try") 2>&5
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; }; then
3127 if test "$cross_compiling" = maybe
; then
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $?
"cannot run C compiled programs.
3133 If you meant to cross compile, use \`--host'.
3134 See \`config.log' for more details" "$LINENO" 5; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139 $as_echo "$cross_compiling" >&6; }
3141 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3142 ac_clean_files
=$ac_clean_files_save
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3144 $as_echo_n "checking for suffix of object files... " >&6; }
3145 if ${ac_cv_objext+:} false
; then :
3146 $as_echo_n "(cached) " >&6
3148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3159 rm -f conftest.o conftest.obj
3160 if { { ac_try
="$ac_compile"
3162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_compile") 2>&5
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; then :
3171 for ac_file in conftest.o conftest.obj conftest.*; do
3172 test -f "$ac_file" || continue;
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3186 See \
`config.log' for more details" "$LINENO" 5; }
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3191 $as_echo "$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3196 if ${ac_cv_c_compiler_gnu+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3213 if ac_fn_c_try_compile "$LINENO"; then :
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3223 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3224 if test $ac_compiler_gnu = yes; then
3229 ac_test_CFLAGS=${CFLAGS+set}
3230 ac_save_CFLAGS=$CFLAGS
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3232 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3233 if ${ac_cv_prog_cc_g+:} false; then :
3234 $as_echo_n "(cached) " >&6
3236 ac_save_c_werror_flag=$ac_c_werror_flag
3237 ac_c_werror_flag=yes
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3251 if ac_fn_c_try_compile "$LINENO"; then :
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3266 if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3282 if ac_fn_c_try_compile "$LINENO"; then :
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3293 $as_echo "$ac_cv_prog_cc_g" >&6; }
3294 if test "$ac_test_CFLAGS" = set; then
3295 CFLAGS=$ac_save_CFLAGS
3296 elif test $ac_cv_prog_cc_g = yes; then
3297 if test "$GCC" = yes; then
3303 if test "$GCC" = yes; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3310 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3311 if ${ac_cv_prog_cc_c89+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 ac_cv_prog_cc_c89=no
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3335 s = g (p, va_arg (v,int));
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
3343 as 'x'. The following induces an error, until -std is added to get
3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
3346 that's true only with -std. */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371 CC="$ac_save_CC $ac_arg"
3372 if ac_fn_c_try_compile "$LINENO"; then :
3373 ac_cv_prog_cc_c89=$ac_arg
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 rm -f conftest.$ac_ext
3383 case "x$ac_cv_prog_cc_c89" in
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3386 $as_echo "none needed" >&6; } ;;
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3389 $as_echo "unsupported" >&6; } ;;
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3395 if test "x$ac_cv_prog_cc_c89" != xno; then :
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3406 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3407 if ${ac_cv_prog_cc_c99+:} false; then :
3408 $as_echo_n "(cached) " >&6
3410 ac_cv_prog_cc_c99=no
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3415 #include <stdbool.h>
3420 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3421 #define debug(...) fprintf (stderr, __VA_ARGS__)
3422 #define showlist(...) puts (#__VA_ARGS__)
3423 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3425 test_varargs_macros (void)
3430 debug ("X = %d\n", x);
3431 showlist (The first, second, and third items.);
3432 report (x>y, "x is %d but y is %d", x, y);
3435 // Check long long types.
3436 #define BIG64 18446744073709551615ull
3437 #define BIG32 4294967295ul
3438 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3440 your preprocessor is broken;
3444 your preprocessor is broken;
3446 static long long int bignum = -9223372036854775807LL;
3447 static unsigned long long int ubignum = BIG64;
3449 struct incomplete_array
3457 const wchar_t *name;
3461 typedef const char *ccp;
3464 test_restrict (ccp restrict text)
3466 // See if C++-style comments work.
3467 // Iterate through items via the restricted pointer.
3468 // Also check for declarations in for loops.
3469 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3474 // Check varargs and va_copy.
3476 test_varargs (const char *format, ...)
3479 va_start (args, format);
3481 va_copy (args_copy, args);
3492 str = va_arg (args_copy, const char *);
3495 number = va_arg (args_copy, int);
3498 fnumber = va_arg (args_copy, double);
3513 _Bool success = false;
3516 if (test_restrict ("String literal") == 0)
3518 char *restrict newvar = "Another string";
3521 test_varargs ("s, d' f .", "string", 65, 34.234);
3522 test_varargs_macros ();
3524 // Check flexible array members.
3525 struct incomplete_array *ia =
3526 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3528 for (int i = 0; i < ia->datasize; ++i)
3529 ia->data[i] = i * 1.234;
3531 // Check named initializers.
3532 struct named_init ni = {
3534 .name = L"Test wide string",
3535 .average = 543.34343,
3540 int dynamic_array[ni.number];
3541 dynamic_array[ni.number - 1] = 543;
3543 // work around unused variable warnings
3544 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3545 || dynamic_array[ni.number - 1] != 543);
3551 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3553 CC="$ac_save_CC $ac_arg"
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_c99=$ac_arg
3557 rm -f core conftest.err conftest.$ac_objext
3558 test "x$ac_cv_prog_cc_c99" != "xno" && break
3560 rm -f conftest.$ac_ext
3565 case "x$ac_cv_prog_cc_c99" in
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568 $as_echo "none needed" >&6; } ;;
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3571 $as_echo "unsupported" >&6; } ;;
3573 CC="$CC $ac_cv_prog_cc_c99"
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3575 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3577 if test "x$ac_cv_prog_cc_c99" != xno; then :
3582 if test "$ac_cv_prog_cc_c99" = "no"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3584 $as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3591 if test "$GCC" = yes ; then
3593 # -Werror forces warnings to be errors.
3595 ac_lbl_cc_force_warning_errors=-Werror
3598 # Try to have the compiler default to hiding symbols,
3599 # so that only symbols explicitly exported with
3600 # PCAP_API will be visible outside (shared) libraries.
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3604 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3605 save_CFLAGS="$CFLAGS"
3606 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3608 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3609 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3611 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3612 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3614 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3616 CFLAGS="$CFLAGS -fvisibility=hidden"
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3629 if ac_fn_c_try_compile "$LINENO"; then :
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3633 can_add_to_cflags=yes
3635 # The compile supports this; do we have some C code for
3636 # which the warning should *not* appear?
3637 # We test the fourth argument because the third argument
3638 # could contain quotes, breaking the test.
3642 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3644 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3649 if ac_fn_c_try_compile "$LINENO"; then :
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3663 $as_echo "yes" >&6; }
3664 can_add_to_cflags=no
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 CFLAGS="$save_CFLAGS"
3670 if test x"$can_add_to_cflags" = "xyes"
3672 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 CFLAGS="$save_CFLAGS"
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 V_INCLS="$V_INCLS -I/usr/local/include"
3686 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3692 # This is assumed either to be GCC or clang, both
3693 # of which use -Werror to force warnings to be errors.
3695 ac_lbl_cc_force_warning_errors=-Werror
3698 # Try to have the compiler default to hiding symbols,
3699 # so that only symbols explicitly exported with
3700 # PCAP_API will be visible outside (shared) libraries.
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3704 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3705 save_CFLAGS="$CFLAGS"
3706 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3708 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3709 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3711 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3712 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3714 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3716 CFLAGS="$CFLAGS -fvisibility=hidden"
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3729 if ac_fn_c_try_compile "$LINENO"; then :
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732 $as_echo "yes" >&6; }
3733 can_add_to_cflags=yes
3735 # The compile supports this; do we have some C code for
3736 # which the warning should *not* appear?
3737 # We test the fourth argument because the third argument
3738 # could contain quotes, breaking the test.
3742 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3744 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3749 if ac_fn_c_try_compile "$LINENO"; then :
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3763 $as_echo "yes" >&6; }
3764 can_add_to_cflags=no
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 CFLAGS="$save_CFLAGS"
3770 if test x"$can_add_to_cflags" = "xyes"
3772 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 CFLAGS="$save_CFLAGS"
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 # HP C, which is what we presume we're using, doesn't
3789 # exit with a non-zero exit status if we hand it an
3790 # invalid -W flag, can't be forced to do so even with
3791 # +We, and doesn't handle GCC-style -W flags, so we
3792 # don't want to try using GCC-style -W flags.
3794 ac_lbl_cc_dont_try_gcc_dashW=yes
3799 # MIPS C, which is what we presume we're using, doesn't
3800 # necessarily exit with a non-zero exit status if we
3801 # hand it an invalid -W flag, can't be forced to do
3802 # so, and doesn't handle GCC-style -W flags, so we
3803 # don't want to try using GCC-style -W flags.
3805 ac_lbl_cc_dont_try_gcc_dashW=yes
3807 # It also, apparently, defaults to "char" being
3808 # unsigned, unlike most other C implementations;
3809 # I suppose we could say "signed char" whenever
3810 # we want to guarantee a signed "char", but let's
3811 # just force signed chars.
3813 # -xansi is normally the default, but the
3814 # configure script was setting it; perhaps -cckr
3815 # was the default in the Old Days. (Then again,
3816 # that would probably be for backwards compatibility
3817 # in the days when ANSI C was Shiny and New, i.e.
3818 # 1989 and the early '90's, so maybe we can just
3819 # drop support for those compilers.)
3821 # -g is equivalent to -g2, which turns off
3822 # optimization; we choose -g3, which generates
3823 # debugging information but doesn't turn off
3824 # optimization (even if the optimization would
3825 # cause inaccuracies in debugging).
3827 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3832 # Presumed to be DEC OSF/1, Digital UNIX, or
3835 # The DEC C compiler, which is what we presume we're
3836 # using, doesn't exit with a non-zero exit status if we
3837 # hand it an invalid -W flag, can't be forced to do
3838 # so, and doesn't handle GCC-style -W flags, so we
3839 # don't want to try using GCC-style -W flags.
3841 ac_lbl_cc_dont_try_gcc_dashW=yes
3843 # -g is equivalent to -g2, which turns off
3844 # optimization; we choose -g3, which generates
3845 # debugging information but doesn't turn off
3846 # optimization (even if the optimization would
3847 # cause inaccuracies in debugging).
3849 V_CCOPT="$V_CCOPT -g3"
3854 # Assumed to be Sun C, which requires -errwarn to force
3855 # warnings to be treated as errors.
3857 ac_lbl_cc_force_warning_errors=-errwarn
3860 # Try to have the compiler default to hiding symbols,
3861 # so that only symbols explicitly exported with
3862 # PCAP_API will be visible outside (shared) libraries.
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3866 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3867 save_CFLAGS="$CFLAGS"
3868 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3870 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3871 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3873 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3874 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3876 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3878 CFLAGS="$CFLAGS -xldscope=hidden"
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3891 if ac_fn_c_try_compile "$LINENO"; then :
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3894 $as_echo "yes" >&6; }
3895 can_add_to_cflags=yes
3897 # The compile supports this; do we have some C code for
3898 # which the warning should *not* appear?
3899 # We test the fourth argument because the third argument
3900 # could contain quotes, breaking the test.
3904 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3906 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 if ac_fn_c_try_compile "$LINENO"; then :
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925 $as_echo "yes" >&6; }
3926 can_add_to_cflags=no
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 CFLAGS="$save_CFLAGS"
3932 if test x"$can_add_to_cflags" = "xyes"
3934 V_CCOPT="$V_CCOPT -xldscope=hidden"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3941 CFLAGS="$save_CFLAGS"
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3950 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3951 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3952 $as_echo_n "(cached) " >&6
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <sys/types.h>
3960 struct a { int b; };
3961 void c(const struct a *)
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_lbl_cc_const_proto=yes
3969 ac_cv_lbl_cc_const_proto=no
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3975 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3976 if test $ac_cv_lbl_cc_const_proto = no ; then
3978 $as_echo "#define const /**/" >>confdefs.h
3983 V_CCOPT="$V_CCOPT -O"
3987 if test "$GCC" = yes ; then
3989 # On platforms where we build a shared library:
3991 # add options to generate position-independent code,
3992 # if necessary (it's the default in AIX and Darwin/macOS);
3994 # define option to set the soname of the shared library,
3995 # if the OS supports that;
3997 # add options to specify, at link time, a directory to
3998 # add to the run-time search path, if that's necessary.
4000 V_SHLIB_CMD="\$(CC)"
4001 V_SHLIB_OPT="-shared"
4007 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
4009 # Platforms where the linker is the GNU linker
4010 # or accepts command-line arguments like
4011 # those the GNU linker accepts.
4013 # Some instruction sets require -fPIC on some
4014 # operating systems. Check for them. If you
4015 # have a combination that requires it, add it
4030 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4031 V_SONAME_OPT="-Wl,-soname,"
4032 V_RPATH_OPT="-Wl,-rpath,"
4036 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4038 # XXX - this assumes GCC is using the HP linker,
4039 # rather than the GNU linker, and that the "+h"
4040 # option is used on all HP-UX platforms, both .sl
4043 V_SONAME_OPT="-Wl,+h,"
4045 # By default, directories specifed with -L
4046 # are added to the run-time search path, so
4047 # we don't add them in pcap-config.
4052 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4054 # XXX - this assumes GCC is using the Sun linker,
4055 # rather than the GNU linker.
4057 V_SONAME_OPT="-Wl,-h,"
4058 V_RPATH_OPT="-Wl,-R,"
4063 # Set the appropriate compiler flags and, on platforms
4064 # where we build a shared library:
4066 # add options to generate position-independent code,
4067 # if necessary (it's the default in Darwin/macOS);
4069 # if we generate ".so" shared libraries, define the
4070 # appropriate options for building the shared library;
4072 # add options to specify, at link time, a directory to
4073 # add to the run-time search path, if that's necessary.
4075 # Note: spaces after V_SONAME_OPT are significant; on
4076 # some platforms the soname is passed with a GCC-like
4077 # "-Wl,-soname,{soname}" option, with the soname part
4078 # of the option, while on other platforms the C compiler
4079 # driver takes it as a regular option with the soname
4080 # following the option. The same applies to V_RPATH_OPT.
4085 V_SHLIB_CMD="\$(CC)"
4086 V_SHLIB_OPT="-G -bnoentry -bexpall"
4089 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4093 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4094 V_SHLIB_CMD="\$(CC)"
4095 V_SHLIB_OPT="-shared"
4096 V_SONAME_OPT="-Wl,-soname,"
4097 V_RPATH_OPT="-Wl,-rpath,"
4101 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4102 V_SHLIB_CMD="\$(LD)"
4106 # By default, directories specifed with -L
4107 # are added to the run-time search path, so
4108 # we don't add them in pcap-config.
4114 # Presumed to be DEC OSF/1, Digital UNIX, or
4117 V_SHLIB_CMD="\$(CC)"
4118 V_SHLIB_OPT="-shared"
4119 V_SONAME_OPT="-soname "
4120 V_RPATH_OPT="-rpath "
4124 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4125 V_SHLIB_CMD="\$(CC)"
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4134 $as_echo_n "checking for inline... " >&6; }
4135 save_CFLAGS="$CFLAGS"
4137 if ${ac_cv_lbl_inline+:} false; then :
4138 $as_echo_n "(cached) " >&6
4143 for ac_lbl_inline in inline __inline__ __inline
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #define inline $ac_lbl_inline
4148 static inline struct iltest *foo(void);
4154 static inline struct iltest *
4157 static struct iltest xxx;
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_lbl_cc_inline=yes
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 if test "$ac_lbl_cc_inline" = yes ; then
4177 if test "$ac_lbl_cc_inline" = yes ; then
4178 ac_cv_lbl_inline=$ac_lbl_inline
4182 CFLAGS="$save_CFLAGS"
4183 if test ! -z "$ac_cv_lbl_inline" ; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4185 $as_echo "$ac_cv_lbl_inline" >&6; }
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4191 cat >>confdefs.h <<_ACEOF
4192 #define inline $ac_cv_lbl_inline
4197 # Try to arrange for large file support.
4199 # Check whether --enable-largefile was given.
4200 if test "${enable_largefile+set}" = set; then :
4201 enableval=$enable_largefile;
4204 if test "$enable_largefile" != no; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4207 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4208 if ${ac_cv_sys_largefile_CC+:} false; then :
4209 $as_echo_n "(cached) " >&6
4211 ac_cv_sys_largefile_CC=no
4212 if test "$GCC" != yes; then
4215 # IRIX 6.2 and later do not support large files by default,
4216 # so use the C compiler's -n32 option if that helps.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <sys/types.h>
4220 /* Check that off_t can represent 2**63 - 1 correctly.
4221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4222 since some C++ compilers masquerading as C compilers
4223 incorrectly reject 9223372036854775807. */
4224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4226 && LARGE_OFF_T % 2147483647 == 1)
4236 if ac_fn_c_try_compile "$LINENO"; then :
4239 rm -f core conftest.err conftest.$ac_objext
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_sys_largefile_CC=' -n32'; break
4244 rm -f core conftest.err conftest.$ac_objext
4248 rm -f conftest.$ac_ext
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4252 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4253 if test "$ac_cv_sys_largefile_CC" != no; then
4254 CC=$CC$ac_cv_sys_largefile_CC
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4258 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4259 if ${ac_cv_sys_file_offset_bits+:} false; then :
4260 $as_echo_n "(cached) " >&6
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <sys/types.h>
4266 /* Check that off_t can represent 2**63 - 1 correctly.
4267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4268 since some C++ compilers masquerading as C compilers
4269 incorrectly reject 9223372036854775807. */
4270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4272 && LARGE_OFF_T % 2147483647 == 1)
4282 if ac_fn_c_try_compile "$LINENO"; then :
4283 ac_cv_sys_file_offset_bits=no; break
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #define _FILE_OFFSET_BITS 64
4289 #include <sys/types.h>
4290 /* Check that off_t can represent 2**63 - 1 correctly.
4291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4292 since some C++ compilers masquerading as C compilers
4293 incorrectly reject 9223372036854775807. */
4294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4296 && LARGE_OFF_T % 2147483647 == 1)
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_sys_file_offset_bits=64; break
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_cv_sys_file_offset_bits=unknown
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4315 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4316 case $ac_cv_sys_file_offset_bits in #(
4319 cat >>confdefs.h <<_ACEOF
4320 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4325 if test $ac_cv_sys_file_offset_bits = unknown; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4327 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4328 if ${ac_cv_sys_large_files+:} false; then :
4329 $as_echo_n "(cached) " >&6
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <sys/types.h>
4335 /* Check that off_t can represent 2**63 - 1 correctly.
4336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337 since some C++ compilers masquerading as C compilers
4338 incorrectly reject 9223372036854775807. */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341 && LARGE_OFF_T % 2147483647 == 1)
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_sys_large_files=no; break
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 #define _LARGE_FILES 1
4358 #include <sys/types.h>
4359 /* Check that off_t can represent 2**63 - 1 correctly.
4360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4361 since some C++ compilers masquerading as C compilers
4362 incorrectly reject 9223372036854775807. */
4363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4365 && LARGE_OFF_T % 2147483647 == 1)
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_sys_large_files=1; break
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_cv_sys_large_files=unknown
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4384 $as_echo "$ac_cv_sys_large_files" >&6; }
4385 case $ac_cv_sys_large_files in #(
4388 cat >>confdefs.h <<_ACEOF
4389 #define _LARGE_FILES $ac_cv_sys_large_files
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4400 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4401 if ${ac_cv_sys_largefile_source+:} false; then :
4402 $as_echo_n "(cached) " >&6
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <sys/types.h> /* for off_t */
4412 int (*fp) (FILE *, off_t, int) = fseeko;
4413 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4418 if ac_fn_c_try_link "$LINENO"; then :
4419 ac_cv_sys_largefile_source=no; break
4421 rm -f core conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #define _LARGEFILE_SOURCE 1
4426 #include <sys/types.h> /* for off_t */
4431 int (*fp) (FILE *, off_t, int) = fseeko;
4432 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4437 if ac_fn_c_try_link "$LINENO"; then :
4438 ac_cv_sys_largefile_source=1; break
4440 rm -f core conftest.err conftest.$ac_objext \
4441 conftest$ac_exeext conftest.$ac_ext
4442 ac_cv_sys_largefile_source=unknown
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4447 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4448 case $ac_cv_sys_largefile_source in #(
4451 cat >>confdefs.h <<_ACEOF
4452 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4458 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4459 # in glibc 2.1.3, but that breaks too many other things.
4460 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4461 if test $ac_cv_sys_largefile_source != unknown; then
4463 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4474 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4475 # On Suns, sometimes $CPP names a directory.
4476 if test -n "$CPP" && test -d "$CPP"; then
4479 if test -z "$CPP"; then
4480 if ${ac_cv_prog_CPP+:} false; then :
4481 $as_echo_n "(cached) " >&6
4483 # Double quotes because CPP needs to be expanded
4484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4487 for ac_c_preproc_warn_flag in '' yes
4489 # Use a header file that comes with gcc, so configuring glibc
4490 # with a fresh cross-compiler works.
4491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492 # <limits.h> exists even on freestanding compilers.
4493 # On the NeXT, cc -E runs the code through the compiler's parser,
4494 # not just through cpp. "Syntax error" is here to catch this case.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4498 # include <limits.h>
4500 # include <assert.h>
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4507 # Broken: fails on valid input.
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4512 # OK, works on sane cases. Now check whether nonexistent headers
4513 # can be detected and how.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #include <ac_nonexistent.h>
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: success on invalid input.
4522 # Passes both tests.
4526 rm -f conftest.err conftest.i conftest.$ac_ext
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.i conftest.err conftest.
$ac_ext
4531 if $ac_preproc_ok; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4544 $as_echo "$CPP" >&6; }
4546 for ac_c_preproc_warn_flag
in '' yes
4548 # Use a header file that comes with gcc, so configuring glibc
4549 # with a fresh cross-compiler works.
4550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 # <limits.h> exists even on freestanding compilers.
4552 # On the NeXT, cc -E runs the code through the compiler's parser,
4553 # not just through cpp. "Syntax error" is here to catch this case.
4554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4557 # include <limits.h>
4559 # include <assert.h>
4563 if ac_fn_c_try_cpp
"$LINENO"; then :
4566 # Broken: fails on valid input.
4569 rm -f conftest.err conftest.i conftest.
$ac_ext
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4577 if ac_fn_c_try_cpp
"$LINENO"; then :
4578 # Broken: success on invalid input.
4581 # Passes both tests.
4585 rm -f conftest.err conftest.i conftest.
$ac_ext
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.i conftest.err conftest.
$ac_ext
4590 if $ac_preproc_ok; then :
4593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4596 See \`config.log' for more details" "$LINENO" 5; }
4600 ac_cpp
='$CPP $CPPFLAGS'
4601 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4607 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4608 if ${ac_cv_path_GREP+:} false
; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -z "$GREP"; then
4612 ac_path_GREP_found
=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4615 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4618 test -z "$as_dir" && as_dir
=.
4619 for ac_prog
in grep ggrep
; do
4620 for ac_exec_ext
in '' $ac_executable_extensions; do
4621 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4622 as_fn_executable_p
"$ac_path_GREP" ||
continue
4623 # Check for GNU ac_path_GREP and select it if it is found.
4624 # Check for GNU $ac_path_GREP
4625 case `"$ac_path_GREP" --version 2>&1` in
4627 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4630 $as_echo_n 0123456789 >"conftest.in"
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'GREP' >> "conftest.nl"
4637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4638 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4639 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4640 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_GREP
="$ac_path_GREP"
4643 ac_path_GREP_max
=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4648 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4651 $ac_path_GREP_found && break 3
4656 if test -z "$ac_cv_path_GREP"; then
4657 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 ac_cv_path_GREP
=$GREP
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4665 $as_echo "$ac_cv_path_GREP" >&6; }
4666 GREP
="$ac_cv_path_GREP"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4670 $as_echo_n "checking for egrep... " >&6; }
4671 if ${ac_cv_path_EGREP+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4674 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4675 then ac_cv_path_EGREP
="$GREP -E"
4677 if test -z "$EGREP"; then
4678 ac_path_EGREP_found
=false
4679 # Loop through the user's path and test for each of PROGNAME-LIST
4680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4681 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4684 test -z "$as_dir" && as_dir
=.
4685 for ac_prog
in egrep; do
4686 for ac_exec_ext
in '' $ac_executable_extensions; do
4687 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4688 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4689 # Check for GNU ac_path_EGREP and select it if it is found.
4690 # Check for GNU $ac_path_EGREP
4691 case `"$ac_path_EGREP" --version 2>&1` in
4693 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4696 $as_echo_n 0123456789 >"conftest.in"
4699 cat "conftest.in" "conftest.in" >"conftest.tmp"
4700 mv "conftest.tmp" "conftest.in"
4701 cp "conftest.in" "conftest.nl"
4702 $as_echo 'EGREP' >> "conftest.nl"
4703 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4704 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4705 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4706 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4707 # Best one so far, save it but keep looking for a better one
4708 ac_cv_path_EGREP
="$ac_path_EGREP"
4709 ac_path_EGREP_max
=$ac_count
4711 # 10*(2^10) chars as input seems more than enough
4712 test $ac_count -gt 10 && break
4714 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4717 $ac_path_EGREP_found && break 3
4722 if test -z "$ac_cv_path_EGREP"; then
4723 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726 ac_cv_path_EGREP
=$EGREP
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4732 $as_echo "$ac_cv_path_EGREP" >&6; }
4733 EGREP
="$ac_cv_path_EGREP"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4737 $as_echo_n "checking for ANSI C header files... " >&6; }
4738 if ${ac_cv_header_stdc+:} false
; then :
4739 $as_echo_n "(cached) " >&6
4741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4756 if ac_fn_c_try_compile
"$LINENO"; then :
4757 ac_cv_header_stdc
=yes
4759 ac_cv_header_stdc
=no
4761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4763 if test $ac_cv_header_stdc = yes; then
4764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 $EGREP "memchr" >/dev
/null
2>&1; then :
4774 ac_cv_header_stdc
=no
4780 if test $ac_cv_header_stdc = yes; then
4781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788 $EGREP "free" >/dev
/null
2>&1; then :
4791 ac_cv_header_stdc
=no
4797 if test $ac_cv_header_stdc = yes; then
4798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4799 if test "$cross_compiling" = yes; then :
4802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4806 #if ((' ' & 0x0FF) == 0x020)
4807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4810 # define ISLOWER(c) \
4811 (('a' <= (c) && (c) <= 'i') \
4812 || ('j' <= (c) && (c) <= 'r') \
4813 || ('s' <= (c) && (c) <= 'z'))
4814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4822 for (i = 0; i < 256; i++)
4823 if (XOR (islower (i), ISLOWER (i))
4824 || toupper (i) != TOUPPER (i))
4829 if ac_fn_c_try_run
"$LINENO"; then :
4832 ac_cv_header_stdc
=no
4834 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4835 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4841 $as_echo "$ac_cv_header_stdc" >&6; }
4842 if test $ac_cv_header_stdc = yes; then
4844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4849 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4850 inttypes.h stdint.h unistd.h
4852 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4853 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4855 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4856 cat >>confdefs.h
<<_ACEOF
4857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4865 for ac_header
in sys
/ioccom.h sys
/sockio.h
4867 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4868 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4869 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4870 cat >>confdefs.h
<<_ACEOF
4871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4878 for ac_header
in netpacket
/packet.h
4880 ac_fn_c_check_header_mongrel
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4881 if test "x$ac_cv_header_netpacket_packet_h" = xyes
; then :
4882 cat >>confdefs.h
<<_ACEOF
4883 #define HAVE_NETPACKET_PACKET_H 1
4890 for ac_header
in net
/pfvar.h
4892 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4893 #include <sys/socket.h>
4896 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4897 cat >>confdefs.h
<<_ACEOF
4898 #define HAVE_NET_PFVAR_H 1
4905 if test "$ac_cv_header_net_pfvar_h" = yes; then
4907 # Check for various PF actions.
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4910 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913 #include <sys/types.h>
4914 #include <sys/socket.h>
4916 #include <net/pfvar.h>
4920 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4925 if ac_fn_c_try_compile
"$LINENO"; then :
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 $as_echo "yes" >&6; }
4930 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4943 # linux/if_bonding.h requires sys/socket.h.
4945 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4947 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4948 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4949 #include <sys/socket.h>
4950 #include <linux/if.h>
4953 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4954 cat >>confdefs.h
<<_ACEOF
4955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4964 # Check for the eventfd header.
4966 for ac_header
in sys
/eventfd.h
4968 ac_fn_c_check_header_mongrel
"$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
4969 if test "x$ac_cv_header_sys_eventfd_h" = xyes
; then :
4970 cat >>confdefs.h
<<_ACEOF
4971 #define HAVE_SYS_EVENTFD_H 1
4981 if test "$GCC" = yes ; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4983 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4984 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4985 $as_echo_n "(cached) " >&6
4987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4990 * This generates a "duplicate case value" when fixincludes
4993 # include <sys/types.h>
4994 # include <sys/time.h>
4995 # include <sys/ioctl.h>
4996 # ifdef HAVE_SYS_IOCCOM_H
4997 # include <sys/ioccom.h>
5010 if ac_fn_c_try_compile
"$LINENO"; then :
5011 ac_cv_lbl_gcc_fixincludes
=yes
5013 ac_cv_lbl_gcc_fixincludes
=no
5015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5019 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5020 if test $ac_cv_lbl_gcc_fixincludes = no
; then
5021 # Don't cache failure
5022 unset ac_cv_lbl_gcc_fixincludes
5023 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
5027 for ac_func
in strerror strerror_r strerror_s
5029 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5030 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5031 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5032 cat >>confdefs.h
<<_ACEOF
5033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5041 for ac_func
in vsnprintf snprintf
5043 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5044 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5045 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5046 cat >>confdefs.h
<<_ACEOF
5047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5055 if test $needsnprintf = yes; then
5056 case " $LIBOBJS " in
5057 *" snprintf.$ac_objext "* ) ;;
5058 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
5065 for ac_func
in strlcat
5067 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
5068 if test "x$ac_cv_func_strlcat" = xyes
; then :
5069 cat >>confdefs.h
<<_ACEOF
5070 #define HAVE_STRLCAT 1
5078 if test $needstrlcat = yes; then
5079 case " $LIBOBJS " in
5080 *" strlcat.$ac_objext "* ) ;;
5081 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
5088 for ac_func
in strlcpy
5090 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5091 if test "x$ac_cv_func_strlcpy" = xyes
; then :
5092 cat >>confdefs.h
<<_ACEOF
5093 #define HAVE_STRLCPY 1
5101 if test $needstrlcpy = yes; then
5102 case " $LIBOBJS " in
5103 *" strlcpy.$ac_objext "* ) ;;
5104 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
5111 for ac_func
in strtok_r
5113 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5114 if test "x$ac_cv_func_strtok_r" = xyes
; then :
5115 cat >>confdefs.h
<<_ACEOF
5116 #define HAVE_STRTOK_R 1
5124 if test $needstrtok_r = yes; then
5125 case " $LIBOBJS " in
5126 *" strtok_r.$ac_objext "* ) ;;
5127 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
5134 # Do we have ffs(), and is it declared in <strings.h>?
5138 ac_fn_c_check_func
"$LINENO" "ffs" "ac_cv_func_ffs"
5139 if test "x$ac_cv_func_ffs" = xyes
; then :
5140 cat >>confdefs.h
<<_ACEOF
5147 if test "$ac_cv_func_ffs" = yes; then
5149 # We have ffs(); is it declared in <strings.h>?
5151 # This test fails if we don't have <strings.h> or if we do
5152 # but it doesn't declare ffs().
5154 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5155 #include <strings.h>
5158 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
5161 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5169 # Do this before checking for ether_hostton(), as it's a
5170 # "getaddrinfo()-ish function".
5174 # Most operating systems have getaddrinfo() in the default searched
5175 # libraries (i.e. libc). Check there first.
5177 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5178 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
5183 # Not found in the standard system libraries.
5184 # Try libsocket, which requires libnsl.
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5187 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5188 if ${ac_cv_lib_socket_getaddrinfo+:} false
; then :
5189 $as_echo_n "(cached) " >&6
5191 ac_check_lib_save_LIBS
=$LIBS
5192 LIBS
="-lsocket -lnsl $LIBS"
5193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5196 /* Override any GCC internal prototype to avoid an error.
5197 Use char because int might match the return type of a GCC
5198 builtin and then its argument prototype would still apply. */
5202 char getaddrinfo ();
5206 return getaddrinfo ();
5211 if ac_fn_c_try_link
"$LINENO"; then :
5212 ac_cv_lib_socket_getaddrinfo
=yes
5214 ac_cv_lib_socket_getaddrinfo
=no
5216 rm -f core conftest.err conftest.
$ac_objext \
5217 conftest
$ac_exeext conftest.
$ac_ext
5218 LIBS
=$ac_check_lib_save_LIBS
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5221 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5222 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes
; then :
5225 # OK, we found it in libsocket.
5227 LIBS
="-lsocket -lnsl $LIBS"
5232 # We didn't find it.
5234 as_fn_error $?
"getaddrinfo is required, but wasn't found" "$LINENO" 5
5240 # OK, do we have recvmsg() in libxnet?
5241 # We also link with libsocket and libnsl.
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5244 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5245 if ${ac_cv_lib_xnet_recvmsg+:} false
; then :
5246 $as_echo_n "(cached) " >&6
5248 ac_check_lib_save_LIBS
=$LIBS
5249 LIBS
="-lxnet -lsocket -lnsl $LIBS"
5250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5253 /* Override any GCC internal prototype to avoid an error.
5254 Use char because int might match the return type of a GCC
5255 builtin and then its argument prototype would still apply. */
5268 if ac_fn_c_try_link
"$LINENO"; then :
5269 ac_cv_lib_xnet_recvmsg
=yes
5271 ac_cv_lib_xnet_recvmsg
=no
5273 rm -f core conftest.err conftest.
$ac_objext \
5274 conftest
$ac_exeext conftest.
$ac_ext
5275 LIBS
=$ac_check_lib_save_LIBS
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5278 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5279 if test "x$ac_cv_lib_xnet_recvmsg" = xyes
; then :
5282 # Yes - link with it as well.
5291 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5293 $as_echo_n "checking for library containing putmsg... " >&6; }
5294 if ${ac_cv_search_putmsg+:} false
; then :
5295 $as_echo_n "(cached) " >&6
5297 ac_func_search_save_LIBS
=$LIBS
5298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5301 /* Override any GCC internal prototype to avoid an error.
5302 Use char because int might match the return type of a GCC
5303 builtin and then its argument prototype would still apply. */
5316 for ac_lib
in '' str
; do
5317 if test -z "$ac_lib"; then
5318 ac_res
="none required"
5321 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5323 if ac_fn_c_try_link
"$LINENO"; then :
5324 ac_cv_search_putmsg
=$ac_res
5326 rm -f core conftest.err conftest.
$ac_objext \
5328 if ${ac_cv_search_putmsg+:} false
; then :
5332 if ${ac_cv_search_putmsg+:} false
; then :
5335 ac_cv_search_putmsg
=no
5338 LIBS
=$ac_func_search_save_LIBS
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5341 $as_echo "$ac_cv_search_putmsg" >&6; }
5342 ac_res
=$ac_cv_search_putmsg
5343 if test "$ac_res" != no
; then :
5344 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5351 # Check for reentrant versions of getnetbyname_r(), as provided by
5352 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5353 # If we don't find one, we just use getnetbyname(), which uses
5354 # thread-specific data on many platforms, but doesn't use it on
5355 # NetBSD or OpenBSD, and may not use it on older versions of other
5358 # Only do the check if we have a declaration of getnetbyname_r();
5359 # without it, we can't check which API it has. (We assume that
5360 # if there's a declaration, it has a prototype, so that the API
5363 ac_fn_c_check_decl
"$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5365 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes
; then :
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5368 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5376 struct netent netent_buf;
5378 struct netent *resultp;
5381 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5387 if ac_fn_c_try_link
"$LINENO"; then :
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390 $as_echo "yes" >&6; }
5392 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5401 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5409 struct netent netent_buf;
5412 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5418 if ac_fn_c_try_link
"$LINENO"; then :
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5423 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5432 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5440 struct netent netent_buf;
5441 struct netent_data net_data;
5443 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5449 if ac_fn_c_try_link
"$LINENO"; then :
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5454 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5463 rm -f core conftest.err conftest.
$ac_objext \
5464 conftest
$ac_exeext conftest.
$ac_ext
5467 rm -f core conftest.err conftest.
$ac_objext \
5468 conftest
$ac_exeext conftest.
$ac_ext
5471 rm -f core conftest.err conftest.
$ac_objext \
5472 conftest
$ac_exeext conftest.
$ac_ext
5478 # Check for reentrant versions of getprotobyname_r(), as provided by
5479 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5480 # If we don't find one, we just use getprotobyname(), which uses
5481 # thread-specific data on many platforms, but doesn't use it on
5482 # NetBSD or OpenBSD, and may not use it on older versions of other
5485 # Only do the check if we have a declaration of getprotobyname_r();
5486 # without it, we can't check which API it has. (We assume that
5487 # if there's a declaration, it has a prototype, so that the API
5490 ac_fn_c_check_decl
"$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5492 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes
; then :
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5495 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5503 struct protoent protoent_buf;
5505 struct protoent *resultp;
5507 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5513 if ac_fn_c_try_link
"$LINENO"; then :
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5518 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5527 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5535 struct protoent protoent_buf;
5538 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5544 if ac_fn_c_try_link
"$LINENO"; then :
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5549 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5558 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5566 struct protoent protoent_buf;
5567 struct protoent_data proto_data;
5569 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5575 if ac_fn_c_try_link
"$LINENO"; then :
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5578 $as_echo "yes" >&6; }
5580 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5589 rm -f core conftest.err conftest.
$ac_objext \
5590 conftest
$ac_exeext conftest.
$ac_ext
5593 rm -f core conftest.err conftest.
$ac_objext \
5594 conftest
$ac_exeext conftest.
$ac_ext
5597 rm -f core conftest.err conftest.
$ac_objext \
5598 conftest
$ac_exeext conftest.
$ac_ext
5604 # You are in a twisty little maze of UN*Xes, all different.
5605 # Some might not have ether_hostton().
5606 # Some might have it and declare it in <net/ethernet.h>.
5607 # Some might have it and declare it in <netinet/ether.h>
5608 # Some might have it and declare it in <sys/ethernet.h>.
5609 # Some might have it and declare it in <arpa/inet.h>.
5610 # Some might have it and declare it in <netinet/if_ether.h>.
5611 # Some might have it and not declare it in any header file.
5613 # Before you is a C compiler.
5615 for ac_func
in ether_hostton
5617 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5618 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5619 cat >>confdefs.h
<<_ACEOF
5620 #define HAVE_ETHER_HOSTTON 1
5626 if test "$ac_cv_func_ether_hostton" = yes; then
5628 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5630 # This test fails if we don't have <net/ethernet.h> or if we do
5631 # but it doesn't declare ether_hostton().
5633 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5634 #include <net/ethernet.h>
5637 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5640 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5648 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5650 # No, how about <netinet/ether.h>, as on Linux?
5652 # This test fails if we don't have <netinet/ether.h>
5653 # or if we do but it doesn't declare ether_hostton().
5655 # Unset ac_cv_have_decl_ether_hostton so we don't
5656 # treat the previous failure as a cached value and
5657 # suppress the next test.
5659 unset ac_cv_have_decl_ether_hostton
5660 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5661 #include <netinet/ether.h>
5664 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5667 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5676 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5678 # No, how about <sys/ethernet.h>, as on Solaris 10
5681 # This test fails if we don't have <sys/ethernet.h>
5682 # or if we do but it doesn't declare ether_hostton().
5684 # Unset ac_cv_have_decl_ether_hostton so we don't
5685 # treat the previous failure as a cached value and
5686 # suppress the next test.
5688 unset ac_cv_have_decl_ether_hostton
5689 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5690 #include <sys/ethernet.h>
5693 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5696 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5705 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5707 # No, how about <arpa/inet.h>, as in AIX?
5709 # This test fails if we don't have <arpa/inet.h>
5710 # (if we have ether_hostton(), we should have
5711 # networking, and if we have networking, we should
5712 # have <arapa/inet.h>) or if we do but it doesn't
5713 # declare ether_hostton().
5715 # Unset ac_cv_have_decl_ether_hostton so we don't
5716 # treat the previous failure as a cached value and
5717 # suppress the next test.
5719 unset ac_cv_have_decl_ether_hostton
5720 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5721 #include <arpa/inet.h>
5724 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5727 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5736 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5738 # No, how about <netinet/if_ether.h>?
5739 # On some platforms, it requires <net/if.h> and
5740 # <netinet/in.h>, and we always include it with
5741 # both of them, so test it with both of them.
5743 # This test fails if we don't have <netinet/if_ether.h>
5744 # and the headers we include before it, or if we do but
5745 # <netinet/if_ether.h> doesn't declare ether_hostton().
5747 # Unset ac_cv_have_decl_ether_hostton so we don't
5748 # treat the previous failure as a cached value and
5749 # suppress the next test.
5751 unset ac_cv_have_decl_ether_hostton
5752 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5753 #include <sys/types.h>
5754 #include <sys/socket.h>
5756 #include <netinet/in.h>
5757 #include <netinet/if_ether.h>
5760 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5763 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5770 # After all that, is ether_hostton() declared?
5772 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5777 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5781 # No, we'll have to declare it ourselves.
5782 # Do we have "struct ether_addr" if we include
5783 # <netinet/if_ether.h>?
5785 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5786 #include <sys/types.h>
5787 #include <sys/socket.h>
5789 #include <netinet/in.h>
5790 #include <netinet/if_ether.h>
5793 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5795 cat >>confdefs.h
<<_ACEOF
5796 #define HAVE_STRUCT_ETHER_ADDR 1
5806 # For various things that might use pthreads.
5808 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5809 if test "x$ac_cv_header_pthread_h" = xyes
; then :
5812 # OK, we have pthread.h. Do we have pthread_create in the
5815 ac_fn_c_check_func
"$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5816 if test "x$ac_cv_func_pthread_create" = xyes
; then :
5821 ac_lbl_have_pthreads
="found"
5826 # No - do we have it in -lpthreads?
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5829 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5830 if ${ac_cv_lib_pthreads_pthread_create+:} false
; then :
5831 $as_echo_n "(cached) " >&6
5833 ac_check_lib_save_LIBS
=$LIBS
5834 LIBS
="-lpthreads $LIBS"
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5838 /* Override any GCC internal prototype to avoid an error.
5839 Use char because int might match the return type of a GCC
5840 builtin and then its argument prototype would still apply. */
5844 char pthread_create ();
5848 return pthread_create ();
5853 if ac_fn_c_try_link
"$LINENO"; then :
5854 ac_cv_lib_pthreads_pthread_create
=yes
5856 ac_cv_lib_pthreads_pthread_create
=no
5858 rm -f core conftest.err conftest.
$ac_objext \
5859 conftest
$ac_exeext conftest.
$ac_ext
5860 LIBS
=$ac_check_lib_save_LIBS
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5863 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5864 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
; then :
5867 # Yes - add -lpthreads.
5869 ac_lbl_have_pthreads
="found"
5870 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthreads"
5875 # No - do we have it in -lpthread?
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5878 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5879 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
5880 $as_echo_n "(cached) " >&6
5882 ac_check_lib_save_LIBS
=$LIBS
5883 LIBS
="-lpthread $LIBS"
5884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5887 /* Override any GCC internal prototype to avoid an error.
5888 Use char because int might match the return type of a GCC
5889 builtin and then its argument prototype would still apply. */
5893 char pthread_create ();
5897 return pthread_create ();
5902 if ac_fn_c_try_link
"$LINENO"; then :
5903 ac_cv_lib_pthread_pthread_create
=yes
5905 ac_cv_lib_pthread_pthread_create
=no
5907 rm -f core conftest.err conftest.
$ac_objext \
5908 conftest
$ac_exeext conftest.
$ac_ext
5909 LIBS
=$ac_check_lib_save_LIBS
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5912 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5913 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
5916 # Yes - add -lpthread.
5918 ac_lbl_have_pthreads
="found"
5919 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthread"
5926 ac_lbl_have_pthreads
="not found"
5940 # We didn't find pthread.h.
5942 ac_lbl_have_pthreads
="not found"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5950 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5951 # Check whether --enable-protochain was given.
5952 if test "${enable_protochain+set}" = set; then :
5953 enableval
=$enable_protochain;
5956 case "x$enable_protochain" in
5957 xyes
) enable_protochain
=enabled
;;
5958 xno
) enable_protochain
=disabled
;;
5959 x
) enable_protochain
=enabled
;;
5962 if test "$enable_protochain" = "disabled"; then
5964 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5968 $as_echo "${enable_protochain}" >&6; }
5971 # valgrindtest directly uses the native capture mechanism, but
5972 # only tests with BPF and PF_PACKET sockets; only enable it if
5973 # we have BPF or PF_PACKET sockets.
5978 # Check whether --with-pcap was given.
5979 if test "${with_pcap+set}" = set; then :
5983 if test ! -z "$with_pcap" ; then
5987 # Check for a bunch of headers for various packet
5988 # capture mechanisms.
5990 for ac_header
in net
/bpf.h
5992 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5993 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
5994 cat >>confdefs.h
<<_ACEOF
5995 #define HAVE_NET_BPF_H 1
6002 if test "$ac_cv_header_net_bpf_h" = yes; then
6004 # Does it define BIOCSETIF?
6005 # I.e., is it a header for an LBL/BSD-style capture
6006 # mechanism, or is it just a header for a BPF filter
6007 # engine? Some versions of Arch Linux, for example,
6008 # have a net/bpf.h that doesn't define BIOCSETIF;
6009 # as it's a Linux, it should use packet sockets,
6014 # sys/types.h, because FreeBSD 10's net/bpf.h
6015 # requires that various BSD-style integer types
6018 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6019 # doesn't include it but does use struct timeval
6020 # in ioctl definitions;
6022 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6023 # because net/bpf.h defines ioctls;
6025 # net/if.h, because it defines some structures
6026 # used in ioctls defined by net/bpf.h;
6028 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6029 # defines some structure fields as being
6032 # and net/bpf.h doesn't necessarily include all
6033 # of those headers itself.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6036 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6037 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false
; then :
6038 $as_echo_n "(cached) " >&6
6040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6043 #include <sys/types.h>
6044 #include <sys/time.h>
6045 #include <sys/ioctl.h>
6046 #include <sys/socket.h>
6047 #ifdef HAVE_SYS_IOCCOM_H
6048 #include <sys/ioccom.h>
6050 #include <net/bpf.h>
6056 u_int i = BIOCSETIF;
6061 if ac_fn_c_try_compile
"$LINENO"; then :
6062 ac_cv_lbl_bpf_h_defines_biocsetif
=yes
6064 ac_cv_lbl_bpf_h_defines_biocsetif
=no
6066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6070 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6072 for ac_header
in net
/pfilt.h net
/enet.h
6074 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6075 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6076 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6077 cat >>confdefs.h
<<_ACEOF
6078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6085 for ac_header
in net
/nit.h sys
/net
/nit.h
6087 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6088 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6089 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6090 cat >>confdefs.h
<<_ACEOF
6091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 for ac_header
in linux
/socket.h net
/raw.h sys
/dlpi.h
6100 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6102 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6103 cat >>confdefs.h
<<_ACEOF
6104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6115 # Check this before DLPI, so that we pick BPF on
6116 # Solaris 11 and later.
6121 # We have BPF, so build valgrindtest with "make test"
6122 # on macOS and FreeBSD (add your OS once there's a
6127 freebsd
*|darwin
*|linux
*)
6128 VALGRINDTEST_SRC
=valgrindtest.c
6131 elif test "$ac_cv_header_linux_socket_h" = yes; then
6133 # No prizes for guessing this one.
6138 # XXX - this won't work with older kernels that have
6139 # SOCK_PACKET sockets but not PF_PACKET sockets.
6141 VALGRINDTEST_SRC
=valgrindtest.c
6142 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6144 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6147 elif test "$ac_cv_header_net_enet_h" = yes; then
6149 # Stanford Enetfilter.
6152 elif test "$ac_cv_header_net_nit_h" = yes; then
6154 # SunOS 4.x STREAMS NIT.
6157 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6159 # Pre-SunOS 4.x non-STREAMS NIT.
6162 elif test "$ac_cv_header_net_raw_h" = yes; then
6167 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6169 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6174 # Nothing we support.
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6178 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6180 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6184 $as_echo_n "checking packet capture type... " >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6186 $as_echo "$V_PCAP" >&6; }
6190 # Do capture-mechanism-dependent tests.
6195 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6200 # Checks for some header files.
6202 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
6204 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6206 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6207 cat >>confdefs.h
<<_ACEOF
6208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6218 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6219 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6220 # private version also existed, which did not have the same APIs.
6221 # Due to a gcc bug, the default search path for 32-bit libraries does
6222 # not include /lib, we add it explicitly here.
6223 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6224 # Also, due to the bug above applications that link to libpcap with
6225 # libdlpi will have to add "-L/lib" option to "configure".
6227 saved_ldflags
=$LDFLAGS
6228 LDFLAGS
="$LIBS -L/lib"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6230 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6231 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
6232 $as_echo_n "(cached) " >&6
6234 ac_check_lib_save_LIBS
=$LIBS
6236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6239 /* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6249 return dlpi_walk ();
6254 if ac_fn_c_try_link
"$LINENO"; then :
6255 ac_cv_lib_dlpi_dlpi_walk
=yes
6257 ac_cv_lib_dlpi_dlpi_walk
=no
6259 rm -f core conftest.err conftest.
$ac_objext \
6260 conftest
$ac_exeext conftest.
$ac_ext
6261 LIBS
=$ac_check_lib_save_LIBS
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6264 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6265 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
6270 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6277 LDFLAGS
=$saved_ldflags
6280 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6284 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6285 if ${ac_cv_sys_dlpi_usable+:} false
; then :
6286 $as_echo_n "(cached) " >&6
6288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6291 #include <sys/types.h>
6292 #include <sys/time.h>
6293 #include <sys/dlpi.h>
6298 int i = DL_PROMISC_PHYS;
6303 if ac_fn_c_try_compile
"$LINENO"; then :
6304 ac_cv_sys_dlpi_usable
=yes
6306 ac_cv_sys_dlpi_usable
=no
6308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6312 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6313 if test $ac_cv_sys_dlpi_usable = no
; then
6314 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6318 # Check to see if Solaris has the dl_passive_req_t struct defined
6320 # This check is for DLPI support for passive modes.
6321 # See dlpi(7P) for more details.
6323 ac_fn_c_check_type
"$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6324 #include <sys/types.h>
6325 #include <sys/dlpi.h>
6328 if test "x$ac_cv_type_dl_passive_req_t" = xyes
; then :
6330 cat >>confdefs.h
<<_ACEOF
6331 #define HAVE_DL_PASSIVE_REQ_T 1
6341 # Do we have the wireless extensions?
6343 for ac_header
in linux
/wireless.h
6345 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6346 #include <sys/socket.h>
6347 #include <linux/if.h>
6348 #include <linux/types.h>
6351 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
6352 cat >>confdefs.h
<<_ACEOF
6353 #define HAVE_LINUX_WIRELESS_H 1
6365 # Check whether --with-libnl was given.
6366 if test "${with_libnl+set}" = set; then :
6367 withval
=$with_libnl; with_libnl
=$withval
6369 with_libnl
=if_available
6373 if test x
$with_libnl != xno
; then
6376 incdir
=-I/usr
/include
/libnl3
6378 case "$with_libnl" in
6384 if test -d $withval; then
6385 libnldir
=-L${withval}/lib
/.libs
6386 incdir
=-I${withval}/include
6392 # Try libnl 3.x first.
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6395 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6396 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
6397 $as_echo_n "(cached) " >&6
6399 ac_check_lib_save_LIBS
=$LIBS
6400 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6404 /* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */
6410 char nl_socket_alloc ();
6414 return nl_socket_alloc ();
6419 if ac_fn_c_try_link
"$LINENO"; then :
6420 ac_cv_lib_nl_3_nl_socket_alloc
=yes
6422 ac_cv_lib_nl_3_nl_socket_alloc
=no
6424 rm -f core conftest.err conftest.
$ac_objext \
6425 conftest
$ac_exeext conftest.
$ac_ext
6426 LIBS
=$ac_check_lib_save_LIBS
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6429 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6430 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
6433 # Yes, we have libnl 3.x.
6435 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6437 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6440 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6443 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6446 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6448 V_INCLS
="$V_INCLS ${incdir}"
6454 if test x
$have_any_nl = xno
; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6459 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6460 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
6461 $as_echo_n "(cached) " >&6
6463 ac_check_lib_save_LIBS
=$LIBS
6465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6468 /* Override any GCC internal prototype to avoid an error.
6469 Use char because int might match the return type of a GCC
6470 builtin and then its argument prototype would still apply. */
6474 char nl_socket_alloc ();
6478 return nl_socket_alloc ();
6483 if ac_fn_c_try_link
"$LINENO"; then :
6484 ac_cv_lib_nl_nl_socket_alloc
=yes
6486 ac_cv_lib_nl_nl_socket_alloc
=no
6488 rm -f core conftest.err conftest.
$ac_objext \
6489 conftest
$ac_exeext conftest.
$ac_ext
6490 LIBS
=$ac_check_lib_save_LIBS
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6493 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6494 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
6497 # Yes, we have libnl 2.x.
6499 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
6501 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6504 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6507 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6510 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6518 if test x
$have_any_nl = xno
; then
6520 # No, we don't; do we have libnl 1.x?
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6523 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6524 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
6525 $as_echo_n "(cached) " >&6
6527 ac_check_lib_save_LIBS
=$LIBS
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6532 /* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6538 char nl_handle_alloc ();
6542 return nl_handle_alloc ();
6547 if ac_fn_c_try_link
"$LINENO"; then :
6548 ac_cv_lib_nl_nl_handle_alloc
=yes
6550 ac_cv_lib_nl_nl_handle_alloc
=no
6552 rm -f core conftest.err conftest.
$ac_objext \
6553 conftest
$ac_exeext conftest.
$ac_ext
6554 LIBS
=$ac_check_lib_save_LIBS
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6557 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6558 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
6563 LIBS
="${libnldir} -lnl $LIBS"
6565 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6573 if test x
$have_any_nl = xno
; then
6575 # No, we don't have libnl at all.
6577 if test x
$with_libnl = xyes
; then
6578 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
6583 for ac_header
in linux
/ethtool.h
6585 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6586 $ac_includes_default
6587 #include <linux/types.h>
6590 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
6591 cat >>confdefs.h
<<_ACEOF
6592 #define HAVE_LINUX_ETHTOOL_H 1
6601 # Check to see if struct tpacket_stats is defined in
6602 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
6603 # to report proper statistics.
6607 ac_fn_c_check_type
"$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6608 #include <linux/if_packet.h>
6611 if test "x$ac_cv_type_struct_tpacket_stats" = xyes
; then :
6613 cat >>confdefs.h
<<_ACEOF
6614 #define HAVE_STRUCT_TPACKET_STATS 1
6622 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6624 # NOTE: any failure means we conclude that it doesn't have that
6625 # member, so if we don't have tpacket_auxdata, we conclude it
6626 # doesn't have that member (which is OK, as either we won't be
6627 # using code that would use that member, or we wouldn't compile
6629 ac_fn_c_check_member
"$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6630 #include <sys/types.h>
6631 #include <linux/if_packet.h>
6634 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6636 cat >>confdefs.h
<<_ACEOF
6637 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6647 # Check whether we have the *BSD-style ioctls.
6649 for ac_header
in net
/if_media.h
6651 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6652 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
6653 cat >>confdefs.h
<<_ACEOF
6654 #define HAVE_NET_IF_MEDIA_H 1
6663 # Check whether we have struct BPF_TIMEVAL.
6665 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6666 #include <sys/types.h>
6667 #include <sys/ioctl.h>
6668 #ifdef HAVE_SYS_IOCCOM_H
6669 #include <sys/ioccom.h>
6671 #include <net/bpf.h>
6674 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
6676 cat >>confdefs.h
<<_ACEOF
6677 #define HAVE_STRUCT_BPF_TIMEVAL 1
6687 # --with-pcap=dag is the only way to get here, and it means
6688 # "DAG support but nothing else"
6690 V_DEFS
="$V_DEFS -DDAG_ONLY"
6696 # --with-pcap=septel is the only way to get here, and it means
6697 # "Septel support but nothing else"
6699 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6705 # --with-pcap=snf is the only way to get here, and it means
6706 # "SNF support but nothing else"
6708 V_DEFS
="$V_DEFS -DSNF_ONLY"
6716 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
6720 if test "$V_PCAP" != null
6722 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6723 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
6726 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6727 # as well, just in case some platform is really weird.
6729 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6730 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6733 # We have the header, so we use "getifaddrs()" to
6734 # get the list of interfaces.
6736 V_FINDALLDEVS
=fad-getad.c
6741 # We don't have the header - give up.
6742 # XXX - we could also fall back on some other
6743 # mechanism, but, for now, this'll catch this
6744 # problem so that we can at least try to figure
6745 # out something to do on systems with "getifaddrs()"
6746 # but without "ifaddrs.h", if there is something
6747 # we can do on those systems.
6749 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6758 # Well, we don't have "getifaddrs()", at least not with the
6759 # libraries with which we've decided we need to link
6760 # libpcap with, so we have to use some other mechanism.
6762 # Note that this may happen on Solaris, which has
6763 # getifaddrs(), but in -lsocket, not in -lxnet, so we
6764 # won't find it if we link with -lxnet, which we want
6765 # to do for other reasons.
6767 # For now, we use either the SIOCGIFCONF ioctl or the
6768 # SIOCGLIFCONF ioctl, preferring the latter if we have
6769 # it; the latter is a Solarisism that first appeared
6770 # in Solaris 8. (Solaris's getifaddrs() appears to
6771 # be built atop SIOCGLIFCONF; using it directly
6772 # avoids a not-all-that-useful middleman.)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6775 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6776 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6777 $as_echo_n "(cached) " >&6
6779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <sys/param.h>
6782 #include <sys/file.h>
6783 #include <sys/ioctl.h>
6784 #include <sys/socket.h>
6785 #include <sys/sockio.h>
6789 ioctl(0, SIOCGLIFCONF, (char *)0);
6794 if ac_fn_c_try_compile
"$LINENO"; then :
6795 ac_cv_lbl_have_siocglifconf
=yes
6797 ac_cv_lbl_have_siocglifconf
=no
6799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6803 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6804 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6805 V_FINDALLDEVS
=fad-glifc.c
6807 V_FINDALLDEVS
=fad-gifc.c
6816 for ac_header
in linux
/net_tstamp.h
6818 ac_fn_c_check_header_mongrel
"$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6819 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
; then :
6820 cat >>confdefs.h
<<_ACEOF
6821 #define HAVE_LINUX_NET_TSTAMP_H 1
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6831 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6835 # Check whether --enable-packet-ring was given.
6836 if test "${enable_packet_ring+set}" = set; then :
6837 enableval
=$enable_packet_ring;
6839 enable_packet_ring
=yes
6843 if test "x$enable_packet_ring" != "xno" ; then
6845 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6851 # Check for socklen_t.
6853 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6854 #include <sys/types.h>
6855 #include <sys/socket.h>
6858 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6860 cat >>confdefs.h
<<_ACEOF
6861 #define HAVE_SOCKLEN_T 1
6868 # Check whether --enable-ipv6 was given.
6869 if test "${enable_ipv6+set}" = set; then :
6870 enableval
=$enable_ipv6;
6875 if test "$enable_ipv6" != "no"; then
6877 # We've already made sure we have getaddrinfo above in
6878 # AC_LBL_LIBRARY_NET.
6881 $as_echo "#define INET6 1" >>confdefs.h
6885 # Check for Endace DAG card support.
6887 # Check whether --with-dag was given.
6888 if test "${with_dag+set}" = set; then :
6890 if test "$withval" = no
6892 # User doesn't want DAG support.
6894 elif test "$withval" = yes
6896 # User wants DAG support but hasn't specified a directory.
6899 # User wants DAG support and has specified a directory, so use the provided value.
6906 if test "$V_PCAP" = dag
; then
6907 # User requested DAG-only libpcap, so we'd better have
6910 elif test "xxx_only" = yes; then
6911 # User requested something-else-only pcap, so they don't
6916 # Use DAG API if present, otherwise don't
6925 # Check whether --with-dag-includes was given.
6926 if test "${with_dag_includes+set}" = set; then :
6927 withval
=$with_dag_includes;
6928 # User wants DAG support and has specified a header directory, so use the provided value.
6930 dag_include_dir
=$withval
6936 # Check whether --with-dag-libraries was given.
6937 if test "${with_dag_libraries+set}" = set; then :
6938 withval
=$with_dag_libraries;
6939 # User wants DAG support and has specified a library directory, so use the provided value.
6941 dag_lib_dir
=$withval
6946 if test "$want_dag" != no
; then
6948 # If necessary, set default paths for DAG API headers and libraries.
6949 if test -z "$dag_root"; then
6953 if test -z "$dag_include_dir"; then
6954 dag_include_dir
="$dag_root/include"
6957 if test -z "$dag_lib_dir"; then
6958 dag_lib_dir
="$dag_root/lib"
6961 V_INCLS
="$V_INCLS -I$dag_include_dir"
6963 for ac_header
in dagapi.h
6965 ac_fn_c_check_header_mongrel
"$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
6966 if test "x$ac_cv_header_dagapi_h" = xyes
; then :
6967 cat >>confdefs.h
<<_ACEOF
6968 #define HAVE_DAGAPI_H 1
6976 if test "$ac_cv_header_dagapi_h" = yes; then
6978 if test $V_PCAP != dag
; then
6979 SSRC
="$SSRC pcap-dag.c"
6982 # Check for various DAG API functions.
6983 # Don't need to save and restore LIBS to prevent -ldag being
6984 # included if there's a found-action (arg 3).
6985 saved_ldflags
=$LDFLAGS
6986 LDFLAGS
="-L$dag_lib_dir"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6988 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6989 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
6990 $as_echo_n "(cached) " >&6
6992 ac_check_lib_save_LIBS
=$LIBS
6994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6997 /* Override any GCC internal prototype to avoid an error.
6998 Use char because int might match the return type of a GCC
6999 builtin and then its argument prototype would still apply. */
7003 char dag_attach_stream ();
7007 return dag_attach_stream ();
7012 if ac_fn_c_try_link
"$LINENO"; then :
7013 ac_cv_lib_dag_dag_attach_stream
=yes
7015 ac_cv_lib_dag_dag_attach_stream
=no
7017 rm -f core conftest.err conftest.
$ac_objext \
7018 conftest
$ac_exeext conftest.
$ac_ext
7019 LIBS
=$ac_check_lib_save_LIBS
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7022 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7023 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
7024 cat >>confdefs.h
<<_ACEOF
7025 #define HAVE_LIBDAG 1
7031 as_fn_error $?
"DAG library lacks streams support" "$LINENO" 5
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7035 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7036 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
7037 $as_echo_n "(cached) " >&6
7039 ac_check_lib_save_LIBS
=$LIBS
7041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7044 /* Override any GCC internal prototype to avoid an error.
7045 Use char because int might match the return type of a GCC
7046 builtin and then its argument prototype would still apply. */
7050 char dag_attach_stream64 ();
7054 return dag_attach_stream64 ();
7059 if ac_fn_c_try_link
"$LINENO"; then :
7060 ac_cv_lib_dag_dag_attach_stream64
=yes
7062 ac_cv_lib_dag_dag_attach_stream64
=no
7064 rm -f core conftest.err conftest.
$ac_objext \
7065 conftest
$ac_exeext conftest.
$ac_ext
7066 LIBS
=$ac_check_lib_save_LIBS
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7069 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7070 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
7071 dag_large_streams
="1"
7073 dag_large_streams
="0"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7077 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7078 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
7079 $as_echo_n "(cached) " >&6
7081 ac_check_lib_save_LIBS
=$LIBS
7083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7086 /* Override any GCC internal prototype to avoid an error.
7087 Use char because int might match the return type of a GCC
7088 builtin and then its argument prototype would still apply. */
7092 char dag_get_erf_types ();
7096 return dag_get_erf_types ();
7101 if ac_fn_c_try_link
"$LINENO"; then :
7102 ac_cv_lib_dag_dag_get_erf_types
=yes
7104 ac_cv_lib_dag_dag_get_erf_types
=no
7106 rm -f core conftest.err conftest.
$ac_objext \
7107 conftest
$ac_exeext conftest.
$ac_ext
7108 LIBS
=$ac_check_lib_save_LIBS
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7111 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7112 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
7115 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7120 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7121 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
7122 $as_echo_n "(cached) " >&6
7124 ac_check_lib_save_LIBS
=$LIBS
7126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7129 /* Override any GCC internal prototype to avoid an error.
7130 Use char because int might match the return type of a GCC
7131 builtin and then its argument prototype would still apply. */
7135 char dag_get_stream_erf_types ();
7139 return dag_get_stream_erf_types ();
7144 if ac_fn_c_try_link
"$LINENO"; then :
7145 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
7147 ac_cv_lib_dag_dag_get_stream_erf_types
=no
7149 rm -f core conftest.err conftest.
$ac_objext \
7150 conftest
$ac_exeext conftest.
$ac_ext
7151 LIBS
=$ac_check_lib_save_LIBS
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7154 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7155 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
7158 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7163 LDFLAGS
=$saved_ldflags
7166 # We assume that if we have libdag we have libdagconf,
7167 # as they're installed at the same time from the same
7170 LIBS
="$LIBS -ldag -ldagconf"
7171 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
7173 if test "$dag_large_streams" = 1; then
7175 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7178 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7179 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
7180 $as_echo_n "(cached) " >&6
7182 ac_check_lib_save_LIBS
=$LIBS
7184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7187 /* Override any GCC internal prototype to avoid an error.
7188 Use char because int might match the return type of a GCC
7189 builtin and then its argument prototype would still apply. */
7193 char vdag_set_device_info ();
7197 return vdag_set_device_info ();
7202 if ac_fn_c_try_link
"$LINENO"; then :
7203 ac_cv_lib_vdag_vdag_set_device_info
=yes
7205 ac_cv_lib_vdag_vdag_set_device_info
=no
7207 rm -f core conftest.err conftest.
$ac_objext \
7208 conftest
$ac_exeext conftest.
$ac_ext
7209 LIBS
=$ac_check_lib_save_LIBS
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7212 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7213 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
7214 ac_dag_have_vdag
="1"
7216 ac_dag_have_vdag
="0"
7219 if test "$ac_dag_have_vdag" = 1; then
7221 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7223 if test "$ac_lbl_have_pthreads" != "found"; then
7224 as_fn_error $?
"DAG requires pthreads, but we didn't find them" "$LINENO" 5
7226 LIBS
="$LIBS $PTHREAD_LIBS"
7231 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7235 if test "$V_PCAP" = dag
; then
7236 # User requested "dag" capture type but we couldn't
7237 # find the DAG API support.
7238 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
7241 if test "$want_dag" = yes; then
7242 # User wanted DAG support but we couldn't find it.
7243 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
7249 # Check whether --with-septel was given.
7250 if test "${with_septel+set}" = set; then :
7251 withval
=$with_septel;
7252 if test "$withval" = no
7255 elif test "$withval" = yes
7261 septel_root
=$withval
7266 if test "$V_PCAP" = septel
; then
7267 # User requested Septel-only libpcap, so we'd better have
7270 elif test "xxx_only" = yes; then
7271 # User requested something-else-only pcap, so they don't
7272 # want Septel support.
7276 # Use Septel API if present, otherwise don't
7278 want_septel
=ifpresent
7284 ac_cv_lbl_septel_api
=no
7285 if test "$with_septel" != no
; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7288 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7290 # If necessary, set default paths for Septel API headers and libraries.
7291 if test -z "$septel_root"; then
7292 septel_root
=$srcdir/..
/septel
7295 septel_tools_dir
="$septel_root"
7296 septel_include_dir
="$septel_root/INC"
7298 if test -r "$septel_include_dir/msg.h"; then
7299 ac_cv_lbl_septel_api
=yes
7302 if test "$ac_cv_lbl_septel_api" = yes; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7304 $as_echo "yes ($septel_include_dir)" >&6; }
7306 V_INCLS
="$V_INCLS -I$septel_include_dir"
7307 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"
7308 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"
7310 if test "$V_PCAP" != septel
; then
7311 SSRC
="$SSRC pcap-septel.c"
7315 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7321 if test "$V_PCAP" = septel
; then
7322 # User requested "septel" capture type but
7323 # we couldn't find the Septel API support.
7324 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
7327 if test "$want_septel" = yes; then
7328 # User wanted Septel support but we couldn't find it.
7329 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
7334 # Check for Myricom SNF support.
7336 # Check whether --with-snf was given.
7337 if test "${with_snf+set}" = set; then :
7339 if test "$withval" = no
7341 # User explicitly doesn't want SNF
7343 elif test "$withval" = yes
7345 # User wants SNF support but hasn't specified a directory.
7348 # User wants SNF support with a specified directory.
7355 if test "$V_PCAP" = snf
; then
7356 # User requested Sniffer-only libpcap, so we'd better have
7359 elif test "xxx_only" = yes; then
7360 # User requested something-else-only pcap, so they don't
7365 # Use Sniffer API if present, otherwise don't
7374 # Check whether --with-snf-includes was given.
7375 if test "${with_snf_includes+set}" = set; then :
7376 withval
=$with_snf_includes;
7377 # User wants SNF with specific header directory
7379 snf_include_dir
=$withval
7385 # Check whether --with-snf-libraries was given.
7386 if test "${with_snf_libraries+set}" = set; then :
7387 withval
=$with_snf_libraries;
7388 # User wants SNF with specific lib directory
7390 snf_lib_dir
=$withval
7395 ac_cv_lbl_snf_api
=no
7396 if test "$with_snf" != no
; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7399 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7401 # If necessary, set default paths for Sniffer headers and libraries.
7402 if test -z "$snf_root"; then
7406 if test -z "$snf_include_dir"; then
7407 snf_include_dir
="$snf_root/include"
7410 if test -z "$snf_lib_dir"; then
7411 snf_lib_dir
="$snf_root/lib"
7414 if test -f "$snf_include_dir/snf.h"; then
7415 # We found a header; make sure we can link with the library
7416 saved_ldflags
=$LDFLAGS
7417 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7419 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7420 if ${ac_cv_lib_snf_snf_init+:} false
; then :
7421 $as_echo_n "(cached) " >&6
7423 ac_check_lib_save_LIBS
=$LIBS
7425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7428 /* Override any GCC internal prototype to avoid an error.
7429 Use char because int might match the return type of a GCC
7430 builtin and then its argument prototype would still apply. */
7443 if ac_fn_c_try_link
"$LINENO"; then :
7444 ac_cv_lib_snf_snf_init
=yes
7446 ac_cv_lib_snf_snf_init
=no
7448 rm -f core conftest.err conftest.
$ac_objext \
7449 conftest
$ac_exeext conftest.
$ac_ext
7450 LIBS
=$ac_check_lib_save_LIBS
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7453 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7454 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
7455 ac_cv_lbl_snf_api
="yes"
7458 LDFLAGS
="$saved_ldflags"
7459 if test "$ac_cv_lbl_snf_api" = no
; then
7460 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7464 if test "$ac_cv_lbl_snf_api" = yes; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7466 $as_echo "yes ($snf_root)" >&6; }
7468 V_INCLS
="$V_INCLS -I$snf_include_dir"
7470 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7472 if test "$V_PCAP" != snf
; then
7473 SSRC
="$SSRC pcap-snf.c"
7477 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7483 if test "$want_snf" = yes; then
7484 # User requested "snf" capture type but
7485 # we couldn't find the Sniffer API support.
7486 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
7489 if test "$want_snf" = yes; then
7490 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
7495 # Check for Riverbed TurboCap support.
7497 # Check whether --with-turbocap was given.
7498 if test "${with_turbocap+set}" = set; then :
7499 withval
=$with_turbocap;
7500 if test "$withval" = no
7502 # User explicitly doesn't want TurboCap
7504 elif test "$withval" = yes
7506 # User wants TurboCap support but hasn't specified a directory.
7509 # User wants TurboCap support with a specified directory.
7511 turbocap_root
=$withval
7516 if test "xxx_only" = yes; then
7517 # User requested something-else-only pcap, so they don't
7518 # want TurboCap support.
7522 # Use TurboCap API if present, otherwise don't
7524 want_turbocap
=ifpresent
7530 ac_cv_lbl_turbocap_api
=no
7531 if test "$want_turbocap" != no
; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7534 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7536 save_CFLAGS
="$CFLAGS"
7538 if test ! -z "$turbocap_root"; then
7539 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
7540 TURBOCAP_LIBS
="-L$turbocap_root/lib"
7541 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
7544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7553 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7555 (void)TcInstanceCreateByName("foo", &i);
7561 if ac_fn_c_try_compile
"$LINENO"; then :
7562 ac_cv_lbl_turbocap_api
=yes
7564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7566 CFLAGS
="$save_CFLAGS"
7567 if test $ac_cv_lbl_turbocap_api = yes; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7569 $as_echo "yes" >&6; }
7571 SSRC
="$SSRC pcap-tc.c"
7572 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
7573 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7576 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7582 if test "$want_turbocap" = yes; then
7583 # User wanted Turbo support but we couldn't find it.
7584 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
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7590 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7591 # Check whether --enable-remote was given.
7592 if test "${enable_remote+set}" = set; then :
7593 enableval
=$enable_remote;
7598 case "$enableval" in
7599 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600 $as_echo "yes" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7602 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7604 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7606 # rpcapd requires pthreads on UN*X.
7608 if test "$ac_lbl_have_pthreads" != "found"; then
7609 as_fn_error $?
"rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7612 # It also requires crypt().
7613 # Do we have it in the system libraries?
7615 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
7616 if test "x$ac_cv_func_crypt" = xyes
; then :
7621 # No. Do we have it in -lcrypt?
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7624 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7625 if ${ac_cv_lib_crypt_crypt+:} false
; then :
7626 $as_echo_n "(cached) " >&6
7628 ac_check_lib_save_LIBS
=$LIBS
7629 LIBS
="-lcrypt $LIBS"
7630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7633 /* Override any GCC internal prototype to avoid an error.
7634 Use char because int might match the return type of a GCC
7635 builtin and then its argument prototype would still apply. */
7648 if ac_fn_c_try_link
"$LINENO"; then :
7649 ac_cv_lib_crypt_crypt
=yes
7651 ac_cv_lib_crypt_crypt
=no
7653 rm -f core conftest.err conftest.
$ac_objext \
7654 conftest
$ac_exeext conftest.
$ac_ext
7655 LIBS
=$ac_check_lib_save_LIBS
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7658 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7659 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
7662 # Yes; add -lcrypt to the libraries for rpcapd.
7664 RPCAPD_LIBS
="$RPCAPD_LIBS -lcrypt"
7668 as_fn_error $?
"rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7677 # OK, we have crypt(). Do we have getspnam()?
7679 for ac_func
in getspnam
7681 ac_fn_c_check_func
"$LINENO" "getspnam" "ac_cv_func_getspnam"
7682 if test "x$ac_cv_func_getspnam" = xyes
; then :
7683 cat >>confdefs.h
<<_ACEOF
7684 #define HAVE_GETSPNAM 1
7692 # Check for various members of struct msghdr.
7694 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7695 #include \"ftmacros.h\"
7696 #include <sys/socket.h>
7699 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
7701 cat >>confdefs.h
<<_ACEOF
7702 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7708 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7709 #include \"ftmacros.h\"
7710 #include <sys/socket.h>
7713 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes
; then :
7715 cat >>confdefs.h
<<_ACEOF
7716 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7724 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7726 SSRC
="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7727 BUILD_RPCAPD
=build-rpcapd
7728 INSTALL_RPCAPD
=install-rpcapd
7730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7736 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7737 # Check whether --enable-optimizer-dbg was given.
7738 if test "${enable_optimizer_dbg+set}" = set; then :
7739 enableval
=$enable_optimizer_dbg;
7742 if test "$enable_optimizer_dbg" = "yes"; then
7744 $as_echo "#define BDEBUG 1" >>confdefs.h
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7748 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7751 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7752 # Check whether --enable-yydebug was given.
7753 if test "${enable_yydebug+set}" = set; then :
7754 enableval
=$enable_yydebug;
7757 if test "$enable_yydebug" = "yes"; then
7759 $as_echo "#define YYDEBUG 1" >>confdefs.h
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7763 $as_echo "${enable_yydebug-no}" >&6; }
7768 for ac_prog
in flex
lex
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy
$ac_prog; ac_word
=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_LEX+:} false
; then :
7775 $as_echo_n "(cached) " >&6
7777 if test -n "$LEX"; then
7778 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
7780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir
=.
7785 for ac_exec_ext
in '' $ac_executable_extensions; do
7786 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_LEX
="$ac_prog"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 if test -n "$LEX"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7800 $as_echo "$LEX" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7807 test -n "$LEX" && break
7809 test -n "$LEX" || LEX
=":"
7811 if test "x$LEX" != "x:"; then
7812 cat >conftest.l
<<_ACEOF
7818 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7819 yyless ((input () != 0)); }
7820 f { unput (yytext[0]); }
7821 . { BEGIN INITIAL; }
7823 #ifdef YYTEXT_POINTER
7824 extern char *yytext;
7829 return ! yylex () + ! yywrap ();
7832 { { ac_try
="$LEX conftest.l"
7834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7838 $as_echo "$ac_try_echo"; } >&5
7839 (eval "$LEX conftest.l") 2>&5
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7844 $as_echo_n "checking lex output file root... " >&6; }
7845 if ${ac_cv_prog_lex_root+:} false; then :
7846 $as_echo_n "(cached) " >&6
7849 if test -f lex.yy.c; then
7850 ac_cv_prog_lex_root=lex.yy
7851 elif test -f lexyy.c; then
7852 ac_cv_prog_lex_root=lexyy
7854 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7858 $as_echo "$ac_cv_prog_lex_root" >&6; }
7859 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7861 if test -z "${LEXLIB+set}"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7863 $as_echo_n "checking lex library... " >&6; }
7864 if ${ac_cv_lib_lex+:} false; then :
7865 $as_echo_n "(cached) " >&6
7869 ac_cv_lib_lex='none needed'
7870 for ac_lib in '' -lfl -ll; do
7871 LIBS="$ac_lib $ac_save_LIBS"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 `cat $LEX_OUTPUT_ROOT.c
`
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 ac_cv_lib_lex=$ac_lib
7879 rm -f core conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 test "$ac_cv_lib_lex" != 'none needed' && break
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7887 $as_echo "$ac_cv_lib_lex" >&6; }
7888 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7893 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7894 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7895 $as_echo_n "(cached) " >&6
7897 # POSIX says lex can declare yytext either as a pointer or an array; the
7898 # default is implementation-dependent. Figure out which it is, since
7899 # not all implementations provide the %pointer and %array declarations.
7900 ac_cv_prog_lex_yytext_pointer=no
7902 LIBS="$LEXLIB $ac_save_LIBS"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7906 #define YYTEXT_POINTER 1
7907 `cat $LEX_OUTPUT_ROOT.c
`
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 ac_cv_prog_lex_yytext_pointer=yes
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7918 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7919 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7921 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7924 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7927 if test "$LEX" = ":"; then
7928 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7932 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7933 # and supports processing our scanner.l.
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7936 $as_echo_n "checking for capable lex... " >&6; }
7937 if ${tcpdump_cv_capable_lex+:} false; then :
7938 $as_echo_n "(cached) " >&6
7940 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7941 tcpdump_cv_capable_lex=yes
7943 tcpdump_cv_capable_lex=insufficient
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7947 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7948 if test $tcpdump_cv_capable_lex = insufficient ; then
7949 as_fn_error $? "$LEX is insufficient to compile libpcap.
7950 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7954 # Look for yacc/bison/byacc.
7956 for ac_prog in 'bison -y' byacc
7958 # Extract the first word of "$ac_prog", so it can be a program name with args.
7959 set dummy $ac_prog; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_YACC+:} false; then :
7963 $as_echo_n "(cached) " >&6
7965 if test -n "$YACC"; then
7966 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_YACC="$ac_prog"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 YACC=$ac_cv_prog_YACC
7986 if test -n "$YACC"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7988 $as_echo "$YACC" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7995 test -n "$YACC" && break
7997 test -n "$YACC" || YACC="yacc"
8001 # Make sure it supports the -p flag and supports processing our
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8005 $as_echo_n "checking for capable yacc/bison... " >&6; }
8006 if ${tcpdump_cv_capable_yacc+:} false; then :
8007 $as_echo_n "(cached) " >&6
8009 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8010 tcpdump_cv_capable_yacc=yes
8012 tcpdump_cv_capable_yacc=insufficient
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8016 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8017 if test $tcpdump_cv_capable_yacc = insufficient ; then
8018 as_fn_error $? "$YACC is insufficient to compile libpcap.
8019 libpcap requires Bison, a newer version of Berkeley YACC with support
8020 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8024 # Do various checks for various OSes and versions of those OSes.
8026 # Assume, by default, no support for shared libraries and V7/BSD
8027 # convention for man pages (devices in section 4, file formats in
8028 # section 5, miscellaneous info in section 7, administrative commands
8029 # and daemons in section 8). Individual cases can override this.
8035 MAN_ADMIN_COMMANDS=8
8040 $as_echo "#define _SUN 1" >>confdefs.h
8044 # AIX makes it fun to build shared and static libraries,
8045 # because they're *both* ".a" archive libraries. We
8046 # build the static library for the benefit of the traditional
8047 # scheme of building libpcap and tcpdump in subdirectories of
8048 # the same directory, with tcpdump statically linked with the
8049 # libpcap in question, but we also build a shared library as
8050 # "libpcap.shareda" and install *it*, rather than the static
8051 # library, as "libpcap.a".
8059 # If we're using DLPI, applications will need to
8060 # use /lib/pse.exp if present, as we use the
8063 pseexe="/lib/pse.exp"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8065 $as_echo_n "checking for $pseexe... " >&6; }
8066 if test -f $pseexe ; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068 $as_echo "yes" >&6; }
8075 # If we're using BPF, we need "-lodm" and "-lcfg", as
8076 # we use them to load the BPF module.
8085 V_CCOPT="$V_CCOPT -fno-common"
8086 # Check whether --enable-universal was given.
8087 if test "${enable_universal+set}" = set; then :
8088 enableval=$enable_universal;
8091 if test "$enable_universal" != "no"; then
8096 # Pre-Tiger. Build only for 32-bit PowerPC; no
8097 # need for any special compiler or linker flags.
8101 darwin8.[0123]|darwin8.[0123].*)
8103 # Tiger, prior to Intel support. Build
8104 # libraries and executables for 32-bit PowerPC
8105 # and 64-bit PowerPC, with 32-bit PowerPC first.
8106 # (I'm guessing that's what Apple does.)
8108 # (The double brackets are needed because
8109 # autotools/m4 use brackets as a quoting
8110 # character; the double brackets turn into
8111 # single brackets in the generated configure
8114 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8115 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8116 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8117 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8120 darwin8.[456]|darwin.[456].*)
8122 # Tiger, subsequent to Intel support but prior
8123 # to x86-64 support. Build libraries and
8124 # executables for 32-bit PowerPC, 64-bit
8125 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8126 # first. (I'm guessing that's what Apple does.)
8128 # (The double brackets are needed because
8129 # autotools/m4 use brackets as a quoting
8130 # character; the double brackets turn into
8131 # single brackets in the generated configure
8134 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8135 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8136 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8137 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8142 # All other Tiger, so subsequent to x86-64
8143 # support. Build libraries and executables for
8144 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8145 # and x86-64, with 32-bit PowerPC first. (I'm
8146 # guessing that's what Apple does.)
8148 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8149 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8150 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8151 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8156 # Leopard. Build libraries for 32-bit PowerPC,
8157 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8158 # 32-bit PowerPC first, and build executables
8159 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8160 # x86 first. (That's what Apple does.)
8162 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8163 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8164 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8165 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8170 # Snow Leopard. Build libraries for x86-64,
8171 # 32-bit x86, and 32-bit PowerPC, with x86-64
8172 # first, and build executables for x86-64 and
8173 # 32-bit x86, with x86-64 first. (That's what
8174 # Apple does, even though Snow Leopard doesn't
8175 # run on PPC, so PPC libpcap runs under Rosetta,
8176 # and Rosetta doesn't support BPF ioctls, so PPC
8177 # programs can't do live captures.)
8179 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8180 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8181 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8182 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8187 # Post-Snow Leopard. Build libraries for x86-64
8188 # and 32-bit x86, with x86-64 first, and build
8189 # executables only for x86-64. (That's what
8190 # Apple does.) This requires no special flags
8192 # XXX - update if and when Apple drops support
8193 # for 32-bit x86 code and if and when Apple adds
8194 # ARM-based Macs. (You're on your own for iOS
8197 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386"
8198 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386"
8206 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8210 # Use System V conventions for man pages.
8212 MAN_ADMIN_COMMANDS=1m
8220 # Use System V conventions for man pages.
8222 MAN_ADMIN_COMMANDS=1m
8230 # Use System V conventions for man pages.
8232 MAN_ADMIN_COMMANDS=1m
8239 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8241 if test "`uname
-m`" = "ia64"; then
8248 # "-b" builds a shared library; "+h" sets the soname.
8254 # Use System V conventions for man pages.
8262 # Use IRIX conventions for man pages; they're the same as the
8263 # System V conventions, except that they use section 8 for
8264 # administrative commands and daemons.
8270 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
8274 # Compiler assumed to be GCC; run-time linker may require a -R
8277 if test "$libdir" != "/usr/lib"; then
8278 V_RFLAGS=-Wl,-R$libdir
8286 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8287 # Use Tru64 UNIX conventions for man pages; they're the same as
8288 # the System V conventions except that they use section 8 for
8289 # administrative commands and daemons.
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8298 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8299 if ${ac_cv_cc_sinix_defined+:} false; then :
8300 $as_echo_n "(cached) " >&6
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8313 if ac_fn_c_try_compile "$LINENO"; then :
8314 ac_cv_cc_sinix_defined=yes
8316 ac_cv_cc_sinix_defined=no
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8322 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
8323 if test $ac_cv_cc_sinix_defined = no ; then
8325 $as_echo "#define sinix 1" >>confdefs.h
8332 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8338 # Make sure errno is thread-safe, in case we're called in
8339 # a multithreaded program. We don't guarantee that two
8340 # threads can use the *same* pcap_t safely, but the
8341 # current version does guarantee that you can use different
8342 # pcap_t's in different threads, and even that pcap_compile()
8343 # is thread-safe (it wasn't thread-safe in some older versions).
8345 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8347 case "`uname
-r`" in
8354 # Use System V conventions for man pages.
8356 MAN_ADMIN_COMMANDS=1m
8364 # Check whether --enable-shared was given.
8365 if test "${enable_shared+set}" = set; then :
8366 enableval=$enable_shared;
8369 test "x$enable_shared" = "xno" && DYEXT="none"
8371 if test -n "$ac_tool_prefix"; then
8372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_RANLIB+:} false; then :
8377 $as_echo_n "(cached) " >&6
8379 if test -n "$RANLIB"; then
8380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 RANLIB=$ac_cv_prog_RANLIB
8400 if test -n "$RANLIB"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8402 $as_echo "$RANLIB" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8410 if test -z "$ac_cv_prog_RANLIB"; then
8411 ac_ct_RANLIB=$RANLIB
8412 # Extract the first word of "ranlib", so it can be a program name with args.
8413 set dummy ranlib; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8417 $as_echo_n "(cached) " >&6
8419 if test -n "$ac_ct_RANLIB"; then
8420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_ac_ct_RANLIB="ranlib"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8440 if test -n "$ac_ct_RANLIB"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8442 $as_echo "$ac_ct_RANLIB" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8448 if test "x$ac_ct_RANLIB" = x; then
8451 case $cross_compiling:$ac_tool_warned in
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455 ac_tool_warned=yes ;;
8457 RANLIB=$ac_ct_RANLIB
8460 RANLIB="$ac_cv_prog_RANLIB"
8463 if test -n "$ac_tool_prefix"; then
8464 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}ar; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_AR+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 if test -n "$AR"; then
8472 ac_cv_prog_AR="$AR" # Let the user override the test.
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_AR="${ac_tool_prefix}ar"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 if test -n "$AR"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8494 $as_echo "$AR" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8502 if test -z "$ac_cv_prog_AR"; then
8504 # Extract the first word of "ar", so it can be a program name with args.
8505 set dummy ar; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8509 $as_echo_n "(cached) " >&6
8511 if test -n "$ac_ct_AR"; then
8512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_ac_ct_AR="ar"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8532 if test -n "$ac_ct_AR"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8534 $as_echo "$ac_ct_AR" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8540 if test "x$ac_ct_AR" = x; then
8543 case $cross_compiling:$ac_tool_warned in
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8557 $as_echo_n "checking whether ln -s works... " >&6; }
8559 if test "$LN_S" = "ln -s"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8561 $as_echo "yes" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8564 $as_echo "no, using $LN_S" >&6; }
8570 if test "${LBL_CFLAGS+set}" = set; then
8571 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8573 if test -f .devel ; then
8575 # Skip all the warning option stuff on some compilers.
8577 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8580 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8581 save_CFLAGS="$CFLAGS"
8582 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8594 if ac_fn_c_try_compile "$LINENO"; then :
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8599 # We're assuming this is clang, where
8600 # -Werror=unknown-warning-option is the appropriate
8601 # option to force the compiler to fail.
8603 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8608 $as_echo "yes" >&6; }
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 CFLAGS="$save_CFLAGS"
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
8616 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
8617 save_CFLAGS="$CFLAGS"
8618 if expr "x-W" : "x-W.*" >/dev/null
8620 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
8621 elif expr "x-W" : "x-f.*" >/dev/null
8623 CFLAGS="$CFLAGS -Werror -W"
8624 elif expr "x-W" : "x-m.*" >/dev/null
8626 CFLAGS="$CFLAGS -Werror -W"
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8641 if ac_fn_c_try_compile "$LINENO"; then :
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8644 $as_echo "yes" >&6; }
8645 can_add_to_cflags=yes
8647 # The compile supports this; do we have some C code for
8648 # which the warning should *not* appear?
8649 # We test the fourth argument because the third argument
8650 # could contain quotes, breaking the test.
8654 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
8656 $as_echo_n "checking whether -W ... " >&6; }
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8661 if ac_fn_c_try_compile "$LINENO"; then :
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8675 $as_echo "yes" >&6; }
8676 can_add_to_cflags=no
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 CFLAGS="$save_CFLAGS"
8682 if test x"$can_add_to_cflags" = "xyes"
8684 V_CCOPT="$V_CCOPT -W"
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8691 CFLAGS="$save_CFLAGS"
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8698 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8699 save_CFLAGS="$CFLAGS"
8700 if expr "x-Wall" : "x-W.*" >/dev/null
8702 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8703 elif expr "x-Wall" : "x-f.*" >/dev/null
8705 CFLAGS="$CFLAGS -Werror -Wall"
8706 elif expr "x-Wall" : "x-m.*" >/dev/null
8708 CFLAGS="$CFLAGS -Werror -Wall"
8710 CFLAGS="$CFLAGS -Wall"
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8723 if ac_fn_c_try_compile "$LINENO"; then :
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8726 $as_echo "yes" >&6; }
8727 can_add_to_cflags=yes
8729 # The compile supports this; do we have some C code for
8730 # which the warning should *not* appear?
8731 # We test the fourth argument because the third argument
8732 # could contain quotes, breaking the test.
8736 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
8738 $as_echo_n "checking whether -Wall ... " >&6; }
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8743 if ac_fn_c_try_compile "$LINENO"; then :
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8757 $as_echo "yes" >&6; }
8758 can_add_to_cflags=no
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 CFLAGS="$save_CFLAGS"
8764 if test x"$can_add_to_cflags" = "xyes"
8766 V_CCOPT="$V_CCOPT -Wall"
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8773 CFLAGS="$save_CFLAGS"
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
8780 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
8781 save_CFLAGS="$CFLAGS"
8782 if expr "x-Wcomma" : "x-W.*" >/dev/null
8784 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
8785 elif expr "x-Wcomma" : "x-f.*" >/dev/null
8787 CFLAGS="$CFLAGS -Werror -Wcomma"
8788 elif expr "x-Wcomma" : "x-m.*" >/dev/null
8790 CFLAGS="$CFLAGS -Werror -Wcomma"
8792 CFLAGS="$CFLAGS -Wcomma"
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8805 if ac_fn_c_try_compile "$LINENO"; then :
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808 $as_echo "yes" >&6; }
8809 can_add_to_cflags=yes
8811 # The compile supports this; do we have some C code for
8812 # which the warning should *not* appear?
8813 # We test the fourth argument because the third argument
8814 # could contain quotes, breaking the test.
8818 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
8820 $as_echo_n "checking whether -Wcomma ... " >&6; }
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8825 if ac_fn_c_try_compile "$LINENO"; then :
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8839 $as_echo "yes" >&6; }
8840 can_add_to_cflags=no
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 CFLAGS="$save_CFLAGS"
8846 if test x"$can_add_to_cflags" = "xyes"
8848 V_CCOPT="$V_CCOPT -Wcomma"
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8855 CFLAGS="$save_CFLAGS"
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
8862 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
8863 save_CFLAGS="$CFLAGS"
8864 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
8866 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
8867 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
8869 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8870 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
8872 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8874 CFLAGS="$CFLAGS -Wdocumentation"
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8887 if ac_fn_c_try_compile "$LINENO"; then :
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8890 $as_echo "yes" >&6; }
8891 can_add_to_cflags=yes
8893 # The compile supports this; do we have some C code for
8894 # which the warning should *not* appear?
8895 # We test the fourth argument because the third argument
8896 # could contain quotes, breaking the test.
8900 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
8902 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8907 if ac_fn_c_try_compile "$LINENO"; then :
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8921 $as_echo "yes" >&6; }
8922 can_add_to_cflags=no
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 CFLAGS="$save_CFLAGS"
8928 if test x"$can_add_to_cflags" = "xyes"
8930 V_CCOPT="$V_CCOPT -Wdocumentation"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8937 CFLAGS="$save_CFLAGS"
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
8944 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
8945 save_CFLAGS="$CFLAGS"
8946 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
8948 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
8949 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
8951 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
8952 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
8954 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
8956 CFLAGS="$CFLAGS -Wformat-nonliteral"
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8969 if ac_fn_c_try_compile "$LINENO"; then :
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8972 $as_echo "yes" >&6; }
8973 can_add_to_cflags=yes
8975 # The compile supports this; do we have some C code for
8976 # which the warning should *not* appear?
8977 # We test the fourth argument because the third argument
8978 # could contain quotes, breaking the test.
8982 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
8984 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8989 if ac_fn_c_try_compile "$LINENO"; then :
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9003 $as_echo "yes" >&6; }
9004 can_add_to_cflags=no
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009 CFLAGS="$save_CFLAGS"
9010 if test x"$can_add_to_cflags" = "xyes"
9012 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 $as_echo "no" >&6; }
9019 CFLAGS="$save_CFLAGS"
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9026 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9027 save_CFLAGS="$CFLAGS"
9028 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9030 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9031 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9033 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9034 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9036 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9038 CFLAGS="$CFLAGS -Wmissing-noreturn"
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9051 if ac_fn_c_try_compile "$LINENO"; then :
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9054 $as_echo "yes" >&6; }
9055 can_add_to_cflags=yes
9057 # The compile supports this; do we have some C code for
9058 # which the warning should *not* appear?
9059 # We test the fourth argument because the third argument
9060 # could contain quotes, breaking the test.
9064 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9066 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9071 if ac_fn_c_try_compile "$LINENO"; then :
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9085 $as_echo "yes" >&6; }
9086 can_add_to_cflags=no
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 CFLAGS="$save_CFLAGS"
9092 if test x"$can_add_to_cflags" = "xyes"
9094 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 CFLAGS="$save_CFLAGS"
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9108 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9109 save_CFLAGS="$CFLAGS"
9110 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9112 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9113 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9115 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9116 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9118 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9120 CFLAGS="$CFLAGS -Wmissing-prototypes"
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9133 if ac_fn_c_try_compile "$LINENO"; then :
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9136 $as_echo "yes" >&6; }
9137 can_add_to_cflags=yes
9139 # The compile supports this; do we have some C code for
9140 # which the warning should *not* appear?
9141 # We test the fourth argument because the third argument
9142 # could contain quotes, breaking the test.
9146 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9148 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9153 if ac_fn_c_try_compile "$LINENO"; then :
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9167 $as_echo "yes" >&6; }
9168 can_add_to_cflags=no
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 CFLAGS="$save_CFLAGS"
9174 if test x"$can_add_to_cflags" = "xyes"
9176 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9183 CFLAGS="$save_CFLAGS"
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9190 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9191 save_CFLAGS="$CFLAGS"
9192 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9194 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9195 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9197 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9198 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9200 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9202 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9215 if ac_fn_c_try_compile "$LINENO"; then :
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9218 $as_echo "yes" >&6; }
9219 can_add_to_cflags=yes
9221 # The compile supports this; do we have some C code for
9222 # which the warning should *not* appear?
9223 # We test the fourth argument because the third argument
9224 # could contain quotes, breaking the test.
9228 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9230 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9235 if ac_fn_c_try_compile "$LINENO"; then :
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9249 $as_echo "yes" >&6; }
9250 can_add_to_cflags=no
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 CFLAGS="$save_CFLAGS"
9256 if test x"$can_add_to_cflags" = "xyes"
9258 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 $as_echo "no" >&6; }
9265 CFLAGS="$save_CFLAGS"
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
9272 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
9273 save_CFLAGS="$CFLAGS"
9274 if expr "x-Wshadow" : "x-W.*" >/dev/null
9276 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
9277 elif expr "x-Wshadow" : "x-f.*" >/dev/null
9279 CFLAGS="$CFLAGS -Werror -Wshadow"
9280 elif expr "x-Wshadow" : "x-m.*" >/dev/null
9282 CFLAGS="$CFLAGS -Werror -Wshadow"
9284 CFLAGS="$CFLAGS -Wshadow"
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9297 if ac_fn_c_try_compile "$LINENO"; then :
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9301 can_add_to_cflags=yes
9303 # The compile supports this; do we have some C code for
9304 # which the warning should *not* appear?
9305 # We test the fourth argument because the third argument
9306 # could contain quotes, breaking the test.
9310 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
9312 $as_echo_n "checking whether -Wshadow ... " >&6; }
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9317 if ac_fn_c_try_compile "$LINENO"; then :
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9331 $as_echo "yes" >&6; }
9332 can_add_to_cflags=no
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 CFLAGS="$save_CFLAGS"
9338 if test x"$can_add_to_cflags" = "xyes"
9340 V_CCOPT="$V_CCOPT -Wshadow"
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9347 CFLAGS="$save_CFLAGS"
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
9354 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
9355 save_CFLAGS="$CFLAGS"
9356 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
9358 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
9359 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
9361 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9362 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
9364 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9366 CFLAGS="$CFLAGS -Wsign-compare"
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9379 if ac_fn_c_try_compile "$LINENO"; then :
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9382 $as_echo "yes" >&6; }
9383 can_add_to_cflags=yes
9385 # The compile supports this; do we have some C code for
9386 # which the warning should *not* appear?
9387 # We test the fourth argument because the third argument
9388 # could contain quotes, breaking the test.
9392 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
9394 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9399 if ac_fn_c_try_compile "$LINENO"; then :
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9413 $as_echo "yes" >&6; }
9414 can_add_to_cflags=no
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 CFLAGS="$save_CFLAGS"
9420 if test x"$can_add_to_cflags" = "xyes"
9422 V_CCOPT="$V_CCOPT -Wsign-compare"
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9429 CFLAGS="$save_CFLAGS"
9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
9436 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
9437 save_CFLAGS="$CFLAGS"
9438 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
9440 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
9441 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
9443 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9444 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
9446 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9448 CFLAGS="$CFLAGS -Wstrict-prototypes"
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9461 if ac_fn_c_try_compile "$LINENO"; then :
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9464 $as_echo "yes" >&6; }
9465 can_add_to_cflags=yes
9467 # The compile supports this; do we have some C code for
9468 # which the warning should *not* appear?
9469 # We test the fourth argument because the third argument
9470 # could contain quotes, breaking the test.
9474 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
9476 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9481 if ac_fn_c_try_compile "$LINENO"; then :
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9495 $as_echo "yes" >&6; }
9496 can_add_to_cflags=no
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501 CFLAGS="$save_CFLAGS"
9502 if test x"$can_add_to_cflags" = "xyes"
9504 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9511 CFLAGS="$save_CFLAGS"
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
9518 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
9519 save_CFLAGS="$CFLAGS"
9520 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
9522 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
9523 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
9525 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9526 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
9528 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9530 CFLAGS="$CFLAGS -Wunused-parameter"
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9543 if ac_fn_c_try_compile "$LINENO"; then :
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9546 $as_echo "yes" >&6; }
9547 can_add_to_cflags=yes
9549 # The compile supports this; do we have some C code for
9550 # which the warning should *not* appear?
9551 # We test the fourth argument because the third argument
9552 # could contain quotes, breaking the test.
9556 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
9558 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9563 if ac_fn_c_try_compile "$LINENO"; then :
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9569 $as_echo "no" >&6; }
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9577 $as_echo "yes" >&6; }
9578 can_add_to_cflags=no
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583 CFLAGS="$save_CFLAGS"
9584 if test x"$can_add_to_cflags" = "xyes"
9586 V_CCOPT="$V_CCOPT -Wunused-parameter"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 CFLAGS="$save_CFLAGS"
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
9600 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
9601 save_CFLAGS="$CFLAGS"
9602 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
9604 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
9605 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
9607 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9608 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
9610 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9612 CFLAGS="$CFLAGS -Wused-but-marked-unused"
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9625 if ac_fn_c_try_compile "$LINENO"; then :
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629 can_add_to_cflags=yes
9631 # The compile supports this; do we have some C code for
9632 # which the warning should *not* appear?
9633 # We test the fourth argument because the third argument
9634 # could contain quotes, breaking the test.
9638 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
9640 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9645 if ac_fn_c_try_compile "$LINENO"; then :
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9659 $as_echo "yes" >&6; }
9660 can_add_to_cflags=no
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9665 CFLAGS="$save_CFLAGS"
9666 if test x"$can_add_to_cflags" = "xyes"
9668 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 CFLAGS="$save_CFLAGS"
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680 # Warns about safeguards added in case the enums are
9682 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
9684 # This can cause problems with ntohs(), ntohl(),
9685 # htons(), and htonl() on some platforms, such
9686 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
9687 # problem is that the macro that ultimately does
9688 # the byte-swapping involves a conditional
9689 # expression that tests whether the value being
9690 # swapped is a compile-time constant or not,
9691 # using __builtin_constant_p(), and, depending
9692 # on whether it is, does a compile-time swap or
9693 # a run-time swap; perhaps the compiler always
9694 # considers one of the two results of the
9695 # conditional expressin is never evaluated,
9696 # because the conditional check is done at
9697 # compile time, and thus always says "that
9698 # expression is never executed".
9700 # (Perhaps there should be a way of flagging
9701 # an expression that you *want* evaluated at
9702 # compile time, so that the compiler 1) warns
9703 # if it *can't* be evaluated at compile time
9704 # and 2) *doesn't* warn that the true or false
9705 # branch will never be reached.)
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
9709 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
9710 save_CFLAGS="$CFLAGS"
9711 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
9713 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
9714 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
9716 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9717 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
9719 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9721 CFLAGS="$CFLAGS -Wunreachable-code"
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9734 if ac_fn_c_try_compile "$LINENO"; then :
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9737 $as_echo "yes" >&6; }
9738 can_add_to_cflags=yes
9740 # The compile supports this; do we have some C code for
9741 # which the warning should *not* appear?
9742 # We test the fourth argument because the third argument
9743 # could contain quotes, breaking the test.
9745 if test "xgenerates warnings from ntohs()" != "x"
9747 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
9749 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <arpa/inet.h>
9755 testme(unsigned short a)
9761 if ac_fn_c_try_compile "$LINENO"; then :
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9775 $as_echo "yes" >&6; }
9776 can_add_to_cflags=no
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 CFLAGS="$save_CFLAGS"
9782 if test x"$can_add_to_cflags" = "xyes"
9784 V_CCOPT="$V_CCOPT -Wunreachable-code"
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9791 CFLAGS="$save_CFLAGS"
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5
9798 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
9799 save_CFLAGS="$CFLAGS"
9800 if expr "x-Wshorten-64-to-32" : "x-W.*" >/dev/null
9802 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshorten-64-to-32"
9803 elif expr "x-Wshorten-64-to-32" : "x-f.*" >/dev/null
9805 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9806 elif expr "x-Wshorten-64-to-32" : "x-m.*" >/dev/null
9808 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9810 CFLAGS="$CFLAGS -Wshorten-64-to-32"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9823 if ac_fn_c_try_compile "$LINENO"; then :
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9826 $as_echo "yes" >&6; }
9827 can_add_to_cflags=yes
9829 # The compile supports this; do we have some C code for
9830 # which the warning should *not* appear?
9831 # We test the fourth argument because the third argument
9832 # could contain quotes, breaking the test.
9836 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
9838 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9843 if ac_fn_c_try_compile "$LINENO"; then :
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9857 $as_echo "yes" >&6; }
9858 can_add_to_cflags=no
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863 CFLAGS="$save_CFLAGS"
9864 if test x"$can_add_to_cflags" = "xyes"
9866 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 $as_echo "no" >&6; }
9873 CFLAGS="$save_CFLAGS"
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
9881 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
9882 if test "$GCC" = yes ; then
9884 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
9885 # though it's not); we assume that, in this case, the flag
9888 ac_lbl_dependency_flag="-M"
9891 # Not GCC or a compiler deemed to be GCC; what platform is
9892 # this? (We're assuming that if the compiler isn't GCC
9893 # it's the compiler from the vendor of the OS; that won't
9894 # necessarily be true for x86 platforms, where it might be
9895 # the Intel C compiler.)
9901 # MIPS C for IRIX, DEC C, and clang all use -M.
9903 ac_lbl_dependency_flag="-M"
9910 ac_lbl_dependency_flag="-xM"
9915 # HP's older C compilers don't support this.
9916 # HP's newer C compilers support this with
9917 # either +M or +Make; the older compilers
9918 # interpret +M as something completely
9919 # different, so we use +Make so we don't
9920 # think it works with the older compilers.
9922 ac_lbl_dependency_flag="+Make"
9927 # Not one of the above; assume no support for
9928 # generating dependencies.
9930 ac_lbl_dependency_flag=""
9936 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
9937 # complain about it?
9939 # Note: clang doesn't seem to exit with an error status when handed
9940 # an unknown non-warning error, even if you pass it
9941 # -Werror=unknown-warning-option. However, it always supports
9942 # -M, so the fact that this test always succeeds with clang
9945 if test ! -z "$ac_lbl_dependency_flag"; then
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 int main(void) { return 0; }
9950 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
9951 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
9956 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
9957 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
9958 MKDEP='${srcdir}/mkdep'
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 $as_echo "no" >&6; }
9963 # We can't run mkdep, so have "make depend" do
9966 MKDEP='${srcdir}/nomkdep'
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9973 # We can't run mkdep, so have "make depend" do
9976 MKDEP='${srcdir}/nomkdep'
9982 # We used to set -n32 for IRIX 6 when not using GCC (presumed
9983 # to mean that we're using MIPS C or MIPSpro C); it specified
9984 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
9985 # not sure why that would be something to do *only* with a
9986 # .devel file; why should the ABI for which we produce code
9989 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9991 if test -f $name ; then
9992 ln -s $name os-proto.h
9994 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
9998 $as_echo "$as_me: WARNING: can't find $name" >&2;}
10003 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10005 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10006 #include <sys/types.h>
10007 #include <sys/socket.h>
10010 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10021 # Check to see if there's a sockaddr_storage structure.
10023 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10024 #include <sys/types.h>
10025 #include <sys/socket.h>
10028 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10030 cat >>confdefs.h <<_ACEOF
10031 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10039 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10040 # dl_module_id_1 member.
10042 # NOTE: any failure means we conclude that it doesn't have that member,
10043 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10044 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10045 # it doesn't have that member (which is OK, as either we won't be
10046 # using code that would use that member, or we wouldn't compile in
10049 ac_fn_c_check_member "$LINENO" "dl_hp_ppa_info_t" "dl_module_id_1" "ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" "
10050 #include <sys/types.h>
10051 #include <sys/dlpi.h>
10052 #include <sys/dlpi_ext.h>
10055 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10057 cat >>confdefs.h <<_ACEOF
10058 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10095 # Check whether --enable-usb was given.
10096 if test "${enable_usb+set}" = set; then :
10097 enableval=$enable_usb;
10103 if test "xxx_only" = yes; then
10104 # User requested something-else-only pcap, so they don't
10105 # want USB support.
10109 if test "x$enable_usb" != "xno" ; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
10111 $as_echo_n "checking for USB sniffing support... " >&6; }
10115 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
10117 USB_SRC=pcap-usb-linux.c
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10119 $as_echo "yes" >&6; }
10120 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
10121 if test $? -ne 0 ; then
10122 ac_usb_dev_name="usbmon"
10125 cat >>confdefs.h <<_ACEOF
10126 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10130 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10132 # Do we have a version of <linux/compiler.h> available?
10133 # If so, we might need it for <linux/usbdevice_fs.h>.
10135 for ac_header in linux/compiler.h
10137 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
10138 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
10139 cat >>confdefs.h <<_ACEOF
10140 #define HAVE_LINUX_COMPILER_H 1
10147 if test "$ac_cv_header_linux_compiler_h" = yes; then
10149 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10151 for ac_header in linux/usbdevice_fs.h
10153 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
10155 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10156 cat >>confdefs.h <<_ACEOF
10157 #define HAVE_LINUX_USBDEVICE_FS_H 1
10165 for ac_header in linux/usbdevice_fs.h
10167 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
10168 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_LINUX_USBDEVICE_FS_H 1
10178 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10180 # OK, does it define bRequestType? Older versions of the kernel
10181 # define fields with names like "requesttype, "request", and
10182 # "value", rather than "bRequestType", "bRequest", and
10185 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
10186 $ac_includes_default
10187 #ifdef HAVE_LINUX_COMPILER_H
10188 #include <linux/compiler.h>
10190 #include <linux/usbdevice_fs.h>
10193 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
10195 cat >>confdefs.h <<_ACEOF
10196 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10206 # This just uses BPF in FreeBSD 8.4 and later; we don't need
10207 # to check for anything special for capturing.
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
10210 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 $as_echo "no" >&6; }
10222 if test "xxx_only" != yes; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
10224 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10228 $as_echo "yes" >&6; }
10230 # Life's too short to deal with trying to get this to compile
10231 # if you don't get the right types defined with
10232 # __KERNEL_STRICT_NAMES getting defined by some other include.
10234 # Check whether the includes Just Work. If not, don't turn on
10235 # netfilter support.
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
10238 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
10239 if ${ac_cv_netfilter_can_compile+:} false; then :
10240 $as_echo_n "(cached) " >&6
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10245 $ac_includes_default
10246 #include <sys/socket.h>
10247 #include <netinet/in.h>
10248 #include <linux/types.h>
10250 #include <linux/netlink.h>
10251 #include <linux/netfilter.h>
10252 #include <linux/netfilter/nfnetlink.h>
10253 #include <linux/netfilter/nfnetlink_log.h>
10254 #include <linux/netfilter/nfnetlink_queue.h>
10263 if ac_fn_c_try_compile "$LINENO"; then :
10264 ac_cv_netfilter_can_compile=yes
10266 ac_cv_netfilter_can_compile=no
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
10272 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
10273 if test $ac_cv_netfilter_can_compile = yes ; then
10275 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
10277 NETFILTER_SRC=pcap-netfilter-linux.c
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10289 # Check whether --enable-netmap was given.
10290 if test "${enable_netmap+set}" = set; then :
10291 enableval=$enable_netmap;
10297 if test "x$enable_netmap" != "xno" ; then
10299 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
10300 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
10301 # is defined, for example, as it includes a non-existent malloc.h
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
10305 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
10306 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
10307 $as_echo_n "(cached) " >&6
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10312 $ac_includes_default
10313 #define NETMAP_WITH_LIBS
10314 #include <net/netmap_user.h>
10323 if ac_fn_c_try_compile "$LINENO"; then :
10324 ac_cv_net_netmap_user_can_compile=yes
10326 ac_cv_net_netmap_user_can_compile=no
10328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
10332 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
10333 if test $ac_cv_net_netmap_user_can_compile = yes ; then
10335 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
10337 NETMAP_SRC=pcap-netmap.c
10344 # Check whether --enable-bluetooth was given.
10345 if test "${enable_bluetooth+set}" = set; then :
10346 enableval=$enable_bluetooth;
10348 enable_bluetooth=ifsupportavailable
10352 if test "xxx_only" = yes; then
10353 # User requested something-else-only pcap, so they don't
10354 # want Bluetooth support.
10355 enable_bluetooth=no
10358 if test "x$enable_bluetooth" != "xno" ; then
10361 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
10362 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
10365 # We have bluetooth.h, so we support Bluetooth
10369 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
10371 BT_SRC=pcap-bt-linux.c
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
10373 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
10374 ac_lbl_bluetooth_available=yes
10377 # OK, does struct sockaddr_hci have an hci_channel
10380 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
10381 #include <bluetooth/bluetooth.h>
10382 #include <bluetooth/hci.h>
10385 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
10387 cat >>confdefs.h <<_ACEOF
10388 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
10393 # Yes; is HCI_CHANNEL_MONITOR defined?
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
10396 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
10397 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
10398 $as_echo_n "(cached) " >&6
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10403 #include <bluetooth/bluetooth.h>
10404 #include <bluetooth/hci.h>
10410 u_int i = HCI_CHANNEL_MONITOR;
10416 if ac_fn_c_try_compile "$LINENO"; then :
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10419 $as_echo "yes" >&6; }
10421 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
10423 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 # We don't have bluetooth.h, so we don't support
10442 # Bluetooth sniffing.
10444 if test "x$enable_bluetooth" = "xyes" ; then
10445 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10448 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10456 if test "x$enable_bluetooth" = "xyes" ; then
10457 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
10460 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10469 # Check whether --enable-dbus was given.
10470 if test "${enable_dbus+set}" = set; then :
10471 enableval=$enable_dbus;
10473 enable_dbus=ifavailable
10477 if test "xxx_only" = yes; then
10478 # User requested something-else-only pcap, so they don't
10479 # want D-Bus support.
10483 if test "x$enable_dbus" != "xno"; then
10484 if test "x$enable_dbus" = "xyes"; then
10489 # We don't support D-Bus sniffing on macOS; see
10491 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10493 # The user requested it, so fail.
10495 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
10502 # We don't support D-Bus sniffing on macOS; see
10504 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10506 # The user dind't explicitly request it, so just
10507 # silently refuse to enable it.
10515 if test "x$enable_dbus" != "xno"; then
10516 # Extract the first word of "pkg-config", so it can be a program name with args.
10517 set dummy pkg-config; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_PKGCONFIG+:} false; then :
10521 $as_echo_n "(cached) " >&6
10523 if test -n "$PKGCONFIG"; then
10524 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_prog_PKGCONFIG="pkg-config"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
10544 PKGCONFIG=$ac_cv_prog_PKGCONFIG
10545 if test -n "$PKGCONFIG"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10547 $as_echo "$PKGCONFIG" >&6; }
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10554 if test "x$PKGCONFIG" != "xno"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
10556 $as_echo_n "checking for D-Bus... " >&6; }
10557 if "$PKGCONFIG" dbus-1; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559 $as_echo "yes" >&6; }
10560 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
10561 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
10562 save_CFLAGS="$CFLAGS"
10564 CFLAGS="$CFLAGS $DBUS_CFLAGS"
10565 LIBS="$LIBS $DBUS_LIBS"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
10567 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 #include <string.h>
10573 #include <sys/time.h>
10575 #include <dbus/dbus.h>
10579 return dbus_connection_read_write(NULL, 0);
10584 if ac_fn_c_try_link "$LINENO"; then :
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10587 $as_echo "yes" >&6; }
10589 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
10591 DBUS_SRC=pcap-dbus.c
10592 V_INCLS="$V_INCLS $DBUS_CFLAGS"
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 if test "x$enable_dbus" = "xyes"; then
10599 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 CFLAGS="$save_CFLAGS"
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 if test "x$enable_dbus" = "xyes"; then
10611 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
10619 # Check whether --enable-rdma was given.
10620 if test "${enable_rdma+set}" = set; then :
10621 enableval=$enable_rdma;
10623 enable_rdmasniff=ifavailable
10627 if test "xxx_only" = yes; then
10628 # User requested something-else-only pcap, so they don't
10629 # want RDMA support.
10630 enable_rdmasniff=no
10633 if test "x$enable_rdmasniff" != "xno"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
10635 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
10636 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-libverbs $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10650 char ibv_get_device_list ();
10654 return ibv_get_device_list ();
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_ibverbs_ibv_get_device_list=yes
10662 ac_cv_lib_ibverbs_ibv_get_device_list=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
10669 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
10670 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
10672 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
10673 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
10676 # ibv_create_flow may be defined as a static inline
10677 # function in infiniband/verbs.h, so we can't
10678 # use AC_CHECK_LIB.
10680 # Too bad autoconf has no AC_SYMBOL_EXISTS()
10681 # macro that works like CMake's check_symbol_exists()
10682 # function, to check do a compile check like
10683 # this (they do a clever trick to avoid having
10684 # to know the function's signature).
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
10687 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10691 #include <infiniband/verbs.h>
10697 (void) ibv_create_flow((struct ibv_qp *) NULL,
10698 (struct ibv_flow_attr *) NULL);
10704 if ac_fn_c_try_link "$LINENO"; then :
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; }
10709 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
10711 RDMA_SRC=pcap-rdmasniff.c
10712 LIBS="-libverbs $LIBS"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10734 # Find a good install program. We prefer a C program (faster),
10735 # so one script is as good as another. But avoid the broken or
10736 # incompatible versions:
10737 # SysV /etc/install, /usr/sbin/install
10738 # SunOS /usr/etc/install
10739 # IRIX /sbin/install
10741 # AmigaOS /C/install, which installs bootblocks on floppy discs
10742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10745 # OS/2's system install, which has a completely different semantic
10746 # ./install, which can be erroneously created by make from ./install.sh.
10747 # Reject install programs that cannot install multiple files.
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10749 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10750 if test -z "$INSTALL"; then
10751 if ${ac_cv_path_install+:} false; then :
10752 $as_echo_n "(cached) " >&6
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10758 test -z "$as_dir" && as_dir=.
10759 # Account for people who put trailing slashes in PATH elements.
10760 case $as_dir/ in #((
10761 ./ | .// | /[cC]/* | \
10762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10763 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10766 # OSF1 and SCO ODT 3.0 have their own names for install.
10767 # Don't use installbsd from OSF since it installs stuff as root
10769 for ac_prog in ginstall scoinst install; do
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10772 if test $ac_prog = install &&
10773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10774 # AIX install. It has an incompatible calling convention.
10776 elif test $ac_prog = install &&
10777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10778 # program-specific install script used by HP pwplus--don't use.
10781 rm -rf conftest.one conftest.two conftest.dir
10782 echo one > conftest.one
10783 echo two > conftest.two
10785 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10786 test -s conftest.one && test -s conftest.two &&
10787 test -s conftest.dir/conftest.one &&
10788 test -s conftest.dir/conftest.two
10790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10803 rm -rf conftest.one conftest.two conftest.dir
10806 if test "${ac_cv_path_install+set}" = set; then
10807 INSTALL=$ac_cv_path_install
10809 # As a last resort, use the slow shell script. Don't cache a
10810 # value for INSTALL within a source directory, because that will
10811 # break other packages using the cache if that directory is
10812 # removed, or if the value is a relative name.
10813 INSTALL=$ac_install_sh
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10817 $as_echo "$INSTALL" >&6; }
10819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10820 # It thinks the first close brace ends the variable substitution.
10821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10828 ac_config_headers="$ac_config_headers config.h"
10831 ac_config_commands="$ac_config_commands default-1"
10833 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_immediate_mode.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin testprogs/Makefile"
10835 cat >confcache <<\_ACEOF
10836 # This file is a shell script that caches the results of configure
10837 # tests run on this system so they can be shared between configure
10838 # scripts and configure runs, see configure's option --config-cache.
10839 # It is not useful on other systems. If it contains results you don't
10840 # want to keep, you may remove or edit it.
10842 # config.status only pays attention to the cache file if you give it
10843 # the --recheck option to rerun configure.
10845 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10847 # following values.
10851 # The following way of writing the cache mishandles newlines in values,
10852 # but we know of no workaround that is simple, portable, and efficient.
10853 # So, we kill variables containing newlines.
10854 # Ultrix sh set writes to stderr and can't be redirected directly,
10855 # and sets the high bit in the cache file unless we assign to the vars.
10857 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10858 eval ac_val
=\$
$ac_var
10862 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10866 _ | IFS | as_nl
) ;; #(
10867 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10868 *) { eval $ac_var=; unset $ac_var;} ;;
10874 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10875 *${as_nl}ac_space
=\
*)
10876 # `set' does not quote correctly, so add quotes: double-quote
10877 # substitution turns \\\\ into \\, and sed turns \\ into \.
10880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10883 # `set' quotes correctly as required by POSIX, so do not add quotes.
10884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10895 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10897 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10898 if test -w "$cache_file"; then
10899 if test "x$cache_file" != "x/dev/null"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10901 $as_echo "$as_me: updating cache $cache_file" >&6;}
10902 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10903 cat confcache
>"$cache_file"
10905 case $cache_file in #(
10907 mv -f confcache
"$cache_file"$$
&&
10908 mv -f "$cache_file"$$
"$cache_file" ;; #(
10910 mv -f confcache
"$cache_file" ;;
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10921 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10922 # Let make expand exec_prefix.
10923 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10925 DEFS
=-DHAVE_CONFIG_H
10930 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10931 # 1. Remove the extension, and $U if already installed.
10932 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10933 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10934 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10935 # will be set to the directory where LIBOBJS objects are built.
10936 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10937 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10939 LIBOBJS
=$ac_libobjs
10941 LTLIBOBJS
=$ac_ltlibobjs
10945 : "${CONFIG_STATUS=./config.status}"
10947 ac_clean_files_save
=$ac_clean_files
10948 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10950 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10952 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10954 # Generated by $as_me.
10955 # Run this file to recreate the current configuration.
10956 # Compiler output produced by configure, useful for debugging
10957 # configure, is in config.log if it exists.
10960 ac_cs_recheck=false
10963 SHELL=\${CONFIG_SHELL-$SHELL}
10966 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10967 ## -------------------- ##
10968 ## M4sh Initialization. ##
10969 ## -------------------- ##
10971 # Be more Bourne compatible
10972 DUALCASE
=1; export DUALCASE
# for MKS sh
10973 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10976 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10977 # is contrary to our usage. Disable this feature.
10978 alias -g '${1+"$@"}'='"$@"'
10979 setopt NO_GLOB_SUBST
10981 case `(set -o) 2>/dev/null` in #(
10993 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10994 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10997 # Prefer a ksh shell builtin over an external printf program on Solaris,
10998 # but without wasting forks for bash or zsh.
10999 if test -z "$BASH_VERSION$ZSH_VERSION" \
11000 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11001 as_echo='print
-r --'
11002 as_echo_n='print
-rn --'
11003 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11004 as_echo='printf %s
\n'
11005 as_echo_n='printf %s
'
11007 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11008 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11009 as_echo_n='/usr
/ucb
/echo -n'
11011 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11012 as_echo_n_body='eval
11016 expr "X$arg" : "X\\(.*\\)$as_nl";
11017 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11019 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11021 export as_echo_n_body
11022 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11024 export as_echo_body
11025 as_echo='sh
-c $as_echo_body as_echo
'
11028 # The user is always right.
11029 if test "${PATH_SEPARATOR+set}" != set; then
11031 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11032 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11039 # We need space, tab and new line, in precisely that order. Quoting is
11040 # there to prevent editors from complaining about space-tab.
11041 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11042 # splitting by setting IFS to empty value.)
11045 # Find who we are. Look in the path if we contain no directory separator.
11048 *[\\/]* ) as_myself=$0 ;;
11049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050 for as_dir in $PATH
11053 test -z "$as_dir" && as_dir=.
11054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11060 # We did not find ourselves, most probably we were run as `sh COMMAND'
11061 # in which case we are not to be found in the path.
11062 if test "x$as_myself" = x
; then
11065 if test ! -f "$as_myself"; then
11066 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11070 # Unset variables that we do not need and which cause bugs (e.g. in
11071 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11072 # suppresses any "Segmentation fault" message there. '((' could
11073 # trigger a bug in pdksh 5.2.14.
11074 for as_var
in BASH_ENV ENV MAIL MAILPATH
11075 do eval test x\
${$as_var+set} = xset \
11076 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11089 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11092 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11093 # ----------------------------------------
11094 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11095 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11096 # script with STATUS, using 1 if that was 0.
11099 as_status
=$1; test $as_status -eq 0 && as_status
=1
11101 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11102 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11104 $as_echo "$as_me: error: $2" >&2
11105 as_fn_exit
$as_status
11109 # as_fn_set_status STATUS
11110 # -----------------------
11111 # Set $? to STATUS, without forking.
11112 as_fn_set_status
()
11115 } # as_fn_set_status
11117 # as_fn_exit STATUS
11118 # -----------------
11119 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11123 as_fn_set_status
$1
11129 # Portably unset VAR.
11132 { eval $1=; unset $1;}
11134 as_unset
=as_fn_unset
11135 # as_fn_append VAR VALUE
11136 # ----------------------
11137 # Append the text in VALUE to the end of the definition contained in VAR. Take
11138 # advantage of any shell optimizations that allow amortized linear growth over
11139 # repeated appends, instead of the typical quadratic growth present in naive
11141 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11142 eval 'as_fn_append ()
11153 # as_fn_arith ARG...
11154 # ------------------
11155 # Perform arithmetic evaluation on the ARGs, and store the result in the
11156 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11157 # must be portable across $(()) and expr.
11158 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11159 eval 'as_fn_arith ()
11166 as_val
=`expr "$@" || test $? -eq 1`
11171 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11172 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11178 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11179 as_basename
=basename
11184 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11190 as_me
=`$as_basename -- "$0" ||
11191 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11192 X"$0" : 'X\(//\)$' \| \
11193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11195 sed '/^.*\/\([^/][^/]*\)\/*$/{
11209 # Avoid depending upon Character Ranges.
11210 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11211 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11212 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11213 as_cr_digits
='0123456789'
11214 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11216 ECHO_C
= ECHO_N
= ECHO_T
=
11217 case `echo -n x` in #(((((
11219 case `echo 'xy\c'` in
11220 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11222 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11229 rm -f conf$$ conf$$.exe conf$$.
file
11230 if test -d conf$$.dir
; then
11231 rm -f conf$$.dir
/conf$$.
file
11234 mkdir conf$$.dir
2>/dev
/null
11236 if (echo >conf$$.
file) 2>/dev
/null
; then
11237 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11239 # ... but there are two gotchas:
11240 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11241 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11242 # In both cases, we have to default to `cp -pR'.
11243 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11245 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11253 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11254 rmdir conf$$.dir
2>/dev
/null
11259 # Create "$as_dir" as a directory, including parents if necessary.
11264 -*) as_dir
=.
/$as_dir;;
11266 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11270 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11271 *) as_qdir
=$as_dir;;
11273 as_dirs
="'$as_qdir' $as_dirs"
11274 as_dir
=`$as_dirname -- "$as_dir" ||
11275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11276 X"$as_dir" : 'X\(//\)[^/]' \| \
11277 X"$as_dir" : 'X\(//\)$' \| \
11278 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11279 $as_echo X"$as_dir" |
11280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11284 /^X\(\/\/\)[^/].*/{
11297 test -d "$as_dir" && break
11299 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11300 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11304 if mkdir
-p .
2>/dev
/null
; then
11305 as_mkdir_p
='mkdir -p "$as_dir"'
11307 test -d .
/-p && rmdir .
/-p
11312 # as_fn_executable_p FILE
11313 # -----------------------
11314 # Test if FILE is an executable regular file.
11315 as_fn_executable_p
()
11317 test -f "$1" && test -x "$1"
11318 } # as_fn_executable_p
11319 as_test_x
='test -x'
11320 as_executable_p
=as_fn_executable_p
11322 # Sed expression to map a string onto a valid CPP name.
11323 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11325 # Sed expression to map a string onto a valid variable name.
11326 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11330 ## ----------------------------------- ##
11331 ## Main body of $CONFIG_STATUS script. ##
11332 ## ----------------------------------- ##
11334 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11337 # Save the log message, to keep $0 and so on meaningful, and to
11338 # report actual input values of CONFIG_FILES etc. instead of their
11339 # values after options handling.
11341 This file was extended by pcap $as_me 1.10.0-PRE-GIT, which was
11342 generated by GNU Autoconf 2.69. Invocation command line was
11344 CONFIG_FILES = $CONFIG_FILES
11345 CONFIG_HEADERS = $CONFIG_HEADERS
11346 CONFIG_LINKS = $CONFIG_LINKS
11347 CONFIG_COMMANDS = $CONFIG_COMMANDS
11350 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11355 case $ac_config_files in *"
11356 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11359 case $ac_config_headers in *"
11360 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11365 # Files that config.status was made for.
11366 config_files="$ac_config_files"
11367 config_headers="$ac_config_headers"
11368 config_commands="$ac_config_commands"
11372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11374 \`$as_me' instantiates files and other configuration actions
11375 from templates according to the current configuration. Unless the files
11376 and actions are specified as TAGs, all are instantiated by default.
11378 Usage: $0 [OPTION]... [TAG]...
11380 -h, --help print this help, then exit
11381 -V, --version print version number and configuration settings, then exit
11382 --config print configuration, then exit
11383 -q, --quiet, --silent
11384 do not print progress messages
11385 -d, --debug don't remove temporary files
11386 --recheck update $as_me by reconfiguring in the same conditions
11387 --file=FILE[:TEMPLATE]
11388 instantiate the configuration file FILE
11389 --header=FILE[:TEMPLATE]
11390 instantiate the configuration header FILE
11392 Configuration files:
11395 Configuration headers:
11398 Configuration commands:
11401 Report bugs to the package provider."
11404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11405 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11407 pcap config.status 1.10.0-PRE-GIT
11408 configured by $0, generated by GNU Autoconf 2.69,
11409 with options \\"\$ac_cs_config\\"
11411 Copyright (C) 2012 Free Software Foundation, Inc.
11412 This config.status script is free software; the Free Software Foundation
11413 gives unlimited permission to copy, distribute and modify it."
11418 test -n "\$AWK" || AWK=awk
11421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11422 # The default lists apply if the user does not specify any file.
11428 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11429 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11433 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11445 # Handling of the options.
11446 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11448 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11449 $as_echo "$ac_cs_version"; exit ;;
11450 --config |
--confi |
--conf |
--con |
--co |
--c )
11451 $as_echo "$ac_cs_config"; exit ;;
11452 --debug |
--debu |
--deb |
--de |
--d |
-d )
11454 --file |
--fil |
--fi |
--f )
11457 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11458 '') as_fn_error $?
"missing file argument" ;;
11460 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11461 ac_need_defaults
=false
;;
11462 --header |
--heade |
--head |
--hea )
11465 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11467 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11468 ac_need_defaults
=false
;;
11470 # Conflict between --help and --header
11471 as_fn_error $?
"ambiguous option: \`$1'
11472 Try \`$0 --help' for more information.";;
11473 --help |
--hel |
-h )
11474 $as_echo "$ac_cs_usage"; exit ;;
11475 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11476 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11479 # This is an error.
11480 -*) as_fn_error $?
"unrecognized option: \`$1'
11481 Try \`$0 --help' for more information." ;;
11483 *) as_fn_append ac_config_targets
" $1"
11484 ac_need_defaults
=false
;;
11490 ac_configure_extra_args
=
11492 if $ac_cs_silent; then
11494 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11499 if \$ac_cs_recheck; then
11500 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11502 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11503 CONFIG_SHELL='$SHELL'
11504 export CONFIG_SHELL
11509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11514 ## Running $as_me. ##
11520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11530 # Handling of arguments.
11531 for ac_config_target
in $ac_config_targets
11533 case $ac_config_target in
11534 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11535 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11536 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11537 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
11538 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
11539 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11540 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
11541 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
11542 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
11543 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
11544 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11545 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
11546 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11547 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11548 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11549 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11550 "pcap_set_immediate_mode.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
11551 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
11552 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11553 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
11554 "rpcapd/rpcapd.manadmin") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
11555 "testprogs/Makefile") CONFIG_FILES
="$CONFIG_FILES testprogs/Makefile" ;;
11557 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11562 # If the user did not use the arguments to specify the items to instantiate,
11563 # then the envvar interface is used. Set only those that are not.
11564 # We use the long form for the default assignment because of an extremely
11565 # bizarre bug on SunOS 4.1.3.
11566 if $ac_need_defaults; then
11567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11572 # Have a temporary directory for convenience. Make it in the build tree
11573 # simply because there is no reason against having it here, and in addition,
11574 # creating and moving files from /tmp can sometimes cause problems.
11575 # Hook for its removal unless debugging.
11576 # Note that there is a small window in which the directory will not be cleaned:
11577 # after its creation but before its name has been assigned to `$tmp'.
11581 trap 'exit_status=$?
11582 : "${ac_tmp:=$tmp}"
11583 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11585 trap 'as_fn_exit 1' 1 2 13 15
11587 # Create a (secure) tmp directory for tmp files.
11590 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11594 tmp
=.
/conf$$
-$RANDOM
11595 (umask 077 && mkdir
"$tmp")
11596 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11599 # Set up the scripts for CONFIG_FILES section.
11600 # No need to generate them if there are no CONFIG_FILES.
11601 # This happens for instance with `./config.status config.h'.
11602 if test -n "$CONFIG_FILES"; then
11605 ac_cr
=`echo X | tr X '\015'`
11606 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11607 # But we know of no other shell where ac_cr would be empty at this
11608 # point, so we can use a bashism as a fallback.
11609 if test "x$ac_cr" = x
; then
11610 eval ac_cr
=\$
\'\\r
\'
11612 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11613 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11616 ac_cs_awk_cr
=$ac_cr
11619 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11624 echo "cat >conf$$subs.awk <<_ACEOF" &&
11625 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11627 } >conf$$subs.sh ||
11628 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11629 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11631 for ac_last_try in false false false false false :; do
11632 . ./conf$$subs.sh ||
11633 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11635 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11636 if test $ac_delim_n = $ac_delim_num; then
11638 elif $ac_last_try; then
11639 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11641 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11644 rm -f conf$$subs.sh
11646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11647 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11651 s/^/S["/; s
/!.
*/"]=/
11661 s/\(.\{148\}\)..*/\1/
11663 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11668 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11675 s/\(.\{148\}\)..*/\1/
11677 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11681 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11686 ' <conf$$subs.awk | sed '
11691 ' >>$CONFIG_STATUS || ac_write_fail=1
11692 rm -f conf$$subs.awk
11693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11695 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11696 for (key in S) S_is_set[key] = 1
11702 nfields = split(line, field, "@
")
11704 len = length(field[1])
11705 for (i = 2; i < nfields; i++) {
11707 keylen = length(key)
11708 if (S_is_set[key]) {
11710 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11711 len += length(value) + length(field[++i])
11722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11723 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11724 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11727 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11728 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11731 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11732 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11733 # trailing colons and then remove the whole line if VPATH becomes empty
11734 # (actually we leave an empty line to preserve line numbers).
11735 if test "x
$srcdir" = x.; then
11736 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11755 fi # test -n "$CONFIG_FILES"
11757 # Set up the scripts for CONFIG_HEADERS section.
11758 # No need to generate them if there are no CONFIG_HEADERS.
11759 # This happens for instance with `./config.status Makefile'.
11760 if test -n "$CONFIG_HEADERS"; then
11761 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11765 # Transform confdefs.h into an awk script `defines.awk', embedded as
11766 # here-document in config.status, that substitutes the proper values into
11767 # config.h.in to produce config.h.
11769 # Create a delimiter string that does not exist in confdefs.h, to ease
11770 # handling of long lines.
11772 for ac_last_try in false false :; do
11773 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11774 if test -z "$ac_tt"; then
11776 elif $ac_last_try; then
11777 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11779 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11783 # For the awk script, D is an array of macro values keyed by name,
11784 # likewise P contains macro parameters if any. Preserve backslash
11785 # newline sequences.
11787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11789 s/.\{148\}/&'"$ac_delim"'/g
11792 s/^[ ]*#[ ]*define[ ][ ]*/ /
11799 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11801 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11806 D["\
1"]=" \
3\\\\\\n
"\\/p
11808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11813 s/.\{148\}/&'"$ac_delim"'/g
11818 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11821 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11823 ' <confdefs.h | sed '
11824 s/'"$ac_delim"'/"\\\
11825 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828 for (key in D) D_is_set[key] = 1
11831 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11833 split(line, arg, " ")
11834 if (arg[1] == "#") {
11838 defundef
= substr
(arg
[1], 2)
11841 split(mac1
, mac2
, "(") #)
11843 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11844 if (D_is_set
[macro
]) {
11845 # Preserve the white space surrounding the "#".
11846 print prefix
"define", macro P
[macro
] D
[macro
]
11849 # Replace #undef with comments. This is necessary, for example,
11850 # in the case of _POSIX_SOURCE, which is predefined and required
11851 # on some systems where configure will not decide to define it.
11852 if (defundef
== "undef") {
11853 print
"/*", prefix defundef
, macro
, "*/"
11861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11862 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11863 fi # test -n "$CONFIG_HEADERS"
11866 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11871 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11873 case $ac_mode$ac_tag in
11875 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11876 :[FH
]-) ac_tag
=-:-;;
11877 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11894 -) ac_f
="$ac_tmp/stdin";;
11895 *) # Look for the file first in the build tree, then in the source tree
11896 # (if the path is not absolute). The absolute path cannot be DOS-style,
11897 # because $ac_f cannot contain `:'.
11901 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11903 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11905 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11906 as_fn_append ac_file_inputs
" '$ac_f'"
11909 # Let's still pretend it is `configure' which instantiates (i.e., don't
11910 # use $as_me), people would be surprised to read:
11911 # /* config.h. Generated by config.status. */
11912 configure_input
='Generated from '`
11913 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11915 if test x
"$ac_file" != x-
; then
11916 configure_input
="$ac_file. $configure_input"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11918 $as_echo "$as_me: creating $ac_file" >&6;}
11920 # Neutralize special characters interpreted by sed in replacement strings.
11921 case $configure_input in #(
11922 *\
&* |
*\|
* |
*\\* )
11923 ac_sed_conf_input
=`$as_echo "$configure_input" |
11924 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11925 *) ac_sed_conf_input
=$configure_input;;
11929 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11930 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11935 ac_dir
=`$as_dirname -- "$ac_file" ||
11936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11937 X"$ac_file" : 'X\(//\)[^/]' \| \
11938 X"$ac_file" : 'X\(//\)$' \| \
11939 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11940 $as_echo X"$ac_file" |
11941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11945 /^X\(\/\/\)[^/].*/{
11958 as_dir
="$ac_dir"; as_fn_mkdir_p
11962 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11964 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11965 # A ".." for each directory in $ac_dir_suffix.
11966 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11967 case $ac_top_builddir_sub in
11968 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11969 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11972 ac_abs_top_builddir
=$ac_pwd
11973 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11974 # for backward compatibility:
11975 ac_top_builddir
=$ac_top_build_prefix
11978 .
) # We are building in place.
11980 ac_top_srcdir
=$ac_top_builddir_sub
11981 ac_abs_top_srcdir
=$ac_pwd ;;
11982 [\\/]* | ?
:[\\/]* ) # Absolute name.
11983 ac_srcdir
=$srcdir$ac_dir_suffix;
11984 ac_top_srcdir
=$srcdir
11985 ac_abs_top_srcdir
=$srcdir ;;
11986 *) # Relative name.
11987 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11988 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11989 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11991 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12001 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12002 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12007 # If the template does not know about datarootdir, expand it.
12008 # FIXME: This hack should be removed a few years after 2.60.
12009 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12020 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12021 *datarootdir
*) ac_datarootdir_seen
=yes;;
12022 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12024 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 ac_datarootdir_hack='
12028 s&@datadir@&$datadir&g
12029 s&@docdir@&$docdir&g
12030 s&@infodir@&$infodir&g
12031 s&@localedir@&$localedir&g
12032 s&@mandir@&$mandir&g
12033 s&\\\${datarootdir}&$datarootdir&g' ;;
12037 # Neutralize VPATH when `$srcdir' = `.'.
12038 # Shell code in configure.ac might set extrasub.
12039 # FIXME: do we really want to maintain this feature?
12040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12041 ac_sed_extra="$ac_vpsub
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12046 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12047 s|@configure_input@|
$ac_sed_conf_input|
;t t
12048 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12049 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12050 s
&@srcdir@
&$ac_srcdir&;t t
12051 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12052 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12053 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12054 s
&@builddir@
&$ac_builddir&;t t
12055 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12056 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12057 s
&@INSTALL@
&$ac_INSTALL&;t t
12058 $ac_datarootdir_hack
12060 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12061 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12064 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12065 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12066 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12068 which seems to be undefined. Please make sure it is defined" >&5
12069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12070 which seems to be undefined. Please make sure it is defined" >&2;}
12072 rm -f "$ac_tmp/stdin"
12074 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12075 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12083 if test x"$ac_file" != x-; then
12085 $as_echo "/* $configure_input */" \
12086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12087 } >"$ac_tmp/config.h" \
12088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12089 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12091 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12094 mv "$ac_tmp/config.h" "$ac_file" \
12095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12098 $as_echo "/* $configure_input */" \
12099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12100 || as_fn_error $? "could not create -" "$LINENO" 5
12104 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12105 $as_echo "$as_me: executing $ac_file commands" >&6;}
12110 case $ac_file$ac_mode in
12111 "default-1":C) if test -f .devel; then
12112 echo timestamp > stamp-h
12113 cat $srcdir/Makefile-devel-adds >> Makefile
12123 ac_clean_files=$ac_clean_files_save
12125 test $ac_write_fail = 0 ||
12126 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12129 # configure is writing to config.log, and then calls config.status.
12130 # config.status does its own redirection, appending to config.log.
12131 # Unfortunately, on DOS this fails, as config.log is still kept open
12132 # by configure, so config.status won't be able to
write to it
; its
12133 # output is simply discarded. So we exec the FD to /dev/null,
12134 # effectively closing config.log, so it can be properly (re)opened and
12135 # appended to by config.status. When coming back to configure, we
12136 # need to make the FD available again.
12137 if test "$no_create" != yes; then
12139 ac_config_status_args
=
12140 test "$silent" = yes &&
12141 ac_config_status_args
="$ac_config_status_args --quiet"
12143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12146 # would make configure fail if this is the last instruction.
12147 $ac_cs_success || as_fn_exit
1
12149 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12151 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}