2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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.
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
626 PCAP_SUPPORT_PACKET_RING
634 PCAP_SUPPORT_NETFILTER
667 HAVE_LINUX_TPACKET_AUXDATA
720 program_transform_name
733 enable_option_checking
759 ac_precious_vars
='build_alias
772 # Initialize some variables set by options.
774 ac_init_version
=false
775 ac_unrecognized_opts
=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name
=s
,x
,x
,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir
='${exec_prefix}/bin'
801 sbindir
='${exec_prefix}/sbin'
802 libexecdir
='${exec_prefix}/libexec'
803 datarootdir
='${prefix}/share'
804 datadir
='${datarootdir}'
805 sysconfdir
='${prefix}/etc'
806 sharedstatedir
='${prefix}/com'
807 localstatedir
='${prefix}/var'
808 includedir
='${prefix}/include'
809 oldincludedir
='/usr/include'
810 docdir
='${datarootdir}/doc/${PACKAGE}'
811 infodir
='${datarootdir}/info'
816 libdir
='${exec_prefix}/lib'
817 localedir
='${datarootdir}/locale'
818 mandir
='${datarootdir}/man'
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\
$ac_option
832 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
845 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
848 -build |
--build |
--buil |
--bui |
--bu)
849 ac_prev
=build_alias
;;
850 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
851 build_alias
=$ac_optarg ;;
853 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
854 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
855 ac_prev
=cache_file
;;
856 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
857 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
858 cache_file
=$ac_optarg ;;
861 cache_file
=config.cache
;;
863 -datadir |
--datadir |
--datadi |
--datad)
865 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
866 datadir
=$ac_optarg ;;
868 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
869 |
--dataroo |
--dataro |
--datar)
870 ac_prev
=datarootdir
;;
871 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
872 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
873 datarootdir
=$ac_optarg ;;
875 -disable-* |
--disable-*)
876 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
879 as_fn_error $?
"invalid feature name: $ac_useropt"
880 ac_useropt_orig
=$ac_useropt
881 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep
=', ';;
889 eval enable_
$ac_useropt=no
;;
891 -docdir |
--docdir |
--docdi |
--doc |
--do)
893 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
896 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
898 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
901 -enable-* |
--enable-*)
902 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
905 as_fn_error $?
"invalid feature name: $ac_useropt"
906 ac_useropt_orig
=$ac_useropt
907 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep
=', ';;
915 eval enable_
$ac_useropt=\
$ac_optarg ;;
917 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
918 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
919 |
--exec |
--exe |
--ex)
920 ac_prev
=exec_prefix
;;
921 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
922 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
923 |
--exec=* |
--exe=* |
--ex=*)
924 exec_prefix
=$ac_optarg ;;
926 -gas |
--gas |
--ga |
--g)
927 # Obsolete; use --with-gas.
930 -help |
--help |
--hel |
--he |
-h)
932 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
933 ac_init_help
=recursive
;;
934 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
935 ac_init_help
=short
;;
937 -host |
--host |
--hos |
--ho)
938 ac_prev
=host_alias
;;
939 -host=* |
--host=* |
--hos=* |
--ho=*)
940 host_alias
=$ac_optarg ;;
942 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
944 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
946 htmldir
=$ac_optarg ;;
948 -includedir |
--includedir |
--includedi |
--included |
--include \
949 |
--includ |
--inclu |
--incl |
--inc)
950 ac_prev
=includedir
;;
951 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
952 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
953 includedir
=$ac_optarg ;;
955 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
957 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
958 infodir
=$ac_optarg ;;
960 -libdir |
--libdir |
--libdi |
--libd)
962 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
965 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
966 |
--libexe |
--libex |
--libe)
967 ac_prev
=libexecdir
;;
968 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
969 |
--libexe=* |
--libex=* |
--libe=*)
970 libexecdir
=$ac_optarg ;;
972 -localedir |
--localedir |
--localedi |
--localed |
--locale)
974 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
975 localedir
=$ac_optarg ;;
977 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
978 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
979 ac_prev
=localstatedir
;;
980 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
981 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
982 localstatedir
=$ac_optarg ;;
984 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
986 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
990 # Obsolete; use --without-fp.
993 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
994 |
--no-cr |
--no-c |
-n)
997 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
998 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1001 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1002 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1003 |
--oldin |
--oldi |
--old |
--ol |
--o)
1004 ac_prev
=oldincludedir
;;
1005 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1006 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1007 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1008 oldincludedir
=$ac_optarg ;;
1010 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1012 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1013 prefix
=$ac_optarg ;;
1015 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1016 |
--program-pre |
--program-pr |
--program-p)
1017 ac_prev
=program_prefix
;;
1018 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1019 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1020 program_prefix
=$ac_optarg ;;
1022 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1023 |
--program-suf |
--program-su |
--program-s)
1024 ac_prev
=program_suffix
;;
1025 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1026 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1027 program_suffix
=$ac_optarg ;;
1029 -program-transform-name |
--program-transform-name \
1030 |
--program-transform-nam |
--program-transform-na \
1031 |
--program-transform-n |
--program-transform- \
1032 |
--program-transform |
--program-transfor \
1033 |
--program-transfo |
--program-transf \
1034 |
--program-trans |
--program-tran \
1035 |
--progr-tra |
--program-tr |
--program-t)
1036 ac_prev
=program_transform_name
;;
1037 -program-transform-name=* |
--program-transform-name=* \
1038 |
--program-transform-nam=* |
--program-transform-na=* \
1039 |
--program-transform-n=* |
--program-transform-=* \
1040 |
--program-transform=* |
--program-transfor=* \
1041 |
--program-transfo=* |
--program-transf=* \
1042 |
--program-trans=* |
--program-tran=* \
1043 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1044 program_transform_name
=$ac_optarg ;;
1046 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1048 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1049 pdfdir
=$ac_optarg ;;
1051 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1053 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1056 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1057 |
-silent |
--silent |
--silen |
--sile |
--sil)
1060 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1062 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1064 sbindir
=$ac_optarg ;;
1066 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1067 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1068 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1070 ac_prev
=sharedstatedir
;;
1071 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1072 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1073 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1075 sharedstatedir
=$ac_optarg ;;
1077 -site |
--site |
--sit)
1079 -site=* |
--site=* |
--sit=*)
1082 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1084 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1085 srcdir
=$ac_optarg ;;
1087 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1088 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1089 ac_prev
=sysconfdir
;;
1090 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1091 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1092 sysconfdir
=$ac_optarg ;;
1094 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1095 ac_prev
=target_alias
;;
1096 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1097 target_alias
=$ac_optarg ;;
1099 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1102 -version |
--version |
--versio |
--versi |
--vers |
-V)
1103 ac_init_version
=: ;;
1106 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1109 as_fn_error $?
"invalid package name: $ac_useropt"
1110 ac_useropt_orig
=$ac_useropt
1111 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep
=', ';;
1119 eval with_
$ac_useropt=\
$ac_optarg ;;
1121 -without-* |
--without-*)
1122 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1125 as_fn_error $?
"invalid package name: $ac_useropt"
1126 ac_useropt_orig
=$ac_useropt
1127 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep
=', ';;
1135 eval with_
$ac_useropt=no
;;
1138 # Obsolete; use --with-x.
1141 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1142 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1143 ac_prev
=x_includes
;;
1144 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1145 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1146 x_includes
=$ac_optarg ;;
1148 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1149 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1150 ac_prev
=x_libraries
;;
1151 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1152 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1153 x_libraries
=$ac_optarg ;;
1155 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1160 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1164 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1166 eval $ac_envvar=\
$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 if test -n "$ac_prev"; then
1181 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $?
"missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1188 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 # Check all directory arguments for consistency.
1194 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val
=\$
$ac_var
1200 # Remove trailing slashes.
1203 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\
$ac_val;;
1206 # Be sure to have absolute directory names.
1208 [\\/$
]* | ?
:[\\/]* ) continue;;
1209 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1211 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target
=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x
; then
1223 if test "x$build_alias" = x
; then
1224 cross_compiling
=maybe
1225 elif test "x$build_alias" != "x$host_alias"; then
1231 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1233 test "$silent" = yes && exec 6>/dev
/null
1236 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di
=`ls -di .` &&
1238 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error $?
"working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error $?
"pwd does not report name of working directory"
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted
=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir
=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted
=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1280 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1282 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1294 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 for ac_var
in $ac_precious_vars; do
1297 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1299 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1304 # Report the --help message.
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1310 \`configure' configures this package to adapt to many kinds of systems.
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1317 Defaults for the options are specified in brackets.
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking ...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1341 For better control, use the options below.
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1368 --build=BUILD configure
for building on BUILD
[guessed
]
1369 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1370 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1374 if test -n "$ac_init_help"; then
1379 --disable-option-checking ignore unrecognized
--enable/--with options
1380 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1381 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1382 --disable-largefile omit support
for large files
1383 --disable-protochain disable
\"protochain
\" insn
1384 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1385 getaddrinfo available
]
1386 --enable-optimizer-dbg build optimizer debugging code
1387 --enable-yydebug build parser debugging code
1388 --enable-remote enable remote packet capture
[default
=no
]
1389 --disable-remote disable remote packet capture
1390 --disable-universal don
't build universal on macOS
1391 --enable-shared build shared libraries [default=yes, if support
1393 --enable-usb enable nusb support [default=yes, if support
1395 --enable-bluetooth enable Bluetooth support [default=yes, if support
1397 --enable-dbus enable D-Bus capture support [default=yes, if
1399 --enable-packet-ring enable Linux packet ring support [default=yes]
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --without-gcc don't use gcc
1405 --with-sita include SITA support
1406 --with-pcap=TYPE use packet capture TYPE
1407 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1409 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1410 DIR
, if supplied
).
[default
=yes, if present
]
1411 --with-dag-includes=IDIR
1412 Endace DAG include directory
, if not DIR
/include
1413 --with-dag-libraries=LDIR
1414 Endace DAG library directory
, if not DIR
/lib
1415 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1416 supplied
).
[default
=yes, if present
]
1417 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1418 DIR
, if supplied
).
[default
=yes, if present
]
1419 --with-snf-includes=IDIR
1420 Myricom SNF include directory
, if not DIR
/include
1421 --with-snf-libraries=LDIR
1422 Myricom SNF library directory
, if not DIR
/lib
1423 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1424 directory DIR
, if supplied
).
[default
=yes, if
1427 Some influential environment variables
:
1428 CC C compiler
command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1431 nonstandard directory
<lib dir
>
1432 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1433 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1434 you have headers
in a nonstandard directory
<include dir
>
1436 YACC The
`Yet Another Compiler Compiler' implementation to use.
1437 Defaults to the first program found out of: `bison
-y', `byacc',
1439 YFLAGS The list of arguments that will be passed by default to $YACC.
1440 This script will default YFLAGS to the empty string to avoid a
1441 default value of `-d' given by some make applications.
1443 Use these variables to override the choices made by `configure' or to
help
1444 it to
find libraries and programs with nonstandard names
/locations.
1446 Report bugs to the package provider.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1460 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1462 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1467 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir
=$ac_pwd
1471 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir
=$ac_top_build_prefix
1476 .
) # We are building in place.
1478 ac_top_srcdir
=$ac_top_builddir_sub
1479 ac_abs_top_srcdir
=$ac_pwd ;;
1480 [\\/]* | ?
:[\\/]* ) # Absolute name.
1481 ac_srcdir
=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir
=$srcdir
1483 ac_abs_top_srcdir
=$srcdir ;;
1485 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1510 generated by GNU Autoconf
2.69
1512 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1513 This configure
script is free software
; the Free Software Foundation
1514 gives unlimited permission to copy
, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile
()
1528 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1529 rm -f conftest.
$ac_objext
1530 if { { ac_try
="$ac_compile"
1532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1570 *) ac_try_echo
=$ac_try;;
1572 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 if test -s conftest.err
; then
1577 grep -v '^ *+' conftest.err
>conftest.er1
1578 cat conftest.er1
>&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i
&& {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.
$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status
$ac_retval
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1603 ac_fn_c_check_header_mongrel
()
1605 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1606 if eval \
${$3+:} false
; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \
${$3+:} false
; then :
1610 $as_echo_n "(cached) " >&6
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1624 if ac_fn_c_try_compile
"$LINENO"; then :
1625 ac_header_compiler
=yes
1627 ac_header_compiler
=no
1629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1640 if ac_fn_c_try_cpp
"$LINENO"; then :
1641 ac_header_preproc
=yes
1643 ac_header_preproc
=no
1645 rm -f conftest.err conftest.i conftest.
$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \
${$3+:} false
; then :
1673 $as_echo_n "(cached) " >&6
1675 eval "$3=\$ac_header_compiler"
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_mongrel
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1691 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1692 if { { ac_try
="$ac_link"
1694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1705 *) ac_try_echo
=$ac_try;;
1707 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.
$ac_ext >&5
1719 ac_retval
=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status
$ac_retval
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile
()
1733 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \
${$3+:} false
; then :
1737 $as_echo_n "(cached) " >&6
1739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1744 if ac_fn_c_try_compile
"$LINENO"; then :
1749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_compile
1758 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1759 # -------------------------------------------
1760 # Tests whether TYPE exists after having included INCLUDES, setting cache
1761 # variable VAR accordingly.
1762 ac_fn_c_check_type
()
1764 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \
${$3+:} false
; then :
1768 $as_echo_n "(cached) " >&6
1771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1783 if ac_fn_c_try_compile
"$LINENO"; then :
1784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1796 if ac_fn_c_try_compile
"$LINENO"; then :
1801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 } # ac_fn_c_check_type
1812 # ac_fn_c_try_link LINENO
1813 # -----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded.
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext conftest
$ac_exeext
1819 if { { ac_try
="$ac_link"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest$ac_exeext && {
1838 test "$cross_compiling" = yes ||
1839 test -x conftest$ac_exeext
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1850 # interfere with the next link command; also delete a directory that is
1851 # left behind by Apple's compiler. We do this before executing the actions.
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_c_try_link
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1881 # include <limits.h>
1883 # include <assert.h>
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1910 if ac_fn_c_try_link "$LINENO"; then :
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_func
1925 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1926 # ---------------------------------------------
1927 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1929 ac_fn_c_check_decl ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1933 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1935 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1945 #ifndef $as_decl_name
1947 (void) $as_decl_use;
1949 (void) $as_decl_name;
1957 if ac_fn_c_try_compile "$LINENO"; then :
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_check_decl
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1974 It was created by $as_me, which was
1975 generated by GNU Autoconf 2.69. Invocation command line was
1987 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1988 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1989 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1990 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1991 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1993 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1994 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1996 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1997 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1998 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1999 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2000 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2001 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2002 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2035 ac_must_keep_next=false
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2046 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 -* ) ac_must_keep_next=true ;;
2067 as_fn_append ac_configure_args " '$ac_arg'"
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2085 $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2089 # The following way of writing the cache mishandles newlines in values,
2091 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2092 eval ac_val=\$$ac_var
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2107 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121 $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2125 for ac_var in $ac_subst_vars
2127 eval ac_val=\$$ac_var
2129 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 $as_echo "$ac_var='\''$ac_val'\''"
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2140 for ac_var in $ac_subst_files
2142 eval ac_val=\$$ac_var
2144 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 $as_echo "$ac_var='\''$ac_val'\''"
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2175 $as_echo "/* confdefs.h */" > confdefs.h
2177 # Predefined preprocessor variables.
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2208 if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1=./$CONFIG_SITE;;
2212 */*) ac_site_file1=$CONFIG_SITE;;
2213 *) ac_site_file1=./$CONFIG_SITE;;
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 test "x$ac_site_file" = xNONE && continue
2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $? "failed to load site
script $ac_site_file
2233 See \
`config.log' for more details" "$LINENO" 5; }
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2254 # Check that the precious variables saved in the cache have kept the same
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259 eval ac_new_set=\$ac_env_${ac_var}_set
2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261 eval ac_new_val=\$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2265 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2269 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w=`echo x
$ac_old_val`
2276 ac_new_val_w=`echo x
$ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2280 ac_cache_corrupted=:
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\$ac_old_val
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2296 *) ac_arg=$ac_var=$ac_new_val ;;
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2325 if test -f "$ac_dir/install-sh"; then
2327 ac_install_sh="$ac_aux_dir/install-sh -c"
2329 elif test -f "$ac_dir/install.sh"; then
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2333 elif test -f "$ac_dir/shtool"; then
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2339 if test -z "$ac_aux_dir"; then
2340 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343 # These three variables are undocumented and unsupported,
2344 # and are intended to be withdrawn in a future Autoconf release.
2345 # They can cause serious problems if a builder's source tree is in a directory
2346 # whose full name contains unusual characters.
2347 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2348 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2349 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352 # Make sure we can run config.sub.
2353 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2354 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2357 $as_echo_n "checking build system type... " >&6; }
2358 if ${ac_cv_build+:} false; then :
2359 $as_echo_n "(cached) " >&6
2361 ac_build_alias=$build_alias
2362 test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364 test "x$ac_build_alias" = x &&
2365 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2366 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2367 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2371 $as_echo "$ac_cv_build" >&6; }
2372 case $ac_cv_build in
2374 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2377 ac_save_IFS=$IFS; IFS='-'
2383 # Remember, the first character of IFS is used to create $*,
2384 # except with old shells:
2387 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2391 $as_echo_n "checking host system type... " >&6; }
2392 if ${ac_cv_host+:} false; then :
2393 $as_echo_n "(cached) " >&6
2395 if test "x$host_alias" = x; then
2396 ac_cv_host=$ac_cv_build
2398 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2404 $as_echo "$ac_cv_host" >&6; }
2407 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2410 ac_save_IFS=$IFS; IFS='-'
2416 # Remember, the first character of IFS is used to create $*,
2417 # except with old shells:
2420 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2424 $as_echo_n "checking target system type... " >&6; }
2425 if ${ac_cv_target+:} false; then :
2426 $as_echo_n "(cached) " >&6
2428 if test "x$target_alias" = x; then
2429 ac_cv_target=$ac_cv_host
2431 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2432 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2437 $as_echo "$ac_cv_target" >&6; }
2438 case $ac_cv_target in
2440 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2442 target=$ac_cv_target
2443 ac_save_IFS=$IFS; IFS='-'
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2453 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2456 # The aliases save the names the user supplied, while $host etc.
2457 # will get canonicalized.
2458 test -n "$target_alias" &&
2459 test "$program_prefix$program_suffix$program_transform_name" = \
2461 program_prefix=${target_alias}-
2470 # Check whether --with-gcc was given.
2471 if test "${with_gcc+set}" = set; then :
2476 if test "${srcdir}" != "." ; then
2477 V_CCOPT="-I\$(srcdir)"
2479 if test "${CFLAGS+set}" = set; then
2480 LBL_CFLAGS="$CFLAGS"
2482 if test -z "$CC" ; then
2486 # Extract the first word of "shlicc2", so it can be a program name with args.
2487 set dummy shlicc2; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if ${ac_cv_prog_SHLICC2+:} false; then :
2491 $as_echo_n "(cached) " >&6
2493 if test -n "$SHLICC2"; then
2494 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 ac_cv_prog_SHLICC2="yes"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2514 SHLICC2=$ac_cv_prog_SHLICC2
2515 if test -n "$SHLICC2"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2517 $as_echo "$SHLICC2" >&6; }
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2524 if test $SHLICC2 = yes ; then
2531 if test -z "$CC" -a "$with_gcc" = no ; then
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if ${ac_cv_prog_CC+:} false; then :
2547 $as_echo_n "(cached) " >&6
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test -n "$CC"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2572 $as_echo "$CC" >&6; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2580 if test -z "$ac_cv_prog_CC"; then
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2587 $as_echo_n "(cached) " >&6
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_ac_ct_CC="gcc"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2612 $as_echo "$ac_ct_CC" >&6; }
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2618 if test "x$ac_ct_CC" = x; then
2621 case $cross_compiling:$ac_tool_warned in
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2625 ac_tool_warned=yes ;;
2633 if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}cc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_CC="${ac_tool_prefix}cc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2674 if test -z "$CC"; then
2675 # Extract the first word of "cc", so it can be a program name with args.
2676 set dummy cc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_CC+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2694 ac_prog_rejected=yes
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test $ac_prog_rejected = yes; then
2706 # We found a bogon in the path, so make sure we never use it.
2707 set dummy $ac_cv_prog_CC
2709 if test $# != 0; then
2710 # We chose a different compiler from the bogus one.
2711 # However, it has the same basename, so the bogon will be chosen
2712 # first if we set CC to just the basename; use the full file name.
2714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720 if test -n "$CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722 $as_echo "$CC" >&6; }
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2730 if test -z "$CC"; then
2731 if test -n "$ac_tool_prefix"; then
2732 for ac_prog in cl.exe
2734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_CC+:} false; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 $as_echo "$CC" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$CC" && break
2774 if test -z "$CC"; then
2776 for ac_prog in cl.exe
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_ac_ct_CC="$ac_prog"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 $as_echo "$ac_ct_CC" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2815 test -n "$ac_ct_CC" && break
2818 if test "x$ac_ct_CC" = x; then
2821 case $cross_compiling:$ac_tool_warned in
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2837 See \
`config.log' for more details" "$LINENO" 5; }
2839 # Provide some information about the compiler.
2840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2843 for ac_option in --version -v -V -qversion; do
2844 { { ac_try="$ac_compiler $ac_option >&5"
2846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2847 *) ac_try_echo
=$ac_try;;
2849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850 $as_echo "$ac_try_echo"; } >&5
2851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2853 if test -s conftest.err
; then
2855 ... rest of stderr output deleted ...
2856 10q' conftest.err
>conftest.er1
2857 cat conftest.er1
>&5
2859 rm -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }
2864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2875 ac_clean_files_save
=$ac_clean_files
2876 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2877 # Try to create an executable without -o first, disregard a.out.
2878 # It will help us diagnose broken compilers, and finding out an intuition
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2881 $as_echo_n "checking whether the C compiler works... " >&6; }
2882 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2884 # The possible output files:
2885 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2888 for ac_file
in $ac_files
2891 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2892 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2897 if { { ac_try
="$ac_link_default"
2899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link_default") 2>&5
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; then :
2908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2909 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2911 # so that the user can short-circuit this test for compilers unknown to
2913 for ac_file in $ac_files ''
2915 test -f "$ac_file" || continue
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2920 # We found the default executable, but exeext='' is most
2924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2928 # We set ac_cv_exeext here because the later test for it is not
2929 # safe: cross compilers may not add the suffix if given an `-o'
2930 # argument, so we may need to know it at that point already.
2931 # Even if this section looks crufty: it has the advantage of
2938 test "$ac_cv_exeext" = no && ac_cv_exeext=
2943 if test -z "$ac_file"; then :
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's
/^
/|
/' conftest.$ac_ext >&5
2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2951 as_fn_error 77 "C compiler cannot create executables
2952 See \`config.log
' for more details" "$LINENO" 5; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2958 $as_echo_n "checking for C compiler default output file name... " >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2960 $as_echo "$ac_file" >&6; }
2961 ac_exeext=$ac_cv_exeext
2963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2964 ac_clean_files=$ac_clean_files_save
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2966 $as_echo_n "checking for suffix of executables... " >&6; }
2967 if { { ac_try="$ac_link"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_link") 2>&5
2976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977 test $ac_status = 0; }; then :
2978 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2979 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2980 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2982 for ac_file
in conftest.exe conftest conftest.
*; do
2983 test -f "$ac_file" ||
continue
2985 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2986 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2995 See \`config.log' for more details" "$LINENO" 5; }
2997 rm -f conftest conftest
$ac_cv_exeext
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2999 $as_echo "$ac_cv_exeext" >&6; }
3001 rm -f conftest.
$ac_ext
3002 EXEEXT
=$ac_cv_exeext
3004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3010 FILE *f = fopen ("conftest.out", "w");
3011 return ferror (f) || fclose (f) != 0;
3017 ac_clean_files
="$ac_clean_files conftest.out"
3018 # Check that the compiler produces executables we can run. If not, either
3019 # the compiler is broken, or we cross compile.
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3021 $as_echo_n "checking whether we are cross compiling... " >&6; }
3022 if test "$cross_compiling" != yes; then
3023 { { ac_try
="$ac_link"
3025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link") 2>&5
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3034 if { ac_try='./conftest$ac_cv_exeext'
3035 { { case "(($ac_try" in
3036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3037 *) ac_try_echo
=$ac_try;;
3039 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_try") 2>&5
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }; }; then
3047 if test "$cross_compiling" = maybe
; then
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $?
"cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details" "$LINENO" 5; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3059 $as_echo "$cross_compiling" >&6; }
3061 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3062 ac_clean_files
=$ac_clean_files_save
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3064 $as_echo_n "checking for suffix of object files... " >&6; }
3065 if ${ac_cv_objext+:} false
; then :
3066 $as_echo_n "(cached) " >&6
3068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3079 rm -f conftest.o conftest.obj
3080 if { { ac_try
="$ac_compile"
3082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compile") 2>&5
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; then :
3091 for ac_file in conftest.o conftest.obj conftest.*; do
3092 test -f "$ac_file" || continue;
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3106 See \
`config.log' for more details" "$LINENO" 5; }
3108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3111 $as_echo "$ac_cv_objext" >&6; }
3112 OBJEXT=$ac_cv_objext
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3116 if ${ac_cv_c_compiler_gnu+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3133 if ac_fn_c_try_compile "$LINENO"; then :
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3144 if test $ac_compiler_gnu = yes; then
3149 ac_test_CFLAGS=${CFLAGS+set}
3150 ac_save_CFLAGS=$CFLAGS
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3153 if ${ac_cv_prog_cc_g+:} false; then :
3154 $as_echo_n "(cached) " >&6
3156 ac_save_c_werror_flag=$ac_c_werror_flag
3157 ac_c_werror_flag=yes
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3171 if ac_fn_c_try_compile "$LINENO"; then :
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3186 if ac_fn_c_try_compile "$LINENO"; then :
3189 ac_c_werror_flag=$ac_save_c_werror_flag
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 if ac_fn_c_try_compile "$LINENO"; then :
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3213 $as_echo "$ac_cv_prog_cc_g" >&6; }
3214 if test "$ac_test_CFLAGS" = set; then
3215 CFLAGS=$ac_save_CFLAGS
3216 elif test $ac_cv_prog_cc_g = yes; then
3217 if test "$GCC" = yes; then
3223 if test "$GCC" = yes; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3231 if ${ac_cv_prog_cc_c89+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 ac_cv_prog_cc_c89=no
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3242 struct buf { int x; };
3243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3244 static char *e (p, i)
3250 static char *f (char * (*g) (char **, int), char **p, ...)
3255 s = g (p, va_arg (v,int));
3260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3261 function prototypes and stuff, but not '\xHH' hex character constants.
3262 These don't provoke an error unfortunately, instead are silently treated
3263 as 'x'. The following induces an error, until -std is added to get
3264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3265 array size at least. It's necessary to write '\x00'==0 to get something
3266 that's true only with -std. */
3267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3270 inside strings and character constants. */
3272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3274 int test (int i, double x);
3275 struct s1 {int (*f) (int a);};
3276 struct s2 {int (*f) (double a);};
3277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3291 CC="$ac_save_CC $ac_arg"
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_c89=$ac_arg
3295 rm -f core conftest.err conftest.$ac_objext
3296 test "x$ac_cv_prog_cc_c89" != "xno" && break
3298 rm -f conftest.$ac_ext
3303 case "x$ac_cv_prog_cc_c89" in
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3306 $as_echo "none needed" >&6; } ;;
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3309 $as_echo "unsupported" >&6; } ;;
3311 CC="$CC $ac_cv_prog_cc_c89"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3315 if test "x$ac_cv_prog_cc_c89" != xno; then :
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 if test "$GCC" = yes ; then
3332 # -Werror forces warnings to be errors.
3334 ac_lbl_cc_force_warning_errors=-Werror
3337 # Try to have the compiler default to hiding symbols,
3338 # so that only symbols explicitly exported with
3339 # PCAP_API will be visible outside (shared) libraries.
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3343 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3344 save_CFLAGS="$CFLAGS"
3345 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3347 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3348 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3350 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3351 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3353 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3355 CFLAGS="$CFLAGS -fvisibility=hidden"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3368 if ac_fn_c_try_compile "$LINENO"; then :
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3372 CFLAGS="$save_CFLAGS"
3373 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 CFLAGS="$save_CFLAGS"
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 V_INCLS="$V_INCLS -I/usr/local/include"
3386 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3392 # This is assumed either to be GCC or clang, both
3393 # of which use -Werror to force warnings to be errors.
3395 ac_lbl_cc_force_warning_errors=-Werror
3398 # Try to have the compiler default to hiding symbols,
3399 # so that only symbols explicitly exported with
3400 # PCAP_API will be visible outside (shared) libraries.
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3404 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3405 save_CFLAGS="$CFLAGS"
3406 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3408 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3409 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3411 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3412 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3414 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3416 CFLAGS="$CFLAGS -fvisibility=hidden"
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3429 if ac_fn_c_try_compile "$LINENO"; then :
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 $as_echo "yes" >&6; }
3433 CFLAGS="$save_CFLAGS"
3434 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 CFLAGS="$save_CFLAGS"
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 # HP C, which is what we presume we're using, doesn't
3450 # exit with a non-zero exit status if we hand it an
3451 # invalid -W flag, can't be forced to do so even with
3452 # +We, and doesn't handle GCC-style -W flags, so we
3453 # don't want to try using GCC-style -W flags.
3455 ac_lbl_cc_dont_try_gcc_dashW=yes
3460 # MIPS C, which is what we presume we're using, doesn't
3461 # necessarily exit with a non-zero exit status if we
3462 # hand it an invalid -W flag, can't be forced to do
3463 # so, and doesn't handle GCC-style -W flags, so we
3464 # don't want to try using GCC-style -W flags.
3466 ac_lbl_cc_dont_try_gcc_dashW=yes
3468 # It also, apparently, defaults to "char" being
3469 # unsigned, unlike most other C implementations;
3470 # I suppose we could say "signed char" whenever
3471 # we want to guarantee a signed "char", but let's
3472 # just force signed chars.
3474 # -xansi is normally the default, but the
3475 # configure script was setting it; perhaps -cckr
3476 # was the default in the Old Days. (Then again,
3477 # that would probably be for backwards compatibility
3478 # in the days when ANSI C was Shiny and New, i.e.
3479 # 1989 and the early '90's, so maybe we can just
3480 # drop support for those compilers.)
3482 # -g is equivalent to -g2, which turns off
3483 # optimization; we choose -g3, which generates
3484 # debugging information but doesn't turn off
3485 # optimization (even if the optimization would
3486 # cause inaccuracies in debugging).
3488 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3493 # Presumed to be DEC OSF/1, Digital UNIX, or
3496 # The DEC C compiler, which is what we presume we're
3497 # using, doesn't exit with a non-zero exit status if we
3498 # hand it an invalid -W flag, can't be forced to do
3499 # so, and doesn't handle GCC-style -W flags, so we
3500 # don't want to try using GCC-style -W flags.
3502 ac_lbl_cc_dont_try_gcc_dashW=yes
3504 # -g is equivalent to -g2, which turns off
3505 # optimization; we choose -g3, which generates
3506 # debugging information but doesn't turn off
3507 # optimization (even if the optimization would
3508 # cause inaccuracies in debugging).
3510 V_CCOPT="$V_CCOPT -g3"
3515 # Assumed to be Sun C, which requires -errwarn to force
3516 # warnings to be treated as errors.
3518 ac_lbl_cc_force_warning_errors=-errwarn
3521 # Try to have the compiler default to hiding symbols,
3522 # so that only symbols explicitly exported with
3523 # PCAP_API will be visible outside (shared) libraries.
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3527 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3528 save_CFLAGS="$CFLAGS"
3529 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3531 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3532 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3534 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3535 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3537 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3539 CFLAGS="$CFLAGS -xldscope=hidden"
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3552 if ac_fn_c_try_compile "$LINENO"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555 $as_echo "yes" >&6; }
3556 CFLAGS="$save_CFLAGS"
3557 V_CCOPT="$V_CCOPT -xldscope=hidden"
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 CFLAGS="$save_CFLAGS"
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3572 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3573 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <sys/types.h>
3582 struct a { int b; };
3583 void c(const struct a *)
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_lbl_cc_const_proto=yes
3591 ac_cv_lbl_cc_const_proto=no
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3597 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3598 if test $ac_cv_lbl_cc_const_proto = no ; then
3600 $as_echo "#define const /**/" >>confdefs.h
3605 V_CCOPT="$V_CCOPT -O"
3609 if test "$GCC" = yes ; then
3611 # On platforms where we build a shared library:
3613 # add options to generate position-independent code,
3614 # if necessary (it's the default in AIX and Darwin/OS X);
3616 # define option to set the soname of the shared library,
3617 # if the OS supports that;
3619 # add options to specify, at link time, a directory to
3620 # add to the run-time search path, if that's necessary.
3622 V_SHLIB_CMD="\$(CC)"
3623 V_SHLIB_OPT="-shared"
3629 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3631 # Platforms where the linker is the GNU linker
3632 # or accepts command-line arguments like
3633 # those the GNU linker accepts.
3635 # Some instruction sets require -fPIC on some
3636 # operating systems. Check for them. If you
3637 # have a combination that requires it, add it
3652 V_CCOPT="$V_CCOPT $PIC_OPT"
3653 V_SONAME_OPT="-Wl,-soname,"
3654 V_RPATH_OPT="-Wl,-rpath,"
3658 V_CCOPT="$V_CCOPT -fpic"
3660 # XXX - this assumes GCC is using the HP linker,
3661 # rather than the GNU linker, and that the "+h"
3662 # option is used on all HP-UX platforms, both .sl
3665 V_SONAME_OPT="-Wl,+h,"
3667 # By default, directories specifed with -L
3668 # are added to the run-time search path, so
3669 # we don't add them in pcap-config.
3674 V_CCOPT="$V_CCOPT -fpic"
3676 # XXX - this assumes GCC is using the Sun linker,
3677 # rather than the GNU linker.
3679 V_SONAME_OPT="-Wl,-h,"
3680 V_RPATH_OPT="-Wl,-R,"
3685 # Set the appropriate compiler flags and, on platforms
3686 # where we build a shared library:
3688 # add options to generate position-independent code,
3689 # if necessary (it's the default in Darwin/OS X);
3691 # if we generate ".so" shared libraries, define the
3692 # appropriate options for building the shared library;
3694 # add options to specify, at link time, a directory to
3695 # add to the run-time search path, if that's necessary.
3697 # Note: spaces after V_SONAME_OPT are significant; on
3698 # some platforms the soname is passed with a GCC-like
3699 # "-Wl,-soname,{soname}" option, with the soname part
3700 # of the option, while on other platforms the C compiler
3701 # driver takes it as a regular option with the soname
3702 # following the option. The same applies to V_RPATH_OPT.
3707 V_SHLIB_CMD="\$(CC)"
3708 V_SHLIB_OPT="-G -bnoentry -bexpall"
3711 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3715 V_CCOPT="$V_CCOPT -fpic"
3716 V_SHLIB_CMD="\$(CC)"
3717 V_SHLIB_OPT="-shared"
3718 V_SONAME_OPT="-Wl,-soname,"
3719 V_RPATH_OPT="-Wl,-rpath,"
3723 V_CCOPT="$V_CCOPT +z"
3724 V_SHLIB_CMD="\$(LD)"
3728 # By default, directories specifed with -L
3729 # are added to the run-time search path, so
3730 # we don't add them in pcap-config.
3736 # Presumed to be DEC OSF/1, Digital UNIX, or
3739 V_SHLIB_CMD="\$(CC)"
3740 V_SHLIB_OPT="-shared"
3741 V_SONAME_OPT="-soname "
3742 V_RPATH_OPT="-rpath "
3746 V_CCOPT="$V_CCOPT -Kpic"
3747 V_SHLIB_CMD="\$(CC)"
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3756 $as_echo_n "checking for inline... " >&6; }
3757 save_CFLAGS="$CFLAGS"
3759 if ${ac_cv_lbl_inline+:} false; then :
3760 $as_echo_n "(cached) " >&6
3765 for ac_lbl_inline in inline __inline__ __inline
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #define inline $ac_lbl_inline
3770 static inline struct iltest *foo(void);
3776 static inline struct iltest *
3779 static struct iltest xxx;
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792 ac_lbl_cc_inline=yes
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 if test "$ac_lbl_cc_inline" = yes ; then
3799 if test "$ac_lbl_cc_inline" = yes ; then
3800 ac_cv_lbl_inline=$ac_lbl_inline
3804 CFLAGS="$save_CFLAGS"
3805 if test ! -z "$ac_cv_lbl_inline" ; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3807 $as_echo "$ac_cv_lbl_inline" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3813 cat >>confdefs.h <<_ACEOF
3814 #define inline $ac_cv_lbl_inline
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3819 $as_echo_n "checking for __attribute__... " >&6; }
3820 if ${ac_cv___attribute__+:} false; then :
3821 $as_echo_n "(cached) " >&6
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3830 static void foo(void) __attribute__ ((noreturn));
3839 main(int argc, char **argv)
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_cv___attribute__=yes
3848 ac_cv___attribute__=no
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 if test "$ac_cv___attribute__" = "yes"; then
3855 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3859 # We can't use __attribute__, so we can't use __attribute__((unused)),
3860 # so we define _U_ to an empty string.
3862 V_DEFS="$V_DEFS -D_U_=\"\""
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3865 $as_echo "$ac_cv___attribute__" >&6; }
3867 if test "$ac_cv___attribute__" = "yes"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3870 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3871 if ${ac_cv___attribute___unused+:} false; then :
3872 $as_echo_n "(cached) " >&6
3875 save_CFLAGS="$CFLAGS"
3876 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3885 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3887 printf("Hello, world!\n");
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv___attribute___unused=yes
3895 ac_cv___attribute___unused=no
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 CFLAGS="$save_CFLAGS"
3901 if test "$ac_cv___attribute___unused" = "yes"; then
3902 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3904 V_DEFS="$V_DEFS -D_U_=\"\""
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3907 $as_echo "$ac_cv___attribute___unused" >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
3911 $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
3912 if ${ac_cv___attribute___format+:} false; then :
3913 $as_echo_n "(cached) " >&6
3916 save_CFLAGS="$CFLAGS"
3917 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3924 extern int foo(const char *fmt, ...)
3925 __attribute__ ((format (printf, 1, 2)));
3928 main(int argc, char **argv)
3934 if ac_fn_c_try_compile "$LINENO"; then :
3935 ac_cv___attribute___format=yes
3937 ac_cv___attribute___format=no
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 CFLAGS="$save_CFLAGS"
3943 if test "$ac_cv___attribute___format" = "yes"; then
3945 $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
3949 $as_echo "$ac_cv___attribute___format" >&6; }
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3959 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3960 # On Suns, sometimes $CPP names a directory.
3961 if test -n "$CPP" && test -d "$CPP"; then
3964 if test -z "$CPP"; then
3965 if ${ac_cv_prog_CPP+:} false; then :
3966 $as_echo_n "(cached) " >&6
3968 # Double quotes because CPP needs to be expanded
3969 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3972 for ac_c_preproc_warn_flag in '' yes
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3983 # include <limits.h>
3985 # include <assert.h>
3989 if ac_fn_c_try_cpp "$LINENO"; then :
3992 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.i conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <ac_nonexistent.h>
4003 if ac_fn_c_try_cpp "$LINENO"; then :
4004 # Broken: success on invalid input.
4007 # Passes both tests.
4011 rm -f conftest.err conftest.i conftest.$ac_ext
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.i conftest.err conftest.
$ac_ext
4016 if $ac_preproc_ok; then :
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4029 $as_echo "$CPP" >&6; }
4031 for ac_c_preproc_warn_flag
in '' yes
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4042 # include <limits.h>
4044 # include <assert.h>
4048 if ac_fn_c_try_cpp
"$LINENO"; then :
4051 # Broken: fails on valid input.
4054 rm -f conftest.err conftest.i conftest.
$ac_ext
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
4058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <ac_nonexistent.h>
4062 if ac_fn_c_try_cpp
"$LINENO"; then :
4063 # Broken: success on invalid input.
4066 # Passes both tests.
4070 rm -f conftest.err conftest.i conftest.
$ac_ext
4073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074 rm -f conftest.i conftest.err conftest.
$ac_ext
4075 if $ac_preproc_ok; then :
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details" "$LINENO" 5; }
4085 ac_cpp
='$CPP $CPPFLAGS'
4086 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4093 if ${ac_cv_path_GREP+:} false
; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -z "$GREP"; then
4097 ac_path_GREP_found
=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4100 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4103 test -z "$as_dir" && as_dir
=.
4104 for ac_prog
in grep ggrep
; do
4105 for ac_exec_ext
in '' $ac_executable_extensions; do
4106 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4107 as_fn_executable_p
"$ac_path_GREP" ||
continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4112 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4115 $as_echo_n 0123456789 >"conftest.in"
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4123 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4124 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP
="$ac_path_GREP"
4128 ac_path_GREP_max
=$ac_count
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4133 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4136 $ac_path_GREP_found && break 3
4141 if test -z "$ac_cv_path_GREP"; then
4142 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145 ac_cv_path_GREP
=$GREP
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4150 $as_echo "$ac_cv_path_GREP" >&6; }
4151 GREP
="$ac_cv_path_GREP"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4155 $as_echo_n "checking for egrep... " >&6; }
4156 if ${ac_cv_path_EGREP+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4160 then ac_cv_path_EGREP
="$GREP -E"
4162 if test -z "$EGREP"; then
4163 ac_path_EGREP_found
=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4166 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4169 test -z "$as_dir" && as_dir
=.
4170 for ac_prog
in egrep; do
4171 for ac_exec_ext
in '' $ac_executable_extensions; do
4172 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4173 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4174 # Check for GNU ac_path_EGREP and select it if it is found.
4175 # Check for GNU $ac_path_EGREP
4176 case `"$ac_path_EGREP" --version 2>&1` in
4178 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4181 $as_echo_n 0123456789 >"conftest.in"
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
4187 $as_echo 'EGREP' >> "conftest.nl"
4188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4189 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4190 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_EGREP
="$ac_path_EGREP"
4194 ac_path_EGREP_max
=$ac_count
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4199 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4202 $ac_path_EGREP_found && break 3
4207 if test -z "$ac_cv_path_EGREP"; then
4208 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4211 ac_cv_path_EGREP
=$EGREP
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4217 $as_echo "$ac_cv_path_EGREP" >&6; }
4218 EGREP
="$ac_cv_path_EGREP"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4222 $as_echo_n "checking for ANSI C header files... " >&6; }
4223 if ${ac_cv_header_stdc+:} false
; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4241 if ac_fn_c_try_compile
"$LINENO"; then :
4242 ac_cv_header_stdc
=yes
4244 ac_cv_header_stdc
=no
4246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4248 if test $ac_cv_header_stdc = yes; then
4249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "memchr" >/dev
/null
2>&1; then :
4259 ac_cv_header_stdc
=no
4265 if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 $EGREP "free" >/dev
/null
2>&1; then :
4276 ac_cv_header_stdc
=no
4282 if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then :
4287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295 # define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4314 if ac_fn_c_try_run
"$LINENO"; then :
4317 ac_cv_header_stdc
=no
4319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4320 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4326 $as_echo "$ac_cv_header_stdc" >&6; }
4327 if test $ac_cv_header_stdc = yes; then
4329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4334 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4335 inttypes.h stdint.h unistd.h
4337 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4340 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4341 cat >>confdefs.h
<<_ACEOF
4342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 for ac_header
in sys
/bitypes.h
4352 ac_fn_c_check_header_mongrel
"$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4353 if test "x$ac_cv_header_sys_bitypes_h" = xyes
; then :
4354 cat >>confdefs.h
<<_ACEOF
4355 #define HAVE_SYS_BITYPES_H 1
4363 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4364 #ifdef HAVE_SYS_BITYPES_H
4365 #include <sys/bitypes.h>
4368 if test "x$ac_cv_type_int8_t" = xyes
; then :
4372 $as_echo "#define int8_t signed char" >>confdefs.h
4376 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4377 #ifdef HAVE_SYS_BITYPES_H
4378 #include <sys/bitypes.h>
4381 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
4385 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4389 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4390 if test "x$ac_cv_type_int16_t" = xyes
; then :
4394 $as_echo "#define int16_t short" >>confdefs.h
4396 $ac_includes_default
4397 #ifdef HAVE_SYS_BITYPES_H
4398 #include <sys/bitypes.h>
4402 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4403 #ifdef HAVE_SYS_BITYPES_H
4404 #include <sys/bitypes.h>
4407 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
4411 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4415 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4416 #ifdef HAVE_SYS_BITYPES_H
4417 #include <sys/bitypes.h>
4420 if test "x$ac_cv_type_int32_t" = xyes
; then :
4424 $as_echo "#define int32_t int" >>confdefs.h
4428 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4429 #ifdef HAVE_SYS_BITYPES_H
4430 #include <sys/bitypes.h>
4433 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
4437 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4441 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4442 #ifdef HAVE_SYS_BITYPES_H
4443 #include <sys/bitypes.h>
4446 if test "x$ac_cv_type_int64_t" = xyes
; then :
4450 $as_echo "#define int64_t long long" >>confdefs.h
4454 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4455 #ifdef HAVE_SYS_BITYPES_H
4456 #include <sys/bitypes.h>
4459 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
4463 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4469 # Try to arrange for large file support.
4471 # Check whether --enable-largefile was given.
4472 if test "${enable_largefile+set}" = set; then :
4473 enableval
=$enable_largefile;
4476 if test "$enable_largefile" != no
; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4479 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4480 if ${ac_cv_sys_largefile_CC+:} false
; then :
4481 $as_echo_n "(cached) " >&6
4483 ac_cv_sys_largefile_CC
=no
4484 if test "$GCC" != yes; then
4487 # IRIX 6.2 and later do not support large files by default,
4488 # so use the C compiler's -n32 option if that helps.
4489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #include <sys/types.h>
4492 /* Check that off_t can represent 2**63 - 1 correctly.
4493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4494 since some C++ compilers masquerading as C compilers
4495 incorrectly reject 9223372036854775807. */
4496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4498 && LARGE_OFF_T % 2147483647 == 1)
4508 if ac_fn_c_try_compile
"$LINENO"; then :
4511 rm -f core conftest.err conftest.
$ac_objext
4513 if ac_fn_c_try_compile
"$LINENO"; then :
4514 ac_cv_sys_largefile_CC
=' -n32'; break
4516 rm -f core conftest.err conftest.
$ac_objext
4520 rm -f conftest.
$ac_ext
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4524 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4525 if test "$ac_cv_sys_largefile_CC" != no
; then
4526 CC
=$CC$ac_cv_sys_largefile_CC
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4530 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4531 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4532 $as_echo_n "(cached) " >&6
4535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <sys/types.h>
4538 /* Check that off_t can represent 2**63 - 1 correctly.
4539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4540 since some C++ compilers masquerading as C compilers
4541 incorrectly reject 9223372036854775807. */
4542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4544 && LARGE_OFF_T % 2147483647 == 1)
4554 if ac_fn_c_try_compile
"$LINENO"; then :
4555 ac_cv_sys_file_offset_bits
=no
; break
4557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #define _FILE_OFFSET_BITS 64
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4578 if ac_fn_c_try_compile
"$LINENO"; then :
4579 ac_cv_sys_file_offset_bits
=64; break
4581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 ac_cv_sys_file_offset_bits
=unknown
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4587 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4588 case $ac_cv_sys_file_offset_bits in #(
4591 cat >>confdefs.h
<<_ACEOF
4592 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4597 if test $ac_cv_sys_file_offset_bits = unknown
; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4599 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4600 if ${ac_cv_sys_large_files+:} false
; then :
4601 $as_echo_n "(cached) " >&6
4604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 #include <sys/types.h>
4607 /* Check that off_t can represent 2**63 - 1 correctly.
4608 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4609 since some C++ compilers masquerading as C compilers
4610 incorrectly reject 9223372036854775807. */
4611 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4612 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4613 && LARGE_OFF_T % 2147483647 == 1)
4623 if ac_fn_c_try_compile
"$LINENO"; then :
4624 ac_cv_sys_large_files
=no
; break
4626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #define _LARGE_FILES 1
4630 #include <sys/types.h>
4631 /* Check that off_t can represent 2**63 - 1 correctly.
4632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4633 since some C++ compilers masquerading as C compilers
4634 incorrectly reject 9223372036854775807. */
4635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4637 && LARGE_OFF_T % 2147483647 == 1)
4647 if ac_fn_c_try_compile
"$LINENO"; then :
4648 ac_cv_sys_large_files
=1; break
4650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4651 ac_cv_sys_large_files
=unknown
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4656 $as_echo "$ac_cv_sys_large_files" >&6; }
4657 case $ac_cv_sys_large_files in #(
4660 cat >>confdefs.h
<<_ACEOF
4661 #define _LARGE_FILES $ac_cv_sys_large_files
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4672 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4673 if ${ac_cv_sys_largefile_source+:} false
; then :
4674 $as_echo_n "(cached) " >&6
4677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <sys/types.h> /* for off_t */
4684 int (*fp) (FILE *, off_t, int) = fseeko;
4685 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4690 if ac_fn_c_try_link
"$LINENO"; then :
4691 ac_cv_sys_largefile_source
=no
; break
4693 rm -f core conftest.err conftest.
$ac_objext \
4694 conftest
$ac_exeext conftest.
$ac_ext
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #define _LARGEFILE_SOURCE 1
4698 #include <sys/types.h> /* for off_t */
4703 int (*fp) (FILE *, off_t, int) = fseeko;
4704 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4709 if ac_fn_c_try_link
"$LINENO"; then :
4710 ac_cv_sys_largefile_source
=1; break
4712 rm -f core conftest.err conftest.
$ac_objext \
4713 conftest
$ac_exeext conftest.
$ac_ext
4714 ac_cv_sys_largefile_source
=unknown
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4719 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4720 case $ac_cv_sys_largefile_source in #(
4723 cat >>confdefs.h
<<_ACEOF
4724 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4730 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4731 # in glibc 2.1.3, but that breaks too many other things.
4732 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4733 if test $ac_cv_sys_largefile_source != unknown
; then
4735 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4740 for ac_header
in sys
/ioccom.h sys
/select.h sys
/sockio.h limits.h
4742 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4743 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4744 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4745 cat >>confdefs.h
<<_ACEOF
4746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753 for ac_header
in linux
/types.h
4755 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4756 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
4757 cat >>confdefs.h
<<_ACEOF
4758 #define HAVE_LINUX_TYPES_H 1
4765 for ac_header
in linux
/if_packet.h netpacket
/packet.h netpacket
/if_packet.h
4767 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4768 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4769 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4770 cat >>confdefs.h
<<_ACEOF
4771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4778 for ac_header
in net
/pfvar.h
4780 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4781 #include <sys/socket.h>
4784 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4785 cat >>confdefs.h
<<_ACEOF
4786 #define HAVE_NET_PFVAR_H 1
4793 if test "$ac_cv_header_net_pfvar_h" = yes; then
4795 # Check for various PF actions.
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4798 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801 #include <sys/types.h>
4802 #include <sys/socket.h>
4804 #include <net/pfvar.h>
4808 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4813 if ac_fn_c_try_compile
"$LINENO"; then :
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4816 $as_echo "yes" >&6; }
4818 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4827 for ac_header
in netinet
/if_ether.h
4829 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4830 #include <sys/socket.h>
4832 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4833 cat >>confdefs.h
<<_ACEOF
4834 #define HAVE_NETINET_IF_ETHER_H 1
4841 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4843 # The simple test didn't work.
4844 # Do we need to include <net/if.h> first?
4845 # Unset ac_cv_header_netinet_if_ether_h so we don't
4846 # treat the previous failure as a cached value and
4847 # suppress the next test.
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4850 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4851 unset ac_cv_header_netinet_if_ether_h
4852 for ac_header
in netinet
/if_ether.h
4854 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4855 #include <sys/socket.h>
4856 #include <netinet/in.h>
4861 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4862 cat >>confdefs.h
<<_ACEOF
4863 #define HAVE_NETINET_IF_ETHER_H 1
4874 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4876 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4877 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4878 #include <sys/socket.h>
4879 #include <linux/if.h>
4882 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4883 cat >>confdefs.h
<<_ACEOF
4884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4894 if test "$GCC" = yes ; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4896 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4897 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4898 $as_echo_n "(cached) " >&6
4900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4903 * This generates a "duplicate case value" when fixincludes
4906 # include <sys/types.h>
4907 # include <sys/time.h>
4908 # include <sys/ioctl.h>
4909 # ifdef HAVE_SYS_IOCCOM_H
4910 # include <sys/ioccom.h>
4923 if ac_fn_c_try_compile
"$LINENO"; then :
4924 ac_cv_lbl_gcc_fixincludes
=yes
4926 ac_cv_lbl_gcc_fixincludes
=no
4928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4932 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4933 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4934 # Don't cache failure
4935 unset ac_cv_lbl_gcc_fixincludes
4936 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
4940 for ac_func
in strerror strlcpy strlcat
4942 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4943 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4944 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4945 cat >>confdefs.h
<<_ACEOF
4946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4954 for ac_func
in vsnprintf snprintf
4956 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4957 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4958 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4959 cat >>confdefs.h
<<_ACEOF
4960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4968 if test $needsnprintf = yes; then
4969 case " $LIBOBJS " in
4970 *" snprintf.$ac_objext "* ) ;;
4971 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4978 for ac_func
in strtok_r
4980 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4981 if test "x$ac_cv_func_strtok_r" = xyes
; then :
4982 cat >>confdefs.h
<<_ACEOF
4983 #define HAVE_STRTOK_R 1
4991 if test $needstrtok_r = yes; then
4992 case " $LIBOBJS " in
4993 *" strtok_r.$ac_objext "* ) ;;
4994 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
5001 # Do this before checking for ether_hostton(), as it's a
5002 # "gethostbyname() -ish function".
5005 # Most operating systems have gethostbyname() in the default searched
5006 # libraries (i.e. libc):
5007 # Some OSes (eg. Solaris) place it in libnsl
5008 # Some strange OSes (SINIX) have it in libsocket:
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5010 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5011 if ${ac_cv_search_gethostbyname+:} false
; then :
5012 $as_echo_n "(cached) " >&6
5014 ac_func_search_save_LIBS
=$LIBS
5015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5018 /* Override any GCC internal prototype to avoid an error.
5019 Use char because int might match the return type of a GCC
5020 builtin and then its argument prototype would still apply. */
5024 char gethostbyname ();
5028 return gethostbyname ();
5033 for ac_lib
in '' nsl socket resolv
; do
5034 if test -z "$ac_lib"; then
5035 ac_res
="none required"
5038 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5040 if ac_fn_c_try_link
"$LINENO"; then :
5041 ac_cv_search_gethostbyname
=$ac_res
5043 rm -f core conftest.err conftest.
$ac_objext \
5045 if ${ac_cv_search_gethostbyname+:} false
; then :
5049 if ${ac_cv_search_gethostbyname+:} false
; then :
5052 ac_cv_search_gethostbyname
=no
5055 LIBS
=$ac_func_search_save_LIBS
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5058 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5059 ac_res
=$ac_cv_search_gethostbyname
5060 if test "$ac_res" != no
; then :
5061 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5065 # Unfortunately libsocket sometimes depends on libnsl and
5066 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5067 if test "$ac_cv_search_gethostbyname" = "no"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5070 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5071 if ${ac_cv_lib_socket_gethostbyname+:} false
; then :
5072 $as_echo_n "(cached) " >&6
5074 ac_check_lib_save_LIBS
=$LIBS
5075 LIBS
="-lsocket -lnsl $LIBS"
5076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5079 /* Override any GCC internal prototype to avoid an error.
5080 Use char because int might match the return type of a GCC
5081 builtin and then its argument prototype would still apply. */
5085 char gethostbyname ();
5089 return gethostbyname ();
5094 if ac_fn_c_try_link
"$LINENO"; then :
5095 ac_cv_lib_socket_gethostbyname
=yes
5097 ac_cv_lib_socket_gethostbyname
=no
5099 rm -f core conftest.err conftest.
$ac_objext \
5100 conftest
$ac_exeext conftest.
$ac_ext
5101 LIBS
=$ac_check_lib_save_LIBS
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5104 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5105 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
; then :
5106 LIBS
="-lsocket -lnsl $LIBS"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5111 $as_echo_n "checking for library containing socket... " >&6; }
5112 if ${ac_cv_search_socket+:} false
; then :
5113 $as_echo_n "(cached) " >&6
5115 ac_func_search_save_LIBS
=$LIBS
5116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5119 /* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5134 for ac_lib
in '' socket
; do
5135 if test -z "$ac_lib"; then
5136 ac_res
="none required"
5139 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5141 if ac_fn_c_try_link
"$LINENO"; then :
5142 ac_cv_search_socket
=$ac_res
5144 rm -f core conftest.err conftest.
$ac_objext \
5146 if ${ac_cv_search_socket+:} false
; then :
5150 if ${ac_cv_search_socket+:} false
; then :
5153 ac_cv_search_socket
=no
5156 LIBS
=$ac_func_search_save_LIBS
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5159 $as_echo "$ac_cv_search_socket" >&6; }
5160 ac_res
=$ac_cv_search_socket
5161 if test "$ac_res" != no
; then :
5162 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5166 $as_echo_n "checking for socket in -lsocket... " >&6; }
5167 if ${ac_cv_lib_socket_socket+:} false
; then :
5168 $as_echo_n "(cached) " >&6
5170 ac_check_lib_save_LIBS
=$LIBS
5171 LIBS
="-lsocket -lnsl $LIBS"
5172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5175 /* Override any GCC internal prototype to avoid an error.
5176 Use char because int might match the return type of a GCC
5177 builtin and then its argument prototype would still apply. */
5190 if ac_fn_c_try_link
"$LINENO"; then :
5191 ac_cv_lib_socket_socket
=yes
5193 ac_cv_lib_socket_socket
=no
5195 rm -f core conftest.err conftest.
$ac_objext \
5196 conftest
$ac_exeext conftest.
$ac_ext
5197 LIBS
=$ac_check_lib_save_LIBS
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5200 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5201 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
5202 LIBS
="-lsocket -lnsl $LIBS"
5207 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5209 $as_echo_n "checking for library containing putmsg... " >&6; }
5210 if ${ac_cv_search_putmsg+:} false
; then :
5211 $as_echo_n "(cached) " >&6
5213 ac_func_search_save_LIBS
=$LIBS
5214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5217 /* Override any GCC internal prototype to avoid an error.
5218 Use char because int might match the return type of a GCC
5219 builtin and then its argument prototype would still apply. */
5232 for ac_lib
in '' str
; do
5233 if test -z "$ac_lib"; then
5234 ac_res
="none required"
5237 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5239 if ac_fn_c_try_link
"$LINENO"; then :
5240 ac_cv_search_putmsg
=$ac_res
5242 rm -f core conftest.err conftest.
$ac_objext \
5244 if ${ac_cv_search_putmsg+:} false
; then :
5248 if ${ac_cv_search_putmsg+:} false
; then :
5251 ac_cv_search_putmsg
=no
5254 LIBS
=$ac_func_search_save_LIBS
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5257 $as_echo "$ac_cv_search_putmsg" >&6; }
5258 ac_res
=$ac_cv_search_putmsg
5259 if test "$ac_res" != no
; then :
5260 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5267 # You are in a twisty little maze of UN*Xes, all different.
5268 # Some might not have ether_hostton().
5269 # Some might have it, but not declare it in any header file.
5270 # Some might have it, but declare it in <netinet/if_ether.h>.
5271 # Some might have it, but declare it in <netinet/ether.h>
5272 # (And some might have it but document it as something declared in
5273 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5275 # Before you is a C compiler.
5277 for ac_func
in ether_hostton
5279 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5280 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5281 cat >>confdefs.h
<<_ACEOF
5282 #define HAVE_ETHER_HOSTTON 1
5288 if test "$ac_cv_func_ether_hostton" = yes; then
5290 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5292 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5294 # Yes. Does it declare ether_hostton()?
5296 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5297 #include <sys/types.h>
5298 #include <sys/socket.h>
5299 #include <netinet/in.h>
5300 #include <arpa/inet.h>
5304 #include <netinet/if_ether.h>
5307 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5310 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5319 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5321 # No, how about <netinet/ether.h>, as on Linux?
5323 for ac_header
in netinet
/ether.h
5325 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5326 if test "x$ac_cv_header_netinet_ether_h" = xyes
; then :
5327 cat >>confdefs.h
<<_ACEOF
5328 #define HAVE_NETINET_ETHER_H 1
5335 if test "$ac_cv_header_netinet_ether_h" = yes; then
5337 # We have it - does it declare ether_hostton()?
5338 # Unset ac_cv_have_decl_ether_hostton so we don't
5339 # treat the previous failure as a cached value and
5340 # suppress the next test.
5342 unset ac_cv_have_decl_ether_hostton
5343 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5344 #include <netinet/ether.h>
5347 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5350 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5358 # Is ether_hostton() declared?
5360 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5362 # No, we'll have to declare it ourselves.
5363 # Do we have "struct ether_addr"?
5365 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5366 #include <sys/types.h>
5367 #include <sys/socket.h>
5368 #include <netinet/in.h>
5369 #include <arpa/inet.h>
5373 #include <netinet/if_ether.h>
5376 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5378 cat >>confdefs.h
<<_ACEOF
5379 #define HAVE_STRUCT_ETHER_ADDR 1
5386 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5390 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5396 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5397 # Check whether --enable-protochain was given.
5398 if test "${enable_protochain+set}" = set; then :
5399 enableval
=$enable_protochain;
5402 case "x$enable_protochain" in
5403 xyes
) enable_protochain
=enabled
;;
5404 xno
) enable_protochain
=disabled
;;
5405 x
) enable_protochain
=enabled
;;
5408 if test "$enable_protochain" = "disabled"; then
5410 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5414 $as_echo "${enable_protochain}" >&6; }
5417 # valgrindtest directly uses the native capture mechanism, but
5418 # only tests with BPF and PF_PACKET sockets; only enable it if
5419 # we have BPF or PF_PACKET sockets.
5424 # SITA support is mutually exclusive with native capture support;
5425 # "--with-sita" selects SITA support.
5428 # Check whether --with-sita was given.
5429 if test "${with_sita+set}" = set; then :
5431 if test ! "x$withval" = "xno" ; then
5433 $as_echo "#define SITA 1" >>confdefs.h
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5436 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5442 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5443 as_fn_error $?
"pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5446 # Check whether --with-pcap was given.
5447 if test "${with_pcap+set}" = set; then :
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5452 $as_echo_n "checking packet capture type... " >&6; }
5453 if test ! -z "$with_pcap" ; then
5455 elif test -r /dev
/bpf
-o -h /dev
/bpf
; then
5457 # Cloning BPF device.
5461 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5465 # We have BPF, so build valgrindtest with "make test".
5467 VALGRINDTEST
=valgrindtest
5468 elif test -r /dev
/bpf0
; then
5472 # We have BPF, so build valgrindtest with "make test".
5474 VALGRINDTEST
=valgrindtest
5475 elif test -r /usr
/include
/net
/pfilt.h
; then
5477 elif test -r /dev
/enet
; then
5479 elif test -r /dev
/nit
; then
5481 elif test -r /usr
/include
/sys
/net
/nit.h
; then
5483 elif test -r /usr
/include
/linux
/socket.h
; then
5487 # XXX - this won't work with older kernels that have SOCK_PACKET
5488 # sockets but not PF_PACKET sockets.
5490 VALGRINDTEST
=valgrindtest
5491 elif test -r /usr
/include
/net
/raw.h
; then
5493 elif test -r /usr
/include
/odmi.h
; then
5495 # On AIX, the BPF devices might not yet be present - they're
5496 # created the first time libpcap runs after booting.
5497 # We check for odmi.h instead.
5500 elif test -c /dev
/bpf0
; then # check again in case not readable
5504 # We have BPF, so build valgrindtest with "make test".
5506 VALGRINDTEST
=valgrindtest
5507 elif test -r /usr
/include
/sys
/dlpi.h
; then
5509 elif test -c /dev
/enet
; then # check again in case not readable
5511 elif test -c /dev
/nit
; then # check again in case not readable
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5517 $as_echo "$V_PCAP" >&6; }
5521 # Do capture-mechanism-dependent tests.
5526 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5531 # Checks for some header files.
5533 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5535 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5536 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5537 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5538 cat >>confdefs.h
<<_ACEOF
5539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5549 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5550 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5551 # private version also existed, which did not have the same APIs.
5552 # Due to a gcc bug, the default search path for 32-bit libraries does
5553 # not include /lib, we add it explicitly here.
5554 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5555 # Also, due to the bug above applications that link to libpcap with
5556 # libdlpi will have to add "-L/lib" option to "configure".
5558 saved_ldflags
=$LDFLAGS
5559 LDFLAGS
="$LIBS -L/lib"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5561 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5562 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
5563 $as_echo_n "(cached) " >&6
5565 ac_check_lib_save_LIBS
=$LIBS
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 /* Override any GCC internal prototype to avoid an error.
5571 Use char because int might match the return type of a GCC
5572 builtin and then its argument prototype would still apply. */
5580 return dlpi_walk ();
5585 if ac_fn_c_try_link
"$LINENO"; then :
5586 ac_cv_lib_dlpi_dlpi_walk
=yes
5588 ac_cv_lib_dlpi_dlpi_walk
=no
5590 rm -f core conftest.err conftest.
$ac_objext \
5591 conftest
$ac_exeext conftest.
$ac_ext
5592 LIBS
=$ac_check_lib_save_LIBS
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5595 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5596 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
5601 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5608 LDFLAGS
=$saved_ldflags
5611 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5615 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5616 if ${ac_cv_sys_dlpi_usable+:} false
; then :
5617 $as_echo_n "(cached) " >&6
5619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 #include <sys/time.h>
5624 #include <sys/dlpi.h>
5629 int i = DL_PROMISC_PHYS;
5634 if ac_fn_c_try_compile
"$LINENO"; then :
5635 ac_cv_sys_dlpi_usable
=yes
5637 ac_cv_sys_dlpi_usable
=no
5639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5643 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5644 if test $ac_cv_sys_dlpi_usable = no
; then
5645 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5649 # Check whether we have a /dev/dlpi device or have multiple devices.
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5652 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5653 if test -c /dev
/dlpi
; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5657 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5664 $as_echo_n "checking for $dir directory... " >&6; }
5665 if test -d $dir ; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667 $as_echo "yes" >&6; }
5669 cat >>confdefs.h
<<_ACEOF
5670 #define PCAP_DEV_PREFIX "$dir"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5680 # This check is for Solaris with DLPI support for passive modes.
5681 # See dlpi(7P) for more details.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5684 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5685 if ${ac_cv_lbl_has_dl_passive_req_t+:} false
; then :
5686 $as_echo_n "(cached) " >&6
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5691 # include <sys/types.h>
5692 # include <sys/dlpi.h>
5696 u_int i = sizeof(dl_passive_req_t)
5701 if ac_fn_c_try_compile
"$LINENO"; then :
5702 ac_cv_lbl_has_dl_passive_req_t
=yes
5704 ac_cv_lbl_has_dl_passive_req_t
=no
5706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5710 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5711 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5713 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5720 # Do we have the wireless extensions?
5722 for ac_header
in linux
/wireless.h
5724 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5725 #include <sys/socket.h>
5726 #include <linux/if.h>
5727 #include <linux/types.h>
5730 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
5731 cat >>confdefs.h
<<_ACEOF
5732 #define HAVE_LINUX_WIRELESS_H 1
5744 # Check whether --with-libnl was given.
5745 if test "${with_libnl+set}" = set; then :
5746 withval
=$with_libnl; with_libnl
=$withval
5750 if test x
$with_libnl != xno
; then
5753 incdir
=-I/usr
/include
/libnl3
5755 if test x
$withval != x
; then
5756 libnldir
=-L${withval}/lib
/.libs
5757 incdir
=-I${withval}/include
5761 # Try libnl 3.x first.
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5764 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5765 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
5766 $as_echo_n "(cached) " >&6
5768 ac_check_lib_save_LIBS
=$LIBS
5769 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5779 char nl_socket_alloc ();
5783 return nl_socket_alloc ();
5788 if ac_fn_c_try_link
"$LINENO"; then :
5789 ac_cv_lib_nl_3_nl_socket_alloc
=yes
5791 ac_cv_lib_nl_3_nl_socket_alloc
=no
5793 rm -f core conftest.err conftest.
$ac_objext \
5794 conftest
$ac_exeext conftest.
$ac_ext
5795 LIBS
=$ac_check_lib_save_LIBS
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5798 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5799 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
5802 # Yes, we have libnl 3.x.
5804 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5806 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5809 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5812 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5815 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5817 V_INCLS
="$V_INCLS ${incdir}"
5823 if test x
$have_any_nl = xno
; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5828 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5829 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
5830 $as_echo_n "(cached) " >&6
5832 ac_check_lib_save_LIBS
=$LIBS
5834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5837 /* Override any GCC internal prototype to avoid an error.
5838 Use char because int might match the return type of a GCC
5839 builtin and then its argument prototype would still apply. */
5843 char nl_socket_alloc ();
5847 return nl_socket_alloc ();
5852 if ac_fn_c_try_link
"$LINENO"; then :
5853 ac_cv_lib_nl_nl_socket_alloc
=yes
5855 ac_cv_lib_nl_nl_socket_alloc
=no
5857 rm -f core conftest.err conftest.
$ac_objext \
5858 conftest
$ac_exeext conftest.
$ac_ext
5859 LIBS
=$ac_check_lib_save_LIBS
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5862 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5863 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
5866 # Yes, we have libnl 2.x.
5868 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
5870 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5873 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5876 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5879 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5887 if test x
$have_any_nl = xno
; then
5889 # No, we don't; do we have libnl 1.x?
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5892 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5893 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
5894 $as_echo_n "(cached) " >&6
5896 ac_check_lib_save_LIBS
=$LIBS
5898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5907 char nl_handle_alloc ();
5911 return nl_handle_alloc ();
5916 if ac_fn_c_try_link
"$LINENO"; then :
5917 ac_cv_lib_nl_nl_handle_alloc
=yes
5919 ac_cv_lib_nl_nl_handle_alloc
=no
5921 rm -f core conftest.err conftest.
$ac_objext \
5922 conftest
$ac_exeext conftest.
$ac_ext
5923 LIBS
=$ac_check_lib_save_LIBS
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5926 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5927 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
5932 LIBS
="${libnldir} -lnl $LIBS"
5934 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5942 if test x
$have_any_nl = xno
; then
5944 # No, we don't have libnl at all.
5946 if test x
$with_libnl = xyes
; then
5947 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
5952 for ac_header
in linux
/ethtool.h
5954 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5955 $ac_includes_default
5956 #include <linux/types.h>
5959 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
5960 cat >>confdefs.h
<<_ACEOF
5961 #define HAVE_LINUX_ETHTOOL_H 1
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5969 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5970 if ${ac_cv_lbl_tpacket_stats+:} false
; then :
5971 $as_echo_n "(cached) " >&6
5973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5976 # include <linux/if_packet.h>
5980 struct tpacket_stats stats
5985 if ac_fn_c_try_compile
"$LINENO"; then :
5986 ac_cv_lbl_tpacket_stats
=yes
5988 ac_cv_lbl_tpacket_stats
=no
5990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5994 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5995 if test $ac_cv_lbl_tpacket_stats = yes; then
5997 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
6001 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
6002 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6008 # include <sys/types.h>
6009 # include <linux/if_packet.h>
6013 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6018 if ac_fn_c_try_compile
"$LINENO"; then :
6019 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=yes
6021 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=no
6023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6027 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6028 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6029 HAVE_LINUX_TPACKET_AUXDATA
=tp_vlan_tci
6032 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
6039 # Check whether we have the *BSD-style ioctls.
6041 for ac_header
in net
/if_media.h
6043 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6044 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
6045 cat >>confdefs.h
<<_ACEOF
6046 #define HAVE_NET_IF_MEDIA_H 1
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
6055 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <sys/socket.h>
6059 #include <sys/ioctl.h>
6061 #include <net/bpf.h>
6065 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
6070 if ac_fn_c_try_compile
"$LINENO"; then :
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6073 $as_echo "yes" >&6; }
6075 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6085 # Check whether we have struct BPF_TIMEVAL.
6087 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6088 #include <sys/types.h>
6089 #include <sys/ioctl.h>
6090 #ifdef HAVE_SYS_IOCCOM_H
6091 #include <sys/ioccom.h>
6093 #include <net/bpf.h>
6096 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
6098 cat >>confdefs.h
<<_ACEOF
6099 #define HAVE_STRUCT_BPF_TIMEVAL 1
6109 # --with-pcap=dag is the only way to get here, and it means
6110 # "DAG support but nothing else"
6112 V_DEFS
="$V_DEFS -DDAG_ONLY"
6118 # --with-pcap=septel is the only way to get here, and it means
6119 # "Septel support but nothing else"
6121 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6127 # --with-pcap=snf is the only way to get here, and it means
6128 # "SNF support but nothing else"
6130 V_DEFS
="$V_DEFS -DSNF_ONLY"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6136 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6138 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6142 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
6146 if test "$V_PCAP" != null
6148 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6149 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
6152 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6153 # as well, just in case some platform is really weird.
6155 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6156 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6159 # We have the header, so we use "getifaddrs()" to
6160 # get the list of interfaces.
6162 V_FINDALLDEVS
=fad-getad.c
6167 # We don't have the header - give up.
6168 # XXX - we could also fall back on some other
6169 # mechanism, but, for now, this'll catch this
6170 # problem so that we can at least try to figure
6171 # out something to do on systems with "getifaddrs()"
6172 # but without "ifaddrs.h", if there is something
6173 # we can do on those systems.
6175 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6184 # Well, we don't have "getifaddrs()", so we have to use
6185 # some other mechanism; determine what that mechanism is.
6187 # The first thing we use is the type of capture mechanism,
6188 # which is somewhat of a proxy for the OS we're using.
6194 # This might be Solaris 8 or later, with
6195 # SIOCGLIFCONF, or it might be some other OS
6196 # or some older version of Solaris, with
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6200 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6201 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6202 $as_echo_n "(cached) " >&6
6204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 #include <sys/param.h>
6207 #include <sys/file.h>
6208 #include <sys/ioctl.h>
6209 #include <sys/socket.h>
6210 #include <sys/sockio.h>
6214 ioctl(0, SIOCGLIFCONF, (char *)0);
6219 if ac_fn_c_try_compile
"$LINENO"; then :
6220 ac_cv_lbl_have_siocglifconf
=yes
6222 ac_cv_lbl_have_siocglifconf
=no
6224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6228 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6229 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6230 V_FINDALLDEVS
=fad-glifc.c
6232 V_FINDALLDEVS
=fad-gifc.c
6238 # Assume we just have SIOCGIFCONF.
6239 # (XXX - on at least later Linux kernels, there's
6240 # another mechanism, and we should be using that
6243 V_FINDALLDEVS
=fad-gifc.c
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6254 $as_echo_n "checking for socklen_t... " >&6; }
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6258 #include <sys/types.h>
6259 #include <sys/socket.h>
6269 if ac_fn_c_try_compile
"$LINENO"; then :
6274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6275 if test "x$have_socklen_t" = "xyes"; then
6277 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6281 $as_echo "$have_socklen_t" >&6; }
6283 # Check whether --enable-ipv6 was given.
6284 if test "${enable_ipv6+set}" = set; then :
6285 enableval
=$enable_ipv6;
6287 enable_ipv6
=ifavailable
6290 if test "$enable_ipv6" != "no"; then
6291 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6292 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
6295 $as_echo "#define INET6 1" >>confdefs.h
6300 if test "$enable_ipv6" != "ifavailable"; then
6301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6303 as_fn_error $?
"--enable-ipv6 was given, but getaddrinfo isn't available
6304 See \`config.log' for more details" "$LINENO" 5; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
6312 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
6313 # Check whether --enable-optimizer-dbg was given.
6314 if test "${enable_optimizer_dbg+set}" = set; then :
6315 enableval
=$enable_optimizer_dbg;
6318 if test "$enable_optimizer_dbg" = "yes"; then
6320 $as_echo "#define BDEBUG 1" >>confdefs.h
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
6324 $as_echo "${enable_optimizer_dbg-no}" >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
6327 $as_echo_n "checking whether to build parser debugging code... " >&6; }
6328 # Check whether --enable-yydebug was given.
6329 if test "${enable_yydebug+set}" = set; then :
6330 enableval
=$enable_yydebug;
6333 if test "$enable_yydebug" = "yes"; then
6335 $as_echo "#define YYDEBUG 1" >>confdefs.h
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
6339 $as_echo "${enable_yydebug-no}" >&6; }
6341 # Check for Endace DAG card support.
6343 # Check whether --with-dag was given.
6344 if test "${with_dag+set}" = set; then :
6346 if test "$withval" = no
6348 # User doesn't want DAG support.
6350 elif test "$withval" = yes
6352 # User wants DAG support but hasn't specified a directory.
6355 # User wants DAG support and has specified a directory, so use the provided value.
6362 if test "$V_PCAP" = dag
; then
6363 # User requested DAG-only libpcap, so we'd better have
6366 elif test "xxx_only" = yes; then
6367 # User requested something-else-only pcap, so they don't
6372 # Use DAG API if present, otherwise don't
6381 # Check whether --with-dag-includes was given.
6382 if test "${with_dag_includes+set}" = set; then :
6383 withval
=$with_dag_includes;
6384 # User wants DAG support and has specified a header directory, so use the provided value.
6386 dag_include_dir
=$withval
6392 # Check whether --with-dag-libraries was given.
6393 if test "${with_dag_libraries+set}" = set; then :
6394 withval
=$with_dag_libraries;
6395 # User wants DAG support and has specified a library directory, so use the provided value.
6397 dag_lib_dir
=$withval
6402 ac_cv_lbl_dag_api
=no
6403 if test "$want_dag" != no
; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6406 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6408 # If necessary, set default paths for DAG API headers and libraries.
6409 if test -z "$dag_root"; then
6413 if test -z "$dag_include_dir"; then
6414 dag_include_dir
="$dag_root/include"
6417 if test -z "$dag_lib_dir"; then
6418 dag_lib_dir
="$dag_root/lib"
6421 if test -z "$dag_tools_dir"; then
6422 dag_tools_dir
="$dag_root/tools"
6425 if test -r $dag_include_dir/dagapi.h
; then
6426 ac_cv_lbl_dag_api
=yes
6429 if test "$ac_cv_lbl_dag_api" = yes; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($dag_include_dir)" >&5
6431 $as_echo "yes ($dag_include_dir)" >&6; }
6433 V_INCLS
="$V_INCLS -I$dag_include_dir"
6435 if test $V_PCAP != dag
; then
6436 SSRC
="$SSRC pcap-dag.c"
6439 # See if we can find a general version string.
6440 # Don't need to save and restore LIBS to prevent -ldag being
6441 # included if there's a found-action (arg 3).
6442 saved_ldflags
=$LDFLAGS
6443 LDFLAGS
="-L$dag_lib_dir"
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
6445 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
6446 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
6447 $as_echo_n "(cached) " >&6
6449 ac_check_lib_save_LIBS
=$LIBS
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6454 /* Override any GCC internal prototype to avoid an error.
6455 Use char because int might match the return type of a GCC
6456 builtin and then its argument prototype would still apply. */
6460 char dag_attach_stream64 ();
6464 return dag_attach_stream64 ();
6469 if ac_fn_c_try_link
"$LINENO"; then :
6470 ac_cv_lib_dag_dag_attach_stream64
=yes
6472 ac_cv_lib_dag_dag_attach_stream64
=no
6474 rm -f core conftest.err conftest.
$ac_objext \
6475 conftest
$ac_exeext conftest.
$ac_ext
6476 LIBS
=$ac_check_lib_save_LIBS
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
6479 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
6480 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
6481 dag_large_streams
="1"
6483 dag_large_streams
="0"
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6487 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6488 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
6489 $as_echo_n "(cached) " >&6
6491 ac_check_lib_save_LIBS
=$LIBS
6493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6496 /* Override any GCC internal prototype to avoid an error.
6497 Use char because int might match the return type of a GCC
6498 builtin and then its argument prototype would still apply. */
6502 char dag_get_erf_types ();
6506 return dag_get_erf_types ();
6511 if ac_fn_c_try_link
"$LINENO"; then :
6512 ac_cv_lib_dag_dag_get_erf_types
=yes
6514 ac_cv_lib_dag_dag_get_erf_types
=no
6516 rm -f core conftest.err conftest.
$ac_objext \
6517 conftest
$ac_exeext conftest.
$ac_ext
6518 LIBS
=$ac_check_lib_save_LIBS
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6521 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6522 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
6525 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6530 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6531 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
6532 $as_echo_n "(cached) " >&6
6534 ac_check_lib_save_LIBS
=$LIBS
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6539 /* Override any GCC internal prototype to avoid an error.
6540 Use char because int might match the return type of a GCC
6541 builtin and then its argument prototype would still apply. */
6545 char dag_get_stream_erf_types ();
6549 return dag_get_stream_erf_types ();
6554 if ac_fn_c_try_link
"$LINENO"; then :
6555 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
6557 ac_cv_lib_dag_dag_get_stream_erf_types
=no
6559 rm -f core conftest.err conftest.
$ac_objext \
6560 conftest
$ac_exeext conftest.
$ac_ext
6561 LIBS
=$ac_check_lib_save_LIBS
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6564 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6565 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
6568 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6573 LDFLAGS
=$saved_ldflags
6575 if test "$dag_large_streams" = 1; then
6577 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
6580 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6583 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6584 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
6585 $as_echo_n "(cached) " >&6
6587 ac_check_lib_save_LIBS
=$LIBS
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6592 /* Override any GCC internal prototype to avoid an error.
6593 Use char because int might match the return type of a GCC
6594 builtin and then its argument prototype would still apply. */
6598 char vdag_set_device_info ();
6602 return vdag_set_device_info ();
6607 if ac_fn_c_try_link
"$LINENO"; then :
6608 ac_cv_lib_vdag_vdag_set_device_info
=yes
6610 ac_cv_lib_vdag_vdag_set_device_info
=no
6612 rm -f core conftest.err conftest.
$ac_objext \
6613 conftest
$ac_exeext conftest.
$ac_ext
6614 LIBS
=$ac_check_lib_save_LIBS
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6617 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6618 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
6619 ac_dag_have_vdag
="1"
6621 ac_dag_have_vdag
="0"
6624 if test "$ac_dag_have_vdag" = 1; then
6626 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6628 LIBS
="$LIBS -lpthread"
6633 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6639 if test "$V_PCAP" = dag
; then
6640 # User requested "dag" capture type but we couldn't
6641 # find the DAG API support.
6642 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
6645 if test "$want_dag" = yes; then
6646 # User wanted DAG support but we couldn't find it.
6647 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
6653 # Check whether --with-septel was given.
6654 if test "${with_septel+set}" = set; then :
6655 withval
=$with_septel;
6656 if test "$withval" = no
6659 elif test "$withval" = yes
6665 septel_root
=$withval
6670 if test "$V_PCAP" = septel
; then
6671 # User requested Septel-only libpcap, so we'd better have
6674 elif test "xxx_only" = yes; then
6675 # User requested something-else-only pcap, so they don't
6676 # want Septel support.
6680 # Use Septel API if present, otherwise don't
6682 want_septel
=ifpresent
6688 ac_cv_lbl_septel_api
=no
6689 if test "$with_septel" != no
; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
6692 $as_echo_n "checking whether we have Septel API headers... " >&6; }
6694 # If necessary, set default paths for Septel API headers and libraries.
6695 if test -z "$septel_root"; then
6696 septel_root
=$srcdir/..
/septel
6699 septel_tools_dir
="$septel_root"
6700 septel_include_dir
="$septel_root/INC"
6702 if test -r "$septel_include_dir/msg.h"; then
6703 ac_cv_lbl_septel_api
=yes
6706 if test "$ac_cv_lbl_septel_api" = yes; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
6708 $as_echo "yes ($septel_include_dir)" >&6; }
6710 V_INCLS
="$V_INCLS -I$septel_include_dir"
6711 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"
6712 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"
6714 if test "$V_PCAP" != septel
; then
6715 SSRC
="$SSRC pcap-septel.c"
6719 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6725 if test "$V_PCAP" = septel
; then
6726 # User requested "septel" capture type but
6727 # we couldn't find the Septel API support.
6728 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
6731 if test "$want_septel" = yes; then
6732 # User wanted Septel support but we couldn't find it.
6733 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
6738 # Check for Myricom SNF support.
6740 # Check whether --with-snf was given.
6741 if test "${with_snf+set}" = set; then :
6743 if test "$withval" = no
6745 # User explicitly doesn't want SNF
6747 elif test "$withval" = yes
6749 # User wants SNF support but hasn't specified a directory.
6752 # User wants SNF support with a specified directory.
6759 if test "$V_PCAP" = snf
; then
6760 # User requested Sniffer-only libpcap, so we'd better have
6763 elif test "xxx_only" = yes; then
6764 # User requested something-else-only pcap, so they don't
6769 # Use Sniffer API if present, otherwise don't
6778 # Check whether --with-snf-includes was given.
6779 if test "${with_snf_includes+set}" = set; then :
6780 withval
=$with_snf_includes;
6781 # User wants SNF with specific header directory
6783 snf_include_dir
=$withval
6789 # Check whether --with-snf-libraries was given.
6790 if test "${with_snf_libraries+set}" = set; then :
6791 withval
=$with_snf_libraries;
6792 # User wants SNF with specific lib directory
6794 snf_lib_dir
=$withval
6799 ac_cv_lbl_snf_api
=no
6800 if test "$with_snf" != no
; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6803 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6805 # If necessary, set default paths for Sniffer headers and libraries.
6806 if test -z "$snf_root"; then
6810 if test -z "$snf_include_dir"; then
6811 snf_include_dir
="$snf_root/include"
6814 if test -z "$snf_lib_dir"; then
6815 snf_lib_dir
="$snf_root/lib"
6818 if test -f "$snf_include_dir/snf.h"; then
6819 # We found a header; make sure we can link with the library
6820 saved_ldflags
=$LDFLAGS
6821 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6823 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6824 if ${ac_cv_lib_snf_snf_init+:} false
; then :
6825 $as_echo_n "(cached) " >&6
6827 ac_check_lib_save_LIBS
=$LIBS
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6832 /* Override any GCC internal prototype to avoid an error.
6833 Use char because int might match the return type of a GCC
6834 builtin and then its argument prototype would still apply. */
6847 if ac_fn_c_try_link
"$LINENO"; then :
6848 ac_cv_lib_snf_snf_init
=yes
6850 ac_cv_lib_snf_snf_init
=no
6852 rm -f core conftest.err conftest.
$ac_objext \
6853 conftest
$ac_exeext conftest.
$ac_ext
6854 LIBS
=$ac_check_lib_save_LIBS
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6857 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6858 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
6859 ac_cv_lbl_snf_api
="yes"
6862 LDFLAGS
="$saved_ldflags"
6863 if test "$ac_cv_lbl_snf_api" = no
; then
6864 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
6868 if test "$ac_cv_lbl_snf_api" = yes; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
6870 $as_echo "yes ($snf_root)" >&6; }
6872 V_INCLS
="$V_INCLS -I$snf_include_dir"
6874 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6876 if test "$V_PCAP" != snf
; then
6877 SSRC
="$SSRC pcap-snf.c"
6881 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6887 if test "$want_snf" = yes; then
6888 # User requested "snf" capture type but
6889 # we couldn't find the Sniffer API support.
6890 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
6893 if test "$want_snf" = yes; then
6894 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
6899 # Check for Riverbed TurboCap support.
6901 # Check whether --with-turbocap was given.
6902 if test "${with_turbocap+set}" = set; then :
6903 withval
=$with_turbocap;
6904 if test "$withval" = no
6906 # User explicitly doesn't want TurboCap
6908 elif test "$withval" = yes
6910 # User wants TurboCap support but hasn't specified a directory.
6913 # User wants TurboCap support with a specified directory.
6915 turbocap_root
=$withval
6920 if test "xxx_only" = yes; then
6921 # User requested something-else-only pcap, so they don't
6922 # want TurboCap support.
6926 # Use TurboCap API if present, otherwise don't
6928 want_turbocap
=ifpresent
6934 ac_cv_lbl_turbocap_api
=no
6935 if test "$want_turbocap" != no
; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
6938 $as_echo_n "checking whether TurboCap is supported... " >&6; }
6940 save_CFLAGS
="$CFLAGS"
6942 if test ! -z "$turbocap_root"; then
6943 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
6944 TURBOCAP_LIBS
="-L$turbocap_root/lib"
6945 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
6948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6957 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
6959 (void)TcInstanceCreateByName("foo", &i);
6965 if ac_fn_c_try_compile
"$LINENO"; then :
6966 ac_cv_lbl_turbocap_api
=yes
6968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6970 CFLAGS
="$save_CFLAGS"
6971 if test $ac_cv_lbl_turbocap_api = yes; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6973 $as_echo "yes" >&6; }
6975 SSRC
="$SSRC pcap-tc.c"
6976 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
6977 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
6980 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6986 if test "$want_turbocap" = yes; then
6987 # User wanted Turbo support but we couldn't find it.
6988 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
6996 for ac_prog
in flex
lex
6998 # Extract the first word of "$ac_prog", so it can be a program name with args.
6999 set dummy
$ac_prog; ac_word
=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_LEX+:} false
; then :
7003 $as_echo_n "(cached) " >&6
7005 if test -n "$LEX"; then
7006 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
7008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir
=.
7013 for ac_exec_ext
in '' $ac_executable_extensions; do
7014 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_LEX
="$ac_prog"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 if test -n "$LEX"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7028 $as_echo "$LEX" >&6; }
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7035 test -n "$LEX" && break
7037 test -n "$LEX" || LEX
=":"
7039 if test "x$LEX" != "x:"; then
7040 cat >conftest.l
<<_ACEOF
7046 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7047 yyless ((input () != 0)); }
7048 f { unput (yytext[0]); }
7049 . { BEGIN INITIAL; }
7051 #ifdef YYTEXT_POINTER
7052 extern char *yytext;
7057 return ! yylex () + ! yywrap ();
7060 { { ac_try
="$LEX conftest.l"
7062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7066 $as_echo "$ac_try_echo"; } >&5
7067 (eval "$LEX conftest.l") 2>&5
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7072 $as_echo_n "checking lex output file root... " >&6; }
7073 if ${ac_cv_prog_lex_root+:} false; then :
7074 $as_echo_n "(cached) " >&6
7077 if test -f lex.yy.c; then
7078 ac_cv_prog_lex_root=lex.yy
7079 elif test -f lexyy.c; then
7080 ac_cv_prog_lex_root=lexyy
7082 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7086 $as_echo "$ac_cv_prog_lex_root" >&6; }
7087 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7089 if test -z "${LEXLIB+set}"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7091 $as_echo_n "checking lex library... " >&6; }
7092 if ${ac_cv_lib_lex+:} false; then :
7093 $as_echo_n "(cached) " >&6
7097 ac_cv_lib_lex='none needed'
7098 for ac_lib in '' -lfl -ll; do
7099 LIBS="$ac_lib $ac_save_LIBS"
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 `cat $LEX_OUTPUT_ROOT.c
`
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 ac_cv_lib_lex=$ac_lib
7107 rm -f core conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7109 test "$ac_cv_lib_lex" != 'none needed' && break
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7115 $as_echo "$ac_cv_lib_lex" >&6; }
7116 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7121 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7122 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7123 $as_echo_n "(cached) " >&6
7125 # POSIX says lex can declare yytext either as a pointer or an array; the
7126 # default is implementation-dependent. Figure out which it is, since
7127 # not all implementations provide the %pointer and %array declarations.
7128 ac_cv_prog_lex_yytext_pointer=no
7130 LIBS="$LEXLIB $ac_save_LIBS"
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7134 #define YYTEXT_POINTER 1
7135 `cat $LEX_OUTPUT_ROOT.c
`
7137 if ac_fn_c_try_link "$LINENO"; then :
7138 ac_cv_prog_lex_yytext_pointer=yes
7140 rm -f core conftest.err conftest.$ac_objext \
7141 conftest$ac_exeext conftest.$ac_ext
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7146 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7147 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7149 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7152 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7155 if test "$LEX" = ":"; then
7156 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7160 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7161 # and supports processing our scanner.l.
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7164 $as_echo_n "checking for capable lex... " >&6; }
7165 if ${tcpdump_cv_capable_lex+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7169 tcpdump_cv_capable_lex=yes
7171 tcpdump_cv_capable_lex=insufficient
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7175 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7176 if test $tcpdump_cv_capable_lex = insufficient ; then
7177 as_fn_error $? "$LEX is insufficient to compile libpcap.
7178 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7182 # Look for yacc/bison/byacc.
7184 for ac_prog in 'bison -y' byacc
7186 # Extract the first word of "$ac_prog", so it can be a program name with args.
7187 set dummy $ac_prog; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_YACC+:} false; then :
7191 $as_echo_n "(cached) " >&6
7193 if test -n "$YACC"; then
7194 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_YACC="$ac_prog"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 YACC=$ac_cv_prog_YACC
7214 if test -n "$YACC"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7216 $as_echo "$YACC" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7223 test -n "$YACC" && break
7225 test -n "$YACC" || YACC="yacc"
7229 # Make sure it supports the -p flag and supports processing our
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7233 $as_echo_n "checking for capable yacc/bison... " >&6; }
7234 if ${tcpdump_cv_capable_yacc+:} false; then :
7235 $as_echo_n "(cached) " >&6
7237 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7238 tcpdump_cv_capable_yacc=yes
7240 tcpdump_cv_capable_yacc=insufficient
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7244 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7245 if test $tcpdump_cv_capable_yacc = insufficient ; then
7246 as_fn_error $? "$YACC is insufficient to compile libpcap.
7247 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7251 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7252 # Check whether --enable-remote was given.
7253 if test "${enable_remote+set}" = set; then :
7254 enableval=$enable_remote;
7259 case "$enableval" in
7260 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7261 $as_echo "yes" >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7263 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7265 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7267 $as_echo "#define HAVE_REMOTE /**/" >>confdefs.h
7269 SSRC="$SSRC pcap-new.c pcap-rpcap.c sockutils.c"
7271 INSTALL_RPCAPD=install-rpcapd
7273 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7279 # Assume, by default, no support for shared libraries and V7/BSD convention
7280 # for man pages (file formats in section 5, miscellaneous info in section 7).
7281 # Individual cases can override this.
7286 MAN_USERMOD_SECTION=8
7291 $as_echo "#define _SUN 1" >>confdefs.h
7295 # AIX makes it fun to build shared and static libraries,
7296 # because they're *both* ".a" archive libraries. We
7297 # build the static library for the benefit of the traditional
7298 # scheme of building libpcap and tcpdump in subdirectories of
7299 # the same directory, with tcpdump statically linked with the
7300 # libpcap in question, but we also build a shared library as
7301 # "libpcap.shareda" and install *it*, rather than the static
7302 # library, as "libpcap.a".
7310 # If we're using DLPI, applications will need to
7311 # use /lib/pse.exp if present, as we use the
7314 pseexe="/lib/pse.exp"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7316 $as_echo_n "checking for $pseexe... " >&6; }
7317 if test -f $pseexe ; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7319 $as_echo "yes" >&6; }
7326 # If we're using BPF, we need "-lodm" and "-lcfg", as
7327 # we use them to load the BPF module.
7336 V_CCOPT="$V_CCOPT -fno-common"
7337 # Check whether --enable-universal was given.
7338 if test "${enable_universal+set}" = set; then :
7339 enableval=$enable_universal;
7342 if test "$enable_universal" != "no"; then
7347 # Pre-Tiger. Build only for 32-bit PowerPC; no
7348 # need for any special compiler or linker flags.
7354 # Tiger, prior to Intel support. Build for 32-bit
7355 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7356 # first. (I'm guessing that's what Apple does.)
7358 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7359 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7364 # Tiger, subsequent to Intel support but prior to
7365 # x86-64 support. Build for 32-bit PowerPC, 64-bit
7366 # PowerPC, and x86, with 32-bit PowerPC first.
7367 # (I'm guessing that's what Apple does.)
7369 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7370 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7375 # All other Tiger, so subsequent to x86-64
7376 # support. Build for 32-bit PowerPC, 64-bit
7377 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7378 # first. (I'm guessing that's what Apple does.)
7380 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7381 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7386 # Leopard. Build for 32-bit PowerPC, 64-bit
7387 # PowerPC, x86, and x86-64, with 32-bit PowerPC
7388 # first. (That's what Apple does.)
7390 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7391 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7396 # Snow Leopard. Build for x86-64, x86, and
7397 # 32-bit PowerPC, with x86-64 first. (That's
7398 # what Apple does, even though Snow Leopard
7399 # doesn't run on PPC, so PPC libpcap runs under
7400 # Rosetta, and Rosetta doesn't support BPF
7401 # ioctls, so PPC programs can't do live
7404 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7405 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7410 # Post-Snow Leopard. Build for x86-64 and
7411 # x86, with x86-64 first. (That's probably what
7412 # Apple does, given that Rosetta is gone.)
7413 # XXX - update if and when Apple drops support
7414 # for 32-bit x86 code.
7416 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7417 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
7425 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7429 # Use System V conventions for man pages.
7438 # Use System V conventions for man pages.
7447 # Use System V conventions for man pages.
7455 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7457 if test "`uname
-m`" = "ia64"; then
7464 # "-b" builds a shared library; "+h" sets the soname.
7470 # Use System V conventions for man pages.
7478 # Use System V conventions for man pages.
7484 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7488 # Compiler assumed to be GCC; run-time linker may require a -R
7491 if test "$libdir" != "/usr/lib"; then
7492 V_RFLAGS=-Wl,-R$libdir
7500 # Use System V conventions for man pages.
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7508 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7509 if ${ac_cv_cc_sinix_defined+:} false; then :
7510 $as_echo_n "(cached) " >&6
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7523 if ac_fn_c_try_compile "$LINENO"; then :
7524 ac_cv_cc_sinix_defined=yes
7526 ac_cv_cc_sinix_defined=no
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7532 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7533 if test $ac_cv_cc_sinix_defined = no ; then
7535 $as_echo "#define sinix 1" >>confdefs.h
7542 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7547 case "`uname
-r`" in
7554 # Use System V conventions for man pages.
7556 MAN_USERMOD_SECTION=1m
7563 # Check whether --enable-shared was given.
7564 if test "${enable_shared+set}" = set; then :
7565 enableval=$enable_shared;
7568 test "x$enable_shared" = "xno" && DYEXT="none"
7570 if test -n "$ac_tool_prefix"; then
7571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_RANLIB+:} false; then :
7576 $as_echo_n "(cached) " >&6
7578 if test -n "$RANLIB"; then
7579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 RANLIB=$ac_cv_prog_RANLIB
7599 if test -n "$RANLIB"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7601 $as_echo "$RANLIB" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7609 if test -z "$ac_cv_prog_RANLIB"; then
7610 ac_ct_RANLIB=$RANLIB
7611 # Extract the first word of "ranlib", so it can be a program name with args.
7612 set dummy ranlib; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -n "$ac_ct_RANLIB"; then
7619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_ac_ct_RANLIB="ranlib"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7639 if test -n "$ac_ct_RANLIB"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7641 $as_echo "$ac_ct_RANLIB" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7647 if test "x$ac_ct_RANLIB" = x; then
7650 case $cross_compiling:$ac_tool_warned in
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7656 RANLIB=$ac_ct_RANLIB
7659 RANLIB="$ac_cv_prog_RANLIB"
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7664 set dummy ${ac_tool_prefix}ar; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_prog_AR+:} false; then :
7668 $as_echo_n "(cached) " >&6
7670 if test -n "$AR"; then
7671 ac_cv_prog_AR="$AR" # Let the user override the test.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_AR="${ac_tool_prefix}ar"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 if test -n "$AR"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7693 $as_echo "$AR" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7701 if test -z "$ac_cv_prog_AR"; then
7703 # Extract the first word of "ar", so it can be a program name with args.
7704 set dummy ar; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 if test -n "$ac_ct_AR"; then
7711 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_ac_ct_AR="ar"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7731 if test -n "$ac_ct_AR"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7733 $as_echo "$ac_ct_AR" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7739 if test "x$ac_ct_AR" = x; then
7742 case $cross_compiling:$ac_tool_warned in
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746 ac_tool_warned=yes ;;
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7756 $as_echo_n "checking whether ln -s works... " >&6; }
7758 if test "$LN_S" = "ln -s"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7760 $as_echo "yes" >&6; }
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7763 $as_echo "no, using $LN_S" >&6; }
7769 if test "${LBL_CFLAGS+set}" = set; then
7770 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7772 if test -f .devel ; then
7774 # Skip all the warning option stuff on some compilers.
7776 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
7779 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
7780 save_CFLAGS="$CFLAGS"
7781 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7793 if ac_fn_c_try_compile "$LINENO"; then :
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7798 # We're assuming this is clang, where
7799 # -Werror=unknown-warning-option is the appropriate
7800 # option to force the compiler to fail.
7802 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7807 $as_echo "yes" >&6; }
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 CFLAGS="$save_CFLAGS"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
7815 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
7816 save_CFLAGS="$CFLAGS"
7817 if expr "x-Wall" : "x-W.*" >/dev/null
7819 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
7820 elif expr "x-Wall" : "x-f.*" >/dev/null
7822 CFLAGS="$CFLAGS -Werror -Wall"
7823 elif expr "x-Wall" : "x-m.*" >/dev/null
7825 CFLAGS="$CFLAGS -Werror -Wall"
7827 CFLAGS="$CFLAGS -Wall"
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7840 if ac_fn_c_try_compile "$LINENO"; then :
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7843 $as_echo "yes" >&6; }
7844 CFLAGS="$save_CFLAGS"
7845 V_CCOPT="$V_CCOPT -Wall"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 CFLAGS="$save_CFLAGS"
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
7858 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
7859 save_CFLAGS="$CFLAGS"
7860 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
7862 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
7863 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
7865 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7866 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
7868 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7870 CFLAGS="$CFLAGS -Wsign-compare"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7883 if ac_fn_c_try_compile "$LINENO"; then :
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7886 $as_echo "yes" >&6; }
7887 CFLAGS="$save_CFLAGS"
7888 V_CCOPT="$V_CCOPT -Wsign-compare"
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 CFLAGS="$save_CFLAGS"
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
7901 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
7902 save_CFLAGS="$CFLAGS"
7903 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
7905 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
7906 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
7908 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7909 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
7911 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7913 CFLAGS="$CFLAGS -Wmissing-prototypes"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7926 if ac_fn_c_try_compile "$LINENO"; then :
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929 $as_echo "yes" >&6; }
7930 CFLAGS="$save_CFLAGS"
7931 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 CFLAGS="$save_CFLAGS"
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
7944 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
7945 save_CFLAGS="$CFLAGS"
7946 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
7948 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
7949 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
7951 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7952 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
7954 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7956 CFLAGS="$CFLAGS -Wstrict-prototypes"
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7969 if ac_fn_c_try_compile "$LINENO"; then :
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7972 $as_echo "yes" >&6; }
7973 CFLAGS="$save_CFLAGS"
7974 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 CFLAGS="$save_CFLAGS"
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
7987 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
7988 save_CFLAGS="$CFLAGS"
7989 if expr "x-Wshadow" : "x-W.*" >/dev/null
7991 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
7992 elif expr "x-Wshadow" : "x-f.*" >/dev/null
7994 CFLAGS="$CFLAGS -Werror -Wshadow"
7995 elif expr "x-Wshadow" : "x-m.*" >/dev/null
7997 CFLAGS="$CFLAGS -Werror -Wshadow"
7999 CFLAGS="$CFLAGS -Wshadow"
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8012 if ac_fn_c_try_compile "$LINENO"; then :
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8015 $as_echo "yes" >&6; }
8016 CFLAGS="$save_CFLAGS"
8017 V_CCOPT="$V_CCOPT -Wshadow"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 CFLAGS="$save_CFLAGS"
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
8030 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
8031 save_CFLAGS="$CFLAGS"
8032 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
8034 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
8035 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
8037 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8038 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
8040 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8042 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8055 if ac_fn_c_try_compile "$LINENO"; then :
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8058 $as_echo "yes" >&6; }
8059 CFLAGS="$save_CFLAGS"
8060 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 CFLAGS="$save_CFLAGS"
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
8073 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
8074 save_CFLAGS="$CFLAGS"
8075 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
8077 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
8078 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
8080 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8081 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
8083 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8085 CFLAGS="$CFLAGS -Wused-but-marked-unused"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8098 if ac_fn_c_try_compile "$LINENO"; then :
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8102 CFLAGS="$save_CFLAGS"
8103 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 CFLAGS="$save_CFLAGS"
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
8117 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
8118 if test "$GCC" = yes ; then
8120 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
8121 # though it's not); we assume that, in this case, the flag
8124 ac_lbl_dependency_flag="-M"
8127 # Not GCC or a compiler deemed to be GCC; what platform is
8128 # this? (We're assuming that if the compiler isn't GCC
8129 # it's the compiler from the vendor of the OS; that won't
8130 # necessarily be true for x86 platforms, where it might be
8131 # the Intel C compiler.)
8137 # MIPS C for IRIX, DEC C, and clang all use -M.
8139 ac_lbl_dependency_flag="-M"
8146 ac_lbl_dependency_flag="-xM"
8151 # HP's older C compilers don't support this.
8152 # HP's newer C compilers support this with
8153 # either +M or +Make; the older compilers
8154 # interpret +M as something completely
8155 # different, so we use +Make so we don't
8156 # think it works with the older compilers.
8158 ac_lbl_dependency_flag="+Make"
8163 # Not one of the above; assume no support for
8164 # generating dependencies.
8166 ac_lbl_dependency_flag=""
8172 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
8173 # complain about it?
8175 # Note: clang doesn't seem to exit with an error status when handed
8176 # an unknown non-warning error, even if you pass it
8177 # -Werror=unknown-warning-option. However, it always supports
8178 # -M, so the fact that this test always succeeds with clang
8181 if test ! -z "$ac_lbl_dependency_flag"; then
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 int main(void) { return 0; }
8186 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
8187 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
8189 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
8190 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
8191 MKDEP='${srcdir}/mkdep'
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8196 # We can't run mkdep, so have "make depend" do
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8206 # We can't run mkdep, so have "make depend" do
8215 # We used to set -n32 for IRIX 6 when not using GCC (presumed
8216 # to mean that we're using MIPS C or MIPSpro C); it specified
8217 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
8218 # not sure why that would be something to do *only* with a
8219 # .devel file; why should the ABI for which we produce code
8222 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8224 if test -f $name ; then
8225 ln -s $name os-proto.h
8227 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
8231 $as_echo "$as_me: WARNING: can't find $name" >&2;}
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
8236 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
8237 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
8238 $as_echo_n "(cached) " >&6
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8243 # include <sys/types.h>
8244 # include <sys/socket.h>
8248 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8253 if ac_fn_c_try_compile "$LINENO"; then :
8254 ac_cv_lbl_sockaddr_has_sa_len=yes
8256 ac_cv_lbl_sockaddr_has_sa_len=no
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8262 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8263 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8265 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
8270 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
8271 if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
8272 $as_echo_n "(cached) " >&6
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8277 # include <sys/types.h>
8278 # include <sys/socket.h>
8282 u_int i = sizeof (struct sockaddr_storage)
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 ac_cv_lbl_has_sockaddr_storage=yes
8290 ac_cv_lbl_has_sockaddr_storage=no
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8296 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
8297 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8299 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8304 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
8305 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
8306 $as_echo_n "(cached) " >&6
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8311 # include <sys/types.h>
8312 # include <sys/dlpi.h>
8313 # include <sys/dlpi_ext.h>
8317 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8322 if ac_fn_c_try_compile "$LINENO"; then :
8323 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8325 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8331 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8332 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8334 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
8339 $as_echo_n "checking if unaligned accesses fail... " >&6; }
8340 if ${ac_cv_lbl_unaligned_fail+:} false; then :
8341 $as_echo_n "(cached) " >&6
8346 # These are CPU types where:
8348 # the CPU faults on an unaligned access, but at least some
8349 # OSes that support that CPU catch the fault and simulate
8350 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8351 # the simulation is slow, so we don't want to use it;
8353 # the CPU, I infer (from the old
8355 # XXX: should also check that they don't do weird things (like on arm)
8357 # comment) doesn't fault on unaligned accesses, but doesn't
8358 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8360 # for whatever reason, the test program doesn't work
8361 # (this has been claimed to be the case for several of those
8362 # CPUs - I don't know what the problem is; the problem
8363 # was reported as "the test program dumps core" for SuperH,
8364 # but that's what the test program is *supposed* to do -
8365 # it dumps core before it writes anything, so the test
8366 # for an empty output file should find an empty output
8367 # file and conclude that unaligned accesses don't work).
8369 # This run-time test won't work if you're cross-compiling, so
8370 # in order to support cross-compiling for a particular CPU,
8371 # we have to wire in the list of CPU types anyway, as far as
8372 # I know, so perhaps we should just have a set of CPUs on
8373 # which we know it doesn't work, a set of CPUs on which we
8374 # know it does work, and have the script just fail on other
8375 # cpu types and update it when such a failure occurs.
8377 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8378 ac_cv_lbl_unaligned_fail=yes
8382 cat >conftest.c <<EOF
8383 # include <sys/types.h>
8384 # include <sys/wait.h>
8386 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8391 /* avoid "core dumped" message */
8397 pid = waitpid(pid, &status, 0);
8400 exit(!WIFEXITED(status));
8403 i = *(unsigned int *)&a[1];
8408 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8409 conftest.c $LIBS >/dev/null 2>&1
8410 if test ! -x conftest ; then
8411 ac_cv_lbl_unaligned_fail=yes
8413 ./conftest >conftest.out
8414 if test ! -s conftest.out ; then
8415 ac_cv_lbl_unaligned_fail=yes
8417 ac_cv_lbl_unaligned_fail=no
8420 rm -f -r conftest* core core.conftest
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
8426 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
8427 if test $ac_cv_lbl_unaligned_fail = yes ; then
8429 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
8434 ln -s ${srcdir}/bpf/net net
8457 # Check whether --enable-usb was given.
8458 if test "${enable_usb+set}" = set; then :
8459 enableval=$enable_usb;
8465 if test "xxx_only" = yes; then
8466 # User requested something-else-only pcap, so they don't
8471 if test "x$enable_usb" != "xno" ; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
8473 $as_echo_n "checking for USB sniffing support... " >&6; }
8477 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
8479 USB_SRC=pcap-usb-linux.c
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8481 $as_echo "yes" >&6; }
8482 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
8483 if test $? -ne 0 ; then
8484 ac_usb_dev_name="usbmon"
8487 cat >>confdefs.h <<_ACEOF
8488 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8492 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8494 # Do we have a version of <linux/compiler.h> available?
8495 # If so, we might need it for <linux/usbdevice_fs.h>.
8497 for ac_header in linux/compiler.h
8499 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
8500 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_LINUX_COMPILER_H 1
8509 if test "$ac_cv_header_linux_compiler_h" = yes; then
8511 # Yes - include it when testing for <linux/usbdevice_fs.h>.
8513 for ac_header in linux/usbdevice_fs.h
8515 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
8517 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8518 cat >>confdefs.h <<_ACEOF
8519 #define HAVE_LINUX_USBDEVICE_FS_H 1
8527 for ac_header in linux/usbdevice_fs.h
8529 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
8530 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8531 cat >>confdefs.h <<_ACEOF
8532 #define HAVE_LINUX_USBDEVICE_FS_H 1
8540 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
8542 # OK, does it define bRequestType? Older versions of the kernel
8543 # define fields with names like "requesttype, "request", and
8544 # "value", rather than "bRequestType", "bRequest", and
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
8548 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
8549 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
8550 $as_echo_n "(cached) " >&6
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8555 $ac_includes_default
8556 #ifdef HAVE_SYS_BITYPES_H
8557 #include <sys/bitypes.h>
8559 #ifdef HAVE_LINUX_COMPILER_H
8560 #include <linux/compiler.h>
8562 #include <linux/usbdevice_fs.h>
8566 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
8571 if ac_fn_c_try_compile "$LINENO"; then :
8572 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
8574 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
8580 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
8581 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
8583 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
8590 # This just uses BPF in FreeBSD 8.4 and later; we don't need
8591 # to check for anything special for capturing.
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
8594 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8606 if test "xxx_only" != yes; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
8608 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8612 $as_echo "yes" >&6; }
8614 # Life's too short to deal with trying to get this to compile
8615 # if you don't get the right types defined with
8616 # __KERNEL_STRICT_NAMES getting defined by some other include.
8618 # Check whether the includes Just Work. If not, don't turn on
8619 # netfilter support.
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
8622 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
8623 if ${ac_cv_netfilter_can_compile+:} false; then :
8624 $as_echo_n "(cached) " >&6
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8629 $ac_includes_default
8630 #include <sys/socket.h>
8631 #include <netinet/in.h>
8632 #include <linux/types.h>
8634 #include <linux/netlink.h>
8635 #include <linux/netfilter.h>
8636 #include <linux/netfilter/nfnetlink.h>
8637 #include <linux/netfilter/nfnetlink_log.h>
8638 #include <linux/netfilter/nfnetlink_queue.h>
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 ac_cv_netfilter_can_compile=yes
8650 ac_cv_netfilter_can_compile=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
8656 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
8657 if test $ac_cv_netfilter_can_compile = yes ; then
8659 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
8661 NETFILTER_SRC=pcap-netfilter-linux.c
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8673 # Check whether --enable-bluetooth was given.
8674 if test "${enable_bluetooth+set}" = set; then :
8675 enableval=$enable_bluetooth;
8677 enable_bluetooth=ifsupportavailable
8681 if test "xxx_only" = yes; then
8682 # User requested something-else-only pcap, so they don't
8683 # want Bluetooth support.
8687 if test "x$enable_bluetooth" != "xno" ; then
8690 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8691 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8694 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
8696 BT_SRC=pcap-bt-linux.c
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
8698 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
8701 # OK, does struct sockaddr_hci have an hci_channel
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
8705 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
8706 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
8707 $as_echo_n "(cached) " >&6
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8712 #include <bluetooth/bluetooth.h>
8713 #include <bluetooth/hci.h>
8718 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
8726 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
8732 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
8733 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
8735 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
8739 # OK, is HCI_CHANNEL_MONITOR defined?
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
8742 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
8743 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8749 #include <bluetooth/bluetooth.h>
8750 #include <bluetooth/hci.h>
8755 u_int i = HCI_CHANNEL_MONITOR
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 ac_cv_lbl_hci_channel_monitor_is_defined=yes
8763 ac_cv_lbl_hci_channel_monitor_is_defined=no
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
8769 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
8770 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
8772 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
8774 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
8777 ac_lbl_bluetooth_available=yes
8780 ac_lbl_bluetooth_available=no
8785 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
8786 if test "x$enable_bluetooth" = "xyes" ; then
8787 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8790 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8795 if test "x$enable_bluetooth" = "xyes" ; then
8796 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
8799 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
8808 # Check whether --enable-dbus was given.
8809 if test "${enable_dbus+set}" = set; then :
8810 enableval=$enable_dbus;
8812 enable_dbus=ifavailable
8816 if test "xxx_only" = yes; then
8817 # User requested something-else-only pcap, so they don't
8818 # want D-Bus support.
8822 if test "x$enable_dbus" != "xno"; then
8823 if test "x$enable_dbus" = "xyes"; then
8828 # We don't support D-Bus sniffing on macOS; see
8830 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8832 # The user requested it, so fail.
8834 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
8841 # We don't support D-Bus sniffing on macOS; see
8843 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8845 # The user dind't explicitly request it, so just
8846 # silently refuse to enable it.
8854 if test "x$enable_dbus" != "xno"; then
8855 # Extract the first word of "pkg-config", so it can be a program name with args.
8856 set dummy pkg-config; ac_word=$2
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 $as_echo_n "checking for $ac_word... " >&6; }
8859 if ${ac_cv_prog_PKGCONFIG+:} false; then :
8860 $as_echo_n "(cached) " >&6
8862 if test -n "$PKGCONFIG"; then
8863 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_PKGCONFIG="pkg-config"
8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
8883 PKGCONFIG=$ac_cv_prog_PKGCONFIG
8884 if test -n "$PKGCONFIG"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8886 $as_echo "$PKGCONFIG" >&6; }
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8893 if test "x$PKGCONFIG" != "xno"; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
8895 $as_echo_n "checking for D-Bus... " >&6; }
8896 if "$PKGCONFIG" dbus-1; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8898 $as_echo "yes" >&6; }
8899 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
8900 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
8901 save_CFLAGS="$CFLAGS"
8903 CFLAGS="$CFLAGS $DBUS_CFLAGS"
8904 LIBS="$LIBS $DBUS_LIBS"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
8906 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8912 #include <sys/time.h>
8914 #include <dbus/dbus.h>
8918 return dbus_connection_read_write(NULL, 0);
8923 if ac_fn_c_try_link "$LINENO"; then :
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8926 $as_echo "yes" >&6; }
8928 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
8930 DBUS_SRC=pcap-dbus.c
8931 V_INCLS="$V_INCLS $DBUS_CFLAGS"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8937 if test "x$enable_dbus" = "xyes"; then
8938 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 CFLAGS="$save_CFLAGS"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8949 if test "x$enable_dbus" = "xyes"; then
8950 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
8960 for ac_header in linux/net_tstamp.h
8962 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
8963 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_LINUX_NET_TSTAMP_H 1
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
8975 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
8979 # Check whether --enable-packet-ring was given.
8980 if test "${enable_packet_ring+set}" = set; then :
8981 enableval=$enable_packet_ring;
8983 enable_packet_ring=yes
8987 if test "x$enable_packet_ring" != "xno" ; then
8989 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
8994 # Find a good install program. We prefer a C program (faster),
8995 # so one script is as good as another. But avoid the broken or
8996 # incompatible versions:
8997 # SysV /etc/install, /usr/sbin/install
8998 # SunOS /usr/etc/install
8999 # IRIX /sbin/install
9001 # AmigaOS /C/install, which installs bootblocks on floppy discs
9002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9005 # OS/2's system install, which has a completely different semantic
9006 # ./install, which can be erroneously created by make from ./install.sh.
9007 # Reject install programs that cannot install multiple files.
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9009 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9010 if test -z "$INSTALL"; then
9011 if ${ac_cv_path_install+:} false; then :
9012 $as_echo_n "(cached) " >&6
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 test -z "$as_dir" && as_dir=.
9019 # Account for people who put trailing slashes in PATH elements.
9020 case $as_dir/ in #((
9021 ./ | .// | /[cC]/* | \
9022 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9023 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9026 # OSF1 and SCO ODT 3.0 have their own names for install.
9027 # Don't use installbsd from OSF since it installs stuff as root
9029 for ac_prog in ginstall scoinst install; do
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9032 if test $ac_prog = install &&
9033 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9034 # AIX install. It has an incompatible calling convention.
9036 elif test $ac_prog = install &&
9037 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9038 # program-specific install script used by HP pwplus--don't use.
9041 rm -rf conftest.one conftest.two conftest.dir
9042 echo one > conftest.one
9043 echo two > conftest.two
9045 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9046 test -s conftest.one && test -s conftest.two &&
9047 test -s conftest.dir/conftest.one &&
9048 test -s conftest.dir/conftest.two
9050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9063 rm -rf conftest.one conftest.two conftest.dir
9066 if test "${ac_cv_path_install+set}" = set; then
9067 INSTALL=$ac_cv_path_install
9069 # As a last resort, use the slow shell script. Don't cache a
9070 # value for INSTALL within a source directory, because that will
9071 # break other packages using the cache if that directory is
9072 # removed, or if the value is a relative name.
9073 INSTALL=$ac_install_sh
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9077 $as_echo "$INSTALL" >&6; }
9079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9080 # It thinks the first close brace ends the variable substitution.
9081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9088 ac_config_headers="$ac_config_headers config.h"
9091 ac_config_commands="$ac_config_commands default-1"
9093 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile"
9095 cat >confcache <<\_ACEOF
9096 # This file is a shell script that caches the results of configure
9097 # tests run on this system so they can be shared between configure
9098 # scripts and configure runs, see configure's option --config-cache.
9099 # It is not useful on other systems. If it contains results you don't
9100 # want to keep, you may remove or edit it.
9102 # config.status only pays attention to the cache file if you give it
9103 # the --recheck option to rerun configure.
9105 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9111 # The following way of writing the cache mishandles newlines in values,
9112 # but we know of no workaround that is simple, portable, and efficient.
9113 # So, we kill variables containing newlines.
9114 # Ultrix sh set writes to stderr and can't be redirected directly,
9115 # and sets the high bit in the cache file unless we assign to the vars.
9117 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9118 eval ac_val
=\$
$ac_var
9122 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9126 _ | IFS | as_nl
) ;; #(
9127 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9128 *) { eval $ac_var=; unset $ac_var;} ;;
9134 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9135 *${as_nl}ac_space
=\
*)
9136 # `set' does not quote correctly, so add quotes: double-quote
9137 # substitution turns \\\\ into \\, and sed turns \\ into \.
9140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9143 # `set' quotes correctly as required by POSIX, so do not add quotes.
9144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9155 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9157 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9158 if test -w "$cache_file"; then
9159 if test "x$cache_file" != "x/dev/null"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9161 $as_echo "$as_me: updating cache $cache_file" >&6;}
9162 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9163 cat confcache
>"$cache_file"
9165 case $cache_file in #(
9167 mv -f confcache
"$cache_file"$$
&&
9168 mv -f "$cache_file"$$
"$cache_file" ;; #(
9170 mv -f confcache
"$cache_file" ;;
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9176 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9181 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9182 # Let make expand exec_prefix.
9183 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9185 DEFS
=-DHAVE_CONFIG_H
9190 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9191 # 1. Remove the extension, and $U if already installed.
9192 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9193 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9194 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9195 # will be set to the directory where LIBOBJS objects are built.
9196 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9197 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9201 LTLIBOBJS
=$ac_ltlibobjs
9205 : "${CONFIG_STATUS=./config.status}"
9207 ac_clean_files_save
=$ac_clean_files
9208 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9210 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9212 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9214 # Generated by $as_me.
9215 # Run this file to recreate the current configuration.
9216 # Compiler output produced by configure, useful for debugging
9217 # configure, is in config.log if it exists.
9223 SHELL=\${CONFIG_SHELL-$SHELL}
9226 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9227 ## -------------------- ##
9228 ## M4sh Initialization. ##
9229 ## -------------------- ##
9231 # Be more Bourne compatible
9232 DUALCASE
=1; export DUALCASE
# for MKS sh
9233 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9236 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9237 # is contrary to our usage. Disable this feature.
9238 alias -g '${1+"$@"}'='"$@"'
9239 setopt NO_GLOB_SUBST
9241 case `(set -o) 2>/dev/null` in #(
9253 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9254 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9256 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9257 # Prefer a ksh shell builtin over an external printf program on Solaris,
9258 # but without wasting forks for bash or zsh.
9259 if test -z "$BASH_VERSION$ZSH_VERSION" \
9260 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9261 as_echo='print
-r --'
9262 as_echo_n='print
-rn --'
9263 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9264 as_echo='printf %s
\n'
9265 as_echo_n='printf %s
'
9267 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9268 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9269 as_echo_n='/usr
/ucb
/echo -n'
9271 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9272 as_echo_n_body='eval
9276 expr "X$arg" : "X\\(.*\\)$as_nl";
9277 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9279 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9281 export as_echo_n_body
9282 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9285 as_echo='sh
-c $as_echo_body as_echo
'
9288 # The user is always right.
9289 if test "${PATH_SEPARATOR+set}" != set; then
9291 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9292 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9299 # We need space, tab and new line, in precisely that order. Quoting is
9300 # there to prevent editors from complaining about space-tab.
9301 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9302 # splitting by setting IFS to empty value.)
9305 # Find who we are. Look in the path if we contain no directory separator.
9308 *[\\/]* ) as_myself=$0 ;;
9309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 test -z "$as_dir" && as_dir=.
9314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9320 # We did not find ourselves, most probably we were run as `sh COMMAND'
9321 # in which case we are not to be found in the path.
9322 if test "x$as_myself" = x
; then
9325 if test ! -f "$as_myself"; then
9326 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9330 # Unset variables that we do not need and which cause bugs (e.g. in
9331 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9332 # suppresses any "Segmentation fault" message there. '((' could
9333 # trigger a bug in pdksh 5.2.14.
9334 for as_var
in BASH_ENV ENV MAIL MAILPATH
9335 do eval test x\
${$as_var+set} = xset \
9336 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9349 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9352 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9353 # ----------------------------------------
9354 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9355 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9356 # script with STATUS, using 1 if that was 0.
9359 as_status
=$1; test $as_status -eq 0 && as_status
=1
9361 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9362 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9364 $as_echo "$as_me: error: $2" >&2
9365 as_fn_exit
$as_status
9369 # as_fn_set_status STATUS
9370 # -----------------------
9371 # Set $? to STATUS, without forking.
9375 } # as_fn_set_status
9379 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9389 # Portably unset VAR.
9392 { eval $1=; unset $1;}
9394 as_unset
=as_fn_unset
9395 # as_fn_append VAR VALUE
9396 # ----------------------
9397 # Append the text in VALUE to the end of the definition contained in VAR. Take
9398 # advantage of any shell optimizations that allow amortized linear growth over
9399 # repeated appends, instead of the typical quadratic growth present in naive
9401 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9402 eval 'as_fn_append ()
9413 # as_fn_arith ARG...
9414 # ------------------
9415 # Perform arithmetic evaluation on the ARGs, and store the result in the
9416 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9417 # must be portable across $(()) and expr.
9418 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9419 eval 'as_fn_arith ()
9426 as_val
=`expr "$@" || test $? -eq 1`
9431 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9432 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9438 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9439 as_basename
=basename
9444 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9450 as_me
=`$as_basename -- "$0" ||
9451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9452 X"$0" : 'X\(//\)$' \| \
9453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9455 sed '/^.*\/\([^/][^/]*\)\/*$/{
9469 # Avoid depending upon Character Ranges.
9470 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9471 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9472 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9473 as_cr_digits
='0123456789'
9474 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9476 ECHO_C
= ECHO_N
= ECHO_T
=
9477 case `echo -n x` in #(((((
9479 case `echo 'xy\c'` in
9480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9482 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9489 rm -f conf$$ conf$$.exe conf$$.
file
9490 if test -d conf$$.dir
; then
9491 rm -f conf$$.dir
/conf$$.
file
9494 mkdir conf$$.dir
2>/dev
/null
9496 if (echo >conf$$.
file) 2>/dev
/null
; then
9497 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9499 # ... but there are two gotchas:
9500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9502 # In both cases, we have to default to `cp -pR'.
9503 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9505 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9514 rmdir conf$$.dir
2>/dev
/null
9519 # Create "$as_dir" as a directory, including parents if necessary.
9524 -*) as_dir
=.
/$as_dir;;
9526 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9530 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9531 *) as_qdir
=$as_dir;;
9533 as_dirs
="'$as_qdir' $as_dirs"
9534 as_dir
=`$as_dirname -- "$as_dir" ||
9535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9536 X"$as_dir" : 'X\(//\)[^/]' \| \
9537 X"$as_dir" : 'X\(//\)$' \| \
9538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9539 $as_echo X"$as_dir" |
9540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9557 test -d "$as_dir" && break
9559 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9560 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9564 if mkdir
-p .
2>/dev
/null
; then
9565 as_mkdir_p
='mkdir -p "$as_dir"'
9567 test -d .
/-p && rmdir .
/-p
9572 # as_fn_executable_p FILE
9573 # -----------------------
9574 # Test if FILE is an executable regular file.
9575 as_fn_executable_p
()
9577 test -f "$1" && test -x "$1"
9578 } # as_fn_executable_p
9580 as_executable_p
=as_fn_executable_p
9582 # Sed expression to map a string onto a valid CPP name.
9583 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9585 # Sed expression to map a string onto a valid variable name.
9586 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9590 ## ----------------------------------- ##
9591 ## Main body of $CONFIG_STATUS script. ##
9592 ## ----------------------------------- ##
9594 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9597 # Save the log message, to keep $0 and so on meaningful, and to
9598 # report actual input values of CONFIG_FILES etc. instead of their
9599 # values after options handling.
9601 This file was extended by $as_me, which was
9602 generated by GNU Autoconf 2.69. Invocation command line was
9604 CONFIG_FILES = $CONFIG_FILES
9605 CONFIG_HEADERS = $CONFIG_HEADERS
9606 CONFIG_LINKS = $CONFIG_LINKS
9607 CONFIG_COMMANDS = $CONFIG_COMMANDS
9610 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9615 case $ac_config_files in *"
9616 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9619 case $ac_config_headers in *"
9620 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9625 # Files that config.status was made for.
9626 config_files="$ac_config_files"
9627 config_headers="$ac_config_headers"
9628 config_commands="$ac_config_commands"
9632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9634 \`$as_me' instantiates files and other configuration actions
9635 from templates according to the current configuration. Unless the files
9636 and actions are specified as TAGs, all are instantiated by default.
9638 Usage: $0 [OPTION]... [TAG]...
9640 -h, --help print this help, then exit
9641 -V, --version print version number and configuration settings, then exit
9642 --config print configuration, then exit
9643 -q, --quiet, --silent
9644 do not print progress messages
9645 -d, --debug don't remove temporary files
9646 --recheck update $as_me by reconfiguring in the same conditions
9647 --file=FILE[:TEMPLATE]
9648 instantiate the configuration file FILE
9649 --header=FILE[:TEMPLATE]
9650 instantiate the configuration header FILE
9652 Configuration files:
9655 Configuration headers:
9658 Configuration commands:
9661 Report bugs to the package provider."
9664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9665 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9668 configured by $0, generated by GNU Autoconf 2.69,
9669 with options \\"\$ac_cs_config\\"
9671 Copyright (C) 2012 Free Software Foundation, Inc.
9672 This config.status script is free software; the Free Software Foundation
9673 gives unlimited permission to copy, distribute and modify it."
9678 test -n "\$AWK" || AWK=awk
9681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9682 # The default lists apply if the user does not specify any file.
9688 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9689 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9693 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9705 # Handling of the options.
9706 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9708 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9709 $as_echo "$ac_cs_version"; exit ;;
9710 --config |
--confi |
--conf |
--con |
--co |
--c )
9711 $as_echo "$ac_cs_config"; exit ;;
9712 --debug |
--debu |
--deb |
--de |
--d |
-d )
9714 --file |
--fil |
--fi |
--f )
9717 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9718 '') as_fn_error $?
"missing file argument" ;;
9720 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9721 ac_need_defaults
=false
;;
9722 --header |
--heade |
--head |
--hea )
9725 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9727 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9728 ac_need_defaults
=false
;;
9730 # Conflict between --help and --header
9731 as_fn_error $?
"ambiguous option: \`$1'
9732 Try \`$0 --help' for more information.";;
9733 --help |
--hel |
-h )
9734 $as_echo "$ac_cs_usage"; exit ;;
9735 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9736 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9740 -*) as_fn_error $?
"unrecognized option: \`$1'
9741 Try \`$0 --help' for more information." ;;
9743 *) as_fn_append ac_config_targets
" $1"
9744 ac_need_defaults
=false
;;
9750 ac_configure_extra_args
=
9752 if $ac_cs_silent; then
9754 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9759 if \$ac_cs_recheck; then
9760 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9762 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9763 CONFIG_SHELL='$SHELL'
9769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9774 ## Running $as_me. ##
9780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9790 # Handling of arguments.
9791 for ac_config_target
in $ac_config_targets
9793 case $ac_config_target in
9794 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9795 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9796 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9797 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
9798 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
9799 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
9800 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
9801 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
9802 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
9803 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
9804 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9805 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
9806 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9807 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
9808 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9809 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9810 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
9811 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
9812 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
9814 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9819 # If the user did not use the arguments to specify the items to instantiate,
9820 # then the envvar interface is used. Set only those that are not.
9821 # We use the long form for the default assignment because of an extremely
9822 # bizarre bug on SunOS 4.1.3.
9823 if $ac_need_defaults; then
9824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9829 # Have a temporary directory for convenience. Make it in the build tree
9830 # simply because there is no reason against having it here, and in addition,
9831 # creating and moving files from /tmp can sometimes cause problems.
9832 # Hook for its removal unless debugging.
9833 # Note that there is a small window in which the directory will not be cleaned:
9834 # after its creation but before its name has been assigned to `$tmp'.
9838 trap 'exit_status=$?
9840 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9842 trap 'as_fn_exit 1' 1 2 13 15
9844 # Create a (secure) tmp directory for tmp files.
9847 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9851 tmp
=.
/conf$$
-$RANDOM
9852 (umask 077 && mkdir
"$tmp")
9853 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9856 # Set up the scripts for CONFIG_FILES section.
9857 # No need to generate them if there are no CONFIG_FILES.
9858 # This happens for instance with `./config.status config.h'.
9859 if test -n "$CONFIG_FILES"; then
9862 ac_cr
=`echo X | tr X '\015'`
9863 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9864 # But we know of no other shell where ac_cr would be empty at this
9865 # point, so we can use a bashism as a fallback.
9866 if test "x$ac_cr" = x
; then
9867 eval ac_cr
=\$
\'\\r
\'
9869 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9870 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9876 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9881 echo "cat >conf$$subs.awk <<_ACEOF" &&
9882 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9885 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9886 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9888 for ac_last_try in false false false false false :; do
9889 . ./conf$$subs.sh ||
9890 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9892 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9893 if test $ac_delim_n = $ac_delim_num; then
9895 elif $ac_last_try; then
9896 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9898 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9904 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9908 s/^/S["/; s
/!.
*/"]=/
9918 s/\(.\{148\}\)..*/\1/
9920 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9925 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9932 s/\(.\{148\}\)..*/\1/
9934 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9938 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9943 ' <conf$$subs.awk | sed '
9948 ' >>$CONFIG_STATUS || ac_write_fail=1
9949 rm -f conf$$subs.awk
9950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9952 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9953 for (key in S) S_is_set[key] = 1
9959 nfields = split(line, field, "@
")
9961 len = length(field[1])
9962 for (i = 2; i < nfields; i++) {
9964 keylen = length(key)
9965 if (S_is_set[key]) {
9967 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9968 len += length(value) + length(field[++i])
9979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9980 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9981 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9984 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9985 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9988 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9989 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9990 # trailing colons and then remove the whole line if VPATH becomes empty
9991 # (actually we leave an empty line to preserve line numbers).
9992 if test "x
$srcdir" = x.; then
9993 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10012 fi # test -n "$CONFIG_FILES"
10014 # Set up the scripts for CONFIG_HEADERS section.
10015 # No need to generate them if there are no CONFIG_HEADERS.
10016 # This happens for instance with `./config.status Makefile'.
10017 if test -n "$CONFIG_HEADERS"; then
10018 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10022 # Transform confdefs.h into an awk script `defines.awk', embedded as
10023 # here-document in config.status, that substitutes the proper values into
10024 # config.h.in to produce config.h.
10026 # Create a delimiter string that does not exist in confdefs.h, to ease
10027 # handling of long lines.
10029 for ac_last_try in false false :; do
10030 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10031 if test -z "$ac_tt"; then
10033 elif $ac_last_try; then
10034 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10036 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10040 # For the awk script, D is an array of macro values keyed by name,
10041 # likewise P contains macro parameters if any. Preserve backslash
10042 # newline sequences.
10044 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10046 s/.\{148\}/&'"$ac_delim"'/g
10049 s/^[ ]*#[ ]*define[ ][ ]*/ /
10056 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10058 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10063 D["\
1"]=" \
3\\\\\\n
"\\/p
10065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10070 s/.\{148\}/&'"$ac_delim"'/g
10075 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10078 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10080 ' <confdefs.h | sed '
10081 s/'"$ac_delim"'/"\\\
10082 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10085 for (key in D) D_is_set[key] = 1
10088 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10090 split(line, arg, " ")
10091 if (arg[1] == "#") {
10095 defundef
= substr
(arg
[1], 2)
10098 split(mac1
, mac2
, "(") #)
10100 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10101 if (D_is_set
[macro
]) {
10102 # Preserve the white space surrounding the "#".
10103 print prefix
"define", macro P
[macro
] D
[macro
]
10106 # Replace #undef with comments. This is necessary, for example,
10107 # in the case of _POSIX_SOURCE, which is predefined and required
10108 # on some systems where configure will not decide to define it.
10109 if (defundef
== "undef") {
10110 print
"/*", prefix defundef
, macro
, "*/"
10118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10119 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10120 fi # test -n "$CONFIG_HEADERS"
10123 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10128 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10130 case $ac_mode$ac_tag in
10132 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10133 :[FH
]-) ac_tag
=-:-;;
10134 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10151 -) ac_f
="$ac_tmp/stdin";;
10152 *) # Look for the file first in the build tree, then in the source tree
10153 # (if the path is not absolute). The absolute path cannot be DOS-style,
10154 # because $ac_f cannot contain `:'.
10158 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10160 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10162 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10163 as_fn_append ac_file_inputs
" '$ac_f'"
10166 # Let's still pretend it is `configure' which instantiates (i.e., don't
10167 # use $as_me), people would be surprised to read:
10168 # /* config.h. Generated by config.status. */
10169 configure_input
='Generated from '`
10170 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10172 if test x
"$ac_file" != x-
; then
10173 configure_input
="$ac_file. $configure_input"
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10175 $as_echo "$as_me: creating $ac_file" >&6;}
10177 # Neutralize special characters interpreted by sed in replacement strings.
10178 case $configure_input in #(
10179 *\
&* |
*\|
* |
*\\* )
10180 ac_sed_conf_input
=`$as_echo "$configure_input" |
10181 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10182 *) ac_sed_conf_input
=$configure_input;;
10186 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10187 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10192 ac_dir
=`$as_dirname -- "$ac_file" ||
10193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10194 X"$ac_file" : 'X\(//\)[^/]' \| \
10195 X"$ac_file" : 'X\(//\)$' \| \
10196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10197 $as_echo X"$ac_file" |
10198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10202 /^X\(\/\/\)[^/].*/{
10215 as_dir
="$ac_dir"; as_fn_mkdir_p
10219 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10221 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10222 # A ".." for each directory in $ac_dir_suffix.
10223 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10224 case $ac_top_builddir_sub in
10225 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10226 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10229 ac_abs_top_builddir
=$ac_pwd
10230 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10231 # for backward compatibility:
10232 ac_top_builddir
=$ac_top_build_prefix
10235 .
) # We are building in place.
10237 ac_top_srcdir
=$ac_top_builddir_sub
10238 ac_abs_top_srcdir
=$ac_pwd ;;
10239 [\\/]* | ?
:[\\/]* ) # Absolute name.
10240 ac_srcdir
=$srcdir$ac_dir_suffix;
10241 ac_top_srcdir
=$srcdir
10242 ac_abs_top_srcdir
=$srcdir ;;
10243 *) # Relative name.
10244 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10245 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10246 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10248 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10258 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10259 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10264 # If the template does not know about datarootdir, expand it.
10265 # FIXME: This hack should be removed a few years after 2.60.
10266 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10277 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10278 *datarootdir
*) ac_datarootdir_seen
=yes;;
10279 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10281 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10284 ac_datarootdir_hack='
10285 s&@datadir@&$datadir&g
10286 s&@docdir@&$docdir&g
10287 s&@infodir@&$infodir&g
10288 s&@localedir@&$localedir&g
10289 s&@mandir@&$mandir&g
10290 s&\\\${datarootdir}&$datarootdir&g' ;;
10294 # Neutralize VPATH when `$srcdir' = `.'.
10295 # Shell code in configure.ac might set extrasub.
10296 # FIXME: do we really want to maintain this feature?
10297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10298 ac_sed_extra="$ac_vpsub
10301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10303 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10304 s|@configure_input@|
$ac_sed_conf_input|
;t t
10305 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10306 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10307 s
&@srcdir@
&$ac_srcdir&;t t
10308 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10309 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10310 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10311 s
&@builddir@
&$ac_builddir&;t t
10312 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10313 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10314 s
&@INSTALL@
&$ac_INSTALL&;t t
10315 $ac_datarootdir_hack
10317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10318 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10321 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10323 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10325 which seems to be undefined. Please make sure it is defined" >&5
10326 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10327 which seems to be undefined. Please make sure it is defined" >&2;}
10329 rm -f "$ac_tmp/stdin"
10331 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10332 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10340 if test x"$ac_file" != x-; then
10342 $as_echo "/* $configure_input */" \
10343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10344 } >"$ac_tmp/config.h" \
10345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10346 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10348 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10351 mv "$ac_tmp/config.h" "$ac_file" \
10352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10355 $as_echo "/* $configure_input */" \
10356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10357 || as_fn_error $? "could not create -" "$LINENO" 5
10361 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10362 $as_echo "$as_me: executing $ac_file commands" >&6;}
10367 case $ac_file$ac_mode in
10368 "default-1":C) if test -f .devel; then
10369 echo timestamp > stamp-h
10370 cat Makefile-devel-adds >> Makefile
10380 ac_clean_files=$ac_clean_files_save
10382 test $ac_write_fail = 0 ||
10383 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10386 # configure is writing to config.log, and then calls config.status.
10387 # config.status does its own redirection, appending to config.log.
10388 # Unfortunately, on DOS this fails, as config.log is still kept open
10389 # by configure, so config.status won't be able to
write to it
; its
10390 # output is simply discarded. So we exec the FD to /dev/null,
10391 # effectively closing config.log, so it can be properly (re)opened and
10392 # appended to by config.status. When coming back to configure, we
10393 # need to make the FD available again.
10394 if test "$no_create" != yes; then
10396 ac_config_status_args
=
10397 test "$silent" = yes &&
10398 ac_config_status_args
="$ac_config_status_args --quiet"
10400 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10402 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10403 # would make configure fail if this is the last instruction.
10404 $ac_cs_success || as_fn_exit
1
10406 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10408 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}