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
639 PCAP_SUPPORT_NETFILTER
681 PCAP_SUPPORT_PACKET_RING
734 program_transform_name
747 enable_option_checking
777 ac_precious_vars
='build_alias
790 # Initialize some variables set by options.
792 ac_init_version
=false
793 ac_unrecognized_opts
=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name
=s
,x
,x
,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir
='${exec_prefix}/bin'
819 sbindir
='${exec_prefix}/sbin'
820 libexecdir
='${exec_prefix}/libexec'
821 datarootdir
='${prefix}/share'
822 datadir
='${datarootdir}'
823 sysconfdir
='${prefix}/etc'
824 sharedstatedir
='${prefix}/com'
825 localstatedir
='${prefix}/var'
826 includedir
='${prefix}/include'
827 oldincludedir
='/usr/include'
828 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir
='${datarootdir}/info'
834 libdir
='${exec_prefix}/lib'
835 localedir
='${datarootdir}/locale'
836 mandir
='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\
$ac_option
850 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
863 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
866 -build |
--build |
--buil |
--bui |
--bu)
867 ac_prev
=build_alias
;;
868 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
869 build_alias
=$ac_optarg ;;
871 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
872 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
873 ac_prev
=cache_file
;;
874 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
875 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
876 cache_file
=$ac_optarg ;;
879 cache_file
=config.cache
;;
881 -datadir |
--datadir |
--datadi |
--datad)
883 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
884 datadir
=$ac_optarg ;;
886 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
887 |
--dataroo |
--dataro |
--datar)
888 ac_prev
=datarootdir
;;
889 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
890 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
891 datarootdir
=$ac_optarg ;;
893 -disable-* |
--disable-*)
894 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
897 as_fn_error $?
"invalid feature name: $ac_useropt"
898 ac_useropt_orig
=$ac_useropt
899 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep
=', ';;
907 eval enable_
$ac_useropt=no
;;
909 -docdir |
--docdir |
--docdi |
--doc |
--do)
911 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
914 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
916 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
919 -enable-* |
--enable-*)
920 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
923 as_fn_error $?
"invalid feature name: $ac_useropt"
924 ac_useropt_orig
=$ac_useropt
925 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep
=', ';;
933 eval enable_
$ac_useropt=\
$ac_optarg ;;
935 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
936 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
937 |
--exec |
--exe |
--ex)
938 ac_prev
=exec_prefix
;;
939 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
940 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
941 |
--exec=* |
--exe=* |
--ex=*)
942 exec_prefix
=$ac_optarg ;;
944 -gas |
--gas |
--ga |
--g)
945 # Obsolete; use --with-gas.
948 -help |
--help |
--hel |
--he |
-h)
950 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
951 ac_init_help
=recursive
;;
952 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
953 ac_init_help
=short
;;
955 -host |
--host |
--hos |
--ho)
956 ac_prev
=host_alias
;;
957 -host=* |
--host=* |
--hos=* |
--ho=*)
958 host_alias
=$ac_optarg ;;
960 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
962 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
964 htmldir
=$ac_optarg ;;
966 -includedir |
--includedir |
--includedi |
--included |
--include \
967 |
--includ |
--inclu |
--incl |
--inc)
968 ac_prev
=includedir
;;
969 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
970 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
971 includedir
=$ac_optarg ;;
973 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
975 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
976 infodir
=$ac_optarg ;;
978 -libdir |
--libdir |
--libdi |
--libd)
980 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
983 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
984 |
--libexe |
--libex |
--libe)
985 ac_prev
=libexecdir
;;
986 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
987 |
--libexe=* |
--libex=* |
--libe=*)
988 libexecdir
=$ac_optarg ;;
990 -localedir |
--localedir |
--localedi |
--localed |
--locale)
992 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
993 localedir
=$ac_optarg ;;
995 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
996 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
997 ac_prev
=localstatedir
;;
998 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
999 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1000 localstatedir
=$ac_optarg ;;
1002 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1004 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1005 mandir
=$ac_optarg ;;
1007 -nfp |
--nfp |
--nf)
1008 # Obsolete; use --without-fp.
1011 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1012 |
--no-cr |
--no-c |
-n)
1015 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1016 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1019 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1020 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1021 |
--oldin |
--oldi |
--old |
--ol |
--o)
1022 ac_prev
=oldincludedir
;;
1023 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1024 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1025 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1026 oldincludedir
=$ac_optarg ;;
1028 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1030 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1031 prefix
=$ac_optarg ;;
1033 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1034 |
--program-pre |
--program-pr |
--program-p)
1035 ac_prev
=program_prefix
;;
1036 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1037 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1038 program_prefix
=$ac_optarg ;;
1040 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1041 |
--program-suf |
--program-su |
--program-s)
1042 ac_prev
=program_suffix
;;
1043 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1044 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1045 program_suffix
=$ac_optarg ;;
1047 -program-transform-name |
--program-transform-name \
1048 |
--program-transform-nam |
--program-transform-na \
1049 |
--program-transform-n |
--program-transform- \
1050 |
--program-transform |
--program-transfor \
1051 |
--program-transfo |
--program-transf \
1052 |
--program-trans |
--program-tran \
1053 |
--progr-tra |
--program-tr |
--program-t)
1054 ac_prev
=program_transform_name
;;
1055 -program-transform-name=* |
--program-transform-name=* \
1056 |
--program-transform-nam=* |
--program-transform-na=* \
1057 |
--program-transform-n=* |
--program-transform-=* \
1058 |
--program-transform=* |
--program-transfor=* \
1059 |
--program-transfo=* |
--program-transf=* \
1060 |
--program-trans=* |
--program-tran=* \
1061 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1062 program_transform_name
=$ac_optarg ;;
1064 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1066 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1067 pdfdir
=$ac_optarg ;;
1069 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1071 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1074 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1075 |
-silent |
--silent |
--silen |
--sile |
--sil)
1078 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1080 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1082 sbindir
=$ac_optarg ;;
1084 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1085 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1086 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1088 ac_prev
=sharedstatedir
;;
1089 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1090 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1091 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1093 sharedstatedir
=$ac_optarg ;;
1095 -site |
--site |
--sit)
1097 -site=* |
--site=* |
--sit=*)
1100 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1102 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1103 srcdir
=$ac_optarg ;;
1105 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1106 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1107 ac_prev
=sysconfdir
;;
1108 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1109 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1110 sysconfdir
=$ac_optarg ;;
1112 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1113 ac_prev
=target_alias
;;
1114 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1115 target_alias
=$ac_optarg ;;
1117 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1120 -version |
--version |
--versio |
--versi |
--vers |
-V)
1121 ac_init_version
=: ;;
1124 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1127 as_fn_error $?
"invalid package name: $ac_useropt"
1128 ac_useropt_orig
=$ac_useropt
1129 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep
=', ';;
1137 eval with_
$ac_useropt=\
$ac_optarg ;;
1139 -without-* |
--without-*)
1140 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1143 as_fn_error $?
"invalid package name: $ac_useropt"
1144 ac_useropt_orig
=$ac_useropt
1145 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep
=', ';;
1153 eval with_
$ac_useropt=no
;;
1156 # Obsolete; use --with-x.
1159 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1160 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1161 ac_prev
=x_includes
;;
1162 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1163 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1164 x_includes
=$ac_optarg ;;
1166 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1167 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1168 ac_prev
=x_libraries
;;
1169 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1170 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1171 x_libraries
=$ac_optarg ;;
1173 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1178 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1182 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1184 eval $ac_envvar=\
$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 if test -n "$ac_prev"; then
1199 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $?
"missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1206 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val
=\$
$ac_var
1218 # Remove trailing slashes.
1221 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\
$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$
]* | ?
:[\\/]* ) continue;;
1227 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1229 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target
=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x
; then
1241 if test "x$build_alias" = x
; then
1242 cross_compiling
=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1251 test "$silent" = yes && exec 6>/dev
/null
1254 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di
=`ls -di .` &&
1256 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $?
"working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $?
"pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted
=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir
=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted
=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1298 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var
in $ac_precious_vars; do
1315 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1317 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures pcap 1.10.0-PRE-GIT to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1386 --build=BUILD configure
for building on BUILD
[guessed
]
1387 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1388 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive
) echo "Configuration of pcap 1.10.0-PRE-GIT:";;
1399 --disable-option-checking ignore unrecognized
--enable/--with options
1400 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1401 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1402 --disable-largefile omit support
for large files
1403 --disable-protochain disable
\"protochain
\" insn
1404 --enable-packet-ring enable packet ring support on Linux
[default
=yes]
1405 --enable-ipv6 build IPv6-capable version
[default
=yes]
1406 --enable-remote enable remote packet capture
[default
=no
]
1407 --disable-remote disable remote packet capture
1408 --enable-optimizer-dbg build optimizer debugging code
1409 --enable-yydebug build parser debugging code
1410 --disable-universal don
't build universal on macOS
1411 --enable-shared build shared libraries [default=yes, if support
1413 --enable-usb enable USB capture support [default=yes, if support
1415 --enable-netmap enable netmap support [default=yes, if support
1417 --enable-dpdk enable dpdk support [default=no]
1418 --enable-bluetooth enable Bluetooth support [default=yes, if support
1420 --enable-dbus enable D-Bus capture support [default=yes, if
1422 --enable-rdma enable RDMA capture support [default=yes, if support
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --without-gcc don't use gcc
1429 --with-pcap=TYPE use packet capture TYPE
1430 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1432 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1433 DIR
, if supplied
).
[default
=yes, if present
]
1434 --with-dag-includes=IDIR
1435 Endace DAG include directory
, if not DIR
/include
1436 --with-dag-libraries=LDIR
1437 Endace DAG library directory
, if not DIR
/lib
1438 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1439 supplied
).
[default
=yes, if present
]
1440 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1441 DIR
, if supplied
).
[default
=yes, if present
]
1442 --with-snf-includes=IDIR
1443 Myricom SNF include directory
, if not DIR
/include
1444 --with-snf-libraries=LDIR
1445 Myricom SNF library directory
, if not DIR
/lib
1446 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1447 directory DIR
, if supplied
).
[default
=yes, if
1449 --with-dpdk-includes=IDIR
1450 Endace DPDK include directory
, if not DIR
/include
1451 --with-dpdk-libraries=LDIR
1452 Endace DPDK library directory
, if not DIR
/lib
1454 Some influential environment variables
:
1455 CC C compiler
command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1458 nonstandard directory
<lib dir
>
1459 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1460 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1461 you have headers
in a nonstandard directory
<include dir
>
1463 YACC The
`Yet Another Compiler Compiler' implementation to use.
1464 Defaults to the first program found out of: `bison
-y', `byacc',
1466 YFLAGS The list of arguments that will be passed by default to $YACC.
1467 This script will default YFLAGS to the empty string to avoid a
1468 default value of `-d' given by some make applications.
1470 Use these variables to override the choices made by `configure' or to
help
1471 it to
find libraries and programs with nonstandard names
/locations.
1473 Report bugs to the package provider.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1489 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir
=$ac_pwd
1498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir
=$ac_top_build_prefix
1503 .
) # We are building in place.
1505 ac_top_srcdir
=$ac_top_builddir_sub
1506 ac_abs_top_srcdir
=$ac_pwd ;;
1507 [\\/]* | ?
:[\\/]* ) # Absolute name.
1508 ac_srcdir
=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir
=$srcdir
1510 ac_abs_top_srcdir
=$srcdir ;;
1512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 pcap configure
1.10.0-PRE-GIT
1537 generated by GNU Autoconf
2.69
1539 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1540 This configure
script is free software
; the Free Software Foundation
1541 gives unlimited permission to copy
, distribute and modify it.
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile
()
1555 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1556 rm -f conftest.
$ac_objext
1557 if { { ac_try
="$ac_compile"
1559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1586 } # ac_fn_c_try_compile
1588 # ac_fn_c_try_link LINENO
1589 # -----------------------
1590 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext conftest$ac_exeext
1595 if { { ac_try="$ac_link"
1597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1598 *) ac_try_echo
=$ac_try;;
1600 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>conftest.err
1604 if test -s conftest.err
; then
1605 grep -v '^ *+' conftest.err
>conftest.er1
1606 cat conftest.er1
>&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest
$ac_exeext && {
1614 test "$cross_compiling" = yes ||
1615 test -x conftest
$ac_exeext
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.
$ac_ext >&5
1624 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626 # interfere with the next link command; also delete a directory that is
1627 # left behind by Apple's compiler. We do this before executing the actions.
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status
$ac_retval
1632 } # ac_fn_c_try_link
1634 # ac_fn_c_try_cpp LINENO
1635 # ----------------------
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1640 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } > conftest.i && {
1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1671 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1674 # the include files in INCLUDES and setting the cache variable VAR
1676 ac_fn_c_check_header_mongrel ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if eval \${$3+:} false; then :
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1689 # Is the header compilable?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1691 $as_echo_n "checking $2 usability... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 ac_header_compiler=yes
1700 ac_header_compiler=no
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1704 $as_echo "$ac_header_compiler" >&6; }
1706 # Is the header present?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1708 $as_echo_n "checking $2 presence... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1713 if ac_fn_c_try_cpp "$LINENO"; then :
1714 ac_header_preproc=yes
1716 ac_header_preproc=no
1718 rm -f conftest.err conftest.i conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1720 $as_echo "$ac_header_preproc" >&6; }
1722 # So? What about this header?
1723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1726 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1732 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1734 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1736 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1738 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1748 eval "$3=\$ac_header_compiler"
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_mongrel
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
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_link") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=$ac_status
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_compile
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1854 # include <limits.h>
1856 # include <assert.h>
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1883 if ac_fn_c_try_link "$LINENO"; then :
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 } # ac_fn_c_check_func
1898 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1899 # ---------------------------------------------
1900 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1902 ac_fn_c_check_decl ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1906 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1908 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1918 #ifndef $as_decl_name
1920 (void) $as_decl_use;
1922 (void) $as_decl_name;
1930 if ac_fn_c_try_compile "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_decl
1944 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945 # -------------------------------------------
1946 # Tests whether TYPE exists after having included INCLUDES, setting cache
1947 # variable VAR accordingly.
1948 ac_fn_c_check_type ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1982 if ac_fn_c_try_compile "$LINENO"; then :
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_type
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2023 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2033 if (sizeof ac_aggr.$3)
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_member
2054 cat >config.log <<_ACEOF
2055 This file contains any messages produced by compilers while
2056 running configure, to aid debugging if configure makes a mistake.
2058 It was created by pcap $as_me 1.10.0-PRE-GIT, which was
2059 generated by GNU Autoconf 2.69. Invocation command line was
2071 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2072 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2073 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2074 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2075 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2077 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2078 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2080 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2081 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2082 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2083 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2084 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2085 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2086 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir=.
2095 $as_echo "PATH: $as_dir"
2111 # Keep a trace of the command line.
2112 # Strip out --no-create and --no-recursion so they do not pile up.
2113 # Strip out --silent because we don't want to record it for future runs.
2114 # Also quote any args containing shell meta-characters.
2115 # Make two passes to allow for proper duplicate-argument suppression.
2119 ac_must_keep_next=false
2125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2127 | -silent | --silent | --silen | --sile | --sil)
2130 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2135 as_fn_append ac_configure_args1 " '$ac_arg'"
2136 if test $ac_must_keep_next = true; then
2137 ac_must_keep_next=false # Got value, back to normal.
2140 *=* | --config-cache | -C | -disable-* | --disable-* \
2141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2143 | -with-* | --with-* | -without-* | --without-* | --x)
2144 case "$ac_configure_args0 " in
2145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2148 -* ) ac_must_keep_next=true ;;
2151 as_fn_append ac_configure_args " '$ac_arg'"
2156 { ac_configure_args0=; unset ac_configure_args0;}
2157 { ac_configure_args1=; unset ac_configure_args1;}
2159 # When interrupted or exit'd, cleanup temporary files, and complete
2160 # config.log. We remove comments because anyway the quotes in there
2161 # would cause problems or look ugly.
2162 # WARNING: Use '\'' to represent an apostrophe within the trap.
2163 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2164 trap 'exit_status=$?
2165 # Save into config.log some information that might help in debugging.
2169 $as_echo "## ---------------- ##
2170 ## Cache variables. ##
2171 ## ---------------- ##"
2173 # The following way of writing the cache mishandles newlines in values,
2175 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2176 eval ac_val=\$$ac_var
2180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2184 _ | IFS | as_nl) ;; #(
2185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2186 *) { eval $ac_var=; unset $ac_var;} ;;
2191 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2192 *${as_nl}ac_space=\ *)
2194 "s/'\''/'\''\\\\'\'''\''/g;
2195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 $as_echo "## ----------------- ##
2206 ## Output variables. ##
2207 ## ----------------- ##"
2209 for ac_var in $ac_subst_vars
2211 eval ac_val=\$$ac_var
2213 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 $as_echo "$ac_var='\''$ac_val'\''"
2219 if test -n "$ac_subst_files"; then
2220 $as_echo "## ------------------- ##
2221 ## File substitutions. ##
2222 ## ------------------- ##"
2224 for ac_var in $ac_subst_files
2226 eval ac_val=\$$ac_var
2228 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 $as_echo "$ac_var='\''$ac_val'\''"
2235 if test -s confdefs.h; then
2236 $as_echo "## ----------- ##
2243 test "$ac_signal" != 0 &&
2244 $as_echo "$as_me: caught signal $ac_signal"
2245 $as_echo "$as_me: exit $exit_status"
2247 rm -f core *.core core.conftest.* &&
2248 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2251 for ac_signal in 1 2 13 15; do
2252 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2257 rm -f -r conftest* confdefs.h
2259 $as_echo "/* confdefs.h */" > confdefs.h
2261 # Predefined preprocessor variables.
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_NAME "$PACKAGE_NAME"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_STRING "$PACKAGE_STRING"
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_URL "$PACKAGE_URL"
2288 # Let the site file select an alternate cache file if it wants to.
2289 # Prefer an explicitly selected file to automatically selected ones.
2292 if test -n "$CONFIG_SITE"; then
2293 # We do not want a PATH search for config.site.
2294 case $CONFIG_SITE in #((
2295 -*) ac_site_file1=./$CONFIG_SITE;;
2296 */*) ac_site_file1=$CONFIG_SITE;;
2297 *) ac_site_file1=./$CONFIG_SITE;;
2299 elif test "x$prefix" != xNONE; then
2300 ac_site_file1=$prefix/share/config.site
2301 ac_site_file2=$prefix/etc/config.site
2303 ac_site_file1=$ac_default_prefix/share/config.site
2304 ac_site_file2=$ac_default_prefix/etc/config.site
2306 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308 test "x$ac_site_file" = xNONE && continue
2309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2311 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2312 sed 's/^/| /' "$ac_site_file" >&5
2314 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316 as_fn_error $? "failed to load site
script $ac_site_file
2317 See \
`config.log' for more details" "$LINENO" 5; }
2321 if test -r "$cache_file"; then
2322 # Some versions of bash will fail to source /dev/null (special files
2323 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2326 $as_echo "$as_me: loading cache $cache_file" >&6;}
2328 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2329 *) . "./$cache_file";;
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2334 $as_echo "$as_me: creating cache $cache_file" >&6;}
2338 # Check that the precious variables saved in the cache have kept the same
2340 ac_cache_corrupted=false
2341 for ac_var in $ac_precious_vars; do
2342 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2343 eval ac_new_set=\$ac_env_${ac_var}_set
2344 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2345 eval ac_new_val=\$ac_env_${ac_var}_value
2346 case $ac_old_set,$ac_new_set in
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2349 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2353 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2354 ac_cache_corrupted=: ;;
2357 if test "x$ac_old_val" != "x$ac_new_val"; then
2358 # differences in whitespace do not lead to failure.
2359 ac_old_val_w=`echo x
$ac_old_val`
2360 ac_new_val_w=`echo x
$ac_new_val`
2361 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2363 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2364 ac_cache_corrupted=:
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2367 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2368 eval $ac_var=\$ac_old_val
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2371 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2373 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2376 # Pass precious variables to config.status.
2377 if test "$ac_new_set" = set; then
2379 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2380 *) ac_arg=$ac_var=$ac_new_val ;;
2382 case " $ac_configure_args " in
2383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2384 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2388 if $ac_cache_corrupted; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2392 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2393 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2395 ## -------------------- ##
2396 ## Main body of script. ##
2397 ## -------------------- ##
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2411 if test -f "$ac_dir/install-sh"; then
2413 ac_install_sh="$ac_aux_dir/install-sh -c"
2415 elif test -f "$ac_dir/install.sh"; then
2417 ac_install_sh="$ac_aux_dir/install.sh -c"
2419 elif test -f "$ac_dir/shtool"; then
2421 ac_install_sh="$ac_aux_dir/shtool install -c"
2425 if test -z "$ac_aux_dir"; then
2426 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2429 # These three variables are undocumented and unsupported,
2430 # and are intended to be withdrawn in a future Autoconf release.
2431 # They can cause serious problems if a builder's source tree is in a directory
2432 # whose full name contains unusual characters.
2433 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2434 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2435 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2438 # Make sure we can run config.sub.
2439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2440 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2443 $as_echo_n "checking build system type... " >&6; }
2444 if ${ac_cv_build+:} false; then :
2445 $as_echo_n "(cached) " >&6
2447 ac_build_alias=$build_alias
2448 test "x$ac_build_alias" = x &&
2449 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2450 test "x$ac_build_alias" = x &&
2451 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2457 $as_echo "$ac_cv_build" >&6; }
2458 case $ac_cv_build in
2460 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2463 ac_save_IFS=$IFS; IFS='-'
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2473 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2477 $as_echo_n "checking host system type... " >&6; }
2478 if ${ac_cv_host+:} false; then :
2479 $as_echo_n "(cached) " >&6
2481 if test "x$host_alias" = x; then
2482 ac_cv_host=$ac_cv_build
2484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2490 $as_echo "$ac_cv_host" >&6; }
2493 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2496 ac_save_IFS=$IFS; IFS='-'
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2506 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2510 $as_echo_n "checking target system type... " >&6; }
2511 if ${ac_cv_target+:} false; then :
2512 $as_echo_n "(cached) " >&6
2514 if test "x$target_alias" = x; then
2515 ac_cv_target=$ac_cv_host
2517 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2523 $as_echo "$ac_cv_target" >&6; }
2524 case $ac_cv_target in
2526 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2528 target=$ac_cv_target
2529 ac_save_IFS=$IFS; IFS='-'
2535 # Remember, the first character of IFS is used to create $*,
2536 # except with old shells:
2539 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2542 # The aliases save the names the user supplied, while $host etc.
2543 # will get canonicalized.
2544 test -n "$target_alias" &&
2545 test "$program_prefix$program_suffix$program_transform_name" = \
2547 program_prefix=${target_alias}-
2556 # Check whether --with-gcc was given.
2557 if test "${with_gcc+set}" = set; then :
2562 if test "${srcdir}" != "." ; then
2563 V_CCOPT="-I\$(srcdir)"
2565 if test "${CFLAGS+set}" = set; then
2566 LBL_CFLAGS="$CFLAGS"
2568 if test -z "$CC" ; then
2572 # Extract the first word of "shlicc2", so it can be a program name with args.
2573 set dummy shlicc2; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_SHLICC2+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 if test -n "$SHLICC2"; then
2580 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_SHLICC2="yes"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2600 SHLICC2=$ac_cv_prog_SHLICC2
2601 if test -n "$SHLICC2"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2603 $as_echo "$SHLICC2" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2610 if test $SHLICC2 = yes ; then
2617 if test -z "$CC" -a "$with_gcc" = no ; then
2623 # Try to enable as many C99 features as we can.
2624 # At minimum, we want C++/C99-style // comments.
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2670 if test -z "$ac_cv_prog_CC"; then
2672 # Extract the first word of "gcc", so it can be a program name with args.
2673 set dummy gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$ac_ct_CC"; then
2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_ac_ct_CC="gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700 if test -n "$ac_ct_CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2702 $as_echo "$ac_ct_CC" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2708 if test "x$ac_ct_CC" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2723 if test -z "$CC"; then
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}cc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="${ac_tool_prefix}cc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2764 if test -z "$CC"; then
2765 # Extract the first word of "cc", so it can be a program name with args.
2766 set dummy cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CC+:} false; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2784 ac_prog_rejected=yes
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test $ac_prog_rejected = yes; then
2796 # We found a bogon in the path, so make sure we never use it.
2797 set dummy $ac_cv_prog_CC
2799 if test $# != 0; then
2800 # We chose a different compiler from the bogus one.
2801 # However, it has the same basename, so the bogon will be chosen
2802 # first if we set CC to just the basename; use the full file name.
2804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in cl.exe
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2861 test -n "$CC" && break
2864 if test -z "$CC"; then
2866 for ac_prog in cl.exe
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2898 $as_echo "$ac_ct_CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2905 test -n "$ac_ct_CC" && break
2908 if test "x$ac_ct_CC" = x; then
2911 case $cross_compiling:$ac_tool_warned in
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2927 See \
`config.log' for more details" "$LINENO" 5; }
2929 # Provide some information about the compiler.
2930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2933 for ac_option in --version -v -V -qversion; do
2934 { { ac_try="$ac_compiler $ac_option >&5"
2936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2937 *) ac_try_echo
=$ac_try;;
2939 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940 $as_echo "$ac_try_echo"; } >&5
2941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2943 if test -s conftest.err
; then
2945 ... rest of stderr output deleted ...
2946 10q' conftest.err
>conftest.er1
2947 cat conftest.er1
>&5
2949 rm -f conftest.er1 conftest.err
2950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2951 test $ac_status = 0; }
2954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2965 ac_clean_files_save
=$ac_clean_files
2966 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2967 # Try to create an executable without -o first, disregard a.out.
2968 # It will help us diagnose broken compilers, and finding out an intuition
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2971 $as_echo_n "checking whether the C compiler works... " >&6; }
2972 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2974 # The possible output files:
2975 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2978 for ac_file
in $ac_files
2981 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2982 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2987 if { { ac_try
="$ac_link_default"
2989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_link_default") 2>&5
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }; then :
2998 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2999 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3000 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3001 # so that the user can short-circuit this test for compilers unknown to
3003 for ac_file in $ac_files ''
3005 test -f "$ac_file" || continue
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3010 # We found the default executable, but exeext='' is most
3014 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3016 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 # We set ac_cv_exeext here because the later test for it is not
3019 # safe: cross compilers may not add the suffix if given an `-o'
3020 # argument, so we may need to know it at that point already.
3021 # Even if this section looks crufty: it has the advantage of
3028 test "$ac_cv_exeext" = no && ac_cv_exeext=
3033 if test -z "$ac_file"; then :
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's
/^
/|
/' conftest.$ac_ext >&5
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3041 as_fn_error 77 "C compiler cannot create executables
3042 See \`config.log
' for more details" "$LINENO" 5; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3045 $as_echo "yes" >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3048 $as_echo_n "checking for C compiler default output file name... " >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3050 $as_echo "$ac_file" >&6; }
3051 ac_exeext=$ac_cv_exeext
3053 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3054 ac_clean_files=$ac_clean_files_save
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3056 $as_echo_n "checking for suffix of executables... " >&6; }
3057 if { { ac_try="$ac_link"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 $as_echo "$ac_try_echo"; } >&5
3064 (eval "$ac_link") 2>&5
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }; then :
3068 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3069 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3072 for ac_file
in conftest.exe conftest conftest.
*; do
3073 test -f "$ac_file" ||
continue
3075 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3076 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details" "$LINENO" 5; }
3087 rm -f conftest conftest
$ac_cv_exeext
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3089 $as_echo "$ac_cv_exeext" >&6; }
3091 rm -f conftest.
$ac_ext
3092 EXEEXT
=$ac_cv_exeext
3094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3100 FILE *f = fopen ("conftest.out", "w");
3101 return ferror (f) || fclose (f) != 0;
3107 ac_clean_files
="$ac_clean_files conftest.out"
3108 # Check that the compiler produces executables we can run. If not, either
3109 # the compiler is broken, or we cross compile.
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3111 $as_echo_n "checking whether we are cross compiling... " >&6; }
3112 if test "$cross_compiling" != yes; then
3113 { { ac_try
="$ac_link"
3115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link") 2>&5
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3124 if { ac_try='./conftest$ac_cv_exeext'
3125 { { case "(($ac_try" in
3126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3127 *) ac_try_echo
=$ac_try;;
3129 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_try") 2>&5
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; }; then
3137 if test "$cross_compiling" = maybe
; then
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $?
"cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details" "$LINENO" 5; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3149 $as_echo "$cross_compiling" >&6; }
3151 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3152 ac_clean_files
=$ac_clean_files_save
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3154 $as_echo_n "checking for suffix of object files... " >&6; }
3155 if ${ac_cv_objext+:} false
; then :
3156 $as_echo_n "(cached) " >&6
3158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3169 rm -f conftest.o conftest.obj
3170 if { { ac_try
="$ac_compile"
3172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compile") 2>&5
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
3181 for ac_file in conftest.o conftest.obj conftest.*; do
3182 test -f "$ac_file" || continue;
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3196 See \
`config.log' for more details" "$LINENO" 5; }
3198 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3201 $as_echo "$ac_cv_objext" >&6; }
3202 OBJEXT=$ac_cv_objext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3205 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3206 if ${ac_cv_c_compiler_gnu+:} false; then :
3207 $as_echo_n "(cached) " >&6
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3223 if ac_fn_c_try_compile "$LINENO"; then :
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234 if test $ac_compiler_gnu = yes; then
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3243 if ${ac_cv_prog_cc_g+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3261 if ac_fn_c_try_compile "$LINENO"; then :
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3276 if ac_fn_c_try_compile "$LINENO"; then :
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 if ac_fn_c_try_compile "$LINENO"; then :
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3303 $as_echo "$ac_cv_prog_cc_g" >&6; }
3304 if test "$ac_test_CFLAGS" = set; then
3305 CFLAGS=$ac_save_CFLAGS
3306 elif test $ac_cv_prog_cc_g = yes; then
3307 if test "$GCC" = yes; then
3313 if test "$GCC" = yes; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3320 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3321 if ${ac_cv_prog_cc_c89+:} false; then :
3322 $as_echo_n "(cached) " >&6
3324 ac_cv_prog_cc_c89=no
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3345 s = g (p, va_arg (v,int));
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 if ac_fn_c_try_compile "$LINENO"; then :
3383 ac_cv_prog_cc_c89=$ac_arg
3385 rm -f core conftest.err conftest.$ac_objext
3386 test "x$ac_cv_prog_cc_c89" != "xno" && break
3388 rm -f conftest.$ac_ext
3393 case "x$ac_cv_prog_cc_c89" in
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396 $as_echo "none needed" >&6; } ;;
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399 $as_echo "unsupported" >&6; } ;;
3401 CC="$CC $ac_cv_prog_cc_c89"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3405 if test "x$ac_cv_prog_cc_c89" != xno; then :
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3416 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3417 if ${ac_cv_prog_cc_c99+:} false; then :
3418 $as_echo_n "(cached) " >&6
3420 ac_cv_prog_cc_c99=no
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3425 #include <stdbool.h>
3430 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3431 #define debug(...) fprintf (stderr, __VA_ARGS__)
3432 #define showlist(...) puts (#__VA_ARGS__)
3433 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3435 test_varargs_macros (void)
3440 debug ("X = %d\n", x);
3441 showlist (The first, second, and third items.);
3442 report (x>y, "x is %d but y is %d", x, y);
3445 // Check long long types.
3446 #define BIG64 18446744073709551615ull
3447 #define BIG32 4294967295ul
3448 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3450 your preprocessor is broken;
3454 your preprocessor is broken;
3456 static long long int bignum = -9223372036854775807LL;
3457 static unsigned long long int ubignum = BIG64;
3459 struct incomplete_array
3467 const wchar_t *name;
3471 typedef const char *ccp;
3474 test_restrict (ccp restrict text)
3476 // See if C++-style comments work.
3477 // Iterate through items via the restricted pointer.
3478 // Also check for declarations in for loops.
3479 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3484 // Check varargs and va_copy.
3486 test_varargs (const char *format, ...)
3489 va_start (args, format);
3491 va_copy (args_copy, args);
3502 str = va_arg (args_copy, const char *);
3505 number = va_arg (args_copy, int);
3508 fnumber = va_arg (args_copy, double);
3523 _Bool success = false;
3526 if (test_restrict ("String literal") == 0)
3528 char *restrict newvar = "Another string";
3531 test_varargs ("s, d' f .", "string", 65, 34.234);
3532 test_varargs_macros ();
3534 // Check flexible array members.
3535 struct incomplete_array *ia =
3536 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3538 for (int i = 0; i < ia->datasize; ++i)
3539 ia->data[i] = i * 1.234;
3541 // Check named initializers.
3542 struct named_init ni = {
3544 .name = L"Test wide string",
3545 .average = 543.34343,
3550 int dynamic_array[ni.number];
3551 dynamic_array[ni.number - 1] = 543;
3553 // work around unused variable warnings
3554 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3555 || dynamic_array[ni.number - 1] != 543);
3561 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3563 CC="$ac_save_CC $ac_arg"
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_c99=$ac_arg
3567 rm -f core conftest.err conftest.$ac_objext
3568 test "x$ac_cv_prog_cc_c99" != "xno" && break
3570 rm -f conftest.$ac_ext
3575 case "x$ac_cv_prog_cc_c99" in
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3578 $as_echo "none needed" >&6; } ;;
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3581 $as_echo "unsupported" >&6; } ;;
3583 CC="$CC $ac_cv_prog_cc_c99"
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3585 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3587 if test "x$ac_cv_prog_cc_c99" != xno; then :
3592 if test "$ac_cv_prog_cc_c99" = "no"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3594 $as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3601 if test "$GCC" = yes ; then
3603 # -Werror forces warnings to be errors.
3605 ac_lbl_cc_force_warning_errors=-Werror
3608 # Try to have the compiler default to hiding symbols,
3609 # so that only symbols explicitly exported with
3610 # PCAP_API will be visible outside (shared) libraries.
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3614 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3615 save_CFLAGS="$CFLAGS"
3616 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3618 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3619 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3621 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3622 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3624 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3626 CFLAGS="$CFLAGS -fvisibility=hidden"
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3639 if ac_fn_c_try_compile "$LINENO"; then :
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3643 can_add_to_cflags=yes
3645 # The compile supports this; do we have some C code for
3646 # which the warning should *not* appear?
3647 # We test the fourth argument because the third argument
3648 # could contain quotes, breaking the test.
3652 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3654 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3659 if ac_fn_c_try_compile "$LINENO"; then :
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3674 can_add_to_cflags=no
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 CFLAGS="$save_CFLAGS"
3680 if test x"$can_add_to_cflags" = "xyes"
3682 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 CFLAGS="$save_CFLAGS"
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 V_INCLS="$V_INCLS -I/usr/local/include"
3696 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3702 # This is assumed either to be GCC or clang, both
3703 # of which use -Werror to force warnings to be errors.
3705 ac_lbl_cc_force_warning_errors=-Werror
3708 # Try to have the compiler default to hiding symbols,
3709 # so that only symbols explicitly exported with
3710 # PCAP_API will be visible outside (shared) libraries.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3714 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3715 save_CFLAGS="$CFLAGS"
3716 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3718 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3719 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3721 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3722 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3724 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3726 CFLAGS="$CFLAGS -fvisibility=hidden"
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3739 if ac_fn_c_try_compile "$LINENO"; then :
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742 $as_echo "yes" >&6; }
3743 can_add_to_cflags=yes
3745 # The compile supports this; do we have some C code for
3746 # which the warning should *not* appear?
3747 # We test the fourth argument because the third argument
3748 # could contain quotes, breaking the test.
3752 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3754 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3759 if ac_fn_c_try_compile "$LINENO"; then :
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 $as_echo "yes" >&6; }
3774 can_add_to_cflags=no
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 CFLAGS="$save_CFLAGS"
3780 if test x"$can_add_to_cflags" = "xyes"
3782 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 CFLAGS="$save_CFLAGS"
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 # HP C, which is what we presume we're using, doesn't
3799 # exit with a non-zero exit status if we hand it an
3800 # invalid -W flag, can't be forced to do so even with
3801 # +We, and doesn't handle GCC-style -W flags, so we
3802 # don't want to try using GCC-style -W flags.
3804 ac_lbl_cc_dont_try_gcc_dashW=yes
3809 # MIPS C, which is what we presume we're using, doesn't
3810 # necessarily exit with a non-zero exit status if we
3811 # hand it an invalid -W flag, can't be forced to do
3812 # so, and doesn't handle GCC-style -W flags, so we
3813 # don't want to try using GCC-style -W flags.
3815 ac_lbl_cc_dont_try_gcc_dashW=yes
3817 # It also, apparently, defaults to "char" being
3818 # unsigned, unlike most other C implementations;
3819 # I suppose we could say "signed char" whenever
3820 # we want to guarantee a signed "char", but let's
3821 # just force signed chars.
3823 # -xansi is normally the default, but the
3824 # configure script was setting it; perhaps -cckr
3825 # was the default in the Old Days. (Then again,
3826 # that would probably be for backwards compatibility
3827 # in the days when ANSI C was Shiny and New, i.e.
3828 # 1989 and the early '90's, so maybe we can just
3829 # drop support for those compilers.)
3831 # -g is equivalent to -g2, which turns off
3832 # optimization; we choose -g3, which generates
3833 # debugging information but doesn't turn off
3834 # optimization (even if the optimization would
3835 # cause inaccuracies in debugging).
3837 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3842 # Presumed to be DEC OSF/1, Digital UNIX, or
3845 # The DEC C compiler, which is what we presume we're
3846 # using, doesn't exit with a non-zero exit status if we
3847 # hand it an invalid -W flag, can't be forced to do
3848 # so, and doesn't handle GCC-style -W flags, so we
3849 # don't want to try using GCC-style -W flags.
3851 ac_lbl_cc_dont_try_gcc_dashW=yes
3853 # -g is equivalent to -g2, which turns off
3854 # optimization; we choose -g3, which generates
3855 # debugging information but doesn't turn off
3856 # optimization (even if the optimization would
3857 # cause inaccuracies in debugging).
3859 V_CCOPT="$V_CCOPT -g3"
3864 # Assumed to be Sun C, which requires -errwarn to force
3865 # warnings to be treated as errors.
3867 ac_lbl_cc_force_warning_errors=-errwarn
3870 # Try to have the compiler default to hiding symbols,
3871 # so that only symbols explicitly exported with
3872 # PCAP_API will be visible outside (shared) libraries.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3876 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3877 save_CFLAGS="$CFLAGS"
3878 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3880 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3881 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3883 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3884 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3886 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3888 CFLAGS="$CFLAGS -xldscope=hidden"
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3901 if ac_fn_c_try_compile "$LINENO"; then :
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905 can_add_to_cflags=yes
3907 # The compile supports this; do we have some C code for
3908 # which the warning should *not* appear?
3909 # We test the fourth argument because the third argument
3910 # could contain quotes, breaking the test.
3914 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3916 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3921 if ac_fn_c_try_compile "$LINENO"; then :
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936 can_add_to_cflags=no
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 CFLAGS="$save_CFLAGS"
3942 if test x"$can_add_to_cflags" = "xyes"
3944 V_CCOPT="$V_CCOPT -xldscope=hidden"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 CFLAGS="$save_CFLAGS"
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3960 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3961 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3962 $as_echo_n "(cached) " >&6
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <sys/types.h>
3970 struct a { int b; };
3971 void c(const struct a *)
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_lbl_cc_const_proto=yes
3979 ac_cv_lbl_cc_const_proto=no
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3985 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3986 if test $ac_cv_lbl_cc_const_proto = no ; then
3988 $as_echo "#define const /**/" >>confdefs.h
3993 V_CCOPT="$V_CCOPT -O"
3997 if test "$GCC" = yes ; then
3999 # On platforms where we build a shared library:
4001 # add options to generate position-independent code,
4002 # if necessary (it's the default in AIX and Darwin/macOS);
4004 # define option to set the soname of the shared library,
4005 # if the OS supports that;
4007 # add options to specify, at link time, a directory to
4008 # add to the run-time search path, if that's necessary.
4010 V_SHLIB_CMD="\$(CC)"
4011 V_SHLIB_OPT="-shared"
4017 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
4019 # Platforms where the linker is the GNU linker
4020 # or accepts command-line arguments like
4021 # those the GNU linker accepts.
4023 # Some instruction sets require -fPIC on some
4024 # operating systems. Check for them. If you
4025 # have a combination that requires it, add it
4040 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4041 V_SONAME_OPT="-Wl,-soname,"
4042 V_RPATH_OPT="-Wl,-rpath,"
4046 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4048 # XXX - this assumes GCC is using the HP linker,
4049 # rather than the GNU linker, and that the "+h"
4050 # option is used on all HP-UX platforms, both .sl
4053 V_SONAME_OPT="-Wl,+h,"
4055 # By default, directories specifed with -L
4056 # are added to the run-time search path, so
4057 # we don't add them in pcap-config.
4062 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4064 # XXX - this assumes GCC is using the Sun linker,
4065 # rather than the GNU linker.
4067 V_SONAME_OPT="-Wl,-h,"
4068 V_RPATH_OPT="-Wl,-R,"
4073 # Set the appropriate compiler flags and, on platforms
4074 # where we build a shared library:
4076 # add options to generate position-independent code,
4077 # if necessary (it's the default in Darwin/macOS);
4079 # if we generate ".so" shared libraries, define the
4080 # appropriate options for building the shared library;
4082 # add options to specify, at link time, a directory to
4083 # add to the run-time search path, if that's necessary.
4085 # Note: spaces after V_SONAME_OPT are significant; on
4086 # some platforms the soname is passed with a GCC-like
4087 # "-Wl,-soname,{soname}" option, with the soname part
4088 # of the option, while on other platforms the C compiler
4089 # driver takes it as a regular option with the soname
4090 # following the option. The same applies to V_RPATH_OPT.
4095 V_SHLIB_CMD="\$(CC)"
4096 V_SHLIB_OPT="-G -bnoentry -bexpall"
4099 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4103 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4104 V_SHLIB_CMD="\$(CC)"
4105 V_SHLIB_OPT="-shared"
4106 V_SONAME_OPT="-Wl,-soname,"
4107 V_RPATH_OPT="-Wl,-rpath,"
4111 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4112 V_SHLIB_CMD="\$(LD)"
4116 # By default, directories specifed with -L
4117 # are added to the run-time search path, so
4118 # we don't add them in pcap-config.
4124 # Presumed to be DEC OSF/1, Digital UNIX, or
4127 V_SHLIB_CMD="\$(CC)"
4128 V_SHLIB_OPT="-shared"
4129 V_SONAME_OPT="-soname "
4130 V_RPATH_OPT="-rpath "
4134 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4135 V_SHLIB_CMD="\$(CC)"
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4144 $as_echo_n "checking for inline... " >&6; }
4145 save_CFLAGS="$CFLAGS"
4147 if ${ac_cv_lbl_inline+:} false; then :
4148 $as_echo_n "(cached) " >&6
4153 for ac_lbl_inline in inline __inline__ __inline
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #define inline $ac_lbl_inline
4158 static inline struct iltest *foo(void);
4164 static inline struct iltest *
4167 static struct iltest xxx;
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_lbl_cc_inline=yes
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 if test "$ac_lbl_cc_inline" = yes ; then
4187 if test "$ac_lbl_cc_inline" = yes ; then
4188 ac_cv_lbl_inline=$ac_lbl_inline
4192 CFLAGS="$save_CFLAGS"
4193 if test ! -z "$ac_cv_lbl_inline" ; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4195 $as_echo "$ac_cv_lbl_inline" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4201 cat >>confdefs.h <<_ACEOF
4202 #define inline $ac_cv_lbl_inline
4207 # Try to arrange for large file support.
4209 # Check whether --enable-largefile was given.
4210 if test "${enable_largefile+set}" = set; then :
4211 enableval=$enable_largefile;
4214 if test "$enable_largefile" != no; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4217 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4218 if ${ac_cv_sys_largefile_CC+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 ac_cv_sys_largefile_CC=no
4222 if test "$GCC" != yes; then
4225 # IRIX 6.2 and later do not support large files by default,
4226 # so use the C compiler's -n32 option if that helps.
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <sys/types.h>
4230 /* Check that off_t can represent 2**63 - 1 correctly.
4231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4232 since some C++ compilers masquerading as C compilers
4233 incorrectly reject 9223372036854775807. */
4234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4236 && LARGE_OFF_T % 2147483647 == 1)
4246 if ac_fn_c_try_compile "$LINENO"; then :
4249 rm -f core conftest.err conftest.$ac_objext
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_sys_largefile_CC=' -n32'; break
4254 rm -f core conftest.err conftest.$ac_objext
4258 rm -f conftest.$ac_ext
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4262 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4263 if test "$ac_cv_sys_largefile_CC" != no; then
4264 CC=$CC$ac_cv_sys_largefile_CC
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4268 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4269 if ${ac_cv_sys_file_offset_bits+:} false; then :
4270 $as_echo_n "(cached) " >&6
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <sys/types.h>
4276 /* Check that off_t can represent 2**63 - 1 correctly.
4277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4278 since some C++ compilers masquerading as C compilers
4279 incorrectly reject 9223372036854775807. */
4280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4282 && LARGE_OFF_T % 2147483647 == 1)
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_sys_file_offset_bits=no; break
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #define _FILE_OFFSET_BITS 64
4299 #include <sys/types.h>
4300 /* Check that off_t can represent 2**63 - 1 correctly.
4301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4302 since some C++ compilers masquerading as C compilers
4303 incorrectly reject 9223372036854775807. */
4304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4306 && LARGE_OFF_T % 2147483647 == 1)
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317 ac_cv_sys_file_offset_bits=64; break
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 ac_cv_sys_file_offset_bits=unknown
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4325 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4326 case $ac_cv_sys_file_offset_bits in #(
4329 cat >>confdefs.h <<_ACEOF
4330 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4335 if test $ac_cv_sys_file_offset_bits = unknown; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4337 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4338 if ${ac_cv_sys_large_files+:} false; then :
4339 $as_echo_n "(cached) " >&6
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <sys/types.h>
4345 /* Check that off_t can represent 2**63 - 1 correctly.
4346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4347 since some C++ compilers masquerading as C compilers
4348 incorrectly reject 9223372036854775807. */
4349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4351 && LARGE_OFF_T % 2147483647 == 1)
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_cv_sys_large_files=no; break
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #define _LARGE_FILES 1
4368 #include <sys/types.h>
4369 /* Check that off_t can represent 2**63 - 1 correctly.
4370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4371 since some C++ compilers masquerading as C compilers
4372 incorrectly reject 9223372036854775807. */
4373 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4375 && LARGE_OFF_T % 2147483647 == 1)
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_sys_large_files=1; break
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 ac_cv_sys_large_files=unknown
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4394 $as_echo "$ac_cv_sys_large_files" >&6; }
4395 case $ac_cv_sys_large_files in #(
4398 cat >>confdefs.h <<_ACEOF
4399 #define _LARGE_FILES $ac_cv_sys_large_files
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4410 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4411 if ${ac_cv_sys_largefile_source+:} false; then :
4412 $as_echo_n "(cached) " >&6
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <sys/types.h> /* for off_t */
4422 int (*fp) (FILE *, off_t, int) = fseeko;
4423 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4428 if ac_fn_c_try_link "$LINENO"; then :
4429 ac_cv_sys_largefile_source=no; break
4431 rm -f core conftest.err conftest.$ac_objext \
4432 conftest$ac_exeext conftest.$ac_ext
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #define _LARGEFILE_SOURCE 1
4436 #include <sys/types.h> /* for off_t */
4441 int (*fp) (FILE *, off_t, int) = fseeko;
4442 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4447 if ac_fn_c_try_link "$LINENO"; then :
4448 ac_cv_sys_largefile_source=1; break
4450 rm -f core conftest.err conftest.$ac_objext \
4451 conftest$ac_exeext conftest.$ac_ext
4452 ac_cv_sys_largefile_source=unknown
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4457 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4458 case $ac_cv_sys_largefile_source in #(
4461 cat >>confdefs.h <<_ACEOF
4462 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4468 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4469 # in glibc 2.1.3, but that breaks too many other things.
4470 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4471 if test $ac_cv_sys_largefile_source != unknown; then
4473 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4485 # On Suns, sometimes $CPP names a directory.
4486 if test -n "$CPP" && test -d "$CPP"; then
4489 if test -z "$CPP"; then
4490 if ${ac_cv_prog_CPP+:} false; then :
4491 $as_echo_n "(cached) " >&6
4493 # Double quotes because CPP needs to be expanded
4494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4497 for ac_c_preproc_warn_flag in '' yes
4499 # Use a header file that comes with gcc, so configuring glibc
4500 # with a fresh cross-compiler works.
4501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4502 # <limits.h> exists even on freestanding compilers.
4503 # On the NeXT, cc -E runs the code through the compiler's parser,
4504 # not just through cpp. "Syntax error" is here to catch this case.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4508 # include <limits.h>
4510 # include <assert.h>
4514 if ac_fn_c_try_cpp "$LINENO"; then :
4517 # Broken: fails on valid input.
4520 rm -f conftest.err conftest.i conftest.$ac_ext
4522 # OK, works on sane cases. Now check whether nonexistent headers
4523 # can be detected and how.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #include <ac_nonexistent.h>
4528 if ac_fn_c_try_cpp "$LINENO"; then :
4529 # Broken: success on invalid input.
4532 # Passes both tests.
4536 rm -f conftest.err conftest.i conftest.$ac_ext
4539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4540 rm -f conftest.i conftest.err conftest.
$ac_ext
4541 if $ac_preproc_ok; then :
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4554 $as_echo "$CPP" >&6; }
4556 for ac_c_preproc_warn_flag
in '' yes
4558 # Use a header file that comes with gcc, so configuring glibc
4559 # with a fresh cross-compiler works.
4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4561 # <limits.h> exists even on freestanding compilers.
4562 # On the NeXT, cc -E runs the code through the compiler's parser,
4563 # not just through cpp. "Syntax error" is here to catch this case.
4564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4567 # include <limits.h>
4569 # include <assert.h>
4573 if ac_fn_c_try_cpp
"$LINENO"; then :
4576 # Broken: fails on valid input.
4579 rm -f conftest.err conftest.i conftest.
$ac_ext
4581 # OK, works on sane cases. Now check whether nonexistent headers
4582 # can be detected and how.
4583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <ac_nonexistent.h>
4587 if ac_fn_c_try_cpp
"$LINENO"; then :
4588 # Broken: success on invalid input.
4591 # Passes both tests.
4595 rm -f conftest.err conftest.i conftest.
$ac_ext
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.i conftest.err conftest.
$ac_ext
4600 if $ac_preproc_ok; then :
4603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4606 See \`config.log' for more details" "$LINENO" 5; }
4610 ac_cpp
='$CPP $CPPFLAGS'
4611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4618 if ${ac_cv_path_GREP+:} false
; then :
4619 $as_echo_n "(cached) " >&6
4621 if test -z "$GREP"; then
4622 ac_path_GREP_found
=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4625 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4628 test -z "$as_dir" && as_dir
=.
4629 for ac_prog
in grep ggrep
; do
4630 for ac_exec_ext
in '' $ac_executable_extensions; do
4631 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4632 as_fn_executable_p
"$ac_path_GREP" ||
continue
4633 # Check for GNU ac_path_GREP and select it if it is found.
4634 # Check for GNU $ac_path_GREP
4635 case `"$ac_path_GREP" --version 2>&1` in
4637 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4640 $as_echo_n 0123456789 >"conftest.in"
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo 'GREP' >> "conftest.nl"
4647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4648 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4649 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_GREP
="$ac_path_GREP"
4653 ac_path_GREP_max
=$ac_count
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4658 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4661 $ac_path_GREP_found && break 3
4666 if test -z "$ac_cv_path_GREP"; then
4667 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670 ac_cv_path_GREP
=$GREP
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4675 $as_echo "$ac_cv_path_GREP" >&6; }
4676 GREP
="$ac_cv_path_GREP"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4680 $as_echo_n "checking for egrep... " >&6; }
4681 if ${ac_cv_path_EGREP+:} false
; then :
4682 $as_echo_n "(cached) " >&6
4684 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4685 then ac_cv_path_EGREP
="$GREP -E"
4687 if test -z "$EGREP"; then
4688 ac_path_EGREP_found
=false
4689 # Loop through the user's path and test for each of PROGNAME-LIST
4690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4691 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4694 test -z "$as_dir" && as_dir
=.
4695 for ac_prog
in egrep; do
4696 for ac_exec_ext
in '' $ac_executable_extensions; do
4697 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4698 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4699 # Check for GNU ac_path_EGREP and select it if it is found.
4700 # Check for GNU $ac_path_EGREP
4701 case `"$ac_path_EGREP" --version 2>&1` in
4703 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4706 $as_echo_n 0123456789 >"conftest.in"
4709 cat "conftest.in" "conftest.in" >"conftest.tmp"
4710 mv "conftest.tmp" "conftest.in"
4711 cp "conftest.in" "conftest.nl"
4712 $as_echo 'EGREP' >> "conftest.nl"
4713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4714 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4715 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4717 # Best one so far, save it but keep looking for a better one
4718 ac_cv_path_EGREP
="$ac_path_EGREP"
4719 ac_path_EGREP_max
=$ac_count
4721 # 10*(2^10) chars as input seems more than enough
4722 test $ac_count -gt 10 && break
4724 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4727 $ac_path_EGREP_found && break 3
4732 if test -z "$ac_cv_path_EGREP"; then
4733 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 ac_cv_path_EGREP
=$EGREP
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4742 $as_echo "$ac_cv_path_EGREP" >&6; }
4743 EGREP
="$ac_cv_path_EGREP"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4747 $as_echo_n "checking for ANSI C header files... " >&6; }
4748 if ${ac_cv_header_stdc+:} false
; then :
4749 $as_echo_n "(cached) " >&6
4751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4766 if ac_fn_c_try_compile
"$LINENO"; then :
4767 ac_cv_header_stdc
=yes
4769 ac_cv_header_stdc
=no
4771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4773 if test $ac_cv_header_stdc = yes; then
4774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 $EGREP "memchr" >/dev
/null
2>&1; then :
4784 ac_cv_header_stdc
=no
4790 if test $ac_cv_header_stdc = yes; then
4791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798 $EGREP "free" >/dev
/null
2>&1; then :
4801 ac_cv_header_stdc
=no
4807 if test $ac_cv_header_stdc = yes; then
4808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4809 if test "$cross_compiling" = yes; then :
4812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4816 #if ((' ' & 0x0FF) == 0x020)
4817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4820 # define ISLOWER(c) \
4821 (('a' <= (c) && (c) <= 'i') \
4822 || ('j' <= (c) && (c) <= 'r') \
4823 || ('s' <= (c) && (c) <= 'z'))
4824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4832 for (i = 0; i < 256; i++)
4833 if (XOR (islower (i), ISLOWER (i))
4834 || toupper (i) != TOUPPER (i))
4839 if ac_fn_c_try_run
"$LINENO"; then :
4842 ac_cv_header_stdc
=no
4844 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4845 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4851 $as_echo "$ac_cv_header_stdc" >&6; }
4852 if test $ac_cv_header_stdc = yes; then
4854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4859 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4860 inttypes.h stdint.h unistd.h
4862 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4863 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4865 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4866 cat >>confdefs.h
<<_ACEOF
4867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4875 for ac_header
in sys
/ioccom.h sys
/sockio.h
4877 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4878 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4879 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4880 cat >>confdefs.h
<<_ACEOF
4881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4888 for ac_header
in netpacket
/packet.h
4890 ac_fn_c_check_header_mongrel
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4891 if test "x$ac_cv_header_netpacket_packet_h" = xyes
; then :
4892 cat >>confdefs.h
<<_ACEOF
4893 #define HAVE_NETPACKET_PACKET_H 1
4900 for ac_header
in net
/pfvar.h
4902 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4903 #include <sys/socket.h>
4906 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4907 cat >>confdefs.h
<<_ACEOF
4908 #define HAVE_NET_PFVAR_H 1
4915 if test "$ac_cv_header_net_pfvar_h" = yes; then
4917 # Check for various PF actions.
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4920 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <sys/types.h>
4924 #include <sys/socket.h>
4926 #include <net/pfvar.h>
4930 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4935 if ac_fn_c_try_compile
"$LINENO"; then :
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938 $as_echo "yes" >&6; }
4940 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4953 # linux/if_bonding.h requires sys/socket.h.
4955 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4957 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4959 #include <sys/socket.h>
4960 #include <linux/if.h>
4963 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4964 cat >>confdefs.h
<<_ACEOF
4965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974 # Check for the eventfd header.
4976 for ac_header
in sys
/eventfd.h
4978 ac_fn_c_check_header_mongrel
"$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
4979 if test "x$ac_cv_header_sys_eventfd_h" = xyes
; then :
4980 cat >>confdefs.h
<<_ACEOF
4981 #define HAVE_SYS_EVENTFD_H 1
4991 if test "$GCC" = yes ; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4993 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4994 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4995 $as_echo_n "(cached) " >&6
4997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5000 * This generates a "duplicate case value" when fixincludes
5003 # include <sys/types.h>
5004 # include <sys/time.h>
5005 # include <sys/ioctl.h>
5006 # ifdef HAVE_SYS_IOCCOM_H
5007 # include <sys/ioccom.h>
5020 if ac_fn_c_try_compile
"$LINENO"; then :
5021 ac_cv_lbl_gcc_fixincludes
=yes
5023 ac_cv_lbl_gcc_fixincludes
=no
5025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5029 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5030 if test $ac_cv_lbl_gcc_fixincludes = no
; then
5031 # Don't cache failure
5032 unset ac_cv_lbl_gcc_fixincludes
5033 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
5037 for ac_func
in strerror strerror_r strerror_s
5039 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5040 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5041 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5042 cat >>confdefs.h
<<_ACEOF
5043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5051 for ac_func
in vsnprintf snprintf
5053 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5054 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5055 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5056 cat >>confdefs.h
<<_ACEOF
5057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5065 if test $needsnprintf = yes; then
5066 case " $LIBOBJS " in
5067 *" snprintf.$ac_objext "* ) ;;
5068 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
5075 for ac_func
in strlcat
5077 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
5078 if test "x$ac_cv_func_strlcat" = xyes
; then :
5079 cat >>confdefs.h
<<_ACEOF
5080 #define HAVE_STRLCAT 1
5088 if test $needstrlcat = yes; then
5089 case " $LIBOBJS " in
5090 *" strlcat.$ac_objext "* ) ;;
5091 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
5098 for ac_func
in strlcpy
5100 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5101 if test "x$ac_cv_func_strlcpy" = xyes
; then :
5102 cat >>confdefs.h
<<_ACEOF
5103 #define HAVE_STRLCPY 1
5111 if test $needstrlcpy = yes; then
5112 case " $LIBOBJS " in
5113 *" strlcpy.$ac_objext "* ) ;;
5114 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
5121 for ac_func
in strtok_r
5123 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5124 if test "x$ac_cv_func_strtok_r" = xyes
; then :
5125 cat >>confdefs.h
<<_ACEOF
5126 #define HAVE_STRTOK_R 1
5134 if test $needstrtok_r = yes; then
5135 case " $LIBOBJS " in
5136 *" strtok_r.$ac_objext "* ) ;;
5137 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
5144 # Do we have ffs(), and is it declared in <strings.h>?
5148 ac_fn_c_check_func
"$LINENO" "ffs" "ac_cv_func_ffs"
5149 if test "x$ac_cv_func_ffs" = xyes
; then :
5150 cat >>confdefs.h
<<_ACEOF
5157 if test "$ac_cv_func_ffs" = yes; then
5159 # We have ffs(); is it declared in <strings.h>?
5161 # This test fails if we don't have <strings.h> or if we do
5162 # but it doesn't declare ffs().
5164 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5165 #include <strings.h>
5168 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
5171 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5179 # Do this before checking for ether_hostton(), as it's a
5180 # "getaddrinfo()-ish function".
5184 # Most operating systems have getaddrinfo() in the default searched
5185 # libraries (i.e. libc). Check there first.
5187 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5188 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
5193 # Not found in the standard system libraries.
5194 # Try libsocket, which requires libnsl.
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5197 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5198 if ${ac_cv_lib_socket_getaddrinfo+:} false
; then :
5199 $as_echo_n "(cached) " >&6
5201 ac_check_lib_save_LIBS
=$LIBS
5202 LIBS
="-lsocket -lnsl $LIBS"
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5206 /* Override any GCC internal prototype to avoid an error.
5207 Use char because int might match the return type of a GCC
5208 builtin and then its argument prototype would still apply. */
5212 char getaddrinfo ();
5216 return getaddrinfo ();
5221 if ac_fn_c_try_link
"$LINENO"; then :
5222 ac_cv_lib_socket_getaddrinfo
=yes
5224 ac_cv_lib_socket_getaddrinfo
=no
5226 rm -f core conftest.err conftest.
$ac_objext \
5227 conftest
$ac_exeext conftest.
$ac_ext
5228 LIBS
=$ac_check_lib_save_LIBS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5231 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5232 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes
; then :
5235 # OK, we found it in libsocket.
5237 LIBS
="-lsocket -lnsl $LIBS"
5242 # We didn't find it.
5244 as_fn_error $?
"getaddrinfo is required, but wasn't found" "$LINENO" 5
5250 # OK, do we have recvmsg() in libxnet?
5251 # We also link with libsocket and libnsl.
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5254 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5255 if ${ac_cv_lib_xnet_recvmsg+:} false
; then :
5256 $as_echo_n "(cached) " >&6
5258 ac_check_lib_save_LIBS
=$LIBS
5259 LIBS
="-lxnet -lsocket -lnsl $LIBS"
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 /* Override any GCC internal prototype to avoid an error.
5264 Use char because int might match the return type of a GCC
5265 builtin and then its argument prototype would still apply. */
5278 if ac_fn_c_try_link
"$LINENO"; then :
5279 ac_cv_lib_xnet_recvmsg
=yes
5281 ac_cv_lib_xnet_recvmsg
=no
5283 rm -f core conftest.err conftest.
$ac_objext \
5284 conftest
$ac_exeext conftest.
$ac_ext
5285 LIBS
=$ac_check_lib_save_LIBS
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5288 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5289 if test "x$ac_cv_lib_xnet_recvmsg" = xyes
; then :
5292 # Yes - link with it as well.
5301 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5303 $as_echo_n "checking for library containing putmsg... " >&6; }
5304 if ${ac_cv_search_putmsg+:} false
; then :
5305 $as_echo_n "(cached) " >&6
5307 ac_func_search_save_LIBS
=$LIBS
5308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5311 /* Override any GCC internal prototype to avoid an error.
5312 Use char because int might match the return type of a GCC
5313 builtin and then its argument prototype would still apply. */
5326 for ac_lib
in '' str
; do
5327 if test -z "$ac_lib"; then
5328 ac_res
="none required"
5331 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5333 if ac_fn_c_try_link
"$LINENO"; then :
5334 ac_cv_search_putmsg
=$ac_res
5336 rm -f core conftest.err conftest.
$ac_objext \
5338 if ${ac_cv_search_putmsg+:} false
; then :
5342 if ${ac_cv_search_putmsg+:} false
; then :
5345 ac_cv_search_putmsg
=no
5348 LIBS
=$ac_func_search_save_LIBS
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5351 $as_echo "$ac_cv_search_putmsg" >&6; }
5352 ac_res
=$ac_cv_search_putmsg
5353 if test "$ac_res" != no
; then :
5354 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5361 # Check for reentrant versions of getnetbyname_r(), as provided by
5362 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5363 # If we don't find one, we just use getnetbyname(), which uses
5364 # thread-specific data on many platforms, but doesn't use it on
5365 # NetBSD or OpenBSD, and may not use it on older versions of other
5368 # Only do the check if we have a declaration of getnetbyname_r();
5369 # without it, we can't check which API it has. (We assume that
5370 # if there's a declaration, it has a prototype, so that the API
5373 ac_fn_c_check_decl
"$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5375 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes
; then :
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5378 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5386 struct netent netent_buf;
5388 struct netent *resultp;
5391 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5397 if ac_fn_c_try_link
"$LINENO"; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }
5402 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5411 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5419 struct netent netent_buf;
5422 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5428 if ac_fn_c_try_link
"$LINENO"; then :
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 $as_echo "yes" >&6; }
5433 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5442 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5450 struct netent netent_buf;
5451 struct netent_data net_data;
5453 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5459 if ac_fn_c_try_link
"$LINENO"; then :
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5464 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5473 rm -f core conftest.err conftest.
$ac_objext \
5474 conftest
$ac_exeext conftest.
$ac_ext
5477 rm -f core conftest.err conftest.
$ac_objext \
5478 conftest
$ac_exeext conftest.
$ac_ext
5481 rm -f core conftest.err conftest.
$ac_objext \
5482 conftest
$ac_exeext conftest.
$ac_ext
5488 # Check for reentrant versions of getprotobyname_r(), as provided by
5489 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5490 # If we don't find one, we just use getprotobyname(), which uses
5491 # thread-specific data on many platforms, but doesn't use it on
5492 # NetBSD or OpenBSD, and may not use it on older versions of other
5495 # Only do the check if we have a declaration of getprotobyname_r();
5496 # without it, we can't check which API it has. (We assume that
5497 # if there's a declaration, it has a prototype, so that the API
5500 ac_fn_c_check_decl
"$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5502 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes
; then :
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5505 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5513 struct protoent protoent_buf;
5515 struct protoent *resultp;
5517 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5523 if ac_fn_c_try_link
"$LINENO"; then :
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5526 $as_echo "yes" >&6; }
5528 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5537 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5545 struct protoent protoent_buf;
5548 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5554 if ac_fn_c_try_link
"$LINENO"; then :
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5559 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5568 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5576 struct protoent protoent_buf;
5577 struct protoent_data proto_data;
5579 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5585 if ac_fn_c_try_link
"$LINENO"; then :
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5588 $as_echo "yes" >&6; }
5590 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5599 rm -f core conftest.err conftest.
$ac_objext \
5600 conftest
$ac_exeext conftest.
$ac_ext
5603 rm -f core conftest.err conftest.
$ac_objext \
5604 conftest
$ac_exeext conftest.
$ac_ext
5607 rm -f core conftest.err conftest.
$ac_objext \
5608 conftest
$ac_exeext conftest.
$ac_ext
5614 # You are in a twisty little maze of UN*Xes, all different.
5615 # Some might not have ether_hostton().
5616 # Some might have it and declare it in <net/ethernet.h>.
5617 # Some might have it and declare it in <netinet/ether.h>
5618 # Some might have it and declare it in <sys/ethernet.h>.
5619 # Some might have it and declare it in <arpa/inet.h>.
5620 # Some might have it and declare it in <netinet/if_ether.h>.
5621 # Some might have it and not declare it in any header file.
5623 # Before you is a C compiler.
5625 for ac_func
in ether_hostton
5627 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5628 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5629 cat >>confdefs.h
<<_ACEOF
5630 #define HAVE_ETHER_HOSTTON 1
5636 if test "$ac_cv_func_ether_hostton" = yes; then
5638 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5640 # This test fails if we don't have <net/ethernet.h> or if we do
5641 # but it doesn't declare ether_hostton().
5643 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5644 #include <net/ethernet.h>
5647 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5650 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5658 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5660 # No, how about <netinet/ether.h>, as on Linux?
5662 # This test fails if we don't have <netinet/ether.h>
5663 # or if we do but it doesn't declare ether_hostton().
5665 # Unset ac_cv_have_decl_ether_hostton so we don't
5666 # treat the previous failure as a cached value and
5667 # suppress the next test.
5669 unset ac_cv_have_decl_ether_hostton
5670 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5671 #include <netinet/ether.h>
5674 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5677 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5686 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5688 # No, how about <sys/ethernet.h>, as on Solaris 10
5691 # This test fails if we don't have <sys/ethernet.h>
5692 # or if we do but it doesn't declare ether_hostton().
5694 # Unset ac_cv_have_decl_ether_hostton so we don't
5695 # treat the previous failure as a cached value and
5696 # suppress the next test.
5698 unset ac_cv_have_decl_ether_hostton
5699 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5700 #include <sys/ethernet.h>
5703 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5706 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5715 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5717 # No, how about <arpa/inet.h>, as in AIX?
5719 # This test fails if we don't have <arpa/inet.h>
5720 # (if we have ether_hostton(), we should have
5721 # networking, and if we have networking, we should
5722 # have <arapa/inet.h>) or if we do but it doesn't
5723 # declare ether_hostton().
5725 # Unset ac_cv_have_decl_ether_hostton so we don't
5726 # treat the previous failure as a cached value and
5727 # suppress the next test.
5729 unset ac_cv_have_decl_ether_hostton
5730 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5731 #include <arpa/inet.h>
5734 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5737 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5746 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5748 # No, how about <netinet/if_ether.h>?
5749 # On some platforms, it requires <net/if.h> and
5750 # <netinet/in.h>, and we always include it with
5751 # both of them, so test it with both of them.
5753 # This test fails if we don't have <netinet/if_ether.h>
5754 # and the headers we include before it, or if we do but
5755 # <netinet/if_ether.h> doesn't declare ether_hostton().
5757 # Unset ac_cv_have_decl_ether_hostton so we don't
5758 # treat the previous failure as a cached value and
5759 # suppress the next test.
5761 unset ac_cv_have_decl_ether_hostton
5762 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5763 #include <sys/types.h>
5764 #include <sys/socket.h>
5766 #include <netinet/in.h>
5767 #include <netinet/if_ether.h>
5770 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5773 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5780 # After all that, is ether_hostton() declared?
5782 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5787 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5791 # No, we'll have to declare it ourselves.
5792 # Do we have "struct ether_addr" if we include
5793 # <netinet/if_ether.h>?
5795 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5796 #include <sys/types.h>
5797 #include <sys/socket.h>
5799 #include <netinet/in.h>
5800 #include <netinet/if_ether.h>
5803 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5805 cat >>confdefs.h
<<_ACEOF
5806 #define HAVE_STRUCT_ETHER_ADDR 1
5816 # For various things that might use pthreads.
5818 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5819 if test "x$ac_cv_header_pthread_h" = xyes
; then :
5822 # OK, we have pthread.h. Do we have pthread_create in the
5825 ac_fn_c_check_func
"$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5826 if test "x$ac_cv_func_pthread_create" = xyes
; then :
5831 ac_lbl_have_pthreads
="found"
5836 # No - do we have it in -lpthreads?
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5839 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5840 if ${ac_cv_lib_pthreads_pthread_create+:} false
; then :
5841 $as_echo_n "(cached) " >&6
5843 ac_check_lib_save_LIBS
=$LIBS
5844 LIBS
="-lpthreads $LIBS"
5845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5848 /* Override any GCC internal prototype to avoid an error.
5849 Use char because int might match the return type of a GCC
5850 builtin and then its argument prototype would still apply. */
5854 char pthread_create ();
5858 return pthread_create ();
5863 if ac_fn_c_try_link
"$LINENO"; then :
5864 ac_cv_lib_pthreads_pthread_create
=yes
5866 ac_cv_lib_pthreads_pthread_create
=no
5868 rm -f core conftest.err conftest.
$ac_objext \
5869 conftest
$ac_exeext conftest.
$ac_ext
5870 LIBS
=$ac_check_lib_save_LIBS
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5873 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5874 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
; then :
5877 # Yes - add -lpthreads.
5879 ac_lbl_have_pthreads
="found"
5880 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthreads"
5885 # No - do we have it in -lpthread?
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5888 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5889 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
5890 $as_echo_n "(cached) " >&6
5892 ac_check_lib_save_LIBS
=$LIBS
5893 LIBS
="-lpthread $LIBS"
5894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5903 char pthread_create ();
5907 return pthread_create ();
5912 if ac_fn_c_try_link
"$LINENO"; then :
5913 ac_cv_lib_pthread_pthread_create
=yes
5915 ac_cv_lib_pthread_pthread_create
=no
5917 rm -f core conftest.err conftest.
$ac_objext \
5918 conftest
$ac_exeext conftest.
$ac_ext
5919 LIBS
=$ac_check_lib_save_LIBS
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5922 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5923 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
5926 # Yes - add -lpthread.
5928 ac_lbl_have_pthreads
="found"
5929 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthread"
5936 ac_lbl_have_pthreads
="not found"
5950 # We didn't find pthread.h.
5952 ac_lbl_have_pthreads
="not found"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5960 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5961 # Check whether --enable-protochain was given.
5962 if test "${enable_protochain+set}" = set; then :
5963 enableval
=$enable_protochain;
5966 case "x$enable_protochain" in
5967 xyes
) enable_protochain
=enabled
;;
5968 xno
) enable_protochain
=disabled
;;
5969 x
) enable_protochain
=enabled
;;
5972 if test "$enable_protochain" = "disabled"; then
5974 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5978 $as_echo "${enable_protochain}" >&6; }
5981 # valgrindtest directly uses the native capture mechanism, but
5982 # only tests with BPF and PF_PACKET sockets; only enable it if
5983 # we have BPF or PF_PACKET sockets.
5988 # Check whether --with-pcap was given.
5989 if test "${with_pcap+set}" = set; then :
5993 if test ! -z "$with_pcap" ; then
5997 # Check for a bunch of headers for various packet
5998 # capture mechanisms.
6000 for ac_header
in net
/bpf.h
6002 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6003 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6004 cat >>confdefs.h
<<_ACEOF
6005 #define HAVE_NET_BPF_H 1
6012 if test "$ac_cv_header_net_bpf_h" = yes; then
6014 # Does it define BIOCSETIF?
6015 # I.e., is it a header for an LBL/BSD-style capture
6016 # mechanism, or is it just a header for a BPF filter
6017 # engine? Some versions of Arch Linux, for example,
6018 # have a net/bpf.h that doesn't define BIOCSETIF;
6019 # as it's a Linux, it should use packet sockets,
6024 # sys/types.h, because FreeBSD 10's net/bpf.h
6025 # requires that various BSD-style integer types
6028 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6029 # doesn't include it but does use struct timeval
6030 # in ioctl definitions;
6032 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6033 # because net/bpf.h defines ioctls;
6035 # net/if.h, because it defines some structures
6036 # used in ioctls defined by net/bpf.h;
6038 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6039 # defines some structure fields as being
6042 # and net/bpf.h doesn't necessarily include all
6043 # of those headers itself.
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6046 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6047 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false
; then :
6048 $as_echo_n "(cached) " >&6
6050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6053 #include <sys/types.h>
6054 #include <sys/time.h>
6055 #include <sys/ioctl.h>
6056 #include <sys/socket.h>
6057 #ifdef HAVE_SYS_IOCCOM_H
6058 #include <sys/ioccom.h>
6060 #include <net/bpf.h>
6066 u_int i = BIOCSETIF;
6071 if ac_fn_c_try_compile
"$LINENO"; then :
6072 ac_cv_lbl_bpf_h_defines_biocsetif
=yes
6074 ac_cv_lbl_bpf_h_defines_biocsetif
=no
6076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6080 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6082 for ac_header
in net
/pfilt.h net
/enet.h
6084 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6086 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6087 cat >>confdefs.h
<<_ACEOF
6088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 for ac_header
in net
/nit.h sys
/net
/nit.h
6097 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6099 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6100 cat >>confdefs.h
<<_ACEOF
6101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6108 for ac_header
in linux
/socket.h net
/raw.h sys
/dlpi.h
6110 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6112 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6113 cat >>confdefs.h
<<_ACEOF
6114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6122 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6125 # Check this before DLPI, so that we pick BPF on
6126 # Solaris 11 and later.
6131 # We have BPF, so build valgrindtest with "make test"
6132 # on macOS and FreeBSD (add your OS once there's a
6137 freebsd
*|darwin
*|linux
*)
6138 VALGRINDTEST_SRC
=valgrindtest.c
6141 elif test "$ac_cv_header_linux_socket_h" = yes; then
6143 # No prizes for guessing this one.
6148 # XXX - this won't work with older kernels that have
6149 # SOCK_PACKET sockets but not PF_PACKET sockets.
6151 VALGRINDTEST_SRC
=valgrindtest.c
6152 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6154 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6157 elif test "$ac_cv_header_net_enet_h" = yes; then
6159 # Stanford Enetfilter.
6162 elif test "$ac_cv_header_net_nit_h" = yes; then
6164 # SunOS 4.x STREAMS NIT.
6167 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6169 # Pre-SunOS 4.x non-STREAMS NIT.
6172 elif test "$ac_cv_header_net_raw_h" = yes; then
6177 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6179 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6184 # Nothing we support.
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6188 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6190 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6194 $as_echo_n "checking packet capture type... " >&6; }
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6196 $as_echo "$V_PCAP" >&6; }
6200 # Do capture-mechanism-dependent tests.
6205 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6210 # Checks for some header files.
6212 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
6214 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6216 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6217 cat >>confdefs.h
<<_ACEOF
6218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6227 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6228 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6229 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6230 # private version also existed, which did not have the same APIs.
6231 # Due to a gcc bug, the default search path for 32-bit libraries does
6232 # not include /lib, we add it explicitly here.
6233 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6234 # Also, due to the bug above applications that link to libpcap with
6235 # libdlpi will have to add "-L/lib" option to "configure".
6237 saved_ldflags
=$LDFLAGS
6238 LDFLAGS
="$LIBS -L/lib"
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6240 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6241 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
6242 $as_echo_n "(cached) " >&6
6244 ac_check_lib_save_LIBS
=$LIBS
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6249 /* Override any GCC internal prototype to avoid an error.
6250 Use char because int might match the return type of a GCC
6251 builtin and then its argument prototype would still apply. */
6259 return dlpi_walk ();
6264 if ac_fn_c_try_link
"$LINENO"; then :
6265 ac_cv_lib_dlpi_dlpi_walk
=yes
6267 ac_cv_lib_dlpi_dlpi_walk
=no
6269 rm -f core conftest.err conftest.
$ac_objext \
6270 conftest
$ac_exeext conftest.
$ac_ext
6271 LIBS
=$ac_check_lib_save_LIBS
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6274 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6275 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
6280 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6287 LDFLAGS
=$saved_ldflags
6290 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6294 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6295 if ${ac_cv_sys_dlpi_usable+:} false
; then :
6296 $as_echo_n "(cached) " >&6
6298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6301 #include <sys/types.h>
6302 #include <sys/time.h>
6303 #include <sys/dlpi.h>
6308 int i = DL_PROMISC_PHYS;
6313 if ac_fn_c_try_compile
"$LINENO"; then :
6314 ac_cv_sys_dlpi_usable
=yes
6316 ac_cv_sys_dlpi_usable
=no
6318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6322 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6323 if test $ac_cv_sys_dlpi_usable = no
; then
6324 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6328 # Check to see if Solaris has the dl_passive_req_t struct defined
6330 # This check is for DLPI support for passive modes.
6331 # See dlpi(7P) for more details.
6333 ac_fn_c_check_type
"$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6334 #include <sys/types.h>
6335 #include <sys/dlpi.h>
6338 if test "x$ac_cv_type_dl_passive_req_t" = xyes
; then :
6340 cat >>confdefs.h
<<_ACEOF
6341 #define HAVE_DL_PASSIVE_REQ_T 1
6351 # Do we have the wireless extensions?
6353 for ac_header
in linux
/wireless.h
6355 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6356 #include <sys/socket.h>
6357 #include <linux/if.h>
6358 #include <linux/types.h>
6361 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
6362 cat >>confdefs.h
<<_ACEOF
6363 #define HAVE_LINUX_WIRELESS_H 1
6375 # Check whether --with-libnl was given.
6376 if test "${with_libnl+set}" = set; then :
6377 withval
=$with_libnl; with_libnl
=$withval
6379 with_libnl
=if_available
6383 if test x
$with_libnl != xno
; then
6386 incdir
=-I/usr
/include
/libnl3
6388 case "$with_libnl" in
6394 if test -d $withval; then
6395 libnldir
=-L${withval}/lib
/.libs
6396 incdir
=-I${withval}/include
6402 # Try libnl 3.x first.
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6405 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6406 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
6407 $as_echo_n "(cached) " >&6
6409 ac_check_lib_save_LIBS
=$LIBS
6410 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6420 char nl_socket_alloc ();
6424 return nl_socket_alloc ();
6429 if ac_fn_c_try_link
"$LINENO"; then :
6430 ac_cv_lib_nl_3_nl_socket_alloc
=yes
6432 ac_cv_lib_nl_3_nl_socket_alloc
=no
6434 rm -f core conftest.err conftest.
$ac_objext \
6435 conftest
$ac_exeext conftest.
$ac_ext
6436 LIBS
=$ac_check_lib_save_LIBS
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6439 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6440 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
6443 # Yes, we have libnl 3.x.
6445 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6447 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6450 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6453 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6456 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6458 V_INCLS
="$V_INCLS ${incdir}"
6464 if test x
$have_any_nl = xno
; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6469 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6470 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
6471 $as_echo_n "(cached) " >&6
6473 ac_check_lib_save_LIBS
=$LIBS
6475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6478 /* Override any GCC internal prototype to avoid an error.
6479 Use char because int might match the return type of a GCC
6480 builtin and then its argument prototype would still apply. */
6484 char nl_socket_alloc ();
6488 return nl_socket_alloc ();
6493 if ac_fn_c_try_link
"$LINENO"; then :
6494 ac_cv_lib_nl_nl_socket_alloc
=yes
6496 ac_cv_lib_nl_nl_socket_alloc
=no
6498 rm -f core conftest.err conftest.
$ac_objext \
6499 conftest
$ac_exeext conftest.
$ac_ext
6500 LIBS
=$ac_check_lib_save_LIBS
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6503 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6504 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
6507 # Yes, we have libnl 2.x.
6509 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
6511 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6514 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6517 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6520 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6528 if test x
$have_any_nl = xno
; then
6530 # No, we don't; do we have libnl 1.x?
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6533 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6534 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
6535 $as_echo_n "(cached) " >&6
6537 ac_check_lib_save_LIBS
=$LIBS
6539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6542 /* Override any GCC internal prototype to avoid an error.
6543 Use char because int might match the return type of a GCC
6544 builtin and then its argument prototype would still apply. */
6548 char nl_handle_alloc ();
6552 return nl_handle_alloc ();
6557 if ac_fn_c_try_link
"$LINENO"; then :
6558 ac_cv_lib_nl_nl_handle_alloc
=yes
6560 ac_cv_lib_nl_nl_handle_alloc
=no
6562 rm -f core conftest.err conftest.
$ac_objext \
6563 conftest
$ac_exeext conftest.
$ac_ext
6564 LIBS
=$ac_check_lib_save_LIBS
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6567 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6568 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
6573 LIBS
="${libnldir} -lnl $LIBS"
6575 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6583 if test x
$have_any_nl = xno
; then
6585 # No, we don't have libnl at all.
6587 if test x
$with_libnl = xyes
; then
6588 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
6593 for ac_header
in linux
/ethtool.h
6595 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6596 $ac_includes_default
6597 #include <linux/types.h>
6600 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
6601 cat >>confdefs.h
<<_ACEOF
6602 #define HAVE_LINUX_ETHTOOL_H 1
6611 # Check to see if struct tpacket_stats is defined in
6612 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
6613 # to report proper statistics.
6617 ac_fn_c_check_type
"$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6618 #include <linux/if_packet.h>
6621 if test "x$ac_cv_type_struct_tpacket_stats" = xyes
; then :
6623 cat >>confdefs.h
<<_ACEOF
6624 #define HAVE_STRUCT_TPACKET_STATS 1
6632 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6634 # NOTE: any failure means we conclude that it doesn't have that
6635 # member, so if we don't have tpacket_auxdata, we conclude it
6636 # doesn't have that member (which is OK, as either we won't be
6637 # using code that would use that member, or we wouldn't compile
6639 ac_fn_c_check_member
"$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6640 #include <sys/types.h>
6641 #include <linux/if_packet.h>
6644 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6646 cat >>confdefs.h
<<_ACEOF
6647 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6657 # Check whether we have the *BSD-style ioctls.
6659 for ac_header
in net
/if_media.h
6661 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6662 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
6663 cat >>confdefs.h
<<_ACEOF
6664 #define HAVE_NET_IF_MEDIA_H 1
6673 # Check whether we have struct BPF_TIMEVAL.
6675 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6676 #include <sys/types.h>
6677 #include <sys/ioctl.h>
6678 #ifdef HAVE_SYS_IOCCOM_H
6679 #include <sys/ioccom.h>
6681 #include <net/bpf.h>
6684 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
6686 cat >>confdefs.h
<<_ACEOF
6687 #define HAVE_STRUCT_BPF_TIMEVAL 1
6697 # --with-pcap=dag is the only way to get here, and it means
6698 # "DAG support but nothing else"
6700 V_DEFS
="$V_DEFS -DDAG_ONLY"
6706 # --with-pcap=septel is the only way to get here, and it means
6707 # "Septel support but nothing else"
6709 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6715 # --with-pcap=snf is the only way to get here, and it means
6716 # "SNF support but nothing else"
6718 V_DEFS
="$V_DEFS -DSNF_ONLY"
6726 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
6730 if test "$V_PCAP" != null
6732 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6733 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
6736 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6737 # as well, just in case some platform is really weird.
6739 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6740 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6743 # We have the header, so we use "getifaddrs()" to
6744 # get the list of interfaces.
6746 V_FINDALLDEVS
=fad-getad.c
6751 # We don't have the header - give up.
6752 # XXX - we could also fall back on some other
6753 # mechanism, but, for now, this'll catch this
6754 # problem so that we can at least try to figure
6755 # out something to do on systems with "getifaddrs()"
6756 # but without "ifaddrs.h", if there is something
6757 # we can do on those systems.
6759 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6768 # Well, we don't have "getifaddrs()", at least not with the
6769 # libraries with which we've decided we need to link
6770 # libpcap with, so we have to use some other mechanism.
6772 # Note that this may happen on Solaris, which has
6773 # getifaddrs(), but in -lsocket, not in -lxnet, so we
6774 # won't find it if we link with -lxnet, which we want
6775 # to do for other reasons.
6777 # For now, we use either the SIOCGIFCONF ioctl or the
6778 # SIOCGLIFCONF ioctl, preferring the latter if we have
6779 # it; the latter is a Solarisism that first appeared
6780 # in Solaris 8. (Solaris's getifaddrs() appears to
6781 # be built atop SIOCGLIFCONF; using it directly
6782 # avoids a not-all-that-useful middleman.)
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6785 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6786 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6787 $as_echo_n "(cached) " >&6
6789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <sys/param.h>
6792 #include <sys/file.h>
6793 #include <sys/ioctl.h>
6794 #include <sys/socket.h>
6795 #include <sys/sockio.h>
6799 ioctl(0, SIOCGLIFCONF, (char *)0);
6804 if ac_fn_c_try_compile
"$LINENO"; then :
6805 ac_cv_lbl_have_siocglifconf
=yes
6807 ac_cv_lbl_have_siocglifconf
=no
6809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6813 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6814 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6815 V_FINDALLDEVS
=fad-glifc.c
6817 V_FINDALLDEVS
=fad-gifc.c
6826 for ac_header
in linux
/net_tstamp.h
6828 ac_fn_c_check_header_mongrel
"$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6829 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
; then :
6830 cat >>confdefs.h
<<_ACEOF
6831 #define HAVE_LINUX_NET_TSTAMP_H 1
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6841 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6845 # Check whether --enable-packet-ring was given.
6846 if test "${enable_packet_ring+set}" = set; then :
6847 enableval
=$enable_packet_ring;
6849 enable_packet_ring
=yes
6853 if test "x$enable_packet_ring" != "xno" ; then
6855 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6861 # Check for socklen_t.
6863 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6864 #include <sys/types.h>
6865 #include <sys/socket.h>
6868 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6870 cat >>confdefs.h
<<_ACEOF
6871 #define HAVE_SOCKLEN_T 1
6878 # Check whether --enable-ipv6 was given.
6879 if test "${enable_ipv6+set}" = set; then :
6880 enableval
=$enable_ipv6;
6885 if test "$enable_ipv6" != "no"; then
6887 # We've already made sure we have getaddrinfo above in
6888 # AC_LBL_LIBRARY_NET.
6891 $as_echo "#define INET6 1" >>confdefs.h
6895 # Check for Endace DAG card support.
6897 # Check whether --with-dag was given.
6898 if test "${with_dag+set}" = set; then :
6900 if test "$withval" = no
6902 # User doesn't want DAG support.
6904 elif test "$withval" = yes
6906 # User wants DAG support but hasn't specified a directory.
6909 # User wants DAG support and has specified a directory, so use the provided value.
6916 if test "$V_PCAP" = dag
; then
6917 # User requested DAG-only libpcap, so we'd better have
6920 elif test "xxx_only" = yes; then
6921 # User requested something-else-only pcap, so they don't
6926 # Use DAG API if present, otherwise don't
6935 # Check whether --with-dag-includes was given.
6936 if test "${with_dag_includes+set}" = set; then :
6937 withval
=$with_dag_includes;
6938 # User wants DAG support and has specified a header directory, so use the provided value.
6940 dag_include_dir
=$withval
6946 # Check whether --with-dag-libraries was given.
6947 if test "${with_dag_libraries+set}" = set; then :
6948 withval
=$with_dag_libraries;
6949 # User wants DAG support and has specified a library directory, so use the provided value.
6951 dag_lib_dir
=$withval
6956 if test "$want_dag" != no
; then
6958 # If necessary, set default paths for DAG API headers and libraries.
6959 if test -z "$dag_root"; then
6963 if test -z "$dag_include_dir"; then
6964 dag_include_dir
="$dag_root/include"
6967 if test -z "$dag_lib_dir"; then
6968 dag_lib_dir
="$dag_root/lib"
6971 V_INCLS
="$V_INCLS -I$dag_include_dir"
6973 for ac_header
in dagapi.h
6975 ac_fn_c_check_header_mongrel
"$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
6976 if test "x$ac_cv_header_dagapi_h" = xyes
; then :
6977 cat >>confdefs.h
<<_ACEOF
6978 #define HAVE_DAGAPI_H 1
6986 if test "$ac_cv_header_dagapi_h" = yes; then
6988 if test $V_PCAP != dag
; then
6989 SSRC
="$SSRC pcap-dag.c"
6992 # Check for various DAG API functions.
6993 # Don't need to save and restore LIBS to prevent -ldag being
6994 # included if there's a found-action (arg 3).
6995 saved_ldflags
=$LDFLAGS
6996 LDFLAGS
="-L$dag_lib_dir"
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6998 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6999 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
7000 $as_echo_n "(cached) " >&6
7002 ac_check_lib_save_LIBS
=$LIBS
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7007 /* Override any GCC internal prototype to avoid an error.
7008 Use char because int might match the return type of a GCC
7009 builtin and then its argument prototype would still apply. */
7013 char dag_attach_stream ();
7017 return dag_attach_stream ();
7022 if ac_fn_c_try_link
"$LINENO"; then :
7023 ac_cv_lib_dag_dag_attach_stream
=yes
7025 ac_cv_lib_dag_dag_attach_stream
=no
7027 rm -f core conftest.err conftest.
$ac_objext \
7028 conftest
$ac_exeext conftest.
$ac_ext
7029 LIBS
=$ac_check_lib_save_LIBS
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7032 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7033 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
7034 cat >>confdefs.h
<<_ACEOF
7035 #define HAVE_LIBDAG 1
7041 as_fn_error $?
"DAG library lacks streams support" "$LINENO" 5
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7045 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7046 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
7047 $as_echo_n "(cached) " >&6
7049 ac_check_lib_save_LIBS
=$LIBS
7051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7054 /* Override any GCC internal prototype to avoid an error.
7055 Use char because int might match the return type of a GCC
7056 builtin and then its argument prototype would still apply. */
7060 char dag_attach_stream64 ();
7064 return dag_attach_stream64 ();
7069 if ac_fn_c_try_link
"$LINENO"; then :
7070 ac_cv_lib_dag_dag_attach_stream64
=yes
7072 ac_cv_lib_dag_dag_attach_stream64
=no
7074 rm -f core conftest.err conftest.
$ac_objext \
7075 conftest
$ac_exeext conftest.
$ac_ext
7076 LIBS
=$ac_check_lib_save_LIBS
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7079 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7080 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
7081 dag_large_streams
="1"
7083 dag_large_streams
="0"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7087 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7088 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
7089 $as_echo_n "(cached) " >&6
7091 ac_check_lib_save_LIBS
=$LIBS
7093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7096 /* Override any GCC internal prototype to avoid an error.
7097 Use char because int might match the return type of a GCC
7098 builtin and then its argument prototype would still apply. */
7102 char dag_get_erf_types ();
7106 return dag_get_erf_types ();
7111 if ac_fn_c_try_link
"$LINENO"; then :
7112 ac_cv_lib_dag_dag_get_erf_types
=yes
7114 ac_cv_lib_dag_dag_get_erf_types
=no
7116 rm -f core conftest.err conftest.
$ac_objext \
7117 conftest
$ac_exeext conftest.
$ac_ext
7118 LIBS
=$ac_check_lib_save_LIBS
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7121 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7122 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
7125 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7130 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7131 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
7132 $as_echo_n "(cached) " >&6
7134 ac_check_lib_save_LIBS
=$LIBS
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7145 char dag_get_stream_erf_types ();
7149 return dag_get_stream_erf_types ();
7154 if ac_fn_c_try_link
"$LINENO"; then :
7155 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
7157 ac_cv_lib_dag_dag_get_stream_erf_types
=no
7159 rm -f core conftest.err conftest.
$ac_objext \
7160 conftest
$ac_exeext conftest.
$ac_ext
7161 LIBS
=$ac_check_lib_save_LIBS
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7164 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7165 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
7168 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7173 LDFLAGS
=$saved_ldflags
7176 # We assume that if we have libdag we have libdagconf,
7177 # as they're installed at the same time from the same
7180 LIBS
="$LIBS -ldag -ldagconf"
7181 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
7183 if test "$dag_large_streams" = 1; then
7185 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7188 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7189 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
7190 $as_echo_n "(cached) " >&6
7192 ac_check_lib_save_LIBS
=$LIBS
7194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7197 /* Override any GCC internal prototype to avoid an error.
7198 Use char because int might match the return type of a GCC
7199 builtin and then its argument prototype would still apply. */
7203 char vdag_set_device_info ();
7207 return vdag_set_device_info ();
7212 if ac_fn_c_try_link
"$LINENO"; then :
7213 ac_cv_lib_vdag_vdag_set_device_info
=yes
7215 ac_cv_lib_vdag_vdag_set_device_info
=no
7217 rm -f core conftest.err conftest.
$ac_objext \
7218 conftest
$ac_exeext conftest.
$ac_ext
7219 LIBS
=$ac_check_lib_save_LIBS
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7222 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7223 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
7224 ac_dag_have_vdag
="1"
7226 ac_dag_have_vdag
="0"
7229 if test "$ac_dag_have_vdag" = 1; then
7231 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7233 if test "$ac_lbl_have_pthreads" != "found"; then
7234 as_fn_error $?
"DAG requires pthreads, but we didn't find them" "$LINENO" 5
7236 LIBS
="$LIBS $PTHREAD_LIBS"
7241 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7245 if test "$V_PCAP" = dag
; then
7246 # User requested "dag" capture type but we couldn't
7247 # find the DAG API support.
7248 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
7251 if test "$want_dag" = yes; then
7252 # User wanted DAG support but we couldn't find it.
7253 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
7259 # Check whether --with-septel was given.
7260 if test "${with_septel+set}" = set; then :
7261 withval
=$with_septel;
7262 if test "$withval" = no
7265 elif test "$withval" = yes
7271 septel_root
=$withval
7276 if test "$V_PCAP" = septel
; then
7277 # User requested Septel-only libpcap, so we'd better have
7280 elif test "xxx_only" = yes; then
7281 # User requested something-else-only pcap, so they don't
7282 # want Septel support.
7286 # Use Septel API if present, otherwise don't
7288 want_septel
=ifpresent
7294 ac_cv_lbl_septel_api
=no
7295 if test "$with_septel" != no
; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7298 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7300 # If necessary, set default paths for Septel API headers and libraries.
7301 if test -z "$septel_root"; then
7302 septel_root
=$srcdir/..
/septel
7305 septel_tools_dir
="$septel_root"
7306 septel_include_dir
="$septel_root/INC"
7308 if test -r "$septel_include_dir/msg.h"; then
7309 ac_cv_lbl_septel_api
=yes
7312 if test "$ac_cv_lbl_septel_api" = yes; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7314 $as_echo "yes ($septel_include_dir)" >&6; }
7316 V_INCLS
="$V_INCLS -I$septel_include_dir"
7317 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"
7318 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"
7320 if test "$V_PCAP" != septel
; then
7321 SSRC
="$SSRC pcap-septel.c"
7325 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7331 if test "$V_PCAP" = septel
; then
7332 # User requested "septel" capture type but
7333 # we couldn't find the Septel API support.
7334 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
7337 if test "$want_septel" = yes; then
7338 # User wanted Septel support but we couldn't find it.
7339 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
7344 # Check for Myricom SNF support.
7346 # Check whether --with-snf was given.
7347 if test "${with_snf+set}" = set; then :
7349 if test "$withval" = no
7351 # User explicitly doesn't want SNF
7353 elif test "$withval" = yes
7355 # User wants SNF support but hasn't specified a directory.
7358 # User wants SNF support with a specified directory.
7365 if test "$V_PCAP" = snf
; then
7366 # User requested Sniffer-only libpcap, so we'd better have
7369 elif test "xxx_only" = yes; then
7370 # User requested something-else-only pcap, so they don't
7375 # Use Sniffer API if present, otherwise don't
7384 # Check whether --with-snf-includes was given.
7385 if test "${with_snf_includes+set}" = set; then :
7386 withval
=$with_snf_includes;
7387 # User wants SNF with specific header directory
7389 snf_include_dir
=$withval
7395 # Check whether --with-snf-libraries was given.
7396 if test "${with_snf_libraries+set}" = set; then :
7397 withval
=$with_snf_libraries;
7398 # User wants SNF with specific lib directory
7400 snf_lib_dir
=$withval
7405 ac_cv_lbl_snf_api
=no
7406 if test "$with_snf" != no
; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7409 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7411 # If necessary, set default paths for Sniffer headers and libraries.
7412 if test -z "$snf_root"; then
7416 if test -z "$snf_include_dir"; then
7417 snf_include_dir
="$snf_root/include"
7420 if test -z "$snf_lib_dir"; then
7421 snf_lib_dir
="$snf_root/lib"
7424 if test -f "$snf_include_dir/snf.h"; then
7425 # We found a header; make sure we can link with the library
7426 saved_ldflags
=$LDFLAGS
7427 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7429 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7430 if ${ac_cv_lib_snf_snf_init+:} false
; then :
7431 $as_echo_n "(cached) " >&6
7433 ac_check_lib_save_LIBS
=$LIBS
7435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7438 /* Override any GCC internal prototype to avoid an error.
7439 Use char because int might match the return type of a GCC
7440 builtin and then its argument prototype would still apply. */
7453 if ac_fn_c_try_link
"$LINENO"; then :
7454 ac_cv_lib_snf_snf_init
=yes
7456 ac_cv_lib_snf_snf_init
=no
7458 rm -f core conftest.err conftest.
$ac_objext \
7459 conftest
$ac_exeext conftest.
$ac_ext
7460 LIBS
=$ac_check_lib_save_LIBS
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7463 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7464 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
7465 ac_cv_lbl_snf_api
="yes"
7468 LDFLAGS
="$saved_ldflags"
7469 if test "$ac_cv_lbl_snf_api" = no
; then
7470 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7474 if test "$ac_cv_lbl_snf_api" = yes; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7476 $as_echo "yes ($snf_root)" >&6; }
7478 V_INCLS
="$V_INCLS -I$snf_include_dir"
7480 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7482 if test "$V_PCAP" != snf
; then
7483 SSRC
="$SSRC pcap-snf.c"
7487 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7493 if test "$want_snf" = yes; then
7494 # User requested "snf" capture type but
7495 # we couldn't find the Sniffer API support.
7496 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
7499 if test "$want_snf" = yes; then
7500 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
7505 # Check for Riverbed TurboCap support.
7507 # Check whether --with-turbocap was given.
7508 if test "${with_turbocap+set}" = set; then :
7509 withval
=$with_turbocap;
7510 if test "$withval" = no
7512 # User explicitly doesn't want TurboCap
7514 elif test "$withval" = yes
7516 # User wants TurboCap support but hasn't specified a directory.
7519 # User wants TurboCap support with a specified directory.
7521 turbocap_root
=$withval
7526 if test "xxx_only" = yes; then
7527 # User requested something-else-only pcap, so they don't
7528 # want TurboCap support.
7532 # Use TurboCap API if present, otherwise don't
7534 want_turbocap
=ifpresent
7540 ac_cv_lbl_turbocap_api
=no
7541 if test "$want_turbocap" != no
; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7544 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7546 save_CFLAGS
="$CFLAGS"
7548 if test ! -z "$turbocap_root"; then
7549 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
7550 TURBOCAP_LIBS
="-L$turbocap_root/lib"
7551 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
7554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7563 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7565 (void)TcInstanceCreateByName("foo", &i);
7571 if ac_fn_c_try_compile
"$LINENO"; then :
7572 ac_cv_lbl_turbocap_api
=yes
7574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7576 CFLAGS
="$save_CFLAGS"
7577 if test $ac_cv_lbl_turbocap_api = yes; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579 $as_echo "yes" >&6; }
7581 SSRC
="$SSRC pcap-tc.c"
7582 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
7583 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7586 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7592 if test "$want_turbocap" = yes; then
7593 # User wanted Turbo support but we couldn't find it.
7594 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
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7600 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7601 # Check whether --enable-remote was given.
7602 if test "${enable_remote+set}" = set; then :
7603 enableval
=$enable_remote;
7608 case "$enableval" in
7609 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7610 $as_echo "yes" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7612 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7614 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7616 # rpcapd requires pthreads on UN*X.
7618 if test "$ac_lbl_have_pthreads" != "found"; then
7619 as_fn_error $?
"rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7622 # It also requires crypt().
7623 # Do we have it in the system libraries?
7625 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
7626 if test "x$ac_cv_func_crypt" = xyes
; then :
7631 # No. Do we have it in -lcrypt?
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7634 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7635 if ${ac_cv_lib_crypt_crypt+:} false
; then :
7636 $as_echo_n "(cached) " >&6
7638 ac_check_lib_save_LIBS
=$LIBS
7639 LIBS
="-lcrypt $LIBS"
7640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7658 if ac_fn_c_try_link
"$LINENO"; then :
7659 ac_cv_lib_crypt_crypt
=yes
7661 ac_cv_lib_crypt_crypt
=no
7663 rm -f core conftest.err conftest.
$ac_objext \
7664 conftest
$ac_exeext conftest.
$ac_ext
7665 LIBS
=$ac_check_lib_save_LIBS
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7668 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7669 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
7672 # Yes; add -lcrypt to the libraries for rpcapd.
7674 RPCAPD_LIBS
="$RPCAPD_LIBS -lcrypt"
7678 as_fn_error $?
"rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7687 # OK, we have crypt(). Do we have getspnam()?
7689 for ac_func
in getspnam
7691 ac_fn_c_check_func
"$LINENO" "getspnam" "ac_cv_func_getspnam"
7692 if test "x$ac_cv_func_getspnam" = xyes
; then :
7693 cat >>confdefs.h
<<_ACEOF
7694 #define HAVE_GETSPNAM 1
7702 # Check for various members of struct msghdr.
7704 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7705 #include \"ftmacros.h\"
7706 #include <sys/socket.h>
7709 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
7711 cat >>confdefs.h
<<_ACEOF
7712 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7718 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7719 #include \"ftmacros.h\"
7720 #include <sys/socket.h>
7723 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes
; then :
7725 cat >>confdefs.h
<<_ACEOF
7726 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7734 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7736 SSRC
="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7737 BUILD_RPCAPD
=build-rpcapd
7738 INSTALL_RPCAPD
=install-rpcapd
7740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7746 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7747 # Check whether --enable-optimizer-dbg was given.
7748 if test "${enable_optimizer_dbg+set}" = set; then :
7749 enableval
=$enable_optimizer_dbg;
7752 if test "$enable_optimizer_dbg" = "yes"; then
7754 $as_echo "#define BDEBUG 1" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7758 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7761 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7762 # Check whether --enable-yydebug was given.
7763 if test "${enable_yydebug+set}" = set; then :
7764 enableval
=$enable_yydebug;
7767 if test "$enable_yydebug" = "yes"; then
7769 $as_echo "#define YYDEBUG 1" >>confdefs.h
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7773 $as_echo "${enable_yydebug-no}" >&6; }
7778 for ac_prog
in flex
lex
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy
$ac_prog; ac_word
=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_LEX+:} false
; then :
7785 $as_echo_n "(cached) " >&6
7787 if test -n "$LEX"; then
7788 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
7790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir
=.
7795 for ac_exec_ext
in '' $ac_executable_extensions; do
7796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_LEX
="$ac_prog"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 if test -n "$LEX"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7810 $as_echo "$LEX" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7817 test -n "$LEX" && break
7819 test -n "$LEX" || LEX
=":"
7821 if test "x$LEX" != "x:"; then
7822 cat >conftest.l
<<_ACEOF
7828 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7829 yyless ((input () != 0)); }
7830 f { unput (yytext[0]); }
7831 . { BEGIN INITIAL; }
7833 #ifdef YYTEXT_POINTER
7834 extern char *yytext;
7839 return ! yylex () + ! yywrap ();
7842 { { ac_try
="$LEX conftest.l"
7844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7848 $as_echo "$ac_try_echo"; } >&5
7849 (eval "$LEX conftest.l") 2>&5
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7854 $as_echo_n "checking lex output file root... " >&6; }
7855 if ${ac_cv_prog_lex_root+:} false; then :
7856 $as_echo_n "(cached) " >&6
7859 if test -f lex.yy.c; then
7860 ac_cv_prog_lex_root=lex.yy
7861 elif test -f lexyy.c; then
7862 ac_cv_prog_lex_root=lexyy
7864 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7868 $as_echo "$ac_cv_prog_lex_root" >&6; }
7869 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7871 if test -z "${LEXLIB+set}"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7873 $as_echo_n "checking lex library... " >&6; }
7874 if ${ac_cv_lib_lex+:} false; then :
7875 $as_echo_n "(cached) " >&6
7879 ac_cv_lib_lex='none needed'
7880 for ac_lib in '' -lfl -ll; do
7881 LIBS="$ac_lib $ac_save_LIBS"
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 `cat $LEX_OUTPUT_ROOT.c
`
7886 if ac_fn_c_try_link "$LINENO"; then :
7887 ac_cv_lib_lex=$ac_lib
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 test "$ac_cv_lib_lex" != 'none needed' && break
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7897 $as_echo "$ac_cv_lib_lex" >&6; }
7898 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7903 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7904 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7905 $as_echo_n "(cached) " >&6
7907 # POSIX says lex can declare yytext either as a pointer or an array; the
7908 # default is implementation-dependent. Figure out which it is, since
7909 # not all implementations provide the %pointer and %array declarations.
7910 ac_cv_prog_lex_yytext_pointer=no
7912 LIBS="$LEXLIB $ac_save_LIBS"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7916 #define YYTEXT_POINTER 1
7917 `cat $LEX_OUTPUT_ROOT.c
`
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 ac_cv_prog_lex_yytext_pointer=yes
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7928 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7929 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7931 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7934 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7937 if test "$LEX" = ":"; then
7938 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7942 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7943 # and supports processing our scanner.l.
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7946 $as_echo_n "checking for capable lex... " >&6; }
7947 if ${tcpdump_cv_capable_lex+:} false; then :
7948 $as_echo_n "(cached) " >&6
7950 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7951 tcpdump_cv_capable_lex=yes
7953 tcpdump_cv_capable_lex=insufficient
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7957 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7958 if test $tcpdump_cv_capable_lex = insufficient ; then
7959 as_fn_error $? "$LEX is insufficient to compile libpcap.
7960 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7964 # Look for yacc/bison/byacc.
7966 for ac_prog in 'bison -y' byacc
7968 # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_YACC+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 if test -n "$YACC"; then
7976 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_YACC="$ac_prog"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 YACC=$ac_cv_prog_YACC
7996 if test -n "$YACC"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7998 $as_echo "$YACC" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8005 test -n "$YACC" && break
8007 test -n "$YACC" || YACC="yacc"
8011 # Make sure it supports the -p flag and supports processing our
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8015 $as_echo_n "checking for capable yacc/bison... " >&6; }
8016 if ${tcpdump_cv_capable_yacc+:} false; then :
8017 $as_echo_n "(cached) " >&6
8019 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8020 tcpdump_cv_capable_yacc=yes
8022 tcpdump_cv_capable_yacc=insufficient
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8026 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8027 if test $tcpdump_cv_capable_yacc = insufficient ; then
8028 as_fn_error $? "$YACC is insufficient to compile libpcap.
8029 libpcap requires Bison, a newer version of Berkeley YACC with support
8030 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8034 # Do various checks for various OSes and versions of those OSes.
8036 # Assume, by default, no support for shared libraries and V7/BSD
8037 # convention for man pages (devices in section 4, file formats in
8038 # section 5, miscellaneous info in section 7, administrative commands
8039 # and daemons in section 8). Individual cases can override this.
8045 MAN_ADMIN_COMMANDS=8
8050 $as_echo "#define _SUN 1" >>confdefs.h
8054 # AIX makes it fun to build shared and static libraries,
8055 # because they're *both* ".a" archive libraries. We
8056 # build the static library for the benefit of the traditional
8057 # scheme of building libpcap and tcpdump in subdirectories of
8058 # the same directory, with tcpdump statically linked with the
8059 # libpcap in question, but we also build a shared library as
8060 # "libpcap.shareda" and install *it*, rather than the static
8061 # library, as "libpcap.a".
8069 # If we're using DLPI, applications will need to
8070 # use /lib/pse.exp if present, as we use the
8073 pseexe="/lib/pse.exp"
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8075 $as_echo_n "checking for $pseexe... " >&6; }
8076 if test -f $pseexe ; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078 $as_echo "yes" >&6; }
8085 # If we're using BPF, we need "-lodm" and "-lcfg", as
8086 # we use them to load the BPF module.
8095 V_CCOPT="$V_CCOPT -fno-common"
8096 # Check whether --enable-universal was given.
8097 if test "${enable_universal+set}" = set; then :
8098 enableval=$enable_universal;
8101 if test "$enable_universal" != "no"; then
8106 # Pre-Tiger. Build only for 32-bit PowerPC; no
8107 # need for any special compiler or linker flags.
8111 darwin8.[0123]|darwin8.[0123].*)
8113 # Tiger, prior to Intel support. Build
8114 # libraries and executables for 32-bit PowerPC
8115 # and 64-bit PowerPC, with 32-bit PowerPC first.
8116 # (I'm guessing that's what Apple does.)
8118 # (The double brackets are needed because
8119 # autotools/m4 use brackets as a quoting
8120 # character; the double brackets turn into
8121 # single brackets in the generated configure
8124 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8125 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8126 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8127 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8130 darwin8.[456]|darwin.[456].*)
8132 # Tiger, subsequent to Intel support but prior
8133 # to x86-64 support. Build libraries and
8134 # executables for 32-bit PowerPC, 64-bit
8135 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8136 # first. (I'm guessing that's what Apple does.)
8138 # (The double brackets are needed because
8139 # autotools/m4 use brackets as a quoting
8140 # character; the double brackets turn into
8141 # single brackets in the generated configure
8144 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8145 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8146 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8147 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8152 # All other Tiger, so subsequent to x86-64
8153 # support. Build libraries and executables for
8154 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8155 # and x86-64, with 32-bit PowerPC first. (I'm
8156 # guessing that's what Apple does.)
8158 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8159 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8160 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8161 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8166 # Leopard. Build libraries for 32-bit PowerPC,
8167 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8168 # 32-bit PowerPC first, and build executables
8169 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8170 # x86 first. (That's what Apple does.)
8172 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8173 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8174 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8175 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8180 # Snow Leopard. Build libraries for x86-64,
8181 # 32-bit x86, and 32-bit PowerPC, with x86-64
8182 # first, and build executables for x86-64 and
8183 # 32-bit x86, with x86-64 first. (That's what
8184 # Apple does, even though Snow Leopard doesn't
8185 # run on PPC, so PPC libpcap runs under Rosetta,
8186 # and Rosetta doesn't support BPF ioctls, so PPC
8187 # programs can't do live captures.)
8189 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8190 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8191 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8192 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8197 # Post-Snow Leopard. Build libraries for x86-64
8198 # and 32-bit x86, with x86-64 first, and build
8199 # executables only for x86-64. (That's what
8200 # Apple does.) This requires no special flags
8202 # XXX - update if and when Apple drops support
8203 # for 32-bit x86 code and if and when Apple adds
8204 # ARM-based Macs. (You're on your own for iOS
8207 # XXX - check whether we *can* build for
8208 # i386 and, if not, suggest that the user
8209 # install the /usr/include headers if they
8210 # want to build fat.
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
8213 $as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
8214 save_CFLAGS="$CFLAGS"
8215 CFLAGS="$CFLAGS -arch i386"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8227 if ac_fn_c_try_compile "$LINENO"; then :
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8230 $as_echo "yes" >&6; }
8231 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386"
8232 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 V_LIB_CCOPT_FAT="-arch x86_64"
8239 V_LIB_LDFLAGS_FAT="-arch x86_64"
8244 # Mojave; you need to install the
8245 # /usr/include headers to get
8246 # 32-bit x86 builds to work.
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&5
8249 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&2;}
8254 # Pre-Mojave; the command-line
8255 # tools should be sufficient to
8256 # enable 32-bit x86 builds.
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5
8259 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;}
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 CFLAGS="$save_CFLAGS"
8273 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8277 # Use System V conventions for man pages.
8279 MAN_ADMIN_COMMANDS=1m
8287 # Use System V conventions for man pages.
8289 MAN_ADMIN_COMMANDS=1m
8297 # Use System V conventions for man pages.
8299 MAN_ADMIN_COMMANDS=1m
8306 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8308 if test "`uname
-m`" = "ia64"; then
8315 # "-b" builds a shared library; "+h" sets the soname.
8321 # Use System V conventions for man pages.
8329 # Use IRIX conventions for man pages; they're the same as the
8330 # System V conventions, except that they use section 8 for
8331 # administrative commands and daemons.
8337 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
8341 # Compiler assumed to be GCC; run-time linker may require a -R
8344 if test "$libdir" != "/usr/lib"; then
8345 V_RFLAGS=-Wl,-R$libdir
8353 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8354 # Use Tru64 UNIX conventions for man pages; they're the same as
8355 # the System V conventions except that they use section 8 for
8356 # administrative commands and daemons.
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8365 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8366 if ${ac_cv_cc_sinix_defined+:} false; then :
8367 $as_echo_n "(cached) " >&6
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 ac_cv_cc_sinix_defined=yes
8383 ac_cv_cc_sinix_defined=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8389 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
8390 if test $ac_cv_cc_sinix_defined = no ; then
8392 $as_echo "#define sinix 1" >>confdefs.h
8399 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8405 # Make sure errno is thread-safe, in case we're called in
8406 # a multithreaded program. We don't guarantee that two
8407 # threads can use the *same* pcap_t safely, but the
8408 # current version does guarantee that you can use different
8409 # pcap_t's in different threads, and even that pcap_compile()
8410 # is thread-safe (it wasn't thread-safe in some older versions).
8412 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8414 case "`uname
-r`" in
8421 # Use System V conventions for man pages.
8423 MAN_ADMIN_COMMANDS=1m
8431 # Check whether --enable-shared was given.
8432 if test "${enable_shared+set}" = set; then :
8433 enableval=$enable_shared;
8436 test "x$enable_shared" = "xno" && DYEXT="none"
8438 if test -n "$ac_tool_prefix"; then
8439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_RANLIB+:} false; then :
8444 $as_echo_n "(cached) " >&6
8446 if test -n "$RANLIB"; then
8447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 RANLIB=$ac_cv_prog_RANLIB
8467 if test -n "$RANLIB"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8469 $as_echo "$RANLIB" >&6; }
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8477 if test -z "$ac_cv_prog_RANLIB"; then
8478 ac_ct_RANLIB=$RANLIB
8479 # Extract the first word of "ranlib", so it can be a program name with args.
8480 set dummy ranlib; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8484 $as_echo_n "(cached) " >&6
8486 if test -n "$ac_ct_RANLIB"; then
8487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496 ac_cv_prog_ac_ct_RANLIB="ranlib"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8507 if test -n "$ac_ct_RANLIB"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8509 $as_echo "$ac_ct_RANLIB" >&6; }
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8515 if test "x$ac_ct_RANLIB" = x; then
8518 case $cross_compiling:$ac_tool_warned in
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8524 RANLIB=$ac_ct_RANLIB
8527 RANLIB="$ac_cv_prog_RANLIB"
8530 if test -n "$ac_tool_prefix"; then
8531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}ar; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_AR+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 if test -n "$AR"; then
8539 ac_cv_prog_AR="$AR" # Let the user override the test.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_AR="${ac_tool_prefix}ar"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 if test -n "$AR"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8561 $as_echo "$AR" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8569 if test -z "$ac_cv_prog_AR"; then
8571 # Extract the first word of "ar", so it can be a program name with args.
8572 set dummy ar; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8576 $as_echo_n "(cached) " >&6
8578 if test -n "$ac_ct_AR"; then
8579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_ac_ct_AR="ar"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8599 if test -n "$ac_ct_AR"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8601 $as_echo "$ac_ct_AR" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8607 if test "x$ac_ct_AR" = x; then
8610 case $cross_compiling:$ac_tool_warned in
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8614 ac_tool_warned=yes ;;
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8624 $as_echo_n "checking whether ln -s works... " >&6; }
8626 if test "$LN_S" = "ln -s"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8628 $as_echo "yes" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8631 $as_echo "no, using $LN_S" >&6; }
8637 if test "${LBL_CFLAGS+set}" = set; then
8638 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8640 if test -f .devel ; then
8642 # Skip all the warning option stuff on some compilers.
8644 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8647 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8648 save_CFLAGS="$CFLAGS"
8649 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8661 if ac_fn_c_try_compile "$LINENO"; then :
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8666 # We're assuming this is clang, where
8667 # -Werror=unknown-warning-option is the appropriate
8668 # option to force the compiler to fail.
8670 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8675 $as_echo "yes" >&6; }
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 CFLAGS="$save_CFLAGS"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
8683 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
8684 save_CFLAGS="$CFLAGS"
8685 if expr "x-W" : "x-W.*" >/dev/null
8687 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
8688 elif expr "x-W" : "x-f.*" >/dev/null
8690 CFLAGS="$CFLAGS -Werror -W"
8691 elif expr "x-W" : "x-m.*" >/dev/null
8693 CFLAGS="$CFLAGS -Werror -W"
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8708 if ac_fn_c_try_compile "$LINENO"; then :
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 can_add_to_cflags=yes
8714 # The compile supports this; do we have some C code for
8715 # which the warning should *not* appear?
8716 # We test the fourth argument because the third argument
8717 # could contain quotes, breaking the test.
8721 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
8723 $as_echo_n "checking whether -W ... " >&6; }
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8728 if ac_fn_c_try_compile "$LINENO"; then :
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8742 $as_echo "yes" >&6; }
8743 can_add_to_cflags=no
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 CFLAGS="$save_CFLAGS"
8749 if test x"$can_add_to_cflags" = "xyes"
8751 V_CCOPT="$V_CCOPT -W"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8758 CFLAGS="$save_CFLAGS"
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8765 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8766 save_CFLAGS="$CFLAGS"
8767 if expr "x-Wall" : "x-W.*" >/dev/null
8769 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8770 elif expr "x-Wall" : "x-f.*" >/dev/null
8772 CFLAGS="$CFLAGS -Werror -Wall"
8773 elif expr "x-Wall" : "x-m.*" >/dev/null
8775 CFLAGS="$CFLAGS -Werror -Wall"
8777 CFLAGS="$CFLAGS -Wall"
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8790 if ac_fn_c_try_compile "$LINENO"; then :
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8793 $as_echo "yes" >&6; }
8794 can_add_to_cflags=yes
8796 # The compile supports this; do we have some C code for
8797 # which the warning should *not* appear?
8798 # We test the fourth argument because the third argument
8799 # could contain quotes, breaking the test.
8803 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
8805 $as_echo_n "checking whether -Wall ... " >&6; }
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8810 if ac_fn_c_try_compile "$LINENO"; then :
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8824 $as_echo "yes" >&6; }
8825 can_add_to_cflags=no
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 CFLAGS="$save_CFLAGS"
8831 if test x"$can_add_to_cflags" = "xyes"
8833 V_CCOPT="$V_CCOPT -Wall"
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 CFLAGS="$save_CFLAGS"
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
8847 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
8848 save_CFLAGS="$CFLAGS"
8849 if expr "x-Wcomma" : "x-W.*" >/dev/null
8851 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
8852 elif expr "x-Wcomma" : "x-f.*" >/dev/null
8854 CFLAGS="$CFLAGS -Werror -Wcomma"
8855 elif expr "x-Wcomma" : "x-m.*" >/dev/null
8857 CFLAGS="$CFLAGS -Werror -Wcomma"
8859 CFLAGS="$CFLAGS -Wcomma"
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8872 if ac_fn_c_try_compile "$LINENO"; then :
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8875 $as_echo "yes" >&6; }
8876 can_add_to_cflags=yes
8878 # The compile supports this; do we have some C code for
8879 # which the warning should *not* appear?
8880 # We test the fourth argument because the third argument
8881 # could contain quotes, breaking the test.
8885 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
8887 $as_echo_n "checking whether -Wcomma ... " >&6; }
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8892 if ac_fn_c_try_compile "$LINENO"; then :
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8906 $as_echo "yes" >&6; }
8907 can_add_to_cflags=no
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 CFLAGS="$save_CFLAGS"
8913 if test x"$can_add_to_cflags" = "xyes"
8915 V_CCOPT="$V_CCOPT -Wcomma"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8922 CFLAGS="$save_CFLAGS"
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
8929 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
8930 save_CFLAGS="$CFLAGS"
8931 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
8933 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
8934 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
8936 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8937 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
8939 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8941 CFLAGS="$CFLAGS -Wdocumentation"
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8954 if ac_fn_c_try_compile "$LINENO"; then :
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8957 $as_echo "yes" >&6; }
8958 can_add_to_cflags=yes
8960 # The compile supports this; do we have some C code for
8961 # which the warning should *not* appear?
8962 # We test the fourth argument because the third argument
8963 # could contain quotes, breaking the test.
8967 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
8969 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8974 if ac_fn_c_try_compile "$LINENO"; then :
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988 $as_echo "yes" >&6; }
8989 can_add_to_cflags=no
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 CFLAGS="$save_CFLAGS"
8995 if test x"$can_add_to_cflags" = "xyes"
8997 V_CCOPT="$V_CCOPT -Wdocumentation"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 CFLAGS="$save_CFLAGS"
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
9011 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
9012 save_CFLAGS="$CFLAGS"
9013 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
9015 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
9016 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
9018 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9019 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
9021 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9023 CFLAGS="$CFLAGS -Wformat-nonliteral"
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9036 if ac_fn_c_try_compile "$LINENO"; then :
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9039 $as_echo "yes" >&6; }
9040 can_add_to_cflags=yes
9042 # The compile supports this; do we have some C code for
9043 # which the warning should *not* appear?
9044 # We test the fourth argument because the third argument
9045 # could contain quotes, breaking the test.
9049 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
9051 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9056 if ac_fn_c_try_compile "$LINENO"; then :
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070 $as_echo "yes" >&6; }
9071 can_add_to_cflags=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 CFLAGS="$save_CFLAGS"
9077 if test x"$can_add_to_cflags" = "xyes"
9079 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 $as_echo "no" >&6; }
9086 CFLAGS="$save_CFLAGS"
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9093 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9094 save_CFLAGS="$CFLAGS"
9095 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9097 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9098 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9100 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9101 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9103 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9105 CFLAGS="$CFLAGS -Wmissing-noreturn"
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9118 if ac_fn_c_try_compile "$LINENO"; then :
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9121 $as_echo "yes" >&6; }
9122 can_add_to_cflags=yes
9124 # The compile supports this; do we have some C code for
9125 # which the warning should *not* appear?
9126 # We test the fourth argument because the third argument
9127 # could contain quotes, breaking the test.
9131 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9133 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9138 if ac_fn_c_try_compile "$LINENO"; then :
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9153 can_add_to_cflags=no
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 CFLAGS="$save_CFLAGS"
9159 if test x"$can_add_to_cflags" = "xyes"
9161 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 CFLAGS="$save_CFLAGS"
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9175 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9176 save_CFLAGS="$CFLAGS"
9177 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9179 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9180 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9182 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9183 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9185 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9187 CFLAGS="$CFLAGS -Wmissing-prototypes"
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9200 if ac_fn_c_try_compile "$LINENO"; then :
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9203 $as_echo "yes" >&6; }
9204 can_add_to_cflags=yes
9206 # The compile supports this; do we have some C code for
9207 # which the warning should *not* appear?
9208 # We test the fourth argument because the third argument
9209 # could contain quotes, breaking the test.
9213 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9215 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9220 if ac_fn_c_try_compile "$LINENO"; then :
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9234 $as_echo "yes" >&6; }
9235 can_add_to_cflags=no
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 CFLAGS="$save_CFLAGS"
9241 if test x"$can_add_to_cflags" = "xyes"
9243 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9250 CFLAGS="$save_CFLAGS"
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9257 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9258 save_CFLAGS="$CFLAGS"
9259 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9261 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9262 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9264 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9265 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9267 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9269 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9282 if ac_fn_c_try_compile "$LINENO"; then :
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9285 $as_echo "yes" >&6; }
9286 can_add_to_cflags=yes
9288 # The compile supports this; do we have some C code for
9289 # which the warning should *not* appear?
9290 # We test the fourth argument because the third argument
9291 # could contain quotes, breaking the test.
9295 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9297 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9302 if ac_fn_c_try_compile "$LINENO"; then :
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316 $as_echo "yes" >&6; }
9317 can_add_to_cflags=no
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 CFLAGS="$save_CFLAGS"
9323 if test x"$can_add_to_cflags" = "xyes"
9325 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 $as_echo "no" >&6; }
9332 CFLAGS="$save_CFLAGS"
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
9339 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
9340 save_CFLAGS="$CFLAGS"
9341 if expr "x-Wshadow" : "x-W.*" >/dev/null
9343 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
9344 elif expr "x-Wshadow" : "x-f.*" >/dev/null
9346 CFLAGS="$CFLAGS -Werror -Wshadow"
9347 elif expr "x-Wshadow" : "x-m.*" >/dev/null
9349 CFLAGS="$CFLAGS -Werror -Wshadow"
9351 CFLAGS="$CFLAGS -Wshadow"
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9364 if ac_fn_c_try_compile "$LINENO"; then :
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9367 $as_echo "yes" >&6; }
9368 can_add_to_cflags=yes
9370 # The compile supports this; do we have some C code for
9371 # which the warning should *not* appear?
9372 # We test the fourth argument because the third argument
9373 # could contain quotes, breaking the test.
9377 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
9379 $as_echo_n "checking whether -Wshadow ... " >&6; }
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9384 if ac_fn_c_try_compile "$LINENO"; then :
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9398 $as_echo "yes" >&6; }
9399 can_add_to_cflags=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 CFLAGS="$save_CFLAGS"
9405 if test x"$can_add_to_cflags" = "xyes"
9407 V_CCOPT="$V_CCOPT -Wshadow"
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9414 CFLAGS="$save_CFLAGS"
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
9421 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
9422 save_CFLAGS="$CFLAGS"
9423 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
9425 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
9426 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
9428 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9429 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
9431 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9433 CFLAGS="$CFLAGS -Wsign-compare"
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9446 if ac_fn_c_try_compile "$LINENO"; then :
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9449 $as_echo "yes" >&6; }
9450 can_add_to_cflags=yes
9452 # The compile supports this; do we have some C code for
9453 # which the warning should *not* appear?
9454 # We test the fourth argument because the third argument
9455 # could contain quotes, breaking the test.
9459 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
9461 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9466 if ac_fn_c_try_compile "$LINENO"; then :
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9480 $as_echo "yes" >&6; }
9481 can_add_to_cflags=no
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9486 CFLAGS="$save_CFLAGS"
9487 if test x"$can_add_to_cflags" = "xyes"
9489 V_CCOPT="$V_CCOPT -Wsign-compare"
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 CFLAGS="$save_CFLAGS"
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
9503 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
9504 save_CFLAGS="$CFLAGS"
9505 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
9507 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
9508 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
9510 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9511 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
9513 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9515 CFLAGS="$CFLAGS -Wstrict-prototypes"
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9528 if ac_fn_c_try_compile "$LINENO"; then :
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9531 $as_echo "yes" >&6; }
9532 can_add_to_cflags=yes
9534 # The compile supports this; do we have some C code for
9535 # which the warning should *not* appear?
9536 # We test the fourth argument because the third argument
9537 # could contain quotes, breaking the test.
9541 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
9543 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9548 if ac_fn_c_try_compile "$LINENO"; then :
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9562 $as_echo "yes" >&6; }
9563 can_add_to_cflags=no
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 CFLAGS="$save_CFLAGS"
9569 if test x"$can_add_to_cflags" = "xyes"
9571 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9578 CFLAGS="$save_CFLAGS"
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
9585 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
9586 save_CFLAGS="$CFLAGS"
9587 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
9589 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
9590 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
9592 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9593 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
9595 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9597 CFLAGS="$CFLAGS -Wunused-parameter"
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9610 if ac_fn_c_try_compile "$LINENO"; then :
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9613 $as_echo "yes" >&6; }
9614 can_add_to_cflags=yes
9616 # The compile supports this; do we have some C code for
9617 # which the warning should *not* appear?
9618 # We test the fourth argument because the third argument
9619 # could contain quotes, breaking the test.
9623 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
9625 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9630 if ac_fn_c_try_compile "$LINENO"; then :
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9644 $as_echo "yes" >&6; }
9645 can_add_to_cflags=no
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 CFLAGS="$save_CFLAGS"
9651 if test x"$can_add_to_cflags" = "xyes"
9653 V_CCOPT="$V_CCOPT -Wunused-parameter"
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9660 CFLAGS="$save_CFLAGS"
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
9667 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
9668 save_CFLAGS="$CFLAGS"
9669 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
9671 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
9672 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
9674 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9675 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
9677 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9679 CFLAGS="$CFLAGS -Wused-but-marked-unused"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9692 if ac_fn_c_try_compile "$LINENO"; then :
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9695 $as_echo "yes" >&6; }
9696 can_add_to_cflags=yes
9698 # The compile supports this; do we have some C code for
9699 # which the warning should *not* appear?
9700 # We test the fourth argument because the third argument
9701 # could contain quotes, breaking the test.
9705 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
9707 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9712 if ac_fn_c_try_compile "$LINENO"; then :
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9726 $as_echo "yes" >&6; }
9727 can_add_to_cflags=no
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 CFLAGS="$save_CFLAGS"
9733 if test x"$can_add_to_cflags" = "xyes"
9735 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 CFLAGS="$save_CFLAGS"
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 # Warns about safeguards added in case the enums are
9749 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
9751 # This can cause problems with ntohs(), ntohl(),
9752 # htons(), and htonl() on some platforms, such
9753 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
9754 # problem is that the macro that ultimately does
9755 # the byte-swapping involves a conditional
9756 # expression that tests whether the value being
9757 # swapped is a compile-time constant or not,
9758 # using __builtin_constant_p(), and, depending
9759 # on whether it is, does a compile-time swap or
9760 # a run-time swap; perhaps the compiler always
9761 # considers one of the two results of the
9762 # conditional expressin is never evaluated,
9763 # because the conditional check is done at
9764 # compile time, and thus always says "that
9765 # expression is never executed".
9767 # (Perhaps there should be a way of flagging
9768 # an expression that you *want* evaluated at
9769 # compile time, so that the compiler 1) warns
9770 # if it *can't* be evaluated at compile time
9771 # and 2) *doesn't* warn that the true or false
9772 # branch will never be reached.)
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
9776 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
9777 save_CFLAGS="$CFLAGS"
9778 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
9780 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
9781 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
9783 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9784 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
9786 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9788 CFLAGS="$CFLAGS -Wunreachable-code"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9801 if ac_fn_c_try_compile "$LINENO"; then :
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9804 $as_echo "yes" >&6; }
9805 can_add_to_cflags=yes
9807 # The compile supports this; do we have some C code for
9808 # which the warning should *not* appear?
9809 # We test the fourth argument because the third argument
9810 # could contain quotes, breaking the test.
9812 if test "xgenerates warnings from ntohs()" != "x"
9814 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
9816 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 #include <arpa/inet.h>
9822 testme(unsigned short a)
9828 if ac_fn_c_try_compile "$LINENO"; then :
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9842 $as_echo "yes" >&6; }
9843 can_add_to_cflags=no
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 CFLAGS="$save_CFLAGS"
9849 if test x"$can_add_to_cflags" = "xyes"
9851 V_CCOPT="$V_CCOPT -Wunreachable-code"
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9858 CFLAGS="$save_CFLAGS"
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5
9865 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
9866 save_CFLAGS="$CFLAGS"
9867 if expr "x-Wshorten-64-to-32" : "x-W.*" >/dev/null
9869 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshorten-64-to-32"
9870 elif expr "x-Wshorten-64-to-32" : "x-f.*" >/dev/null
9872 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9873 elif expr "x-Wshorten-64-to-32" : "x-m.*" >/dev/null
9875 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9877 CFLAGS="$CFLAGS -Wshorten-64-to-32"
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9890 if ac_fn_c_try_compile "$LINENO"; then :
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9893 $as_echo "yes" >&6; }
9894 can_add_to_cflags=yes
9896 # The compile supports this; do we have some C code for
9897 # which the warning should *not* appear?
9898 # We test the fourth argument because the third argument
9899 # could contain quotes, breaking the test.
9903 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
9905 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9910 if ac_fn_c_try_compile "$LINENO"; then :
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9925 can_add_to_cflags=no
9928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 CFLAGS="$save_CFLAGS"
9931 if test x"$can_add_to_cflags" = "xyes"
9933 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9940 CFLAGS="$save_CFLAGS"
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
9948 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
9949 if test "$GCC" = yes ; then
9951 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
9952 # though it's not); we assume that, in this case, the flag
9955 ac_lbl_dependency_flag="-M"
9958 # Not GCC or a compiler deemed to be GCC; what platform is
9959 # this? (We're assuming that if the compiler isn't GCC
9960 # it's the compiler from the vendor of the OS; that won't
9961 # necessarily be true for x86 platforms, where it might be
9962 # the Intel C compiler.)
9968 # MIPS C for IRIX, DEC C, and clang all use -M.
9970 ac_lbl_dependency_flag="-M"
9977 ac_lbl_dependency_flag="-xM"
9982 # HP's older C compilers don't support this.
9983 # HP's newer C compilers support this with
9984 # either +M or +Make; the older compilers
9985 # interpret +M as something completely
9986 # different, so we use +Make so we don't
9987 # think it works with the older compilers.
9989 ac_lbl_dependency_flag="+Make"
9994 # Not one of the above; assume no support for
9995 # generating dependencies.
9997 ac_lbl_dependency_flag=""
10003 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
10004 # complain about it?
10006 # Note: clang doesn't seem to exit with an error status when handed
10007 # an unknown non-warning error, even if you pass it
10008 # -Werror=unknown-warning-option. However, it always supports
10009 # -M, so the fact that this test always succeeds with clang
10012 if test ! -z "$ac_lbl_dependency_flag"; then
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 int main(void) { return 0; }
10017 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
10018 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
10020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10021 test $ac_status = 0; }; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
10023 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
10024 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
10025 MKDEP='${srcdir}/mkdep'
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10030 # We can't run mkdep, so have "make depend" do
10033 MKDEP='${srcdir}/nomkdep'
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10040 # We can't run mkdep, so have "make depend" do
10043 MKDEP='${srcdir}/nomkdep'
10049 # We used to set -n32 for IRIX 6 when not using GCC (presumed
10050 # to mean that we're using MIPS C or MIPSpro C); it specified
10051 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
10052 # not sure why that would be something to do *only* with a
10053 # .devel file; why should the ABI for which we produce code
10054 # depend on .devel?
10056 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10057 name="lbl/os-$os.h"
10058 if test -f $name ; then
10059 ln -s $name os-proto.h
10061 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
10065 $as_echo "$as_me: WARNING: can't find $name" >&2;}
10070 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10072 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10073 #include <sys/types.h>
10074 #include <sys/socket.h>
10077 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10079 cat >>confdefs.h <<_ACEOF
10080 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10088 # Check to see if there's a sockaddr_storage structure.
10090 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10091 #include <sys/types.h>
10092 #include <sys/socket.h>
10095 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10097 cat >>confdefs.h <<_ACEOF
10098 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10106 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10107 # dl_module_id_1 member.
10109 # NOTE: any failure means we conclude that it doesn't have that member,
10110 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10111 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10112 # it doesn't have that member (which is OK, as either we won't be
10113 # using code that would use that member, or we wouldn't compile in
10116 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" "
10117 #include <sys/types.h>
10118 #include <sys/dlpi.h>
10119 #include <sys/dlpi_ext.h>
10122 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10124 cat >>confdefs.h <<_ACEOF
10125 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10162 # Check whether --enable-usb was given.
10163 if test "${enable_usb+set}" = set; then :
10164 enableval=$enable_usb;
10170 if test "xxx_only" = yes; then
10171 # User requested something-else-only pcap, so they don't
10172 # want USB support.
10176 if test "x$enable_usb" != "xno" ; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
10178 $as_echo_n "checking for USB sniffing support... " >&6; }
10182 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
10184 USB_SRC=pcap-usb-linux.c
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10186 $as_echo "yes" >&6; }
10187 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
10188 if test $? -ne 0 ; then
10189 ac_usb_dev_name="usbmon"
10192 cat >>confdefs.h <<_ACEOF
10193 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10197 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10199 # Do we have a version of <linux/compiler.h> available?
10200 # If so, we might need it for <linux/usbdevice_fs.h>.
10202 for ac_header in linux/compiler.h
10204 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
10205 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
10206 cat >>confdefs.h <<_ACEOF
10207 #define HAVE_LINUX_COMPILER_H 1
10214 if test "$ac_cv_header_linux_compiler_h" = yes; then
10216 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10218 for ac_header in linux/usbdevice_fs.h
10220 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
10222 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_LINUX_USBDEVICE_FS_H 1
10232 for ac_header in linux/usbdevice_fs.h
10234 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
10235 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10236 cat >>confdefs.h <<_ACEOF
10237 #define HAVE_LINUX_USBDEVICE_FS_H 1
10245 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10247 # OK, does it define bRequestType? Older versions of the kernel
10248 # define fields with names like "requesttype, "request", and
10249 # "value", rather than "bRequestType", "bRequest", and
10252 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
10253 $ac_includes_default
10254 #ifdef HAVE_LINUX_COMPILER_H
10255 #include <linux/compiler.h>
10257 #include <linux/usbdevice_fs.h>
10260 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
10262 cat >>confdefs.h <<_ACEOF
10263 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10273 # This just uses BPF in FreeBSD 8.4 and later; we don't need
10274 # to check for anything special for capturing.
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
10277 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10289 if test "xxx_only" != yes; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
10291 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10295 $as_echo "yes" >&6; }
10297 # Life's too short to deal with trying to get this to compile
10298 # if you don't get the right types defined with
10299 # __KERNEL_STRICT_NAMES getting defined by some other include.
10301 # Check whether the includes Just Work. If not, don't turn on
10302 # netfilter support.
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
10305 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
10306 if ${ac_cv_netfilter_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 #include <sys/socket.h>
10314 #include <netinet/in.h>
10315 #include <linux/types.h>
10317 #include <linux/netlink.h>
10318 #include <linux/netfilter.h>
10319 #include <linux/netfilter/nfnetlink.h>
10320 #include <linux/netfilter/nfnetlink_log.h>
10321 #include <linux/netfilter/nfnetlink_queue.h>
10330 if ac_fn_c_try_compile "$LINENO"; then :
10331 ac_cv_netfilter_can_compile=yes
10333 ac_cv_netfilter_can_compile=no
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
10339 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
10340 if test $ac_cv_netfilter_can_compile = yes ; then
10342 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
10344 NETFILTER_SRC=pcap-netfilter-linux.c
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10356 # Check whether --enable-netmap was given.
10357 if test "${enable_netmap+set}" = set; then :
10358 enableval=$enable_netmap;
10364 if test "x$enable_netmap" != "xno" ; then
10366 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
10367 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
10368 # is defined, for example, as it includes a non-existent malloc.h
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
10372 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
10373 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
10374 $as_echo_n "(cached) " >&6
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10379 $ac_includes_default
10380 #define NETMAP_WITH_LIBS
10381 #include <net/netmap_user.h>
10390 if ac_fn_c_try_compile "$LINENO"; then :
10391 ac_cv_net_netmap_user_can_compile=yes
10393 ac_cv_net_netmap_user_can_compile=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
10399 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
10400 if test $ac_cv_net_netmap_user_can_compile = yes ; then
10402 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
10404 NETMAP_SRC=pcap-netmap.c
10410 # Check for DPDK support, defualt no. --enable-dpdk shall be setted explicitly.
10411 # Check whether --enable-dpdk was given.
10412 if test "${enable_dpdk+set}" = set; then :
10413 enableval=$enable_dpdk; enable_dpdk=$enableval
10420 # Check whether --with-dpdk-includes was given.
10421 if test "${with_dpdk_includes+set}" = set; then :
10422 withval=$with_dpdk_includes;
10423 # User wants DPDK support and has specified a header directory, so use the provided value.
10424 dpdk_include_dir=$withval
10430 # Check whether --with-dpdk-libraries was given.
10431 if test "${with_dpdk_libraries+set}" = set; then :
10432 withval=$with_dpdk_libraries;
10433 # User wants DPDK support and has specified a library directory, so use the provided value.
10434 dpdk_lib_dir=$withval
10439 if test "x$enable_dpdk" != "xno" ; then
10440 # If necessary, set default paths for DPDK API headers and libraries.
10441 if test -z "$dpdk_include_dir"; then
10442 dpdk_include_dir="$RTE_SDK/$RTE_TARGET/include"
10445 if test -z "$dpdk_lib_dir"; then
10446 dpdk_lib_dir="$RTE_SDK/$RTE_TARGET/lib"
10448 DPDK_MACHINE_CFLAGS="-march=native"
10449 DPDK_CFLAGS="$DPDK_MACHINE_CFLAGS -I$dpdk_include_dir"
10450 DPDK_LDFLAGS="-L$dpdk_lib_dir -ldpdk -lrt -lm -lnuma -ldl -pthread"
10451 DPDK_LIBS=$DPDK_LDFLAGS
10452 CFLAGS="$CFLAGS $DPDK_CFLAGS"
10453 LIBS="$LIBS $DPDK_LIBS"
10454 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
10455 V_INCLS="$V_INCLS $DPDK_CFLAGS"
10456 if test $enable_dpdk = yes ; then
10458 $as_echo "#define PCAP_SUPPORT_DPDK 1" >>confdefs.h
10460 DPDK_SRC=pcap-dpdk.c
10466 # Check whether --enable-bluetooth was given.
10467 if test "${enable_bluetooth+set}" = set; then :
10468 enableval=$enable_bluetooth;
10470 enable_bluetooth=ifsupportavailable
10474 if test "xxx_only" = yes; then
10475 # User requested something-else-only pcap, so they don't
10476 # want Bluetooth support.
10477 enable_bluetooth=no
10480 if test "x$enable_bluetooth" != "xno" ; then
10483 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
10484 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
10487 # We have bluetooth.h, so we support Bluetooth
10491 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
10493 BT_SRC=pcap-bt-linux.c
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
10495 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
10496 ac_lbl_bluetooth_available=yes
10499 # OK, does struct sockaddr_hci have an hci_channel
10502 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
10503 #include <bluetooth/bluetooth.h>
10504 #include <bluetooth/hci.h>
10507 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
10515 # Yes; is HCI_CHANNEL_MONITOR defined?
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
10518 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
10519 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
10520 $as_echo_n "(cached) " >&6
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10525 #include <bluetooth/bluetooth.h>
10526 #include <bluetooth/hci.h>
10532 u_int i = HCI_CHANNEL_MONITOR;
10538 if ac_fn_c_try_compile "$LINENO"; then :
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541 $as_echo "yes" >&6; }
10543 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
10545 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10563 # We don't have bluetooth.h, so we don't support
10564 # Bluetooth sniffing.
10566 if test "x$enable_bluetooth" = "xyes" ; then
10567 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10570 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10578 if test "x$enable_bluetooth" = "xyes" ; then
10579 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
10582 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10591 # Check whether --enable-dbus was given.
10592 if test "${enable_dbus+set}" = set; then :
10593 enableval=$enable_dbus;
10595 enable_dbus=ifavailable
10599 if test "xxx_only" = yes; then
10600 # User requested something-else-only pcap, so they don't
10601 # want D-Bus support.
10605 if test "x$enable_dbus" != "xno"; then
10606 if test "x$enable_dbus" = "xyes"; then
10611 # We don't support D-Bus sniffing on macOS; see
10613 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10615 # The user requested it, so fail.
10617 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
10624 # We don't support D-Bus sniffing on macOS; see
10626 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10628 # The user dind't explicitly request it, so just
10629 # silently refuse to enable it.
10637 if test "x$enable_dbus" != "xno"; then
10638 # Extract the first word of "pkg-config", so it can be a program name with args.
10639 set dummy pkg-config; ac_word=$2
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 $as_echo_n "checking for $ac_word... " >&6; }
10642 if ${ac_cv_prog_PKGCONFIG+:} false; then :
10643 $as_echo_n "(cached) " >&6
10645 if test -n "$PKGCONFIG"; then
10646 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10652 test -z "$as_dir" && as_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10655 ac_cv_prog_PKGCONFIG="pkg-config"
10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
10666 PKGCONFIG=$ac_cv_prog_PKGCONFIG
10667 if test -n "$PKGCONFIG"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10669 $as_echo "$PKGCONFIG" >&6; }
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10676 if test "x$PKGCONFIG" != "xno"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
10678 $as_echo_n "checking for D-Bus... " >&6; }
10679 if "$PKGCONFIG" dbus-1; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; }
10682 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
10683 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
10684 save_CFLAGS="$CFLAGS"
10686 CFLAGS="$CFLAGS $DBUS_CFLAGS"
10687 LIBS="$LIBS $DBUS_LIBS"
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
10689 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 #include <string.h>
10695 #include <sys/time.h>
10697 #include <dbus/dbus.h>
10701 return dbus_connection_read_write(NULL, 0);
10706 if ac_fn_c_try_link "$LINENO"; then :
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; }
10711 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
10713 DBUS_SRC=pcap-dbus.c
10714 V_INCLS="$V_INCLS $DBUS_CFLAGS"
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 if test "x$enable_dbus" = "xyes"; then
10721 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 CFLAGS="$save_CFLAGS"
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10732 if test "x$enable_dbus" = "xyes"; then
10733 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
10741 # Check whether --enable-rdma was given.
10742 if test "${enable_rdma+set}" = set; then :
10743 enableval=$enable_rdma;
10745 enable_rdma=ifavailable
10749 if test "xxx_only" = yes; then
10750 # User requested something-else-only pcap, so they don't
10751 # want RDMA support.
10755 if test "x$enable_rdma" != "xno"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
10757 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
10758 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
10759 $as_echo_n "(cached) " >&6
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-libverbs $LIBS"
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10772 char ibv_get_device_list ();
10776 return ibv_get_device_list ();
10781 if ac_fn_c_try_link "$LINENO"; then :
10782 ac_cv_lib_ibverbs_ibv_get_device_list=yes
10784 ac_cv_lib_ibverbs_ibv_get_device_list=no
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
10791 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
10792 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
10794 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
10795 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
10798 # ibv_create_flow may be defined as a static inline
10799 # function in infiniband/verbs.h, so we can't
10800 # use AC_CHECK_LIB.
10802 # Too bad autoconf has no AC_SYMBOL_EXISTS()
10803 # macro that works like CMake's check_symbol_exists()
10804 # function, to check do a compile check like
10805 # this (they do a clever trick to avoid having
10806 # to know the function's signature).
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
10809 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 #include <infiniband/verbs.h>
10819 (void) ibv_create_flow((struct ibv_qp *) NULL,
10820 (struct ibv_flow_attr *) NULL);
10826 if ac_fn_c_try_link "$LINENO"; then :
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10829 $as_echo "yes" >&6; }
10831 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
10833 RDMA_SRC=pcap-rdmasniff.c
10834 LIBS="-libverbs $LIBS"
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10843 rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10856 # Find a good install program. We prefer a C program (faster),
10857 # so one script is as good as another. But avoid the broken or
10858 # incompatible versions:
10859 # SysV /etc/install, /usr/sbin/install
10860 # SunOS /usr/etc/install
10861 # IRIX /sbin/install
10863 # AmigaOS /C/install, which installs bootblocks on floppy discs
10864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10867 # OS/2's system install, which has a completely different semantic
10868 # ./install, which can be erroneously created by make from ./install.sh.
10869 # Reject install programs that cannot install multiple files.
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10872 if test -z "$INSTALL"; then
10873 if ${ac_cv_path_install+:} false; then :
10874 $as_echo_n "(cached) " >&6
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10880 test -z "$as_dir" && as_dir=.
10881 # Account for people who put trailing slashes in PATH elements.
10882 case $as_dir/ in #((
10883 ./ | .// | /[cC]/* | \
10884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10885 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10888 # OSF1 and SCO ODT 3.0 have their own names for install.
10889 # Don't use installbsd from OSF since it installs stuff as root
10891 for ac_prog in ginstall scoinst install; do
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10894 if test $ac_prog = install &&
10895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10896 # AIX install. It has an incompatible calling convention.
10898 elif test $ac_prog = install &&
10899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10900 # program-specific install script used by HP pwplus--don't use.
10903 rm -rf conftest.one conftest.two conftest.dir
10904 echo one > conftest.one
10905 echo two > conftest.two
10907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10908 test -s conftest.one && test -s conftest.two &&
10909 test -s conftest.dir/conftest.one &&
10910 test -s conftest.dir/conftest.two
10912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10925 rm -rf conftest.one conftest.two conftest.dir
10928 if test "${ac_cv_path_install+set}" = set; then
10929 INSTALL=$ac_cv_path_install
10931 # As a last resort, use the slow shell script. Don't cache a
10932 # value for INSTALL within a source directory, because that will
10933 # break other packages using the cache if that directory is
10934 # removed, or if the value is a relative name.
10935 INSTALL=$ac_install_sh
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10939 $as_echo "$INSTALL" >&6; }
10941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10942 # It thinks the first close brace ends the variable substitution.
10943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10950 ac_config_headers="$ac_config_headers config.h"
10953 ac_config_commands="$ac_config_commands default-1"
10955 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"
10957 cat >confcache <<\_ACEOF
10958 # This file is a shell script that caches the results of configure
10959 # tests run on this system so they can be shared between configure
10960 # scripts and configure runs, see configure's option --config-cache.
10961 # It is not useful on other systems. If it contains results you don't
10962 # want to keep, you may remove or edit it.
10964 # config.status only pays attention to the cache file if you give it
10965 # the --recheck option to rerun configure.
10967 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10969 # following values.
10973 # The following way of writing the cache mishandles newlines in values,
10974 # but we know of no workaround that is simple, portable, and efficient.
10975 # So, we kill variables containing newlines.
10976 # Ultrix sh set writes to stderr and can't be redirected directly,
10977 # and sets the high bit in the cache file unless we assign to the vars.
10979 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10980 eval ac_val
=\$
$ac_var
10984 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10988 _ | IFS | as_nl
) ;; #(
10989 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10990 *) { eval $ac_var=; unset $ac_var;} ;;
10996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10997 *${as_nl}ac_space
=\
*)
10998 # `set' does not quote correctly, so add quotes: double-quote
10999 # substitution turns \\\\ into \\, and sed turns \\ into \.
11002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11005 # `set' quotes correctly as required by POSIX, so do not add quotes.
11006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11019 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11020 if test -w "$cache_file"; then
11021 if test "x$cache_file" != "x/dev/null"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11023 $as_echo "$as_me: updating cache $cache_file" >&6;}
11024 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11025 cat confcache
>"$cache_file"
11027 case $cache_file in #(
11029 mv -f confcache
"$cache_file"$$
&&
11030 mv -f "$cache_file"$$
"$cache_file" ;; #(
11032 mv -f confcache
"$cache_file" ;;
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11038 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11043 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11044 # Let make expand exec_prefix.
11045 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11047 DEFS
=-DHAVE_CONFIG_H
11052 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11053 # 1. Remove the extension, and $U if already installed.
11054 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11055 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11057 # will be set to the directory where LIBOBJS objects are built.
11058 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11059 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11061 LIBOBJS
=$ac_libobjs
11063 LTLIBOBJS
=$ac_ltlibobjs
11067 : "${CONFIG_STATUS=./config.status}"
11069 ac_clean_files_save
=$ac_clean_files
11070 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11074 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11076 # Generated by $as_me.
11077 # Run this file to recreate the current configuration.
11078 # Compiler output produced by configure, useful for debugging
11079 # configure, is in config.log if it exists.
11082 ac_cs_recheck=false
11085 SHELL=\${CONFIG_SHELL-$SHELL}
11088 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11089 ## -------------------- ##
11090 ## M4sh Initialization. ##
11091 ## -------------------- ##
11093 # Be more Bourne compatible
11094 DUALCASE
=1; export DUALCASE
# for MKS sh
11095 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11099 # is contrary to our usage. Disable this feature.
11100 alias -g '${1+"$@"}'='"$@"'
11101 setopt NO_GLOB_SUBST
11103 case `(set -o) 2>/dev/null` in #(
11115 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11116 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11119 # Prefer a ksh shell builtin over an external printf program on Solaris,
11120 # but without wasting forks for bash or zsh.
11121 if test -z "$BASH_VERSION$ZSH_VERSION" \
11122 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11123 as_echo='print
-r --'
11124 as_echo_n='print
-rn --'
11125 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11126 as_echo='printf %s
\n'
11127 as_echo_n='printf %s
'
11129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11130 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11131 as_echo_n='/usr
/ucb
/echo -n'
11133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11134 as_echo_n_body='eval
11138 expr "X$arg" : "X\\(.*\\)$as_nl";
11139 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11141 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11143 export as_echo_n_body
11144 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11146 export as_echo_body
11147 as_echo='sh
-c $as_echo_body as_echo
'
11150 # The user is always right.
11151 if test "${PATH_SEPARATOR+set}" != set; then
11153 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11154 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11161 # We need space, tab and new line, in precisely that order. Quoting is
11162 # there to prevent editors from complaining about space-tab.
11163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11164 # splitting by setting IFS to empty value.)
11167 # Find who we are. Look in the path if we contain no directory separator.
11170 *[\\/]* ) as_myself=$0 ;;
11171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11175 test -z "$as_dir" && as_dir=.
11176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11182 # We did not find ourselves, most probably we were run as `sh COMMAND'
11183 # in which case we are not to be found in the path.
11184 if test "x$as_myself" = x
; then
11187 if test ! -f "$as_myself"; then
11188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11192 # Unset variables that we do not need and which cause bugs (e.g. in
11193 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11194 # suppresses any "Segmentation fault" message there. '((' could
11195 # trigger a bug in pdksh 5.2.14.
11196 for as_var
in BASH_ENV ENV MAIL MAILPATH
11197 do eval test x\
${$as_var+set} = xset \
11198 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11211 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11214 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11215 # ----------------------------------------
11216 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11217 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11218 # script with STATUS, using 1 if that was 0.
11221 as_status
=$1; test $as_status -eq 0 && as_status
=1
11223 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11226 $as_echo "$as_me: error: $2" >&2
11227 as_fn_exit
$as_status
11231 # as_fn_set_status STATUS
11232 # -----------------------
11233 # Set $? to STATUS, without forking.
11234 as_fn_set_status
()
11237 } # as_fn_set_status
11239 # as_fn_exit STATUS
11240 # -----------------
11241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11245 as_fn_set_status
$1
11251 # Portably unset VAR.
11254 { eval $1=; unset $1;}
11256 as_unset
=as_fn_unset
11257 # as_fn_append VAR VALUE
11258 # ----------------------
11259 # Append the text in VALUE to the end of the definition contained in VAR. Take
11260 # advantage of any shell optimizations that allow amortized linear growth over
11261 # repeated appends, instead of the typical quadratic growth present in naive
11263 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11264 eval 'as_fn_append ()
11275 # as_fn_arith ARG...
11276 # ------------------
11277 # Perform arithmetic evaluation on the ARGs, and store the result in the
11278 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11279 # must be portable across $(()) and expr.
11280 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11281 eval 'as_fn_arith ()
11288 as_val
=`expr "$@" || test $? -eq 1`
11293 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11294 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11300 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11301 as_basename
=basename
11306 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11312 as_me
=`$as_basename -- "$0" ||
11313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11314 X"$0" : 'X\(//\)$' \| \
11315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11317 sed '/^.*\/\([^/][^/]*\)\/*$/{
11331 # Avoid depending upon Character Ranges.
11332 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11333 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11334 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11335 as_cr_digits
='0123456789'
11336 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11338 ECHO_C
= ECHO_N
= ECHO_T
=
11339 case `echo -n x` in #(((((
11341 case `echo 'xy\c'` in
11342 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11344 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11351 rm -f conf$$ conf$$.exe conf$$.
file
11352 if test -d conf$$.dir
; then
11353 rm -f conf$$.dir
/conf$$.
file
11356 mkdir conf$$.dir
2>/dev
/null
11358 if (echo >conf$$.
file) 2>/dev
/null
; then
11359 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11361 # ... but there are two gotchas:
11362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11364 # In both cases, we have to default to `cp -pR'.
11365 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11367 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11375 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11376 rmdir conf$$.dir
2>/dev
/null
11381 # Create "$as_dir" as a directory, including parents if necessary.
11386 -*) as_dir
=.
/$as_dir;;
11388 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11392 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11393 *) as_qdir
=$as_dir;;
11395 as_dirs
="'$as_qdir' $as_dirs"
11396 as_dir
=`$as_dirname -- "$as_dir" ||
11397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11398 X"$as_dir" : 'X\(//\)[^/]' \| \
11399 X"$as_dir" : 'X\(//\)$' \| \
11400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11401 $as_echo X"$as_dir" |
11402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11406 /^X\(\/\/\)[^/].*/{
11419 test -d "$as_dir" && break
11421 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11422 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11426 if mkdir
-p .
2>/dev
/null
; then
11427 as_mkdir_p
='mkdir -p "$as_dir"'
11429 test -d .
/-p && rmdir .
/-p
11434 # as_fn_executable_p FILE
11435 # -----------------------
11436 # Test if FILE is an executable regular file.
11437 as_fn_executable_p
()
11439 test -f "$1" && test -x "$1"
11440 } # as_fn_executable_p
11441 as_test_x
='test -x'
11442 as_executable_p
=as_fn_executable_p
11444 # Sed expression to map a string onto a valid CPP name.
11445 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11447 # Sed expression to map a string onto a valid variable name.
11448 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11452 ## ----------------------------------- ##
11453 ## Main body of $CONFIG_STATUS script. ##
11454 ## ----------------------------------- ##
11456 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11459 # Save the log message, to keep $0 and so on meaningful, and to
11460 # report actual input values of CONFIG_FILES etc. instead of their
11461 # values after options handling.
11463 This file was extended by pcap $as_me 1.10.0-PRE-GIT, which was
11464 generated by GNU Autoconf 2.69. Invocation command line was
11466 CONFIG_FILES = $CONFIG_FILES
11467 CONFIG_HEADERS = $CONFIG_HEADERS
11468 CONFIG_LINKS = $CONFIG_LINKS
11469 CONFIG_COMMANDS = $CONFIG_COMMANDS
11472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11477 case $ac_config_files in *"
11478 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11481 case $ac_config_headers in *"
11482 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11487 # Files that config.status was made for.
11488 config_files="$ac_config_files"
11489 config_headers="$ac_config_headers"
11490 config_commands="$ac_config_commands"
11494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11496 \`$as_me' instantiates files and other configuration actions
11497 from templates according to the current configuration. Unless the files
11498 and actions are specified as TAGs, all are instantiated by default.
11500 Usage: $0 [OPTION]... [TAG]...
11502 -h, --help print this help, then exit
11503 -V, --version print version number and configuration settings, then exit
11504 --config print configuration, then exit
11505 -q, --quiet, --silent
11506 do not print progress messages
11507 -d, --debug don't remove temporary files
11508 --recheck update $as_me by reconfiguring in the same conditions
11509 --file=FILE[:TEMPLATE]
11510 instantiate the configuration file FILE
11511 --header=FILE[:TEMPLATE]
11512 instantiate the configuration header FILE
11514 Configuration files:
11517 Configuration headers:
11520 Configuration commands:
11523 Report bugs to the package provider."
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11529 pcap config.status 1.10.0-PRE-GIT
11530 configured by $0, generated by GNU Autoconf 2.69,
11531 with options \\"\$ac_cs_config\\"
11533 Copyright (C) 2012 Free Software Foundation, Inc.
11534 This config.status script is free software; the Free Software Foundation
11535 gives unlimited permission to copy, distribute and modify it."
11540 test -n "\$AWK" || AWK=awk
11543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11544 # The default lists apply if the user does not specify any file.
11550 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11551 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11555 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11567 # Handling of the options.
11568 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11570 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11571 $as_echo "$ac_cs_version"; exit ;;
11572 --config |
--confi |
--conf |
--con |
--co |
--c )
11573 $as_echo "$ac_cs_config"; exit ;;
11574 --debug |
--debu |
--deb |
--de |
--d |
-d )
11576 --file |
--fil |
--fi |
--f )
11579 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11580 '') as_fn_error $?
"missing file argument" ;;
11582 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11583 ac_need_defaults
=false
;;
11584 --header |
--heade |
--head |
--hea )
11587 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11589 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11590 ac_need_defaults
=false
;;
11592 # Conflict between --help and --header
11593 as_fn_error $?
"ambiguous option: \`$1'
11594 Try \`$0 --help' for more information.";;
11595 --help |
--hel |
-h )
11596 $as_echo "$ac_cs_usage"; exit ;;
11597 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11598 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11601 # This is an error.
11602 -*) as_fn_error $?
"unrecognized option: \`$1'
11603 Try \`$0 --help' for more information." ;;
11605 *) as_fn_append ac_config_targets
" $1"
11606 ac_need_defaults
=false
;;
11612 ac_configure_extra_args
=
11614 if $ac_cs_silent; then
11616 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11621 if \$ac_cs_recheck; then
11622 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11624 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11625 CONFIG_SHELL='$SHELL'
11626 export CONFIG_SHELL
11631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11636 ## Running $as_me. ##
11642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11652 # Handling of arguments.
11653 for ac_config_target
in $ac_config_targets
11655 case $ac_config_target in
11656 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11657 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11658 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11659 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
11660 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
11661 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11662 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
11663 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
11664 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
11665 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
11666 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11667 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
11668 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11669 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11670 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11671 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11672 "pcap_set_immediate_mode.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
11673 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
11674 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11675 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
11676 "rpcapd/rpcapd.manadmin") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
11677 "testprogs/Makefile") CONFIG_FILES
="$CONFIG_FILES testprogs/Makefile" ;;
11679 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11684 # If the user did not use the arguments to specify the items to instantiate,
11685 # then the envvar interface is used. Set only those that are not.
11686 # We use the long form for the default assignment because of an extremely
11687 # bizarre bug on SunOS 4.1.3.
11688 if $ac_need_defaults; then
11689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11694 # Have a temporary directory for convenience. Make it in the build tree
11695 # simply because there is no reason against having it here, and in addition,
11696 # creating and moving files from /tmp can sometimes cause problems.
11697 # Hook for its removal unless debugging.
11698 # Note that there is a small window in which the directory will not be cleaned:
11699 # after its creation but before its name has been assigned to `$tmp'.
11703 trap 'exit_status=$?
11704 : "${ac_tmp:=$tmp}"
11705 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11707 trap 'as_fn_exit 1' 1 2 13 15
11709 # Create a (secure) tmp directory for tmp files.
11712 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11716 tmp
=.
/conf$$
-$RANDOM
11717 (umask 077 && mkdir
"$tmp")
11718 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11721 # Set up the scripts for CONFIG_FILES section.
11722 # No need to generate them if there are no CONFIG_FILES.
11723 # This happens for instance with `./config.status config.h'.
11724 if test -n "$CONFIG_FILES"; then
11727 ac_cr
=`echo X | tr X '\015'`
11728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11729 # But we know of no other shell where ac_cr would be empty at this
11730 # point, so we can use a bashism as a fallback.
11731 if test "x$ac_cr" = x
; then
11732 eval ac_cr
=\$
\'\\r
\'
11734 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11738 ac_cs_awk_cr
=$ac_cr
11741 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11746 echo "cat >conf$$subs.awk <<_ACEOF" &&
11747 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11749 } >conf$$subs.sh ||
11750 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11753 for ac_last_try in false false false false false :; do
11754 . ./conf$$subs.sh ||
11755 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11757 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11758 if test $ac_delim_n = $ac_delim_num; then
11760 elif $ac_last_try; then
11761 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11763 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11766 rm -f conf$$subs.sh
11768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11769 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11773 s/^/S["/; s
/!.
*/"]=/
11783 s/\(.\{148\}\)..*/\1/
11785 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11790 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11797 s/\(.\{148\}\)..*/\1/
11799 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11803 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11808 ' <conf$$subs.awk | sed '
11813 ' >>$CONFIG_STATUS || ac_write_fail=1
11814 rm -f conf$$subs.awk
11815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11817 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11818 for (key in S) S_is_set[key] = 1
11824 nfields = split(line, field, "@
")
11826 len = length(field[1])
11827 for (i = 2; i < nfields; i++) {
11829 keylen = length(key)
11830 if (S_is_set[key]) {
11832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11833 len += length(value) + length(field[++i])
11844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11845 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11846 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11849 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11850 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11853 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11854 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11855 # trailing colons and then remove the whole line if VPATH becomes empty
11856 # (actually we leave an empty line to preserve line numbers).
11857 if test "x
$srcdir" = x.; then
11858 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11877 fi # test -n "$CONFIG_FILES"
11879 # Set up the scripts for CONFIG_HEADERS section.
11880 # No need to generate them if there are no CONFIG_HEADERS.
11881 # This happens for instance with `./config.status Makefile'.
11882 if test -n "$CONFIG_HEADERS"; then
11883 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11887 # Transform confdefs.h into an awk script `defines.awk', embedded as
11888 # here-document in config.status, that substitutes the proper values into
11889 # config.h.in to produce config.h.
11891 # Create a delimiter string that does not exist in confdefs.h, to ease
11892 # handling of long lines.
11894 for ac_last_try in false false :; do
11895 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11896 if test -z "$ac_tt"; then
11898 elif $ac_last_try; then
11899 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11901 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11905 # For the awk script, D is an array of macro values keyed by name,
11906 # likewise P contains macro parameters if any. Preserve backslash
11907 # newline sequences.
11909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11911 s/.\{148\}/&'"$ac_delim"'/g
11914 s/^[ ]*#[ ]*define[ ][ ]*/ /
11921 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11923 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11928 D["\
1"]=" \
3\\\\\\n
"\\/p
11930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11935 s/.\{148\}/&'"$ac_delim"'/g
11940 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11943 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11945 ' <confdefs.h | sed '
11946 s/'"$ac_delim"'/"\\\
11947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11950 for (key in D) D_is_set[key] = 1
11953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11955 split(line, arg, " ")
11956 if (arg[1] == "#") {
11960 defundef
= substr
(arg
[1], 2)
11963 split(mac1
, mac2
, "(") #)
11965 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11966 if (D_is_set
[macro
]) {
11967 # Preserve the white space surrounding the "#".
11968 print prefix
"define", macro P
[macro
] D
[macro
]
11971 # Replace #undef with comments. This is necessary, for example,
11972 # in the case of _POSIX_SOURCE, which is predefined and required
11973 # on some systems where configure will not decide to define it.
11974 if (defundef
== "undef") {
11975 print
"/*", prefix defundef
, macro
, "*/"
11983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11984 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11985 fi # test -n "$CONFIG_HEADERS"
11988 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11993 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11995 case $ac_mode$ac_tag in
11997 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11998 :[FH
]-) ac_tag
=-:-;;
11999 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12016 -) ac_f
="$ac_tmp/stdin";;
12017 *) # Look for the file first in the build tree, then in the source tree
12018 # (if the path is not absolute). The absolute path cannot be DOS-style,
12019 # because $ac_f cannot contain `:'.
12023 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12025 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12027 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12028 as_fn_append ac_file_inputs
" '$ac_f'"
12031 # Let's still pretend it is `configure' which instantiates (i.e., don't
12032 # use $as_me), people would be surprised to read:
12033 # /* config.h. Generated by config.status. */
12034 configure_input
='Generated from '`
12035 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12037 if test x
"$ac_file" != x-
; then
12038 configure_input
="$ac_file. $configure_input"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12040 $as_echo "$as_me: creating $ac_file" >&6;}
12042 # Neutralize special characters interpreted by sed in replacement strings.
12043 case $configure_input in #(
12044 *\
&* |
*\|
* |
*\\* )
12045 ac_sed_conf_input
=`$as_echo "$configure_input" |
12046 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12047 *) ac_sed_conf_input
=$configure_input;;
12051 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12052 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12057 ac_dir
=`$as_dirname -- "$ac_file" ||
12058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12059 X"$ac_file" : 'X\(//\)[^/]' \| \
12060 X"$ac_file" : 'X\(//\)$' \| \
12061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12062 $as_echo X"$ac_file" |
12063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12067 /^X\(\/\/\)[^/].*/{
12080 as_dir
="$ac_dir"; as_fn_mkdir_p
12084 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12086 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12087 # A ".." for each directory in $ac_dir_suffix.
12088 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12089 case $ac_top_builddir_sub in
12090 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12091 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12094 ac_abs_top_builddir
=$ac_pwd
12095 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12096 # for backward compatibility:
12097 ac_top_builddir
=$ac_top_build_prefix
12100 .
) # We are building in place.
12102 ac_top_srcdir
=$ac_top_builddir_sub
12103 ac_abs_top_srcdir
=$ac_pwd ;;
12104 [\\/]* | ?
:[\\/]* ) # Absolute name.
12105 ac_srcdir
=$srcdir$ac_dir_suffix;
12106 ac_top_srcdir
=$srcdir
12107 ac_abs_top_srcdir
=$srcdir ;;
12108 *) # Relative name.
12109 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12110 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12111 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12113 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12123 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12124 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12129 # If the template does not know about datarootdir, expand it.
12130 # FIXME: This hack should be removed a few years after 2.60.
12131 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12142 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12143 *datarootdir
*) ac_datarootdir_seen
=yes;;
12144 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12146 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12149 ac_datarootdir_hack='
12150 s&@datadir@&$datadir&g
12151 s&@docdir@&$docdir&g
12152 s&@infodir@&$infodir&g
12153 s&@localedir@&$localedir&g
12154 s&@mandir@&$mandir&g
12155 s&\\\${datarootdir}&$datarootdir&g' ;;
12159 # Neutralize VPATH when `$srcdir' = `.'.
12160 # Shell code in configure.ac might set extrasub.
12161 # FIXME: do we really want to maintain this feature?
12162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12163 ac_sed_extra="$ac_vpsub
12166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12168 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12169 s|@configure_input@|
$ac_sed_conf_input|
;t t
12170 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12171 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12172 s
&@srcdir@
&$ac_srcdir&;t t
12173 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12174 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12175 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12176 s
&@builddir@
&$ac_builddir&;t t
12177 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12178 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12179 s
&@INSTALL@
&$ac_INSTALL&;t t
12180 $ac_datarootdir_hack
12182 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12183 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12186 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12188 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12190 which seems to be undefined. Please make sure it is defined" >&5
12191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12192 which seems to be undefined. Please make sure it is defined" >&2;}
12194 rm -f "$ac_tmp/stdin"
12196 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12197 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12205 if test x"$ac_file" != x-; then
12207 $as_echo "/* $configure_input */" \
12208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12209 } >"$ac_tmp/config.h" \
12210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12211 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12216 mv "$ac_tmp/config.h" "$ac_file" \
12217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12220 $as_echo "/* $configure_input */" \
12221 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12222 || as_fn_error $? "could not create -" "$LINENO" 5
12226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12227 $as_echo "$as_me: executing $ac_file commands" >&6;}
12232 case $ac_file$ac_mode in
12233 "default-1":C) if test -f .devel; then
12234 echo timestamp > stamp-h
12235 cat $srcdir/Makefile-devel-adds >> Makefile
12245 ac_clean_files=$ac_clean_files_save
12247 test $ac_write_fail = 0 ||
12248 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12251 # configure is writing to config.log, and then calls config.status.
12252 # config.status does its own redirection, appending to config.log.
12253 # Unfortunately, on DOS this fails, as config.log is still kept open
12254 # by configure, so config.status won't be able to
write to it
; its
12255 # output is simply discarded. So we exec the FD to /dev/null,
12256 # effectively closing config.log, so it can be properly (re)opened and
12257 # appended to by config.status. When coming back to configure, we
12258 # need to make the FD available again.
12259 if test "$no_create" != yes; then
12261 ac_config_status_args
=
12262 test "$silent" = yes &&
12263 ac_config_status_args
="$ac_config_status_args --quiet"
12265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12268 # would make configure fail if this is the last instruction.
12269 $ac_cs_success || as_fn_exit
1
12271 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12273 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}