2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in #(
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo_n='print
-rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
54 as_echo_n='/usr
/ucb
/echo -n'
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
67 as_echo_n='sh
-c $as_echo_n_body as_echo
'
70 as_echo='sh
-c $as_echo_body as_echo
'
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
76 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
90 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
139 _as_can_reexec
=no
; export _as_can_reexec
;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
146 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
148 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec
=; unset _as_can_reexec
;}
161 if test "x$CONFIG_SHELL" = x
; then
162 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 case \`(set -o) 2>/dev/null\` in #(
178 as_required
="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 exitcode=1; echo positional parameters were not saved.
194 test x\$exitcode = x0 || exit 1
196 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev
/null
; then :
206 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
211 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
214 test -z "$as_dir" && as_dir
=.
218 for as_base
in sh bash ksh sh5
; do
219 # Try only shells that exist, to save several forks.
220 as_shell
=$as_dir/$as_base
221 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
223 CONFIG_SHELL
=$as_shell as_have_required
=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
; then :
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
249 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x
$as_have_required = xno
; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x
${ZSH_VERSION+set} = xset
; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
277 SHELL
=${CONFIG_SHELL-/bin/sh}
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE
= GREP_OPTIONS
=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Create "$as_dir" as a directory, including parents if necessary.
320 -*) as_dir
=.
/$as_dir;;
322 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
326 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 as_dirs
="'$as_qdir' $as_dirs"
330 as_dir
=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 test -d "$as_dir" && break
355 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
356 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
361 # as_fn_executable_p FILE
362 # -----------------------
363 # Test if FILE is an executable regular file.
364 as_fn_executable_p
()
366 test -f "$1" && test -x "$1"
367 } # as_fn_executable_p
368 # as_fn_append VAR VALUE
369 # ----------------------
370 # Append the text in VALUE to the end of the definition contained in VAR. Take
371 # advantage of any shell optimizations that allow amortized linear growth over
372 # repeated appends, instead of the typical quadratic growth present in naive
374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
375 eval 'as_fn_append ()
388 # Perform arithmetic evaluation on the ARGs, and store the result in the
389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
390 # must be portable across $(()) and expr.
391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
399 as_val
=`expr "$@" || test $? -eq 1`
404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
405 # ----------------------------------------
406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408 # script with STATUS, using 1 if that was 0.
411 as_status
=$1; test $as_status -eq 0 && as_status
=1
413 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 $as_echo "$as_me: error: $2" >&2
417 as_fn_exit
$as_status
420 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
421 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
427 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
433 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
439 as_me
=`$as_basename -- "$0" ||
440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441 X"$0" : 'X\(//\)$' \| \
442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 # Avoid depending upon Character Ranges.
459 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
460 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
462 as_cr_digits
='0123456789'
463 as_cr_alnum
=$as_cr_Letters$as_cr_digits
466 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
467 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
468 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
470 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 chmod +x
"$as_me.lineno" ||
487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490 # already done that, so ensure we don't try to do so again and fall
491 # in an infinite loop. This has already happened in practice.
492 _as_can_reexec
=no
; export _as_can_reexec
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
497 # Exit status is that of the last command.
501 ECHO_C
= ECHO_N
= ECHO_T
=
502 case `echo -n x` in #(((((
504 case `echo 'xy\c'` in
505 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
507 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
514 rm -f conf$$ conf$$.exe conf$$.
file
515 if test -d conf$$.dir
; then
516 rm -f conf$$.dir
/conf$$.
file
519 mkdir conf$$.dir
2>/dev
/null
521 if (echo >conf$$.
file) 2>/dev
/null
; then
522 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -pR'.
528 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
530 elif ln conf$$.
file conf$$
2>/dev
/null
; then
538 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
539 rmdir conf$$.dir
2>/dev
/null
541 if mkdir
-p .
2>/dev
/null
; then
542 as_mkdir_p
='mkdir -p "$as_dir"'
544 test -d .
/-p && rmdir .
/-p
549 as_executable_p
=as_fn_executable_p
551 # Sed expression to map a string onto a valid CPP name.
552 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554 # Sed expression to map a string onto a valid variable name.
555 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
562 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563 # so uname gets run too.
564 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 ac_default_prefix
=/usr
/local
571 ac_config_libobj_dir
=.
578 # Identity of this package.
586 ac_unique_file
="tcpdump.c"
587 # Factoring default headers for most tests.
588 ac_includes_default
="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
684 program_transform_name
697 enable_option_checking
706 ac_precious_vars
='build_alias
717 # Initialize some variables set by options.
719 ac_init_version
=false
720 ac_unrecognized_opts
=
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
731 program_transform_name
=s
,x
,x
,
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir
='${exec_prefix}/bin'
746 sbindir
='${exec_prefix}/sbin'
747 libexecdir
='${exec_prefix}/libexec'
748 datarootdir
='${prefix}/share'
749 datadir
='${datarootdir}'
750 sysconfdir
='${prefix}/etc'
751 sharedstatedir
='${prefix}/com'
752 localstatedir
='${prefix}/var'
753 includedir
='${prefix}/include'
754 oldincludedir
='/usr/include'
755 docdir
='${datarootdir}/doc/${PACKAGE}'
756 infodir
='${datarootdir}/info'
761 libdir
='${exec_prefix}/lib'
762 localedir
='${datarootdir}/locale'
763 mandir
='${datarootdir}/man'
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\
$ac_option
777 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
788 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
790 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
793 -build |
--build |
--buil |
--bui |
--bu)
794 ac_prev
=build_alias
;;
795 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
796 build_alias
=$ac_optarg ;;
798 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
799 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
800 ac_prev
=cache_file
;;
801 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
802 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
803 cache_file
=$ac_optarg ;;
806 cache_file
=config.cache
;;
808 -datadir |
--datadir |
--datadi |
--datad)
810 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
811 datadir
=$ac_optarg ;;
813 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
814 |
--dataroo |
--dataro |
--datar)
815 ac_prev
=datarootdir
;;
816 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
817 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
818 datarootdir
=$ac_optarg ;;
820 -disable-* |
--disable-*)
821 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
824 as_fn_error $?
"invalid feature name: $ac_useropt"
825 ac_useropt_orig
=$ac_useropt
826 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
831 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
832 ac_unrecognized_sep
=', ';;
834 eval enable_
$ac_useropt=no
;;
836 -docdir |
--docdir |
--docdi |
--doc |
--do)
838 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
841 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
843 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
846 -enable-* |
--enable-*)
847 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
850 as_fn_error $?
"invalid feature name: $ac_useropt"
851 ac_useropt_orig
=$ac_useropt
852 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
857 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
858 ac_unrecognized_sep
=', ';;
860 eval enable_
$ac_useropt=\
$ac_optarg ;;
862 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
863 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
864 |
--exec |
--exe |
--ex)
865 ac_prev
=exec_prefix
;;
866 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
867 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
868 |
--exec=* |
--exe=* |
--ex=*)
869 exec_prefix
=$ac_optarg ;;
871 -gas |
--gas |
--ga |
--g)
872 # Obsolete; use --with-gas.
875 -help |
--help |
--hel |
--he |
-h)
877 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
878 ac_init_help
=recursive
;;
879 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
880 ac_init_help
=short
;;
882 -host |
--host |
--hos |
--ho)
883 ac_prev
=host_alias
;;
884 -host=* |
--host=* |
--hos=* |
--ho=*)
885 host_alias
=$ac_optarg ;;
887 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
889 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
891 htmldir
=$ac_optarg ;;
893 -includedir |
--includedir |
--includedi |
--included |
--include \
894 |
--includ |
--inclu |
--incl |
--inc)
895 ac_prev
=includedir
;;
896 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
897 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
898 includedir
=$ac_optarg ;;
900 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
902 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
903 infodir
=$ac_optarg ;;
905 -libdir |
--libdir |
--libdi |
--libd)
907 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
910 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
911 |
--libexe |
--libex |
--libe)
912 ac_prev
=libexecdir
;;
913 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
914 |
--libexe=* |
--libex=* |
--libe=*)
915 libexecdir
=$ac_optarg ;;
917 -localedir |
--localedir |
--localedi |
--localed |
--locale)
919 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
920 localedir
=$ac_optarg ;;
922 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
923 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
924 ac_prev
=localstatedir
;;
925 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
926 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
927 localstatedir
=$ac_optarg ;;
929 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
931 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
935 # Obsolete; use --without-fp.
938 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
939 |
--no-cr |
--no-c |
-n)
942 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
943 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
946 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
947 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
948 |
--oldin |
--oldi |
--old |
--ol |
--o)
949 ac_prev
=oldincludedir
;;
950 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
951 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
952 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
953 oldincludedir
=$ac_optarg ;;
955 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
957 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
960 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
961 |
--program-pre |
--program-pr |
--program-p)
962 ac_prev
=program_prefix
;;
963 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
964 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
965 program_prefix
=$ac_optarg ;;
967 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
968 |
--program-suf |
--program-su |
--program-s)
969 ac_prev
=program_suffix
;;
970 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
971 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
972 program_suffix
=$ac_optarg ;;
974 -program-transform-name |
--program-transform-name \
975 |
--program-transform-nam |
--program-transform-na \
976 |
--program-transform-n |
--program-transform- \
977 |
--program-transform |
--program-transfor \
978 |
--program-transfo |
--program-transf \
979 |
--program-trans |
--program-tran \
980 |
--progr-tra |
--program-tr |
--program-t)
981 ac_prev
=program_transform_name
;;
982 -program-transform-name=* |
--program-transform-name=* \
983 |
--program-transform-nam=* |
--program-transform-na=* \
984 |
--program-transform-n=* |
--program-transform-=* \
985 |
--program-transform=* |
--program-transfor=* \
986 |
--program-transfo=* |
--program-transf=* \
987 |
--program-trans=* |
--program-tran=* \
988 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
989 program_transform_name
=$ac_optarg ;;
991 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
993 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
996 -psdir |
--psdir |
--psdi |
--psd |
--ps)
998 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1001 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1002 |
-silent |
--silent |
--silen |
--sile |
--sil)
1005 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1007 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1009 sbindir
=$ac_optarg ;;
1011 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1012 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1013 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1015 ac_prev
=sharedstatedir
;;
1016 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1017 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1018 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1020 sharedstatedir
=$ac_optarg ;;
1022 -site |
--site |
--sit)
1024 -site=* |
--site=* |
--sit=*)
1027 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1029 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1030 srcdir
=$ac_optarg ;;
1032 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1033 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1034 ac_prev
=sysconfdir
;;
1035 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1036 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1037 sysconfdir
=$ac_optarg ;;
1039 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1040 ac_prev
=target_alias
;;
1041 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1042 target_alias
=$ac_optarg ;;
1044 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1047 -version |
--version |
--versio |
--versi |
--vers |
-V)
1048 ac_init_version
=: ;;
1051 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error $?
"invalid package name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval with_
$ac_useropt=\
$ac_optarg ;;
1066 -without-* |
--without-*)
1067 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1070 as_fn_error $?
"invalid package name: $ac_useropt"
1071 ac_useropt_orig
=$ac_useropt
1072 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1077 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1078 ac_unrecognized_sep
=', ';;
1080 eval with_
$ac_useropt=no
;;
1083 # Obsolete; use --with-x.
1086 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1087 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1088 ac_prev
=x_includes
;;
1089 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1090 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1091 x_includes
=$ac_optarg ;;
1093 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1094 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1095 ac_prev
=x_libraries
;;
1096 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1097 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1098 x_libraries
=$ac_optarg ;;
1100 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1101 Try \`$0 --help' for more information"
1105 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 case $ac_envvar in #(
1108 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1109 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1111 eval $ac_envvar=\
$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1118 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1125 if test -n "$ac_prev"; then
1126 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1127 as_fn_error $?
"missing argument to $ac_option"
1130 if test -n "$ac_unrecognized_opts"; then
1131 case $enable_option_checking in
1133 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1134 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1138 # Check all directory arguments for consistency.
1139 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val
=\$
$ac_var
1145 # Remove trailing slashes.
1148 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1149 eval $ac_var=\
$ac_val;;
1151 # Be sure to have absolute directory names.
1153 [\\/$
]* | ?
:[\\/]* ) continue;;
1154 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1156 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1159 # There might be people who depend on the old broken behavior: `$host'
1160 # used to hold the argument of --host etc.
1161 # FIXME: To remove some day.
1164 target
=$target_alias
1166 # FIXME: To remove some day.
1167 if test "x$host_alias" != x
; then
1168 if test "x$build_alias" = x
; then
1169 cross_compiling
=maybe
1170 elif test "x$build_alias" != "x$host_alias"; then
1176 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1178 test "$silent" = yes && exec 6>/dev
/null
1181 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di
=`ls -di .` &&
1183 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1184 as_fn_error $?
"working directory cannot be determined"
1185 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186 as_fn_error $?
"pwd does not report name of working directory"
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191 ac_srcdir_defaulted
=yes
1192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir
=`$as_dirname -- "$as_myself" ||
1194 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$as_myself" : 'X\(//\)[^/]' \| \
1196 X"$as_myself" : 'X\(//\)$' \| \
1197 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198 $as_echo X"$as_myself" |
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1221 ac_srcdir_defaulted
=no
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1225 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1227 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1239 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 for ac_var
in $ac_precious_vars; do
1242 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1244 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1255 \`configure' configures this package to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking ...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1313 --build=BUILD configure
for building on BUILD
[guessed
]
1314 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1318 if test -n "$ac_init_help"; then
1323 --disable-option-checking ignore unrecognized
--enable/--with options
1324 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1325 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1326 --enable-smb enable possibly-buggy SMB printer default
=yes
1327 --disable-smb disable possibly-buggy SMB printer
1328 --enable-ipv6 enable ipv6
(with ipv4
) support
1329 --disable-ipv6 disable ipv6 support
1332 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1333 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1334 --without-gcc don
't use gcc
1335 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1336 --without-smi don't link with libsmi
1337 --with-user=USERNAME drop privileges by default to USERNAME
1338 --with-chroot=DIRECTORY when dropping privileges
, chroot to DIRECTORY
1339 --with-crypto[=PATH
] use SSLeay libcrypto
(located
in directory PATH
, if
1340 supplied
).
[default
=yes, if available
]
1342 Some influential environment variables
:
1343 CC C compiler
command
1344 CFLAGS C compiler flags
1345 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1346 nonstandard directory
<lib dir
>
1347 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1348 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1349 you have headers
in a nonstandard directory
<include dir
>
1352 Use these variables to override the choices made by
`configure' or to help
1353 it to find libraries and programs with nonstandard names/locations.
1355 Report bugs to the package provider.
1360 if test "$ac_init_help" = "recursive"; then
1361 # If there are subdirs, report their specific --help.
1362 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363 test -d "$ac_dir" ||
1364 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1372 # A ".." for each directory in $ac_dir_suffix.
1373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1374 case $ac_top_builddir_sub in
1375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1379 ac_abs_top_builddir=$ac_pwd
1380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1381 # for backward compatibility:
1382 ac_top_builddir=$ac_top_build_prefix
1385 .) # We are building in place.
1387 ac_top_srcdir=$ac_top_builddir_sub
1388 ac_abs_top_srcdir=$ac_pwd ;;
1389 [\\/]* | ?:[\\/]* ) # Absolute name.
1390 ac_srcdir=$srcdir$ac_dir_suffix;
1391 ac_top_srcdir=$srcdir
1392 ac_abs_top_srcdir=$srcdir ;;
1394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1395 ac_top_srcdir=$ac_top_build_prefix$srcdir
1396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400 cd "$ac_dir" || { ac_status=$?; continue; }
1401 # Check for guested configure.
1402 if test -f "$ac_srcdir/configure.gnu"; then
1404 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1405 elif test -f "$ac_srcdir/configure"; then
1407 $SHELL "$ac_srcdir/configure" --help=recursive
1409 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1411 cd "$ac_pwd" || { ac_status=$?; break; }
1415 test -n "$ac_init_help" && exit $ac_status
1416 if $ac_init_version; then
1419 generated by GNU Autoconf 2.69
1421 Copyright (C) 2012 Free Software Foundation, Inc.
1422 This configure script is free software; the Free Software Foundation
1423 gives unlimited permission to copy, distribute and modify it.
1428 ## ------------------------ ##
1429 ## Autoconf initialization. ##
1430 ## ------------------------ ##
1432 # ac_fn_c_try_compile LINENO
1433 # --------------------------
1434 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1435 ac_fn_c_try_compile ()
1437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1438 rm -f conftest.$ac_objext
1439 if { { ac_try="$ac_compile"
1441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1442 *) ac_try_echo
=$ac_try;;
1444 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445 $as_echo "$ac_try_echo"; } >&5
1446 (eval "$ac_compile") 2>conftest.err
1448 if test -s conftest.err
; then
1449 grep -v '^ *+' conftest.err
>conftest.er1
1450 cat conftest.er1
>&5
1451 mv -f conftest.er1 conftest.err
1453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454 test $ac_status = 0; } && {
1455 test -z "$ac_c_werror_flag" ||
1456 test ! -s conftest.err
1457 } && test -s conftest.
$ac_objext; then :
1460 $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.
$ac_ext >&5
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status
$ac_retval
1468 } # ac_fn_c_try_compile
1470 # ac_fn_c_try_cpp LINENO
1471 # ----------------------
1472 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1475 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1476 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482 $as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } > conftest.i && {
1492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503 as_fn_set_status $ac_retval
1507 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1508 # -------------------------------------------------------
1509 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1510 # the include files in INCLUDES and setting the cache variable VAR
1512 ac_fn_c_check_header_mongrel ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 if eval \${$3+:} false; then :
1516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1517 $as_echo_n "checking for $2... " >&6; }
1518 if eval \${$3+:} false; then :
1519 $as_echo_n "(cached) " >&6
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1523 $as_echo "$ac_res" >&6; }
1525 # Is the header compilable?
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1527 $as_echo_n "checking $2 usability... " >&6; }
1528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529 /* end confdefs.h. */
1533 if ac_fn_c_try_compile "$LINENO"; then :
1534 ac_header_compiler=yes
1536 ac_header_compiler=no
1538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1540 $as_echo "$ac_header_compiler" >&6; }
1542 # Is the header present?
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1544 $as_echo_n "checking $2 presence... " >&6; }
1545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1546 /* end confdefs.h. */
1549 if ac_fn_c_try_cpp "$LINENO"; then :
1550 ac_header_preproc=yes
1552 ac_header_preproc=no
1554 rm -f conftest.err conftest.i conftest.$ac_ext
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1556 $as_echo "$ac_header_preproc" >&6; }
1558 # So? What about this header?
1559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1562 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1564 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1568 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1570 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1572 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1574 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1576 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1584 eval "$3=\$ac_header_compiler"
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 } # ac_fn_c_check_header_mongrel
1594 # ac_fn_c_try_run LINENO
1595 # ----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1597 # that executables *can* be run.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_link"
1603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1604 *) ac_try_echo
=$ac_try;;
1606 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>&5
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1612 { { case "(($ac_try" in
1613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_try") 2>&5
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; }; }; then :
1624 $as_echo "$as_me: program exited with status $ac_status" >&5
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=$ac_status
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1653 if ac_fn_c_try_compile "$LINENO"; then :
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_header_compile
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1677 *) ac_try_echo
=$ac_try;;
1679 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1683 if test -s conftest.err
; then
1684 grep -v '^ *+' conftest.err
>conftest.er1
1685 cat conftest.er1
>&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest
$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest
$ac_exeext
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.
$ac_ext >&5
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status
$ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func
()
1718 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \
${$3+:} false
; then :
1722 $as_echo_n "(cached) " >&6
1724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1728 #define $2 innocuous_$2
1730 /* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $2 (); below.
1732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1733 <limits.h> exists even on freestanding compilers. */
1736 # include <limits.h>
1738 # include <assert.h>
1743 /* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined __stub_$2 || defined __stub___$2
1765 if ac_fn_c_try_link
"$LINENO"; then :
1770 rm -f core conftest.err conftest.
$ac_objext \
1771 conftest
$ac_exeext conftest.
$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_func
1780 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1781 # --------------------------------------------
1782 # Tries to find the compile-time value of EXPR in a program that includes
1783 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1785 ac_fn_c_compute_int
()
1787 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1788 if test "$cross_compiling" = yes; then
1789 # Depending upon the size, compute the lo and hi bounds.
1790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1796 static int test_array [1 - 2 * !(($2) >= 0)];
1798 return test_array [0];
1804 if ac_fn_c_try_compile
"$LINENO"; then :
1807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1813 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1815 return test_array [0];
1821 if ac_fn_c_try_compile
"$LINENO"; then :
1822 ac_hi
=$ac_mid; break
1824 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1825 if test $ac_lo -le $ac_mid; then
1829 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1840 static int test_array [1 - 2 * !(($2) < 0)];
1842 return test_array [0];
1848 if ac_fn_c_try_compile
"$LINENO"; then :
1851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1857 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1859 return test_array [0];
1865 if ac_fn_c_try_compile
"$LINENO"; then :
1866 ac_lo
=$ac_mid; break
1868 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1869 if test $ac_mid -le $ac_hi; then
1873 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1883 # Binary search between lo and hi bounds.
1884 while test "x$ac_lo" != "x$ac_hi"; do
1885 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1892 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1894 return test_array [0];
1900 if ac_fn_c_try_compile
"$LINENO"; then :
1903 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1908 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1915 static long int longval () { return $2; }
1916 static unsigned long int ulongval () { return $2; }
1923 FILE *f = fopen ("conftest.val", "w");
1928 long int i = longval ();
1931 fprintf (f, "%ld", i);
1935 unsigned long int i = ulongval ();
1938 fprintf (f, "%lu", i);
1940 /* Do not output a trailing newline, as this causes \r\n confusion
1941 on some platforms. */
1942 return ferror (f) || fclose (f) != 0;
1948 if ac_fn_c_try_run
"$LINENO"; then :
1949 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
1953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
1954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status
$ac_retval
1961 } # ac_fn_c_compute_int
1963 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1964 # ---------------------------------------------
1965 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1967 ac_fn_c_check_decl
()
1969 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1970 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1971 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1973 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1974 if eval \
${$3+:} false
; then :
1975 $as_echo_n "(cached) " >&6
1977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1983 #ifndef $as_decl_name
1985 (void) $as_decl_use;
1987 (void) $as_decl_name;
1995 if ac_fn_c_try_compile
"$LINENO"; then :
2000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 } # ac_fn_c_check_decl
2009 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2010 # -------------------------------------------
2011 # Tests whether TYPE exists after having included INCLUDES, setting cache
2012 # variable VAR accordingly.
2013 ac_fn_c_check_type
()
2015 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \
${$3+:} false
; then :
2019 $as_echo_n "(cached) " >&6
2022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2034 if ac_fn_c_try_compile
"$LINENO"; then :
2035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2047 if ac_fn_c_try_compile
"$LINENO"; then :
2052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_type
2062 cat >config.log
<<_ACEOF
2063 This file contains any messages produced by compilers while
2064 running configure, to aid debugging if configure makes a mistake.
2066 It was created by $as_me, which was
2067 generated by GNU Autoconf 2.69. Invocation command line was
2079 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2080 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2081 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2082 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2083 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2086 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2088 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2089 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2090 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2091 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2092 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2093 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2094 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir
=.
2103 $as_echo "PATH: $as_dir"
2119 # Keep a trace of the command line.
2120 # Strip out --no-create and --no-recursion so they do not pile up.
2121 # Strip out --silent because we don't want to record it for future runs.
2122 # Also quote any args containing shell meta-characters.
2123 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_must_keep_next
=false
2133 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2134 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2135 |
-silent |
--silent |
--silen |
--sile |
--sil)
2138 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2143 as_fn_append ac_configure_args1
" '$ac_arg'"
2144 if test $ac_must_keep_next = true
; then
2145 ac_must_keep_next
=false
# Got value, back to normal.
2148 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2149 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2150 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2151 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2152 case "$ac_configure_args0 " in
2153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156 -* ) ac_must_keep_next
=true
;;
2159 as_fn_append ac_configure_args
" '$ac_arg'"
2164 { ac_configure_args0
=; unset ac_configure_args0
;}
2165 { ac_configure_args1
=; unset ac_configure_args1
;}
2167 # When interrupted or exit'd, cleanup temporary files, and complete
2168 # config.log. We remove comments because anyway the quotes in there
2169 # would cause problems or look ugly.
2170 # WARNING: Use '\'' to represent an apostrophe within the trap.
2171 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2172 trap 'exit_status=$?
2173 # Save into config.log some information that might help in debugging.
2177 $as_echo "## ---------------- ##
2178 ## Cache variables. ##
2179 ## ---------------- ##"
2181 # The following way of writing the cache mishandles newlines in values,
2183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184 eval ac_val=\$$ac_var
2188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2192 _ | IFS | as_nl) ;; #(
2193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194 *) { eval $ac_var=; unset $ac_var;} ;;
2199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200 *${as_nl}ac_space=\ *)
2202 "s/'\''/'\''\\\\'\'''\''/g;
2203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2213 $as_echo "## ----------------- ##
2214 ## Output variables. ##
2215 ## ----------------- ##"
2217 for ac_var in $ac_subst_vars
2219 eval ac_val=\$$ac_var
2221 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 $as_echo "$ac_var='\''$ac_val'\''"
2227 if test -n "$ac_subst_files"; then
2228 $as_echo "## ------------------- ##
2229 ## File substitutions. ##
2230 ## ------------------- ##"
2232 for ac_var
in $ac_subst_files
2234 eval ac_val
=\$
$ac_var
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 $as_echo "$ac_var='\''$ac_val'\''"
2243 if test -s confdefs.h; then
2244 $as_echo "## ----------- ##
2251 test "$ac_signal" != 0 &&
2252 $as_echo "$as_me: caught signal $ac_signal"
2253 $as_echo "$as_me: exit $exit_status"
2255 rm -f core *.core core.conftest.* &&
2256 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2259 for ac_signal
in 1 2 13 15; do
2260 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2265 rm -f -r conftest
* confdefs.h
2267 $as_echo "/* confdefs.h */" > confdefs.h
2269 # Predefined preprocessor variables.
2271 cat >>confdefs.h
<<_ACEOF
2272 #define PACKAGE_NAME "$PACKAGE_NAME"
2275 cat >>confdefs.h
<<_ACEOF
2276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279 cat >>confdefs.h
<<_ACEOF
2280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2283 cat >>confdefs.h
<<_ACEOF
2284 #define PACKAGE_STRING "$PACKAGE_STRING"
2287 cat >>confdefs.h
<<_ACEOF
2288 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2291 cat >>confdefs.h
<<_ACEOF
2292 #define PACKAGE_URL "$PACKAGE_URL"
2296 # Let the site file select an alternate cache file if it wants to.
2297 # Prefer an explicitly selected file to automatically selected ones.
2300 if test -n "$CONFIG_SITE"; then
2301 # We do not want a PATH search for config.site.
2302 case $CONFIG_SITE in #((
2303 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2304 */*) ac_site_file1
=$CONFIG_SITE;;
2305 *) ac_site_file1
=.
/$CONFIG_SITE;;
2307 elif test "x$prefix" != xNONE
; then
2308 ac_site_file1
=$prefix/share
/config.site
2309 ac_site_file2
=$prefix/etc
/config.site
2311 ac_site_file1
=$ac_default_prefix/share
/config.site
2312 ac_site_file2
=$ac_default_prefix/etc
/config.site
2314 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2316 test "x$ac_site_file" = xNONE
&& continue
2317 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2319 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2320 sed 's/^/| /' "$ac_site_file" >&5
2322 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 as_fn_error $?
"failed to load site script $ac_site_file
2325 See \`config.log' for more details" "$LINENO" 5; }
2329 if test -r "$cache_file"; then
2330 # Some versions of bash will fail to source /dev/null (special files
2331 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2332 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2334 $as_echo "$as_me: loading cache $cache_file" >&6;}
2336 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2337 *) .
"./$cache_file";;
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2342 $as_echo "$as_me: creating cache $cache_file" >&6;}
2346 # Check that the precious variables saved in the cache have kept the same
2348 ac_cache_corrupted
=false
2349 for ac_var
in $ac_precious_vars; do
2350 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2351 eval ac_new_set
=\
$ac_env_${ac_var}_set
2352 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2353 eval ac_new_val
=\
$ac_env_${ac_var}_value
2354 case $ac_old_set,$ac_new_set in
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358 ac_cache_corrupted
=: ;;
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362 ac_cache_corrupted
=: ;;
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
2366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w
=`echo x $ac_old_val`
2368 ac_new_val_w
=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted
=:
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\
$ac_old_val
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2387 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 *) ac_arg
=$ac_var=$ac_new_val ;;
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2392 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2396 if $ac_cache_corrupted; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2408 ac_cpp
='$CPP $CPPFLAGS'
2409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2416 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2417 if test -f "$ac_dir/install-sh"; then
2419 ac_install_sh
="$ac_aux_dir/install-sh -c"
2421 elif test -f "$ac_dir/install.sh"; then
2423 ac_install_sh
="$ac_aux_dir/install.sh -c"
2425 elif test -f "$ac_dir/shtool"; then
2427 ac_install_sh
="$ac_aux_dir/shtool install -c"
2431 if test -z "$ac_aux_dir"; then
2432 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2435 # These three variables are undocumented and unsupported,
2436 # and are intended to be withdrawn in a future Autoconf release.
2437 # They can cause serious problems if a builder's source tree is in a directory
2438 # whose full name contains unusual characters.
2439 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2444 # Make sure we can run config.sub.
2445 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2446 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2449 $as_echo_n "checking build system type... " >&6; }
2450 if ${ac_cv_build+:} false
; then :
2451 $as_echo_n "(cached) " >&6
2453 ac_build_alias
=$build_alias
2454 test "x$ac_build_alias" = x
&&
2455 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2456 test "x$ac_build_alias" = x
&&
2457 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2458 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2459 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2463 $as_echo "$ac_cv_build" >&6; }
2464 case $ac_cv_build in
2466 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2469 ac_save_IFS
=$IFS; IFS
='-'
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2479 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2483 $as_echo_n "checking host system type... " >&6; }
2484 if ${ac_cv_host+:} false
; then :
2485 $as_echo_n "(cached) " >&6
2487 if test "x$host_alias" = x
; then
2488 ac_cv_host
=$ac_cv_build
2490 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2491 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2496 $as_echo "$ac_cv_host" >&6; }
2499 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2502 ac_save_IFS
=$IFS; IFS
='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522 # Check whether --with-gcc was given.
2523 if test "${with_gcc+set}" = set; then :
2529 if test "${srcdir}" != "." ; then
2530 V_INCLS
="-I\$(srcdir)"
2532 if test "${CFLAGS+set}" = set; then
2533 LBL_CFLAGS
="$CFLAGS"
2535 if test -z "$CC" ; then
2539 # Extract the first word of "shlicc2", so it can be a program name with args.
2540 set dummy shlicc2
; ac_word
=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if ${ac_cv_prog_SHLICC2+:} false
; then :
2544 $as_echo_n "(cached) " >&6
2546 if test -n "$SHLICC2"; then
2547 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
2549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir
=.
2554 for ac_exec_ext
in '' $ac_executable_extensions; do
2555 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_SHLICC2
="yes"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
2567 SHLICC2
=$ac_cv_prog_SHLICC2
2568 if test -n "$SHLICC2"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2570 $as_echo "$SHLICC2" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2577 if test $SHLICC2 = yes ; then
2584 if test -z "$CC" -a "$with_gcc" = no
; then
2590 ac_cpp
='$CPP $CPPFLAGS'
2591 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2596 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if ${ac_cv_prog_CC+:} false
; then :
2600 $as_echo_n "(cached) " >&6
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC
="$CC" # Let the user override the test.
2605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir
=.
2610 for ac_exec_ext
in '' $ac_executable_extensions; do
2611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2612 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 if test -n "$CC"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625 $as_echo "$CC" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2633 if test -z "$ac_cv_prog_CC"; then
2635 # Extract the first word of "gcc", so it can be a program name with args.
2636 set dummy gcc
; 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_ac_ct_CC+:} false
; then :
2640 $as_echo_n "(cached) " >&6
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC
="$ac_ct_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_ac_ct_CC
="gcc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665 $as_echo "$ac_ct_CC" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2671 if test "x$ac_ct_CC" = x
; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2678 ac_tool_warned
=yes ;;
2686 if test -z "$CC"; then
2687 if test -n "$ac_tool_prefix"; then
2688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2689 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_CC+:} false
; then :
2693 $as_echo_n "(cached) " >&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC
="$CC" # Let the user override the test.
2698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir
=.
2703 for ac_exec_ext
in '' $ac_executable_extensions; do
2704 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2727 if test -z "$CC"; then
2728 # Extract the first word of "cc", so it can be a program name with args.
2729 set dummy cc
; ac_word
=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false
; then :
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC
="$CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2747 ac_prog_rejected
=yes
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 if test $ac_prog_rejected = yes; then
2759 # We found a bogon in the path, so make sure we never use it.
2760 set dummy
$ac_cv_prog_CC
2762 if test $# != 0; then
2763 # We chose a different compiler from the bogus one.
2764 # However, it has the same basename, so the bogon will be chosen
2765 # first if we set CC to just the basename; use the full file name.
2767 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2773 if test -n "$CC"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775 $as_echo "$CC" >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2783 if test -z "$CC"; then
2784 if test -n "$ac_tool_prefix"; then
2785 for ac_prog
in cl.exe
2787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false
; then :
2792 $as_echo_n "(cached) " >&6
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC
="$CC" # Let the user override the test.
2797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir
=.
2802 for ac_exec_ext
in '' $ac_executable_extensions; do
2803 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2824 test -n "$CC" && break
2827 if test -z "$CC"; then
2829 for ac_prog
in cl.exe
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy
$ac_prog; ac_word
=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$ac_ct_CC"; then
2839 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_ac_ct_CC
="$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2859 if test -n "$ac_ct_CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861 $as_echo "$ac_ct_CC" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2868 test -n "$ac_ct_CC" && break
2871 if test "x$ac_ct_CC" = x
; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned
=yes ;;
2887 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889 as_fn_error $?
"no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details" "$LINENO" 5; }
2892 # Provide some information about the compiler.
2893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2896 for ac_option
in --version -v -V -qversion; do
2897 { { ac_try
="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
2906 if test -s conftest.err; then
2908 ... rest of stderr output deleted ...
2909 10q' conftest.err >conftest.er1
2910 cat conftest.er1 >&5
2912 rm -f conftest.er1 conftest.err
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2928 ac_clean_files_save=$ac_clean_files
2929 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2930 # Try to create an executable without -o first, disregard a.out.
2931 # It will help us diagnose broken compilers, and finding out an intuition
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2934 $as_echo_n "checking whether the C compiler works... " >&6; }
2935 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2937 # The possible output files:
2938 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2941 for ac_file in $ac_files
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2945 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2950 if { { ac_try="$ac_link_default"
2952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2953 *) ac_try_echo
=$ac_try;;
2955 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957 (eval "$ac_link_default") 2>&5
2959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960 test $ac_status = 0; }; then :
2961 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2962 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2963 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2964 # so that the user can short-circuit this test for compilers unknown to
2966 for ac_file
in $ac_files ''
2968 test -f "$ac_file" ||
continue
2970 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2973 # We found the default executable, but exeext='' is most
2977 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2979 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981 # We set ac_cv_exeext here because the later test for it is not
2982 # safe: cross compilers may not add the suffix if given an `-o'
2983 # argument, so we may need to know it at that point already.
2984 # Even if this section looks crufty: it has the advantage of
2991 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2996 if test -z "$ac_file"; then :
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 $as_echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.
$ac_ext >&5
3002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 as_fn_error
77 "C compiler cannot create executables
3005 See \`config.log' for more details" "$LINENO" 5; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3011 $as_echo_n "checking for C compiler default output file name... " >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3013 $as_echo "$ac_file" >&6; }
3014 ac_exeext
=$ac_cv_exeext
3016 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3017 ac_clean_files
=$ac_clean_files_save
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3019 $as_echo_n "checking for suffix of executables... " >&6; }
3020 if { { ac_try
="$ac_link"
3022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_link") 2>&5
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }; then :
3031 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3032 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3033 # work properly (i.e., refer to `conftest.exe'), while it won't with
3035 for ac_file
in conftest.exe conftest conftest.
*; do
3036 test -f "$ac_file" ||
continue
3038 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3039 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3048 See \`config.log' for more details" "$LINENO" 5; }
3050 rm -f conftest conftest
$ac_cv_exeext
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3052 $as_echo "$ac_cv_exeext" >&6; }
3054 rm -f conftest.
$ac_ext
3055 EXEEXT
=$ac_cv_exeext
3057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3063 FILE *f = fopen ("conftest.out", "w");
3064 return ferror (f) || fclose (f) != 0;
3070 ac_clean_files
="$ac_clean_files conftest.out"
3071 # Check that the compiler produces executables we can run. If not, either
3072 # the compiler is broken, or we cross compile.
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3074 $as_echo_n "checking whether we are cross compiling... " >&6; }
3075 if test "$cross_compiling" != yes; then
3076 { { ac_try
="$ac_link"
3078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link") 2>&5
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }
3087 if { ac_try='./conftest$ac_cv_exeext'
3088 { { case "(($ac_try" in
3089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3090 *) ac_try_echo
=$ac_try;;
3092 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_try") 2>&5
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; }; then
3100 if test "$cross_compiling" = maybe
; then
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 run C compiled programs.
3106 If you meant to cross compile, use \`--host'.
3107 See \`config.log' for more details" "$LINENO" 5; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3112 $as_echo "$cross_compiling" >&6; }
3114 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3115 ac_clean_files
=$ac_clean_files_save
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3117 $as_echo_n "checking for suffix of object files... " >&6; }
3118 if ${ac_cv_objext+:} false
; then :
3119 $as_echo_n "(cached) " >&6
3121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3132 rm -f conftest.o conftest.obj
3133 if { { ac_try
="$ac_compile"
3135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compile") 2>&5
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 for ac_file in conftest.o conftest.obj conftest.*; do
3145 test -f "$ac_file" || continue;
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3153 $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3159 See \
`config.log' for more details" "$LINENO" 5; }
3161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3164 $as_echo "$ac_cv_objext" >&6; }
3165 OBJEXT=$ac_cv_objext
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3168 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3169 if ${ac_cv_c_compiler_gnu+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3186 if ac_fn_c_try_compile "$LINENO"; then :
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3196 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3197 if test $ac_compiler_gnu = yes; then
3202 ac_test_CFLAGS=${CFLAGS+set}
3203 ac_save_CFLAGS=$CFLAGS
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3205 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3206 if ${ac_cv_prog_cc_g+:} false; then :
3207 $as_echo_n "(cached) " >&6
3209 ac_save_c_werror_flag=$ac_c_werror_flag
3210 ac_c_werror_flag=yes
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3224 if ac_fn_c_try_compile "$LINENO"; then :
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3239 if ac_fn_c_try_compile "$LINENO"; then :
3242 ac_c_werror_flag=$ac_save_c_werror_flag
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3255 if ac_fn_c_try_compile "$LINENO"; then :
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3266 $as_echo "$ac_cv_prog_cc_g" >&6; }
3267 if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3276 if test "$GCC" = yes; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3283 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3284 if ${ac_cv_prog_cc_c89+:} false; then :
3285 $as_echo_n "(cached) " >&6
3287 ac_cv_prog_cc_c89=no
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3294 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3295 struct buf { int x; };
3296 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3297 static char *e (p, i)
3303 static char *f (char * (*g) (char **, int), char **p, ...)
3308 s = g (p, va_arg (v,int));
3313 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3314 function prototypes and stuff, but not '\xHH' hex character constants.
3315 These don't provoke an error unfortunately, instead are silently treated
3316 as 'x'. The following induces an error, until -std is added to get
3317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3318 array size at least. It's necessary to write '\x00'==0 to get something
3319 that's true only with -std. */
3320 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3323 inside strings and character constants. */
3325 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327 int test (int i, double x);
3328 struct s1 {int (*f) (int a);};
3329 struct s2 {int (*f) (double a);};
3330 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3341 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3342 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344 CC="$ac_save_CC $ac_arg"
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_prog_cc_c89=$ac_arg
3348 rm -f core conftest.err conftest.$ac_objext
3349 test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 rm -f conftest.$ac_ext
3356 case "x$ac_cv_prog_cc_c89" in
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3359 $as_echo "none needed" >&6; } ;;
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3362 $as_echo "unsupported" >&6; } ;;
3364 CC="$CC $ac_cv_prog_cc_c89"
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3366 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3368 if test "x$ac_cv_prog_cc_c89" != xno; then :
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 if test "$GCC" = yes ; then
3383 if test "$SHLICC2" = yes ; then
3384 ac_cv_lbl_gcc_vers=2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
3388 $as_echo_n "checking gcc version... " >&6; }
3389 if ${ac_cv_lbl_gcc_vers+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
3393 sed -e '/^gcc version /!d' \
3394 -e 's/^gcc version //' \
3395 -e 's/ .*//' -e 's/^[^0-9]*//' \
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5
3400 $as_echo "$ac_cv_lbl_gcc_vers" >&6; }
3401 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5
3407 $as_echo_n "checking that $CC handles ansi prototypes... " >&6; }
3408 if ${ac_cv_lbl_cc_ansi_prototypes+:} false; then :
3409 $as_echo_n "(cached) " >&6
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414 #include <sys/types.h>
3418 int frob(int, char *)
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_lbl_cc_ansi_prototypes=yes
3426 ac_cv_lbl_cc_ansi_prototypes=no
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3432 $as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3433 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3438 $as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; }
3439 savedcflags="$CFLAGS"
3440 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3441 if ${ac_cv_lbl_cc_hpux_cc_aa+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <sys/types.h>
3450 int frob(int, char *)
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456 ac_cv_lbl_cc_hpux_cc_aa=yes
3458 ac_cv_lbl_cc_hpux_cc_aa=no
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3464 $as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3465 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3466 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3468 CFLAGS="$savedcflags"
3469 V_CCOPT="-Aa $V_CCOPT"
3471 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3477 $as_echo_n "checking for ansi mode in DEC compiler ($CC -std1)... " >&6; }
3478 savedcflags="$CFLAGS"
3480 if ${ac_cv_lbl_cc_osf1_cc_std1+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #include <sys/types.h>
3489 int frob(int, char *)
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_lbl_cc_osf1_cc_std1=yes
3497 ac_cv_lbl_cc_osf1_cc_std1=no
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3503 $as_echo "$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3504 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3505 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3507 CFLAGS="$savedcflags"
3508 V_CCOPT="-std1 $V_CCOPT"
3512 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3516 V_INCLS="$V_INCLS -I/usr/local/include"
3517 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3522 V_CCOPT="$V_CCOPT -xansi -signed -O"
3527 # Presumed to be DEC OSF/1, Digital UNIX, or
3530 V_CCOPT="$V_CCOPT -O"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3535 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3536 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541 #include <sys/types.h>
3545 struct a { int b; };
3546 void c(const struct a *)
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_lbl_cc_const_proto=yes
3554 ac_cv_lbl_cc_const_proto=no
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3560 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3561 if test $ac_cv_lbl_cc_const_proto = no ; then
3563 $as_echo "#define const /**/" >>confdefs.h
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3571 $as_echo_n "checking for inline... " >&6; }
3572 save_CFLAGS="$CFLAGS"
3574 if ${ac_cv_lbl_inline+:} false; then :
3575 $as_echo_n "(cached) " >&6
3580 for ac_lbl_inline in inline __inline__ __inline
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 #define inline $ac_lbl_inline
3585 static inline struct iltest *foo(void);
3591 static inline struct iltest *
3594 static struct iltest xxx;
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_lbl_cc_inline=yes
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 if test "$ac_lbl_cc_inline" = yes ; then
3614 if test "$ac_lbl_cc_inline" = yes ; then
3615 ac_cv_lbl_inline=$ac_lbl_inline
3619 CFLAGS="$save_CFLAGS"
3620 if test ! -z "$ac_cv_lbl_inline" ; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3622 $as_echo "$ac_cv_lbl_inline" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3628 cat >>confdefs.h <<_ACEOF
3629 #define inline $ac_cv_lbl_inline
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3634 $as_echo_n "checking for __attribute__... " >&6; }
3635 if ${ac_cv___attribute__+:} false; then :
3636 $as_echo_n "(cached) " >&6
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3645 static void foo(void) __attribute__ ((noreturn));
3654 main(int argc, char **argv)
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_cv___attribute__=yes
3663 ac_cv___attribute__=no
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 if test "$ac_cv___attribute__" = "yes"; then
3670 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3672 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3674 V_DEFS="$V_DEFS -D_U_=\"\""
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3677 $as_echo "$ac_cv___attribute__" >&6; }
3679 if test "$ac_cv___attribute__" = "yes"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be applied to function pointers" >&5
3682 $as_echo_n "checking whether __attribute__((format)) can be applied to function pointers... " >&6; }
3683 if ${ac_cv___attribute___format_function_pointer+:} false; then :
3684 $as_echo_n "(cached) " >&6
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3693 extern int (*foo)(const char *fmt, ...)
3694 __attribute__ ((format (printf, 1, 2)));
3697 main(int argc, char **argv)
3699 (*foo)("%s", "test");
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv___attribute___format_function_pointer=yes
3706 ac_cv___attribute___format_function_pointer=no
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3713 $as_echo "#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1" >>confdefs.h
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format_function_pointer" >&5
3717 $as_echo "$ac_cv___attribute___format_function_pointer" >&6; }
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3726 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3731 if test -z "$CPP"; then
3732 if ${ac_cv_prog_CPP+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 # Double quotes because CPP needs to be expanded
3736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3739 for ac_c_preproc_warn_flag in '' yes
3741 # Use a header file that comes with gcc, so configuring glibc
3742 # with a fresh cross-compiler works.
3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 # <limits.h> exists even on freestanding compilers.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3750 # include <limits.h>
3752 # include <assert.h>
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3759 # Broken: fails on valid input.
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <ac_nonexistent.h>
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771 # Broken: success on invalid input.
3774 # Passes both tests.
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.
$ac_ext
3783 if $ac_preproc_ok; then :
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3796 $as_echo "$CPP" >&6; }
3798 for ac_c_preproc_warn_flag
in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3809 # include <limits.h>
3811 # include <assert.h>
3815 if ac_fn_c_try_cpp
"$LINENO"; then :
3818 # Broken: fails on valid input.
3821 rm -f conftest.err conftest.i conftest.
$ac_ext
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3829 if ac_fn_c_try_cpp
"$LINENO"; then :
3830 # Broken: success on invalid input.
3833 # Passes both tests.
3837 rm -f conftest.err conftest.i conftest.
$ac_ext
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.
$ac_ext
3842 if $ac_preproc_ok; then :
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details" "$LINENO" 5; }
3852 ac_cpp
='$CPP $CPPFLAGS'
3853 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3859 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3860 if ${ac_cv_path_GREP+:} false
; then :
3861 $as_echo_n "(cached) " >&6
3863 if test -z "$GREP"; then
3864 ac_path_GREP_found
=false
3865 # Loop through the user's path and test for each of PROGNAME-LIST
3866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3867 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3870 test -z "$as_dir" && as_dir
=.
3871 for ac_prog
in grep ggrep
; do
3872 for ac_exec_ext
in '' $ac_executable_extensions; do
3873 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3874 as_fn_executable_p
"$ac_path_GREP" ||
continue
3875 # Check for GNU ac_path_GREP and select it if it is found.
3876 # Check for GNU $ac_path_GREP
3877 case `"$ac_path_GREP" --version 2>&1` in
3879 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3882 $as_echo_n 0123456789 >"conftest.in"
3885 cat "conftest.in" "conftest.in" >"conftest.tmp"
3886 mv "conftest.tmp" "conftest.in"
3887 cp "conftest.in" "conftest.nl"
3888 $as_echo 'GREP' >> "conftest.nl"
3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3890 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3891 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893 # Best one so far, save it but keep looking for a better one
3894 ac_cv_path_GREP
="$ac_path_GREP"
3895 ac_path_GREP_max
=$ac_count
3897 # 10*(2^10) chars as input seems more than enough
3898 test $ac_count -gt 10 && break
3900 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3903 $ac_path_GREP_found && break 3
3908 if test -z "$ac_cv_path_GREP"; then
3909 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3912 ac_cv_path_GREP
=$GREP
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3917 $as_echo "$ac_cv_path_GREP" >&6; }
3918 GREP
="$ac_cv_path_GREP"
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3922 $as_echo_n "checking for egrep... " >&6; }
3923 if ${ac_cv_path_EGREP+:} false
; then :
3924 $as_echo_n "(cached) " >&6
3926 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3927 then ac_cv_path_EGREP
="$GREP -E"
3929 if test -z "$EGREP"; then
3930 ac_path_EGREP_found
=false
3931 # Loop through the user's path and test for each of PROGNAME-LIST
3932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3933 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3936 test -z "$as_dir" && as_dir
=.
3937 for ac_prog
in egrep; do
3938 for ac_exec_ext
in '' $ac_executable_extensions; do
3939 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3940 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3941 # Check for GNU ac_path_EGREP and select it if it is found.
3942 # Check for GNU $ac_path_EGREP
3943 case `"$ac_path_EGREP" --version 2>&1` in
3945 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3948 $as_echo_n 0123456789 >"conftest.in"
3951 cat "conftest.in" "conftest.in" >"conftest.tmp"
3952 mv "conftest.tmp" "conftest.in"
3953 cp "conftest.in" "conftest.nl"
3954 $as_echo 'EGREP' >> "conftest.nl"
3955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3956 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3957 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3959 # Best one so far, save it but keep looking for a better one
3960 ac_cv_path_EGREP
="$ac_path_EGREP"
3961 ac_path_EGREP_max
=$ac_count
3963 # 10*(2^10) chars as input seems more than enough
3964 test $ac_count -gt 10 && break
3966 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3969 $ac_path_EGREP_found && break 3
3974 if test -z "$ac_cv_path_EGREP"; then
3975 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3978 ac_cv_path_EGREP
=$EGREP
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3984 $as_echo "$ac_cv_path_EGREP" >&6; }
3985 EGREP
="$ac_cv_path_EGREP"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3989 $as_echo_n "checking for ANSI C header files... " >&6; }
3990 if ${ac_cv_header_stdc+:} false
; then :
3991 $as_echo_n "(cached) " >&6
3993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4008 if ac_fn_c_try_compile
"$LINENO"; then :
4009 ac_cv_header_stdc
=yes
4011 ac_cv_header_stdc
=no
4013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4015 if test $ac_cv_header_stdc = yes; then
4016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "memchr" >/dev
/null
2>&1; then :
4026 ac_cv_header_stdc
=no
4032 if test $ac_cv_header_stdc = yes; then
4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev
/null
2>&1; then :
4043 ac_cv_header_stdc
=no
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then :
4054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 #if ((' ' & 0x0FF) == 0x020)
4059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4062 # define ISLOWER(c) \
4063 (('a' <= (c) && (c) <= 'i') \
4064 || ('j' <= (c) && (c) <= 'r') \
4065 || ('s' <= (c) && (c) <= 'z'))
4066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4074 for (i = 0; i < 256; i++)
4075 if (XOR (islower (i), ISLOWER (i))
4076 || toupper (i) != TOUPPER (i))
4081 if ac_fn_c_try_run
"$LINENO"; then :
4084 ac_cv_header_stdc
=no
4086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4093 $as_echo "$ac_cv_header_stdc" >&6; }
4094 if test $ac_cv_header_stdc = yes; then
4096 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4100 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4101 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4102 inttypes.h stdint.h unistd.h
4104 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4107 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4108 cat >>confdefs.h
<<_ACEOF
4109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4117 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
4119 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4121 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4122 cat >>confdefs.h
<<_ACEOF
4123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130 for ac_header
in net
/pfvar.h
4132 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4133 #include <sys/socket.h>
4136 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4137 cat >>confdefs.h
<<_ACEOF
4138 #define HAVE_NET_PFVAR_H 1
4145 if test "$ac_cv_header_net_pfvar_h" = yes; then
4146 LOCALSRC
="print-pflog.c $LOCALSRC"
4148 for ac_header
in netinet
/if_ether.h
4150 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4151 #include <sys/socket.h>
4153 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4154 cat >>confdefs.h
<<_ACEOF
4155 #define HAVE_NETINET_IF_ETHER_H 1
4162 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4164 # The simple test didn't work.
4165 # Do we need to include <net/if.h> first?
4166 # Unset ac_cv_header_netinet_if_ether_h so we don't
4167 # treat the previous failure as a cached value and
4168 # suppress the next test.
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4171 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4172 unset ac_cv_header_netinet_if_ether_h
4173 for ac_header
in netinet
/if_ether.h
4175 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4176 #include <sys/socket.h>
4177 #include <netinet/in.h>
4182 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4183 cat >>confdefs.h
<<_ACEOF
4184 #define HAVE_NETINET_IF_ETHER_H 1
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4194 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4195 if ${ac_cv_header_time+:} false
; then :
4196 $as_echo_n "(cached) " >&6
4198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/time.h>
4207 if ((struct tm *) 0)
4213 if ac_fn_c_try_compile
"$LINENO"; then :
4214 ac_cv_header_time
=yes
4216 ac_cv_header_time
=no
4218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4221 $as_echo "$ac_cv_header_time" >&6; }
4222 if test $ac_cv_header_time = yes; then
4224 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux kernel version" >&5
4233 $as_echo_n "checking Linux kernel version... " >&6; }
4234 if test "$cross_compiling" = yes; then
4235 if ${ac_cv_linux_vers+:} false
; then :
4236 $as_echo_n "(cached) " >&6
4238 ac_cv_linux_vers
=unknown
4242 if ${ac_cv_linux_vers+:} false
; then :
4243 $as_echo_n "(cached) " >&6
4245 ac_cv_linux_vers
=`uname -r 2>&1 | \
4246 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_vers" >&5
4251 $as_echo "$ac_cv_linux_vers" >&6; }
4252 if test $ac_cv_linux_vers = unknown
; then
4253 as_fn_error $?
"cannot determine linux version when cross-compiling" "$LINENO" 5
4255 if test $ac_cv_linux_vers -lt 2 ; then
4256 as_fn_error $?
"version 2 or higher required; see the INSTALL doc for more info" "$LINENO" 5
4266 # Check whether --with-smi was given.
4267 if test "${with_smi+set}" = set; then :
4274 if test "x$with_smi" != "xno" ; then
4275 for ac_header
in smi.h
4277 ac_fn_c_check_header_mongrel
"$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default"
4278 if test "x$ac_cv_header_smi_h" = xyes
; then :
4279 cat >>confdefs.h
<<_ACEOF
4280 #define HAVE_SMI_H 1
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5
4288 $as_echo_n "checking for smiInit in -lsmi... " >&6; }
4289 if ${ac_cv_lib_smi_smiInit+:} false
; then :
4290 $as_echo_n "(cached) " >&6
4292 ac_check_lib_save_LIBS
=$LIBS
4294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4297 /* Override any GCC internal prototype to avoid an error.
4298 Use char because int might match the return type of a GCC
4299 builtin and then its argument prototype would still apply. */
4312 if ac_fn_c_try_link
"$LINENO"; then :
4313 ac_cv_lib_smi_smiInit
=yes
4315 ac_cv_lib_smi_smiInit
=no
4317 rm -f core conftest.err conftest.
$ac_objext \
4318 conftest
$ac_exeext conftest.
$ac_ext
4319 LIBS
=$ac_check_lib_save_LIBS
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5
4322 $as_echo "$ac_cv_lib_smi_smiInit" >&6; }
4323 if test "x$ac_cv_lib_smi_smiInit" = xyes
; then :
4324 cat >>confdefs.h
<<_ACEOF
4325 #define HAVE_LIBSMI 1
4332 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5
4335 $as_echo_n "checking whether to enable libsmi... " >&6; }
4336 if test "$cross_compiling" = yes; then :
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5
4338 $as_echo "not when cross-compiling" >&6; }
4342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 /* libsmi available check */
4348 int current, revision, age, n;
4349 const int required = 2;
4352 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4354 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4357 if (required < current - age || required > current)
4363 if ac_fn_c_try_run
"$LINENO"; then :
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4366 $as_echo "#define LIBSMI 1" >>confdefs.h
4371 1) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5
4372 $as_echo "no - smiInit failed" >&6; } ;;
4373 2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5
4374 $as_echo "no - header/library version mismatch" >&6; } ;;
4375 3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5
4376 $as_echo "no - can't determine library version" >&6; } ;;
4377 4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5
4378 $as_echo "no - too old" >&6; } ;;
4379 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; } ;;
4384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5
4392 $as_echo_n "checking whether to enable the possibly-buggy SMB printer... " >&6; }
4393 # Check whether --enable-smb was given.
4394 if test "${enable_smb+set}" = set; then :
4395 enableval
=$enable_smb;
4400 case "$enableval" in
4401 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4404 $as_echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4405 $as_echo "#define TCPDUMP_DO_SMB 1" >>confdefs.h
4407 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
4409 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4415 # Check whether --with-user was given.
4416 if test "${with_user+set}" = set; then :
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5
4421 $as_echo_n "checking whether to drop root privileges by default... " >&6; }
4422 if test ! -z "$with_user" ; then
4423 cat >>confdefs.h
<<_ACEOF
4424 #define WITH_USER "$withval"
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
4428 $as_echo "to \"$withval\"" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 # Check whether --with-chroot was given.
4436 if test "${with_chroot+set}" = set; then :
4437 withval
=$with_chroot;
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5
4441 $as_echo_n "checking whether to chroot... " >&6; }
4442 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4443 cat >>confdefs.h
<<_ACEOF
4444 #define WITH_CHROOT "$withval"
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
4448 $as_echo "to \"$withval\"" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
4455 $as_echo_n "checking whether to enable ipv6... " >&6; }
4456 # Check whether --enable-ipv6 was given.
4457 if test "${enable_ipv6+set}" = set; then :
4458 enableval
=$enable_ipv6; case "$enableval" in
4459 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 $as_echo "yes" >&6; }
4461 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4462 $as_echo "#define INET6 1" >>confdefs.h
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4473 if test "$cross_compiling" = yes; then :
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 /* AF_INET6 available check */
4482 #include <sys/types.h>
4483 #include <sys/socket.h>
4486 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4493 if ac_fn_c_try_run
"$LINENO"; then :
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495 $as_echo "yes" >&6; }
4496 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4497 $as_echo "#define INET6 1" >>confdefs.h
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4516 if test "$ipv6" = "yes"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
4518 $as_echo_n "checking ipv6 stack type... " >&6; }
4519 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
4522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <netinet/in.h>
4525 #ifdef IPV6_INRIA_VERSION
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 $EGREP "yes" >/dev
/null
2>&1; then :
4532 CFLAGS
="-DINET6 $CFLAGS"
4538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #include <netinet/in.h>
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 $EGREP "yes" >/dev
/null
2>&1; then :
4549 ipv6libdir
=/usr
/local
/v
6/lib
;
4551 CFLAGS
="-DINET6 $CFLAGS"
4557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <features.h>
4560 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "yes" >/dev
/null
2>&1; then :
4567 CFLAGS
="-DINET6 $CFLAGS"
4573 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
4576 ipv6libdir
=/usr
/inet
6/lib
4578 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
4582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <sys/param.h>
4585 #ifdef _TOSHIBA_INET6
4589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590 $EGREP "yes" >/dev
/null
2>&1; then :
4593 ipv6libdir
=/usr
/local
/v
6/lib
;
4594 CFLAGS
="-DINET6 $CFLAGS"
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include </usr/local/v6/include/sys/v6config.h>
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "yes" >/dev
/null
2>&1; then :
4611 ipv6libdir
=/usr
/local
/v
6/lib
;
4612 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
4618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <sys/param.h>
4621 #ifdef _ZETA_MINAMI_INET6
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "yes" >/dev
/null
2>&1; then :
4629 ipv6libdir
=/usr
/local
/v
6/lib
;
4630 CFLAGS
="-DINET6 $CFLAGS"
4636 if test "$ipv6type" != "unknown"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
4641 $as_echo "$ipv6type" >&6; }
4644 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4645 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4646 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4647 echo "You have $ipv6lib library, using it"
4649 if test "$ipv6trylibc" = "yes"; then
4650 echo "You do not have $ipv6lib library, using libc"
4652 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4653 echo "You need to fetch lib$ipv6lib.a from appropriate"
4654 echo 'ipv6 kit and compile beforehand.'
4661 if test "$ipv6" = "yes"; then
4663 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4664 # function in libc; there are "ngetaddrinfo()" and
4665 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4666 # "getaddrinfo" to be either "ngetaddrinfo" or
4667 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4668 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4670 # So this test doesn't work on Tru64 5.1, and possibly
4671 # on other 5.x releases. This causes the configure
4672 # script to become confused, and results in libpcap
4673 # being unbuildable.
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
4676 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
4677 if ${ac_cv_search_getaddrinfo+:} false
; then :
4678 $as_echo_n "(cached) " >&6
4680 ac_func_search_save_LIBS
=$LIBS
4681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4684 /* Override any GCC internal prototype to avoid an error.
4685 Use char because int might match the return type of a GCC
4686 builtin and then its argument prototype would still apply. */
4690 char getaddrinfo ();
4694 return getaddrinfo ();
4699 for ac_lib
in '' socket
; do
4700 if test -z "$ac_lib"; then
4701 ac_res
="none required"
4704 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4706 if ac_fn_c_try_link
"$LINENO"; then :
4707 ac_cv_search_getaddrinfo
=$ac_res
4709 rm -f core conftest.err conftest.
$ac_objext \
4711 if ${ac_cv_search_getaddrinfo+:} false
; then :
4715 if ${ac_cv_search_getaddrinfo+:} false
; then :
4718 ac_cv_search_getaddrinfo
=no
4721 LIBS
=$ac_func_search_save_LIBS
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
4724 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
4725 ac_res
=$ac_cv_search_getaddrinfo
4726 if test "$ac_res" != no
; then :
4727 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
4729 $as_echo_n "checking getaddrinfo bug... " >&6; }
4730 if ${td_cv_buggygetaddrinfo+:} false
; then :
4731 $as_echo_n "(cached) " >&6
4733 if test "$cross_compiling" = yes; then :
4734 td_cv_buggygetaddrinfo
=yes
4736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4739 #include <sys/types.h>
4742 #include <sys/socket.h>
4743 #include <netinet/in.h>
4747 int passive, gaierr, inet4 = 0, inet6 = 0;
4748 struct addrinfo hints, *ai, *aitop;
4749 char straddr[INET6_ADDRSTRLEN], strport[16];
4751 for (passive = 0; passive <= 1; passive++) {
4752 memset(&hints, 0, sizeof(hints));
4753 hints.ai_family = AF_UNSPEC;
4754 hints.ai_flags = passive ? AI_PASSIVE : 0;
4755 hints.ai_socktype = SOCK_STREAM;
4756 hints.ai_protocol = IPPROTO_TCP;
4757 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4758 (void)gai_strerror(gaierr);
4761 for (ai = aitop; ai; ai = ai->ai_next) {
4762 if (ai->ai_addr == NULL ||
4763 ai->ai_addrlen == 0 ||
4764 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4765 straddr, sizeof(straddr), strport, sizeof(strport),
4766 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4769 switch (ai->ai_family) {
4771 if (strcmp(strport, "54321") != 0) {
4775 if (strcmp(straddr, "0.0.0.0") != 0) {
4779 if (strcmp(straddr, "127.0.0.1") != 0) {
4786 if (strcmp(strport, "54321") != 0) {
4790 if (strcmp(straddr, "::") != 0) {
4794 if (strcmp(straddr, "::1") != 0) {
4811 /* another family support? */
4817 /* supported family should be 2, unsupported family should be 0 */
4818 if (!(inet4 == 0 || inet4 == 2))
4820 if (!(inet6 == 0 || inet6 == 2))
4824 freeaddrinfo(aitop);
4829 freeaddrinfo(aitop);
4834 if ac_fn_c_try_run
"$LINENO"; then :
4835 td_cv_buggygetaddrinfo
=no
4837 td_cv_buggygetaddrinfo
=yes
4839 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4840 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4845 if test "$td_cv_buggygetaddrinfo" = no
; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
4847 $as_echo "good" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
4850 $as_echo "buggy" >&6; }
4853 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4855 # XXX - it doesn't appear that "ipv6type" can ever be
4856 # set to "linux". Should this be testing for
4857 # "linux-glibc", or for that *or* "linux-libinet6"?
4858 # If the latter, note that "linux-libinet6" is also
4859 # the type given to some non-Linux OSes.
4861 if test "$ipv6type" != "linux"; then
4862 echo 'Fatal: You must get working getaddrinfo() function.'
4863 echo ' or you can specify "--disable-ipv6"'.
4866 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4867 echo ' Better upgrade your system library to newest version'
4868 echo ' of GNU C library (aka glibc).'
4874 ac_fn_c_check_func
"$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
4875 if test "x$ac_cv_func_getnameinfo" = xyes
; then :
4876 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
4879 case " $LIBOBJS " in
4880 *" getnameinfo.$ac_objext "* ) ;;
4881 *) LIBOBJS
="$LIBOBJS getnameinfo.$ac_objext"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4891 $as_echo_n "checking for dnet_htoa declaration in netdnet/dnetdb.h... " >&6; }
4892 if ${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+:} false
; then :
4893 $as_echo_n "(cached) " >&6
4895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #include <netdnet/dnetdb.h>
4900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4901 $EGREP "dnet_htoa" >/dev
/null
2>&1; then :
4902 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4904 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4910 $as_echo "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
4911 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4912 $as_echo "#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1" >>confdefs.h
4916 # The cast to long int works around a bug in the HP C Compiler
4917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4919 # This bug is HP SR number 8606223364.
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4921 $as_echo_n "checking size of char... " >&6; }
4922 if ${ac_cv_sizeof_char+:} false
; then :
4923 $as_echo_n "(cached) " >&6
4925 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
4928 if test "$ac_cv_type_char" = yes; then
4929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4931 as_fn_error
77 "cannot compute sizeof (char)
4932 See \`config.log' for more details" "$LINENO" 5; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4940 $as_echo "$ac_cv_sizeof_char" >&6; }
4944 cat >>confdefs.h
<<_ACEOF
4945 #define SIZEOF_CHAR $ac_cv_sizeof_char
4949 # The cast to long int works around a bug in the HP C Compiler
4950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4952 # This bug is HP SR number 8606223364.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4954 $as_echo_n "checking size of short... " >&6; }
4955 if ${ac_cv_sizeof_short+:} false
; then :
4956 $as_echo_n "(cached) " >&6
4958 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4961 if test "$ac_cv_type_short" = yes; then
4962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error
77 "cannot compute sizeof (short)
4965 See \`config.log' for more details" "$LINENO" 5; }
4967 ac_cv_sizeof_short
=0
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4973 $as_echo "$ac_cv_sizeof_short" >&6; }
4977 cat >>confdefs.h
<<_ACEOF
4978 #define SIZEOF_SHORT $ac_cv_sizeof_short
4982 # The cast to long int works around a bug in the HP C Compiler
4983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4985 # This bug is HP SR number 8606223364.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4987 $as_echo_n "checking size of int... " >&6; }
4988 if ${ac_cv_sizeof_int+:} false
; then :
4989 $as_echo_n "(cached) " >&6
4991 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4994 if test "$ac_cv_type_int" = yes; then
4995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4997 as_fn_error
77 "cannot compute sizeof (int)
4998 See \`config.log' for more details" "$LINENO" 5; }
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5006 $as_echo "$ac_cv_sizeof_int" >&6; }
5010 cat >>confdefs.h
<<_ACEOF
5011 #define SIZEOF_INT $ac_cv_sizeof_int
5015 # The cast to long int works around a bug in the HP C Compiler
5016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5018 # This bug is HP SR number 8606223364.
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5020 $as_echo_n "checking size of long... " >&6; }
5021 if ${ac_cv_sizeof_long+:} false
; then :
5022 $as_echo_n "(cached) " >&6
5024 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5027 if test "$ac_cv_type_long" = yes; then
5028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5030 as_fn_error
77 "cannot compute sizeof (long)
5031 See \`config.log' for more details" "$LINENO" 5; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5039 $as_echo "$ac_cv_sizeof_long" >&6; }
5043 cat >>confdefs.h
<<_ACEOF
5044 #define SIZEOF_LONG $ac_cv_sizeof_long
5048 # The cast to long int works around a bug in the HP C Compiler
5049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5051 # This bug is HP SR number 8606223364.
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5053 $as_echo_n "checking size of long long... " >&6; }
5054 if ${ac_cv_sizeof_long_long+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5060 if test "$ac_cv_type_long_long" = yes; then
5061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5063 as_fn_error
77 "cannot compute sizeof (long long)
5064 See \`config.log' for more details" "$LINENO" 5; }
5066 ac_cv_sizeof_long_long
=0
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5072 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5076 cat >>confdefs.h
<<_ACEOF
5077 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
5084 $as_echo_n "checking for addrinfo... " >&6; }
5085 if ${ac_cv_addrinfo+:} false
; then :
5086 $as_echo_n "(cached) " >&6
5088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5100 if ac_fn_c_try_compile
"$LINENO"; then :
5105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_addrinfo" >&5
5109 $as_echo "$ac_cv_addrinfo" >&6; }
5110 if test $ac_cv_addrinfo = yes; then
5111 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
5114 $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
5118 if test "$ac_cv_addrinfo" = no
; then
5119 missing_includes
=yes
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_MAXSERV" >&5
5124 $as_echo_n "checking for NI_MAXSERV... " >&6; }
5125 if ${ac_cv_maxserv+:} false
; then :
5126 $as_echo_n "(cached) " >&6
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 $EGREP "yes" >/dev
/null
2>&1; then :
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_maxserv" >&5
5146 $as_echo "$ac_cv_maxserv" >&6; }
5147 if test $ac_cv_maxserv != yes; then
5148 $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
5152 if test "$ac_cv_maxserv" = no
; then
5153 missing_includes
=yes
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_NAMEREQD" >&5
5158 $as_echo_n "checking for NI_NAMEREQD... " >&6; }
5159 if ${ac_cv_namereqd+:} false
; then :
5160 $as_echo_n "(cached) " >&6
5162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170 $EGREP "yes" >/dev
/null
2>&1; then :
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namereqd" >&5
5180 $as_echo "$ac_cv_namereqd" >&6; }
5181 if test $ac_cv_namereqd != yes; then
5182 $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
5186 if test "$ac_cv_namereqd" = no
; then
5187 missing_includes
=yes
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
5192 $as_echo_n "checking for sockaddr_storage... " >&6; }
5193 if ${ac_cv_sa_storage+:} false
; then :
5194 $as_echo_n "(cached) " >&6
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5199 # include <sys/types.h>
5200 # include <sys/socket.h>
5204 struct sockaddr_storage s
5209 if ac_fn_c_try_compile
"$LINENO"; then :
5210 ac_cv_sa_storage
=yes
5214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sa_storage" >&5
5218 $as_echo "$ac_cv_sa_storage" >&6; }
5219 if test $ac_cv_sa_storage = yes; then
5220 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
5224 if test "$ac_cv_sa_storage" = no
; then
5225 missing_includes
=yes
5228 ac_fn_c_check_func
"$LINENO" "vfprintf" "ac_cv_func_vfprintf"
5229 if test "x$ac_cv_func_vfprintf" = xyes
; then :
5230 $as_echo "#define HAVE_VFPRINTF 1" >>confdefs.h
5233 case " $LIBOBJS " in
5234 *" vfprintf.$ac_objext "* ) ;;
5235 *) LIBOBJS
="$LIBOBJS vfprintf.$ac_objext"
5241 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
5242 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
5243 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
5246 case " $LIBOBJS " in
5247 *" strcasecmp.$ac_objext "* ) ;;
5248 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext"
5254 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
5255 if test "x$ac_cv_func_strlcat" = xyes
; then :
5256 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
5259 case " $LIBOBJS " in
5260 *" strlcat.$ac_objext "* ) ;;
5261 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
5267 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5268 if test "x$ac_cv_func_strlcpy" = xyes
; then :
5269 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
5272 case " $LIBOBJS " in
5273 *" strlcpy.$ac_objext "* ) ;;
5274 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
5280 ac_fn_c_check_func
"$LINENO" "strdup" "ac_cv_func_strdup"
5281 if test "x$ac_cv_func_strdup" = xyes
; then :
5282 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
5285 case " $LIBOBJS " in
5286 *" strdup.$ac_objext "* ) ;;
5287 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
5293 ac_fn_c_check_func
"$LINENO" "strsep" "ac_cv_func_strsep"
5294 if test "x$ac_cv_func_strsep" = xyes
; then :
5295 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
5298 case " $LIBOBJS " in
5299 *" strsep.$ac_objext "* ) ;;
5300 *) LIBOBJS
="$LIBOBJS strsep.$ac_objext"
5307 for ac_func
in fork vfork strftime
5309 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5310 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5311 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5312 cat >>confdefs.h
<<_ACEOF
5313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5319 for ac_func
in setlinebuf alarm
5321 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5322 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5323 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5324 cat >>confdefs.h
<<_ACEOF
5325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5333 for ac_func
in vsnprintf snprintf
5335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5336 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5337 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5338 cat >>confdefs.h
<<_ACEOF
5339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5347 if test $needsnprintf = yes; then
5348 case " $LIBOBJS " in
5349 *" snprintf.$ac_objext "* ) ;;
5350 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5358 $as_echo_n "checking return type of signal handlers... " >&6; }
5359 if ${ac_cv_type_signal+:} false
; then :
5360 $as_echo_n "(cached) " >&6
5362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <sys/types.h>
5370 return *(signal (0, 0)) (0) == 1;
5375 if ac_fn_c_try_compile
"$LINENO"; then :
5376 ac_cv_type_signal
=int
5378 ac_cv_type_signal
=void
5380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5383 $as_echo "$ac_cv_type_signal" >&6; }
5385 cat >>confdefs.h
<<_ACEOF
5386 #define RETSIGTYPE $ac_cv_type_signal
5390 if test "$ac_cv_type_signal" = void
; then
5392 $as_echo "#define RETSIGVAL /**/" >>confdefs.h
5396 $as_echo "#define RETSIGVAL (0)" >>confdefs.h
5403 $as_echo "#define _BSD_SIGNALS 1" >>confdefs.h
5408 for ac_func
in sigaction
5410 ac_fn_c_check_func
"$LINENO" "sigaction" "ac_cv_func_sigaction"
5411 if test "x$ac_cv_func_sigaction" = xyes
; then :
5412 cat >>confdefs.h
<<_ACEOF
5413 #define HAVE_SIGACTION 1
5419 if test $ac_cv_func_sigaction = no
; then
5420 for ac_func
in sigset
5422 ac_fn_c_check_func
"$LINENO" "sigset" "ac_cv_func_sigset"
5423 if test "x$ac_cv_func_sigset" = xyes
; then :
5424 cat >>confdefs.h
<<_ACEOF
5425 #define HAVE_SIGSET 1
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dnet_htoa" >&5
5436 $as_echo_n "checking for library containing dnet_htoa... " >&6; }
5437 if ${ac_cv_search_dnet_htoa+:} false
; then :
5438 $as_echo_n "(cached) " >&6
5440 ac_func_search_save_LIBS
=$LIBS
5441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5444 /* Override any GCC internal prototype to avoid an error.
5445 Use char because int might match the return type of a GCC
5446 builtin and then its argument prototype would still apply. */
5454 return dnet_htoa ();
5459 for ac_lib
in '' dnet
; do
5460 if test -z "$ac_lib"; then
5461 ac_res
="none required"
5464 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5466 if ac_fn_c_try_link
"$LINENO"; then :
5467 ac_cv_search_dnet_htoa
=$ac_res
5469 rm -f core conftest.err conftest.
$ac_objext \
5471 if ${ac_cv_search_dnet_htoa+:} false
; then :
5475 if ${ac_cv_search_dnet_htoa+:} false
; then :
5478 ac_cv_search_dnet_htoa
=no
5481 LIBS
=$ac_func_search_save_LIBS
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dnet_htoa" >&5
5484 $as_echo "$ac_cv_search_dnet_htoa" >&6; }
5485 ac_res
=$ac_cv_search_dnet_htoa
5486 if test "$ac_res" != no
; then :
5487 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5488 $as_echo "#define HAVE_DNET_HTOA 1" >>confdefs.h
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5
5494 $as_echo_n "checking for main in -lrpc... " >&6; }
5495 if ${ac_cv_lib_rpc_main+:} false
; then :
5496 $as_echo_n "(cached) " >&6
5498 ac_check_lib_save_LIBS
=$LIBS
5500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5512 if ac_fn_c_try_link
"$LINENO"; then :
5513 ac_cv_lib_rpc_main
=yes
5515 ac_cv_lib_rpc_main
=no
5517 rm -f core conftest.err conftest.
$ac_objext \
5518 conftest
$ac_exeext conftest.
$ac_ext
5519 LIBS
=$ac_check_lib_save_LIBS
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5
5522 $as_echo "$ac_cv_lib_rpc_main" >&6; }
5523 if test "x$ac_cv_lib_rpc_main" = xyes
; then :
5524 cat >>confdefs.h
<<_ACEOF
5525 #define HAVE_LIBRPC 1
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5
5533 $as_echo_n "checking for library containing getrpcbynumber... " >&6; }
5534 if ${ac_cv_search_getrpcbynumber+:} false
; then :
5535 $as_echo_n "(cached) " >&6
5537 ac_func_search_save_LIBS
=$LIBS
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5541 /* Override any GCC internal prototype to avoid an error.
5542 Use char because int might match the return type of a GCC
5543 builtin and then its argument prototype would still apply. */
5547 char getrpcbynumber ();
5551 return getrpcbynumber ();
5556 for ac_lib
in '' nsl
; do
5557 if test -z "$ac_lib"; then
5558 ac_res
="none required"
5561 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5563 if ac_fn_c_try_link
"$LINENO"; then :
5564 ac_cv_search_getrpcbynumber
=$ac_res
5566 rm -f core conftest.err conftest.
$ac_objext \
5568 if ${ac_cv_search_getrpcbynumber+:} false
; then :
5572 if ${ac_cv_search_getrpcbynumber+:} false
; then :
5575 ac_cv_search_getrpcbynumber
=no
5578 LIBS
=$ac_func_search_save_LIBS
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5
5581 $as_echo "$ac_cv_search_getrpcbynumber" >&6; }
5582 ac_res
=$ac_cv_search_getrpcbynumber
5583 if test "$ac_res" != no
; then :
5584 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5585 $as_echo "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h
5592 # Most operating systems have gethostbyname() in the default searched
5593 # libraries (i.e. libc):
5594 # Some OSes (eg. Solaris) place it in libnsl
5595 # Some strange OSes (SINIX) have it in libsocket:
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5597 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5598 if ${ac_cv_search_gethostbyname+:} false
; then :
5599 $as_echo_n "(cached) " >&6
5601 ac_func_search_save_LIBS
=$LIBS
5602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5605 /* Override any GCC internal prototype to avoid an error.
5606 Use char because int might match the return type of a GCC
5607 builtin and then its argument prototype would still apply. */
5611 char gethostbyname ();
5615 return gethostbyname ();
5620 for ac_lib
in '' nsl socket resolv
; do
5621 if test -z "$ac_lib"; then
5622 ac_res
="none required"
5625 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5627 if ac_fn_c_try_link
"$LINENO"; then :
5628 ac_cv_search_gethostbyname
=$ac_res
5630 rm -f core conftest.err conftest.
$ac_objext \
5632 if ${ac_cv_search_gethostbyname+:} false
; then :
5636 if ${ac_cv_search_gethostbyname+:} false
; then :
5639 ac_cv_search_gethostbyname
=no
5642 LIBS
=$ac_func_search_save_LIBS
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5645 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5646 ac_res
=$ac_cv_search_gethostbyname
5647 if test "$ac_res" != no
; then :
5648 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5652 # Unfortunately libsocket sometimes depends on libnsl and
5653 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5654 if test "$ac_cv_search_gethostbyname" = "no"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5657 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5658 if ${ac_cv_lib_socket_gethostbyname+:} false
; then :
5659 $as_echo_n "(cached) " >&6
5661 ac_check_lib_save_LIBS
=$LIBS
5662 LIBS
="-lsocket -lnsl $LIBS"
5663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5666 /* Override any GCC internal prototype to avoid an error.
5667 Use char because int might match the return type of a GCC
5668 builtin and then its argument prototype would still apply. */
5672 char gethostbyname ();
5676 return gethostbyname ();
5681 if ac_fn_c_try_link
"$LINENO"; then :
5682 ac_cv_lib_socket_gethostbyname
=yes
5684 ac_cv_lib_socket_gethostbyname
=no
5686 rm -f core conftest.err conftest.
$ac_objext \
5687 conftest
$ac_exeext conftest.
$ac_ext
5688 LIBS
=$ac_check_lib_save_LIBS
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5691 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5692 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
; then :
5693 LIBS
="-lsocket -lnsl $LIBS"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5698 $as_echo_n "checking for library containing socket... " >&6; }
5699 if ${ac_cv_search_socket+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 ac_func_search_save_LIBS
=$LIBS
5703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5706 /* Override any GCC internal prototype to avoid an error.
5707 Use char because int might match the return type of a GCC
5708 builtin and then its argument prototype would still apply. */
5721 for ac_lib
in '' socket
; do
5722 if test -z "$ac_lib"; then
5723 ac_res
="none required"
5726 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5728 if ac_fn_c_try_link
"$LINENO"; then :
5729 ac_cv_search_socket
=$ac_res
5731 rm -f core conftest.err conftest.
$ac_objext \
5733 if ${ac_cv_search_socket+:} false
; then :
5737 if ${ac_cv_search_socket+:} false
; then :
5740 ac_cv_search_socket
=no
5743 LIBS
=$ac_func_search_save_LIBS
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5746 $as_echo "$ac_cv_search_socket" >&6; }
5747 ac_res
=$ac_cv_search_socket
5748 if test "$ac_res" != no
; then :
5749 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5753 $as_echo_n "checking for socket in -lsocket... " >&6; }
5754 if ${ac_cv_lib_socket_socket+:} false
; then :
5755 $as_echo_n "(cached) " >&6
5757 ac_check_lib_save_LIBS
=$LIBS
5758 LIBS
="-lsocket -lnsl $LIBS"
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5762 /* Override any GCC internal prototype to avoid an error.
5763 Use char because int might match the return type of a GCC
5764 builtin and then its argument prototype would still apply. */
5777 if ac_fn_c_try_link
"$LINENO"; then :
5778 ac_cv_lib_socket_socket
=yes
5780 ac_cv_lib_socket_socket
=no
5782 rm -f core conftest.err conftest.
$ac_objext \
5783 conftest
$ac_exeext conftest.
$ac_ext
5784 LIBS
=$ac_check_lib_save_LIBS
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5787 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5788 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
5789 LIBS
="-lsocket -lnsl $LIBS"
5794 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5796 $as_echo_n "checking for library containing putmsg... " >&6; }
5797 if ${ac_cv_search_putmsg+:} false
; then :
5798 $as_echo_n "(cached) " >&6
5800 ac_func_search_save_LIBS
=$LIBS
5801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5804 /* Override any GCC internal prototype to avoid an error.
5805 Use char because int might match the return type of a GCC
5806 builtin and then its argument prototype would still apply. */
5819 for ac_lib
in '' str
; do
5820 if test -z "$ac_lib"; then
5821 ac_res
="none required"
5824 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5826 if ac_fn_c_try_link
"$LINENO"; then :
5827 ac_cv_search_putmsg
=$ac_res
5829 rm -f core conftest.err conftest.
$ac_objext \
5831 if ${ac_cv_search_putmsg+:} false
; then :
5835 if ${ac_cv_search_putmsg+:} false
; then :
5838 ac_cv_search_putmsg
=no
5841 LIBS
=$ac_func_search_save_LIBS
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5844 $as_echo "$ac_cv_search_putmsg" >&6; }
5845 ac_res
=$ac_cv_search_putmsg
5846 if test "$ac_res" != no
; then :
5847 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5854 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
5855 if test -f $pfopen ; then
5856 for ac_func
in pfopen
5858 ac_fn_c_check_func
"$LINENO" "pfopen" "ac_cv_func_pfopen"
5859 if test "x$ac_cv_func_pfopen" = xyes
; then :
5860 cat >>confdefs.h
<<_ACEOF
5861 #define HAVE_PFOPEN 1
5867 if test $ac_cv_func_pfopen = "no" ; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5
5869 $as_echo "Using $pfopen" >&6; }
5870 LIBS
="$LIBS $pfopen"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5
5874 $as_echo_n "checking for local pcap library... " >&6; }
5877 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
5878 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
5879 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
5880 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
5881 sed -e 's/-PRE-GIT$//' `
5882 if test $lastdir = $basedir ; then
5886 if test -r $dir/libpcap.a
; then
5887 libpcap
=$dir/libpcap.a
5891 if test $libpcap = FAIL
; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5893 $as_echo "not found" >&6; }
5896 # Look for pcap-config.
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
5900 set dummy
${ac_tool_prefix}pcap-config
; ac_word
=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_path_PCAP_CONFIG+:} false
; then :
5904 $as_echo_n "(cached) " >&6
5906 case $PCAP_CONFIG in
5908 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
5911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir
=.
5916 for ac_exec_ext
in '' $ac_executable_extensions; do
5917 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
5930 if test -n "$PCAP_CONFIG"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
5932 $as_echo "$PCAP_CONFIG" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5940 if test -z "$ac_cv_path_PCAP_CONFIG"; then
5941 ac_pt_PCAP_CONFIG
=$PCAP_CONFIG
5942 # Extract the first word of "pcap-config", so it can be a program name with args.
5943 set dummy pcap-config
; ac_word
=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false
; then :
5947 $as_echo_n "(cached) " >&6
5949 case $ac_pt_PCAP_CONFIG in
5951 ac_cv_path_ac_pt_PCAP_CONFIG
="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
5954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir
=.
5959 for ac_exec_ext
in '' $ac_executable_extensions; do
5960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_path_ac_pt_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 ac_pt_PCAP_CONFIG
=$ac_cv_path_ac_pt_PCAP_CONFIG
5973 if test -n "$ac_pt_PCAP_CONFIG"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
5975 $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5981 if test "x$ac_pt_PCAP_CONFIG" = x
; then
5984 case $cross_compiling:$ac_tool_warned in
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned
=yes ;;
5990 PCAP_CONFIG
=$ac_pt_PCAP_CONFIG
5993 PCAP_CONFIG
="$ac_cv_path_PCAP_CONFIG"
5996 if test -n "$PCAP_CONFIG" ; then
5998 # Found - use it to get the include flags for
5999 # libpcap and the flags to link with libpcap.
6001 # Please read section 11.6 "Shell Substitutions"
6002 # in the autoconf manual before doing anything
6003 # to this that involves quoting. Especially note
6004 # the statement "There is just no portable way to use
6005 # double-quoted strings inside double-quoted back-quoted
6006 # expressions (pfew!)."
6008 cflags
=`"$PCAP_CONFIG" --cflags`
6009 V_INCLS
="$cflags $V_INCLS"
6010 libpcap
=`"$PCAP_CONFIG" --libs`
6013 # Not found; look for pcap.
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5
6016 $as_echo_n "checking for main in -lpcap... " >&6; }
6017 if ${ac_cv_lib_pcap_main+:} false
; then :
6018 $as_echo_n "(cached) " >&6
6020 ac_check_lib_save_LIBS
=$LIBS
6022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6034 if ac_fn_c_try_link
"$LINENO"; then :
6035 ac_cv_lib_pcap_main
=yes
6037 ac_cv_lib_pcap_main
=no
6039 rm -f core conftest.err conftest.
$ac_objext \
6040 conftest
$ac_exeext conftest.
$ac_ext
6041 LIBS
=$ac_check_lib_save_LIBS
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5
6044 $as_echo "$ac_cv_lib_pcap_main" >&6; }
6045 if test "x$ac_cv_lib_pcap_main" = xyes
; then :
6049 if test $libpcap = FAIL
; then
6050 as_fn_error $?
"see the INSTALL doc for more info" "$LINENO" 5
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
6053 $as_echo_n "checking for extraneous pcap header directories... " >&6; }
6054 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
6055 \
( ! -r /usr
/include
/pcap.h \
); then
6056 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
6057 d
="/usr/local/include/pcap"
6058 elif test -r /usr
/include
/pcap
/pcap.h
; then
6059 d
="/usr/include/pcap"
6062 if test -z "$d" ; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6064 $as_echo "not found" >&6; }
6066 V_INCLS
="-I$d $V_INCLS"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5
6068 $as_echo "found -- -I$d added" >&6; }
6073 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6074 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
6075 if test -r $d/pcap.h
; then
6076 V_INCLS
="-I$d $V_INCLS"
6077 elif test -r $places/pcap.h
; then
6078 V_INCLS
="-I$places $V_INCLS"
6080 as_fn_error see INSTALL
"cannot find pcap.h" "$LINENO" 5
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5
6083 $as_echo "$libpcap" >&6; }
6084 # Extract the first word of "pcap-config", so it can be a program name with args.
6085 set dummy pcap-config
; ac_word
=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_path_PCAP_CONFIG+:} false
; then :
6089 $as_echo_n "(cached) " >&6
6091 case $PCAP_CONFIG in
6093 ac_cv_path_PCAP_CONFIG
="$PCAP_CONFIG" # Let the user override the test with a path.
6096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir
=.
6101 for ac_exec_ext
in '' $ac_executable_extensions; do
6102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_path_PCAP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 PCAP_CONFIG
=$ac_cv_path_PCAP_CONFIG
6115 if test -n "$PCAP_CONFIG"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
6117 $as_echo "$PCAP_CONFIG" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6124 if test -n "$PCAP_CONFIG"; then
6126 # The libpcap directory has a pcap-config script.
6127 # Use it to get any additioal libraries needed
6128 # to link with the libpcap archive library in
6131 # Please read section 11.6 "Shell Substitutions"
6132 # in the autoconf manual before doing anything
6133 # to this that involves quoting. Especially note
6134 # the statement "There is just no portable way to use
6135 # double-quoted strings inside double-quoted back-quoted
6136 # expressions (pfew!)."
6138 additional_libs
=`"$PCAP_CONFIG" --additional-libs --static`
6139 libpcap
="$libpcap $additional_libs"
6142 LIBS
="$libpcap $LIBS"
6143 if ! test -n "$PCAP_CONFIG" ; then
6145 # We don't have pcap-config; find out any additional link flags
6146 # we need. (If we have pcap-config, we assume it tells us what
6153 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
6154 # present, as we use the STREAMS routines.
6156 # (XXX - true only if we're linking with a static libpcap?)
6158 pseexe
="/lib/pse.exp"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
6160 $as_echo_n "checking for $pseexe... " >&6; }
6161 if test -f $pseexe ; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6163 $as_echo "yes" >&6; }
6164 LIBS
="$LIBS -I:$pseexe"
6168 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
6169 # we use them to load the BPF module.
6171 # (XXX - true only if we're linking with a static libpcap?)
6173 LIBS
="$LIBS -lodm -lcfg"
6178 ac_fn_c_check_func
"$LINENO" "pcap_loop" "ac_cv_func_pcap_loop"
6179 if test "x$ac_cv_func_pcap_loop" = xyes
; then :
6183 as_fn_error $?
"Report this to tcpdump-workers@lists.tcpdump.org, and include the
6184 config.log file in your report" "$LINENO" 5
6189 ac_fn_c_check_func
"$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks"
6190 if test "x$ac_cv_func_pcap_list_datalinks" = xyes
; then :
6191 $as_echo "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h
6195 case " $LIBOBJS " in
6196 *" datalinks.$ac_objext "* ) ;;
6197 *) LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
6204 ac_fn_c_check_func
"$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink"
6205 if test "x$ac_cv_func_pcap_set_datalink" = xyes
; then :
6206 $as_echo "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h
6210 ac_fn_c_check_func
"$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val"
6211 if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes
; then :
6213 $as_echo "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h
6215 ac_fn_c_check_func
"$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description"
6216 if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes
; then :
6217 $as_echo "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h
6221 case " $LIBOBJS " in
6222 *" dlnames.$ac_objext "* ) ;;
6223 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
6233 case " $LIBOBJS " in
6234 *" dlnames.$ac_objext "* ) ;;
6235 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
6243 for ac_func
in pcap_breakloop
6245 ac_fn_c_check_func
"$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop"
6246 if test "x$ac_cv_func_pcap_breakloop" = xyes
; then :
6247 cat >>confdefs.h
<<_ACEOF
6248 #define HAVE_PCAP_BREAKLOOP 1
6255 ac_fn_c_check_func
"$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
6256 if test "x$ac_cv_func_pcap_dump_ftell" = xyes
; then :
6257 $as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
6261 case " $LIBOBJS " in
6262 *" pcap_dump_ftell.$ac_objext "* ) ;;
6263 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext"
6273 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
6274 # libraries (e.g., "-lsocket -lnsl" on Solaris).
6276 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
6277 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
6278 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
6279 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
6280 # it does not ship with a libc symbol "inet_ntop()", it ships with
6281 # "_inet_ntop()", and has a #define macro in one of the system headers
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
6285 $as_echo_n "checking for inet_ntop... " >&6; }
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <sys/types.h>
6289 #include <sys/socket.h>
6290 #include <netinet/in.h>
6291 #include <arpa/inet.h>
6295 char src[4], dst[128];
6296 inet_ntop(AF_INET, src, dst, sizeof(dst));
6301 if ac_fn_c_try_link
"$LINENO"; then :
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303 $as_echo "yes" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 case " $LIBOBJS " in
6308 *" inet_ntop.$ac_objext "* ) ;;
6309 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
6314 rm -f core conftest.err conftest.
$ac_objext \
6315 conftest
$ac_exeext conftest.
$ac_ext
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
6317 $as_echo_n "checking for inet_pton... " >&6; }
6318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 #include <sys/types.h>
6321 #include <sys/socket.h>
6322 #include <netinet/in.h>
6323 #include <arpa/inet.h>
6327 char src[128], dst[4];
6328 inet_pton(AF_INET, src, dst);
6333 if ac_fn_c_try_link
"$LINENO"; then :
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6335 $as_echo "yes" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 case " $LIBOBJS " in
6340 *" inet_pton.$ac_objext "* ) ;;
6341 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
6346 rm -f core conftest.err conftest.
$ac_objext \
6347 conftest
$ac_exeext conftest.
$ac_ext
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
6349 $as_echo_n "checking for inet_aton... " >&6; }
6350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 #include <sys/types.h>
6353 #include <netinet/in.h>
6354 #include <arpa/inet.h>
6360 inet_aton(src, &dst);
6365 if ac_fn_c_try_link
"$LINENO"; then :
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367 $as_echo "yes" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 case " $LIBOBJS " in
6372 *" inet_aton.$ac_objext "* ) ;;
6373 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
6378 rm -f core conftest.err conftest.
$ac_objext \
6379 conftest
$ac_exeext conftest.
$ac_ext
6382 # Check for these after AC_LBL_LIBPCAP, for the same reason.
6384 # You are in a twisty little maze of UN*Xes, all different.
6385 # Some might not have ether_ntohost().
6386 # Some might have it, but not declare it in any header file.
6387 # Some might have it, but declare it in <netinet/if_ether.h>.
6388 # Some might have it, but declare it in <netinet/ether.h>
6389 # (And some might have it but document it as something declared in
6390 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6392 # Before you is a C compiler.
6394 for ac_func
in ether_ntohost
6396 ac_fn_c_check_func
"$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost"
6397 if test "x$ac_cv_func_ether_ntohost" = xyes
; then :
6398 cat >>confdefs.h
<<_ACEOF
6399 #define HAVE_ETHER_NTOHOST 1
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5
6403 $as_echo_n "checking for buggy ether_ntohost... " >&6; }
6404 if ${ac_cv_buggy_ether_ntohost+:} false
; then :
6405 $as_echo_n "(cached) " >&6
6408 if test "$cross_compiling" = yes; then :
6409 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
6411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6415 #include <sys/types.h>
6416 #include <sys/param.h>
6417 #include <sys/socket.h>
6420 main(int argc, char **argv)
6422 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6423 char name[MAXHOSTNAMELEN];
6425 ether_ntohost(name, (struct ether_addr *)ea);
6430 if ac_fn_c_try_run
"$LINENO"; then :
6431 ac_cv_buggy_ether_ntohost
=no
6433 ac_cv_buggy_ether_ntohost
=yes
6435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6436 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5
6441 $as_echo "$ac_cv_buggy_ether_ntohost" >&6; }
6442 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6443 $as_echo "#define USE_ETHER_NTOHOST 1" >>confdefs.h
6450 if test "$ac_cv_func_ether_ntohost" = yes -a \
6451 "$ac_cv_buggy_ether_ntohost" = "no"; then
6453 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
6455 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6457 # Yes. Does it declare ether_ntohost()?
6459 ac_fn_c_check_decl
"$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
6460 #include <sys/types.h>
6461 #include <sys/socket.h>
6462 #include <netinet/in.h>
6463 #include <arpa/inet.h>
6467 #include <netinet/if_ether.h>
6470 if test "x$ac_cv_have_decl_ether_ntohost" = xyes
; then :
6473 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
6482 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
6484 # No, how about <netinet/ether.h>, as on Linux?
6486 for ac_header
in netinet
/ether.h
6488 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
6489 if test "x$ac_cv_header_netinet_ether_h" = xyes
; then :
6490 cat >>confdefs.h
<<_ACEOF
6491 #define HAVE_NETINET_ETHER_H 1
6498 if test "$ac_cv_header_netinet_ether_h" = yes; then
6500 # We have it - does it declare ether_ntohost()?
6501 # Unset ac_cv_have_decl_ether_ntohost so we don't
6502 # treat the previous failure as a cached value and
6503 # suppress the next test.
6505 unset ac_cv_have_decl_ether_ntohost
6506 ac_fn_c_check_decl
"$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
6507 #include <netinet/ether.h>
6510 if test "x$ac_cv_have_decl_ether_ntohost" = xyes
; then :
6513 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
6521 # Is ether_ntohost() declared?
6523 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
6525 # No, we'll have to declare it ourselves.
6526 # Do we have "struct ether_addr"?
6528 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
6529 #include <sys/types.h>
6530 #include <sys/socket.h>
6531 #include <netinet/in.h>
6532 #include <arpa/inet.h>
6536 #include <netinet/if_ether.h>
6539 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
6541 cat >>confdefs.h
<<_ACEOF
6542 #define HAVE_STRUCT_ETHER_ADDR 1
6549 $as_echo "#define HAVE_DECL_ETHER_NTOHOST 0" >>confdefs.h
6553 $as_echo "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h
6558 # libdlpi is needed for Solaris 11 and later.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6560 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6561 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
6562 $as_echo_n "(cached) " >&6
6564 ac_check_lib_save_LIBS
=$LIBS
6565 LIBS
="-ldlpi -L/lib $LIBS"
6566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6569 /* Override any GCC internal prototype to avoid an error.
6570 Use char because int might match the return type of a GCC
6571 builtin and then its argument prototype would still apply. */
6579 return dlpi_walk ();
6584 if ac_fn_c_try_link
"$LINENO"; then :
6585 ac_cv_lib_dlpi_dlpi_walk
=yes
6587 ac_cv_lib_dlpi_dlpi_walk
=no
6589 rm -f core conftest.err conftest.
$ac_objext \
6590 conftest
$ac_exeext conftest.
$ac_ext
6591 LIBS
=$ac_check_lib_save_LIBS
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6594 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6595 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
6596 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has sa_len member" >&5
6602 $as_echo_n "checking if sockaddr struct has sa_len member... " >&6; }
6603 if ${ac_cv_sockaddr_has_sa_len+:} false
; then :
6604 $as_echo_n "(cached) " >&6
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6609 # include <sys/types.h>
6610 # include <sys/socket.h>
6614 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6619 if ac_fn_c_try_compile
"$LINENO"; then :
6620 ac_cv_sockaddr_has_sa_len
=yes
6622 ac_cv_sockaddr_has_sa_len
=no
6624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5
6628 $as_echo "$ac_cv_sockaddr_has_sa_len" >&6; }
6629 if test $ac_cv_sockaddr_has_sa_len = yes ; then
6630 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
6634 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
6635 missing_includes
=yes
6639 # Do we have the new open API? Check for pcap_create, and assume that,
6640 # if we do, we also have pcap_activate() and the other new routines
6641 # introduced in libpcap 1.0.0.
6643 for ac_func
in pcap_create
6645 ac_fn_c_check_func
"$LINENO" "pcap_create" "ac_cv_func_pcap_create"
6646 if test "x$ac_cv_func_pcap_create" = xyes
; then :
6647 cat >>confdefs.h
<<_ACEOF
6648 #define HAVE_PCAP_CREATE 1
6654 if test $ac_cv_func_pcap_create = "yes" ; then
6656 # OK, do we have pcap_set_tstamp_type? If so, assume we have
6657 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
6659 for ac_func
in pcap_set_tstamp_type
6661 ac_fn_c_check_func
"$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type"
6662 if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes
; then :
6663 cat >>confdefs.h
<<_ACEOF
6664 #define HAVE_PCAP_SET_TSTAMP_TYPE 1
6672 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
6674 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6675 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6676 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6677 cat >>confdefs.h
<<_ACEOF
6678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6684 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
6685 savedppflags
="$CPPLAGS"
6686 CPPFLAGS
="$CPPFLAGS $V_INCLS"
6687 ac_fn_c_check_type
"$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h>
6689 if test "x$ac_cv_type_pcap_if_t" = xyes
; then :
6691 cat >>confdefs.h
<<_ACEOF
6692 #define HAVE_PCAP_IF_T 1
6698 CPPFLAGS
="$savedcppflags"
6701 if test $ac_cv_func_pcap_lib_version = "no" ; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5
6703 $as_echo_n "checking whether pcap_version is defined by libpcap... " >&6; }
6704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6711 extern char pcap_version[];
6713 return (int)pcap_version;
6719 if ac_fn_c_try_link
"$LINENO"; then :
6720 ac_lbl_cv_pcap_version_defined
=yes
6722 ac_lbl_cv_pcap_version_defined
=no
6724 rm -f core conftest.err conftest.
$ac_objext \
6725 conftest
$ac_exeext conftest.
$ac_ext
6726 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6728 $as_echo "yes" >&6; }
6729 $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
6737 $as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; }
6738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6745 extern int pcap_debug;
6753 if ac_fn_c_try_link
"$LINENO"; then :
6754 ac_lbl_cv_pcap_debug_defined
=yes
6756 ac_lbl_cv_pcap_debug_defined
=no
6758 rm -f core conftest.err conftest.
$ac_objext \
6759 conftest
$ac_exeext conftest.
$ac_ext
6760 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6762 $as_echo "yes" >&6; }
6763 $as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6769 # OK, what about "yydebug"?
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
6772 $as_echo_n "checking whether yydebug is defined by libpcap... " >&6; }
6773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6788 if ac_fn_c_try_link
"$LINENO"; then :
6789 ac_lbl_cv_yydebug_defined
=yes
6791 ac_lbl_cv_yydebug_defined
=no
6793 rm -f core conftest.err conftest.
$ac_objext \
6794 conftest
$ac_exeext conftest.
$ac_ext
6795 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6797 $as_echo "yes" >&6; }
6798 $as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6805 ac_fn_c_check_func
"$LINENO" "bpf_dump" "ac_cv_func_bpf_dump"
6806 if test "x$ac_cv_func_bpf_dump" = xyes
; then :
6807 $as_echo "#define HAVE_BPF_DUMP 1" >>confdefs.h
6810 case " $LIBOBJS " in
6811 *" bpf_dump.$ac_objext "* ) ;;
6812 *) LIBOBJS
="$LIBOBJS bpf_dump.$ac_objext"
6820 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
6824 # Assume V7/BSD convention for man pages (file formats in section 5,
6825 # miscellaneous info in section 7).
6833 $as_echo "#define _SUN 1" >>confdefs.h
6839 # Use System V conventions for man pages.
6849 # Use System V conventions for man pages.
6859 # Use System V conventions for man pages.
6869 # Use System V conventions for man pages.
6876 if test -f /dev
/bpf0
; then
6881 # Check for some headers introduced in later versions of libpcap
6882 # and used by some printers.
6884 savedcppflags
="$CPPFLAGS"
6885 CPPFLAGS
="$CPPFLAGS $V_INCLS"
6886 for ac_header
in pcap
/bluetooth.h
6888 ac_fn_c_check_header_mongrel
"$LINENO" "pcap/bluetooth.h" "ac_cv_header_pcap_bluetooth_h" "$ac_includes_default"
6889 if test "x$ac_cv_header_pcap_bluetooth_h" = xyes
; then :
6890 cat >>confdefs.h
<<_ACEOF
6891 #define HAVE_PCAP_BLUETOOTH_H 1
6898 for ac_header
in pcap
/usb.h
6900 ac_fn_c_check_header_mongrel
"$LINENO" "pcap/usb.h" "ac_cv_header_pcap_usb_h" "$ac_includes_default"
6901 if test "x$ac_cv_header_pcap_usb_h" = xyes
; then :
6902 cat >>confdefs.h
<<_ACEOF
6903 #define HAVE_PCAP_USB_H 1
6910 CPPFLAGS
="$savedcppflags"
6913 # Make sure we have a definition for C99's uintptr_t (regardless of
6914 # whether the environment is a C99 environment or not).
6917 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6918 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6920 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6923 for ac_type
in 'unsigned int' 'unsigned long int' \
6924 'unsigned long long int'; do
6925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 $ac_includes_default
6931 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6933 return test_array [0];
6939 if ac_fn_c_try_compile
"$LINENO"; then :
6941 cat >>confdefs.h
<<_ACEOF
6942 #define uintptr_t $ac_type
6947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6948 test -z "$ac_type" && break
6954 for ac_header
in sys
/bitypes.h
6956 ac_fn_c_check_header_mongrel
"$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
6957 if test "x$ac_cv_header_sys_bitypes_h" = xyes
; then :
6958 cat >>confdefs.h
<<_ACEOF
6959 #define HAVE_SYS_BITYPES_H 1
6967 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
6968 #ifdef HAVE_SYS_BITYPES_H
6969 #include <sys/bitypes.h>
6972 if test "x$ac_cv_type_int8_t" = xyes
; then :
6976 $as_echo "#define int8_t signed char" >>confdefs.h
6980 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
6981 #ifdef HAVE_SYS_BITYPES_H
6982 #include <sys/bitypes.h>
6985 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6989 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
6993 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6994 if test "x$ac_cv_type_int16_t" = xyes
; then :
6998 $as_echo "#define int16_t short" >>confdefs.h
7000 $ac_includes_default
7001 #ifdef HAVE_SYS_BITYPES_H
7002 #include <sys/bitypes.h>
7006 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
7007 #ifdef HAVE_SYS_BITYPES_H
7008 #include <sys/bitypes.h>
7011 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
7015 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
7019 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
7020 #ifdef HAVE_SYS_BITYPES_H
7021 #include <sys/bitypes.h>
7024 if test "x$ac_cv_type_int32_t" = xyes
; then :
7028 $as_echo "#define int32_t int" >>confdefs.h
7032 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
7033 #ifdef HAVE_SYS_BITYPES_H
7034 #include <sys/bitypes.h>
7037 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
7041 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
7045 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
7046 #ifdef HAVE_SYS_BITYPES_H
7047 #include <sys/bitypes.h>
7050 if test "x$ac_cv_type_int64_t" = xyes
; then :
7054 $as_echo "#define int64_t long long" >>confdefs.h
7058 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
7059 #ifdef HAVE_SYS_BITYPES_H
7060 #include <sys/bitypes.h>
7063 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
7067 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
7073 # We can't just check for <inttypes.h> - some systems have one that
7074 # doesn't define all the PRI[doxu]64 macros.
7076 for ac_header
in inttypes.h
7078 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7079 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
7080 cat >>confdefs.h
<<_ACEOF
7081 #define HAVE_INTTYPES_H 1
7085 # OK, we have inttypes.h, but does it define those macros?
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
7088 $as_echo_n "checking whether inttypes.h defines the PRI[doxu]64 macros... " >&6; }
7089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7093 #include <inttypes.h>
7095 #include <sys/types.h>
7096 #ifdef HAVE_SYS_BITYPES_H
7097 #include <sys/bitypes.h>
7102 printf("%" PRId64 "\n", (u_int64_t)1);
7103 printf("%" PRIo64 "\n", (u_int64_t)1);
7104 printf("%" PRIx64 "\n", (u_int64_t)1);
7105 printf("%" PRIu64 "\n", (u_int64_t)1);
7110 if ac_fn_c_try_compile
"$LINENO"; then :
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7114 ac_lbl_inttypes_h_defines_formats
=yes
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 ac_lbl_inttypes_h_defines_formats
=no
7123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7128 # We don't have inttypes.h, so it obviously can't define those
7131 ac_lbl_inttypes_h_defines_formats
=no
7137 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %lx can be used to format 64-bit integers" >&5
7140 $as_echo_n "checking whether %lx can be used to format 64-bit integers... " >&6; }
7141 if test "$cross_compiling" = yes; then :
7142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7144 as_fn_error $?
"cannot run test program while cross compiling
7145 See \`config.log' for more details" "$LINENO" 5; }
7147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7151 # ifdef HAVE_INTTYPES_H
7152 #include <inttypes.h>
7154 # ifdef HAVE_SYS_BITYPES_H
7155 #include <sys/bitypes.h>
7158 #include <sys/types.h>
7164 sprintf(strbuf, "%016lx", t << 32);
7165 if (strcmp(strbuf, "0000000100000000") == 0)
7173 if ac_fn_c_try_run
"$LINENO"; then :
7175 $as_echo "#define PRId64 \"ld\"" >>confdefs.h
7177 $as_echo "#define PRIo64 \"lo\"" >>confdefs.h
7179 $as_echo "#define PRIx64 \"lx\"" >>confdefs.h
7181 $as_echo "#define PRIu64 \"lu\"" >>confdefs.h
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7184 $as_echo "yes" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %llx can be used to format 64-bit integers" >&5
7193 $as_echo_n "checking whether %llx can be used to format 64-bit integers... " >&6; }
7194 if test "$cross_compiling" = yes; then :
7195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7197 as_fn_error $?
"cannot run test program while cross compiling
7198 See \`config.log' for more details" "$LINENO" 5; }
7200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7204 # ifdef HAVE_INTTYPES_H
7205 #include <inttypes.h>
7207 # ifdef HAVE_SYS_BITYPES_H
7208 #include <sys/bitypes.h>
7211 #include <sys/types.h>
7217 sprintf(strbuf, "%016llx", t << 32);
7218 if (strcmp(strbuf, "0000000100000000") == 0)
7226 if ac_fn_c_try_run
"$LINENO"; then :
7228 $as_echo "#define PRId64 \"lld\"" >>confdefs.h
7230 $as_echo "#define PRIo64 \"llo\"" >>confdefs.h
7232 $as_echo "#define PRIx64 \"llx\"" >>confdefs.h
7234 $as_echo "#define PRIu64 \"llu\"" >>confdefs.h
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %Lx can be used to format 64-bit integers" >&5
7246 $as_echo_n "checking whether %Lx can be used to format 64-bit integers... " >&6; }
7247 if test "$cross_compiling" = yes; then :
7248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7250 as_fn_error $?
"cannot run test program while cross compiling
7251 See \`config.log' for more details" "$LINENO" 5; }
7253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7257 # ifdef HAVE_INTTYPES_H
7258 #include <inttypes.h>
7260 # ifdef HAVE_SYS_BITYPES_H
7261 #include <sys/bitypes.h>
7264 #include <sys/types.h>
7270 sprintf(strbuf, "%016Lx", t << 32);
7271 if (strcmp(strbuf, "0000000100000000") == 0)
7279 if ac_fn_c_try_run
"$LINENO"; then :
7281 $as_echo "#define PRId64 \"Ld\"" >>confdefs.h
7283 $as_echo "#define PRIo64 \"Lo\"" >>confdefs.h
7285 $as_echo "#define PRIx64 \"Lx\"" >>confdefs.h
7287 $as_echo "#define PRIu64 \"Lu\"" >>confdefs.h
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7290 $as_echo "yes" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %qx can be used to format 64-bit integers" >&5
7299 $as_echo_n "checking whether %qx can be used to format 64-bit integers... " >&6; }
7300 if test "$cross_compiling" = yes; then :
7301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7303 as_fn_error $?
"cannot run test program while cross compiling
7304 See \`config.log' for more details" "$LINENO" 5; }
7306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7310 # ifdef HAVE_INTTYPES_H
7311 #include <inttypes.h>
7313 # ifdef HAVE_SYS_BITYPES_H
7314 #include <sys/bitypes.h>
7317 #include <sys/types.h>
7323 sprintf(strbuf, "%016qx", t << 32);
7324 if (strcmp(strbuf, "0000000100000000") == 0)
7332 if ac_fn_c_try_run
"$LINENO"; then :
7334 $as_echo "#define PRId64 \"qd\"" >>confdefs.h
7336 $as_echo "#define PRIo64 \"qo\"" >>confdefs.h
7338 $as_echo "#define PRIx64 \"qx\"" >>confdefs.h
7340 $as_echo "#define PRIu64 \"qu\"" >>confdefs.h
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7343 $as_echo "yes" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7350 as_fn_error $?
"neither %llx nor %Lx nor %qx worked on a 64-bit integer" "$LINENO" 5
7354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7378 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7379 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7387 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_RANLIB+:} false
; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$RANLIB"; then
7394 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir
=.
7401 for ac_exec_ext
in '' $ac_executable_extensions; do
7402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 RANLIB
=$ac_cv_prog_RANLIB
7414 if test -n "$RANLIB"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7416 $as_echo "$RANLIB" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7424 if test -z "$ac_cv_prog_RANLIB"; then
7425 ac_ct_RANLIB
=$RANLIB
7426 # Extract the first word of "ranlib", so it can be a program name with args.
7427 set dummy ranlib
; ac_word
=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$ac_ct_RANLIB"; then
7434 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir
=.
7441 for ac_exec_ext
in '' $ac_executable_extensions; do
7442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7454 if test -n "$ac_ct_RANLIB"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7456 $as_echo "$ac_ct_RANLIB" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7462 if test "x$ac_ct_RANLIB" = x
; then
7465 case $cross_compiling:$ac_tool_warned in
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned
=yes ;;
7471 RANLIB
=$ac_ct_RANLIB
7474 RANLIB
="$ac_cv_prog_RANLIB"
7479 if test "${LBL_CFLAGS+set}" = set; then
7480 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
7482 if test -f .devel
; then
7483 if test "$GCC" = yes ; then
7484 if test "${LBL_CFLAGS+set}" != set; then
7485 if test "$ac_cv_prog_cc_g" = yes ; then
7486 V_CCOPT
="-g $V_CCOPT"
7488 V_CCOPT
="$V_CCOPT -Wall"
7489 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7490 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
7497 V_CCOPT
="$V_CCOPT -n32"
7504 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7506 if test -f $name ; then
7507 ln -s $name os-proto.h
7509 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
7513 $as_echo "$as_me: WARNING: can't find $name" >&2;}
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
7518 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
7519 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false
; then :
7520 $as_echo_n "(cached) " >&6
7522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7525 # include <sys/types.h>
7526 # include <sys/socket.h>
7530 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7535 if ac_fn_c_try_compile
"$LINENO"; then :
7536 ac_cv_lbl_sockaddr_has_sa_len
=yes
7538 ac_cv_lbl_sockaddr_has_sa_len
=no
7540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7544 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7545 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7547 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
7552 $as_echo_n "checking if unaligned accesses fail... " >&6; }
7553 if ${ac_cv_lbl_unaligned_fail+:} false
; then :
7554 $as_echo_n "(cached) " >&6
7559 # These are CPU types where:
7561 # the CPU faults on an unaligned access, but at least some
7562 # OSes that support that CPU catch the fault and simulate
7563 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7564 # the simulation is slow, so we don't want to use it;
7566 # the CPU, I infer (from the old
7568 # XXX: should also check that they don't do weird things (like on arm)
7570 # comment) doesn't fault on unaligned accesses, but doesn't
7571 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7573 # for whatever reason, the test program doesn't work
7574 # (this has been claimed to be the case for several of those
7575 # CPUs - I don't know what the problem is; the problem
7576 # was reported as "the test program dumps core" for SuperH,
7577 # but that's what the test program is *supposed* to do -
7578 # it dumps core before it writes anything, so the test
7579 # for an empty output file should find an empty output
7580 # file and conclude that unaligned accesses don't work).
7582 # This run-time test won't work if you're cross-compiling, so
7583 # in order to support cross-compiling for a particular CPU,
7584 # we have to wire in the list of CPU types anyway, as far as
7585 # I know, so perhaps we should just have a set of CPUs on
7586 # which we know it doesn't work, a set of CPUs on which we
7587 # know it does work, and have the script just fail on other
7588 # cpu types and update it when such a failure occurs.
7590 alpha
*|arm
*|bfin
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
7591 ac_cv_lbl_unaligned_fail
=yes
7595 cat >conftest.c
<<EOF
7596 # include <sys/types.h>
7597 # include <sys/wait.h>
7599 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7604 /* avoid "core dumped" message */
7610 pid = waitpid(pid, &status, 0);
7613 exit(!WIFEXITED(status));
7616 i = *(unsigned int *)&a[1];
7621 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
7622 conftest.c
$LIBS >/dev
/null
2>&1
7623 if test ! -x conftest
; then
7624 ac_cv_lbl_unaligned_fail
=yes
7626 .
/conftest
>conftest.out
7627 if test ! -s conftest.out
; then
7628 ac_cv_lbl_unaligned_fail
=yes
7630 ac_cv_lbl_unaligned_fail
=no
7633 rm -f -r conftest
* core core.conftest
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
7639 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
7640 if test $ac_cv_lbl_unaligned_fail = yes ; then
7642 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
7648 $as_echo_n "checking for h_errno... " >&6; }
7649 if ${ac_cv_var_h_errno+:} false
; then :
7650 $as_echo_n "(cached) " >&6
7652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7655 # include <sys/types.h>
7665 if ac_fn_c_try_compile
"$LINENO"; then :
7666 ac_cv_var_h_errno
=yes
7668 ac_cv_var_h_errno
=no
7670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_h_errno" >&5
7674 $as_echo "$ac_cv_var_h_errno" >&6; }
7675 if test "$ac_cv_var_h_errno" = "yes"; then
7676 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSLeay libcrypto" >&5
7683 $as_echo_n "checking whether to use SSLeay libcrypto... " >&6; }
7684 # Specify location for both includes and libraries.
7685 want_libcrypto
=youmama
7687 # Check whether --with-crypto was given.
7688 if test "${with_crypto+set}" = set; then :
7689 withval
=$with_crypto;
7690 if test $withval = no
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 elif test $withval = yes
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7699 $as_echo "yes" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7703 $as_echo "yes" >&6; }
7710 # Use libcrypto if it's present, otherwise don't.
7712 want_libcrypto
=ifavailable
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
7714 $as_echo "yes, if available" >&6; }
7718 if test "$want_libcrypto" != "no"; then
7719 ac_cv_ssleay_path
=no
7721 if test "x$crypto_dir" = x
; then
7723 # Location not specified; check the default locations.
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where SSLeay is located" >&5
7726 $as_echo_n "checking where SSLeay is located... " >&6; }
7727 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
7728 if test "x${host_alias}" != x
; then
7729 dirs="/usr/${host_alias} $dirs"
7731 for dir
in $dirs; do
7734 # Find the last component of $libdir; it's not necessarily
7735 # "lib" - it might be "lib64" on, for example, x86-64
7738 # We assume the directory in which we're looking for
7739 # libcrypto has a subdirectory with that as its name.
7741 tmplib
=`echo "$libdir" | sed 's,.*/,,'`
7744 # XXX - is there a better way to check if a given library is
7745 # in a given directory than checking each of the possible
7746 # shared library suffixes?
7748 # Are there any other suffixes we need to look for? Do we
7749 # have to worry about ".so.{version}"?
7751 # Or should we just look for "libcrypto.*"?
7753 if test -d "$dir/$tmplib" -a \
( -f "$dir/$tmplib/libcrypto.a" -o \
7754 -f "$dir/$tmplib/libcrypto.so" -o \
7755 -f "$dir/$tmplib/libcrypto.sl" -o \
7756 -f "$dir/$tmplib/libcrypto.dylib" \
); then
7757 ac_cv_ssleay_path
="$dir"
7761 # Make sure we have the headers as well.
7763 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
7764 incdir
="-I$dir/include"
7768 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
7771 ac_cv_ssleay_path
=no
7775 if test "$ac_cv_ssleay_path" != no
; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ssleay_path" >&5
7777 $as_echo "$ac_cv_ssleay_path" >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLeay in $crypto_dir" >&5
7781 $as_echo_n "checking for SSLeay in $crypto_dir... " >&6; }
7784 # Find the last component of $libdir; it's not necessarily
7785 # "lib" - it might be "lib64" on, for example, x86-64
7788 # We assume the directory in which we're looking for
7789 # libcrypto has a subdirectory with that as its name.
7791 tmplib
=`echo "$libdir" | sed 's,.*/,,'`
7794 # XXX - is there a better way to check if a given library is
7795 # in a given directory than checking each of the possible
7796 # shared library suffixes?
7798 # Are there any other suffixes we need to look for? Do we
7799 # have to worry about ".so.{version}"?
7801 # Or should we just look for "libcrypto.*"?
7803 if test -d "$crypto_dir/$tmplib" -a \
( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
7804 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
7805 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
7806 -f "$crypto_dir/$tmplib/libcrypto.dylib" \
); then
7807 ac_cv_ssleay_path
="$crypto_dir"
7811 # Make sure we have the headers as well.
7813 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
7814 incdir
="-I$crypto_dir/include"
7817 if test "$ac_cv_ssleay_path" != no
; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7819 $as_echo "found" >&6; }
7822 if test "$ac_cv_ssleay_path" != no
; then
7823 V_INCLS
="$V_INCLS $incdir"
7824 if test "$dir" != "/usr"; then
7825 LDFLAGS
="-L$dir/lib $LDFLAGS"
7827 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
7828 LIBS
="$LIBS -lRSAglue"
7830 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
7831 LIBS
="$LIBS -lrsaref"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
7834 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
7835 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false
; then :
7836 $as_echo_n "(cached) " >&6
7838 ac_check_lib_save_LIBS
=$LIBS
7839 LIBS
="-lcrypto $LIBS"
7840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7843 /* Override any GCC internal prototype to avoid an error.
7844 Use char because int might match the return type of a GCC
7845 builtin and then its argument prototype would still apply. */
7849 char DES_cbc_encrypt ();
7853 return DES_cbc_encrypt ();
7858 if ac_fn_c_try_link
"$LINENO"; then :
7859 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
7861 ac_cv_lib_crypto_DES_cbc_encrypt
=no
7863 rm -f core conftest.err conftest.
$ac_objext \
7864 conftest
$ac_exeext conftest.
$ac_ext
7865 LIBS
=$ac_check_lib_save_LIBS
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
7868 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
7869 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes
; then :
7870 cat >>confdefs.h
<<_ACEOF
7871 #define HAVE_LIBCRYPTO 1
7874 LIBS
="-lcrypto $LIBS"
7879 CPPFLAGS
="$CPPFLAGS $V_INCLS"
7880 for ac_header
in openssl
/evp.h
7882 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
7883 if test "x$ac_cv_header_openssl_evp_h" = xyes
; then :
7884 cat >>confdefs.h
<<_ACEOF
7885 #define HAVE_OPENSSL_EVP_H 1
7894 # Not found. Did the user explicitly ask for it?
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7897 $as_echo "not found" >&6; }
7898 if test "$want_libcrypto" = yes; then
7899 as_fn_error $?
"SSLeay not found" "$LINENO" 5
7904 if test "$missing_includes" = "yes"; then
7905 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
7906 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
7918 # Find a good install program. We prefer a C program (faster),
7919 # so one script is as good as another. But avoid the broken or
7920 # incompatible versions:
7921 # SysV /etc/install, /usr/sbin/install
7922 # SunOS /usr/etc/install
7923 # IRIX /sbin/install
7925 # AmigaOS /C/install, which installs bootblocks on floppy discs
7926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7929 # OS/2's system install, which has a completely different semantic
7930 # ./install, which can be erroneously created by make from ./install.sh.
7931 # Reject install programs that cannot install multiple files.
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7933 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7934 if test -z "$INSTALL"; then
7935 if ${ac_cv_path_install+:} false
; then :
7936 $as_echo_n "(cached) " >&6
7938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir
=.
7943 # Account for people who put trailing slashes in PATH elements.
7944 case $as_dir/ in #((
7945 .
/ | .
// |
/[cC
]/* | \
7946 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7947 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7950 # OSF1 and SCO ODT 3.0 have their own names for install.
7951 # Don't use installbsd from OSF since it installs stuff as root
7953 for ac_prog
in ginstall scoinst
install; do
7954 for ac_exec_ext
in '' $ac_executable_extensions; do
7955 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7956 if test $ac_prog = install &&
7957 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7958 # AIX install. It has an incompatible calling convention.
7960 elif test $ac_prog = install &&
7961 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7962 # program-specific install script used by HP pwplus--don't use.
7965 rm -rf conftest.one conftest.two conftest.dir
7966 echo one
> conftest.one
7967 echo two
> conftest.two
7969 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7970 test -s conftest.one
&& test -s conftest.two
&&
7971 test -s conftest.dir
/conftest.one
&&
7972 test -s conftest.dir
/conftest.two
7974 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7987 rm -rf conftest.one conftest.two conftest.dir
7990 if test "${ac_cv_path_install+set}" = set; then
7991 INSTALL
=$ac_cv_path_install
7993 # As a last resort, use the slow shell script. Don't cache a
7994 # value for INSTALL within a source directory, because that will
7995 # break other packages using the cache if that directory is
7996 # removed, or if the value is a relative name.
7997 INSTALL
=$ac_install_sh
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8001 $as_echo "$INSTALL" >&6; }
8003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8004 # It thinks the first close brace ends the variable substitution.
8005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8009 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8012 ac_config_headers
="$ac_config_headers config.h"
8015 ac_config_commands
="$ac_config_commands default-1"
8017 ac_config_files
="$ac_config_files Makefile tcpdump.1"
8019 cat >confcache
<<\_ACEOF
8020 # This file is a shell script that caches the results of configure
8021 # tests run on this system so they can be shared between configure
8022 # scripts and configure runs, see configure's option --config-cache.
8023 # It is not useful on other systems. If it contains results you don't
8024 # want to keep, you may remove or edit it.
8026 # config.status only pays attention to the cache file if you give it
8027 # the --recheck option to rerun configure.
8029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8035 # The following way of writing the cache mishandles newlines in values,
8036 # but we know of no workaround that is simple, portable, and efficient.
8037 # So, we kill variables containing newlines.
8038 # Ultrix sh set writes to stderr and can't be redirected directly,
8039 # and sets the high bit in the cache file unless we assign to the vars.
8041 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8042 eval ac_val
=\$
$ac_var
8046 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8050 _ | IFS | as_nl
) ;; #(
8051 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8052 *) { eval $ac_var=; unset $ac_var;} ;;
8058 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8059 *${as_nl}ac_space
=\
*)
8060 # `set' does not quote correctly, so add quotes: double-quote
8061 # substitution turns \\\\ into \\, and sed turns \\ into \.
8064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8067 # `set' quotes correctly as required by POSIX, so do not add quotes.
8068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8079 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8081 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8082 if test -w "$cache_file"; then
8083 if test "x$cache_file" != "x/dev/null"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8085 $as_echo "$as_me: updating cache $cache_file" >&6;}
8086 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8087 cat confcache
>"$cache_file"
8089 case $cache_file in #(
8091 mv -f confcache
"$cache_file"$$
&&
8092 mv -f "$cache_file"$$
"$cache_file" ;; #(
8094 mv -f confcache
"$cache_file" ;;
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8100 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8105 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8106 # Let make expand exec_prefix.
8107 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8109 DEFS
=-DHAVE_CONFIG_H
8114 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8115 # 1. Remove the extension, and $U if already installed.
8116 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8117 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8119 # will be set to the directory where LIBOBJS objects are built.
8120 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8121 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8125 LTLIBOBJS
=$ac_ltlibobjs
8129 : "${CONFIG_STATUS=./config.status}"
8131 ac_clean_files_save
=$ac_clean_files
8132 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8138 # Generated by $as_me.
8139 # Run this file to recreate the current configuration.
8140 # Compiler output produced by configure, useful for debugging
8141 # configure, is in config.log if it exists.
8147 SHELL=\${CONFIG_SHELL-$SHELL}
8150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8151 ## -------------------- ##
8152 ## M4sh Initialization. ##
8153 ## -------------------- ##
8155 # Be more Bourne compatible
8156 DUALCASE
=1; export DUALCASE
# for MKS sh
8157 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8161 # is contrary to our usage. Disable this feature.
8162 alias -g '${1+"$@"}'='"$@"'
8163 setopt NO_GLOB_SUBST
8165 case `(set -o) 2>/dev/null` in #(
8177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8178 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8181 # Prefer a ksh shell builtin over an external printf program on Solaris,
8182 # but without wasting forks for bash or zsh.
8183 if test -z "$BASH_VERSION$ZSH_VERSION" \
8184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8185 as_echo='print
-r --'
8186 as_echo_n='print
-rn --'
8187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8188 as_echo='printf %s
\n'
8189 as_echo_n='printf %s
'
8191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8192 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8193 as_echo_n='/usr
/ucb
/echo -n'
8195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8196 as_echo_n_body='eval
8200 expr "X$arg" : "X\\(.*\\)$as_nl";
8201 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8203 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8205 export as_echo_n_body
8206 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8209 as_echo='sh
-c $as_echo_body as_echo
'
8212 # The user is always right.
8213 if test "${PATH_SEPARATOR+set}" != set; then
8215 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8216 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8223 # We need space, tab and new line, in precisely that order. Quoting is
8224 # there to prevent editors from complaining about space-tab.
8225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8226 # splitting by setting IFS to empty value.)
8229 # Find who we are. Look in the path if we contain no directory separator.
8232 *[\\/]* ) as_myself=$0 ;;
8233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 test -z "$as_dir" && as_dir=.
8238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8244 # We did not find ourselves, most probably we were run as `sh COMMAND'
8245 # in which case we are not to be found in the path.
8246 if test "x$as_myself" = x
; then
8249 if test ! -f "$as_myself"; then
8250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8254 # Unset variables that we do not need and which cause bugs (e.g. in
8255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8256 # suppresses any "Segmentation fault" message there. '((' could
8257 # trigger a bug in pdksh 5.2.14.
8258 for as_var
in BASH_ENV ENV MAIL MAILPATH
8259 do eval test x\
${$as_var+set} = xset \
8260 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8273 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8276 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8277 # ----------------------------------------
8278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8280 # script with STATUS, using 1 if that was 0.
8283 as_status
=$1; test $as_status -eq 0 && as_status
=1
8285 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8288 $as_echo "$as_me: error: $2" >&2
8289 as_fn_exit
$as_status
8293 # as_fn_set_status STATUS
8294 # -----------------------
8295 # Set $? to STATUS, without forking.
8299 } # as_fn_set_status
8303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8313 # Portably unset VAR.
8316 { eval $1=; unset $1;}
8318 as_unset
=as_fn_unset
8319 # as_fn_append VAR VALUE
8320 # ----------------------
8321 # Append the text in VALUE to the end of the definition contained in VAR. Take
8322 # advantage of any shell optimizations that allow amortized linear growth over
8323 # repeated appends, instead of the typical quadratic growth present in naive
8325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8326 eval 'as_fn_append ()
8337 # as_fn_arith ARG...
8338 # ------------------
8339 # Perform arithmetic evaluation on the ARGs, and store the result in the
8340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8341 # must be portable across $(()) and expr.
8342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8343 eval 'as_fn_arith ()
8350 as_val
=`expr "$@" || test $? -eq 1`
8355 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8356 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8362 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8363 as_basename
=basename
8368 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8374 as_me
=`$as_basename -- "$0" ||
8375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8376 X"$0" : 'X\(//\)$' \| \
8377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8379 sed '/^.*\/\([^/][^/]*\)\/*$/{
8393 # Avoid depending upon Character Ranges.
8394 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8395 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8396 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8397 as_cr_digits
='0123456789'
8398 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8400 ECHO_C
= ECHO_N
= ECHO_T
=
8401 case `echo -n x` in #(((((
8403 case `echo 'xy\c'` in
8404 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8406 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8413 rm -f conf$$ conf$$.exe conf$$.
file
8414 if test -d conf$$.dir
; then
8415 rm -f conf$$.dir
/conf$$.
file
8418 mkdir conf$$.dir
2>/dev
/null
8420 if (echo >conf$$.
file) 2>/dev
/null
; then
8421 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8423 # ... but there are two gotchas:
8424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8426 # In both cases, we have to default to `cp -pR'.
8427 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8429 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8437 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8438 rmdir conf$$.dir
2>/dev
/null
8443 # Create "$as_dir" as a directory, including parents if necessary.
8448 -*) as_dir
=.
/$as_dir;;
8450 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8454 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8455 *) as_qdir
=$as_dir;;
8457 as_dirs
="'$as_qdir' $as_dirs"
8458 as_dir
=`$as_dirname -- "$as_dir" ||
8459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8460 X"$as_dir" : 'X\(//\)[^/]' \| \
8461 X"$as_dir" : 'X\(//\)$' \| \
8462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8463 $as_echo X"$as_dir" |
8464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8481 test -d "$as_dir" && break
8483 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8484 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8488 if mkdir
-p .
2>/dev
/null
; then
8489 as_mkdir_p
='mkdir -p "$as_dir"'
8491 test -d .
/-p && rmdir .
/-p
8496 # as_fn_executable_p FILE
8497 # -----------------------
8498 # Test if FILE is an executable regular file.
8499 as_fn_executable_p
()
8501 test -f "$1" && test -x "$1"
8502 } # as_fn_executable_p
8504 as_executable_p
=as_fn_executable_p
8506 # Sed expression to map a string onto a valid CPP name.
8507 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8509 # Sed expression to map a string onto a valid variable name.
8510 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8514 ## ----------------------------------- ##
8515 ## Main body of $CONFIG_STATUS script. ##
8516 ## ----------------------------------- ##
8518 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8521 # Save the log message, to keep $0 and so on meaningful, and to
8522 # report actual input values of CONFIG_FILES etc. instead of their
8523 # values after options handling.
8525 This file was extended by $as_me, which was
8526 generated by GNU Autoconf 2.69. Invocation command line was
8528 CONFIG_FILES = $CONFIG_FILES
8529 CONFIG_HEADERS = $CONFIG_HEADERS
8530 CONFIG_LINKS = $CONFIG_LINKS
8531 CONFIG_COMMANDS = $CONFIG_COMMANDS
8534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8539 case $ac_config_files in *"
8540 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8543 case $ac_config_headers in *"
8544 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8549 # Files that config.status was made for.
8550 config_files="$ac_config_files"
8551 config_headers="$ac_config_headers"
8552 config_commands="$ac_config_commands"
8556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8558 \`$as_me' instantiates files and other configuration actions
8559 from templates according to the current configuration. Unless the files
8560 and actions are specified as TAGs, all are instantiated by default.
8562 Usage: $0 [OPTION]... [TAG]...
8564 -h, --help print this help, then exit
8565 -V, --version print version number and configuration settings, then exit
8566 --config print configuration, then exit
8567 -q, --quiet, --silent
8568 do not print progress messages
8569 -d, --debug don't remove temporary files
8570 --recheck update $as_me by reconfiguring in the same conditions
8571 --file=FILE[:TEMPLATE]
8572 instantiate the configuration file FILE
8573 --header=FILE[:TEMPLATE]
8574 instantiate the configuration header FILE
8576 Configuration files:
8579 Configuration headers:
8582 Configuration commands:
8585 Report bugs to the package provider."
8588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8592 configured by $0, generated by GNU Autoconf 2.69,
8593 with options \\"\$ac_cs_config\\"
8595 Copyright (C) 2012 Free Software Foundation, Inc.
8596 This config.status script is free software; the Free Software Foundation
8597 gives unlimited permission to copy, distribute and modify it."
8602 test -n "\$AWK" || AWK=awk
8605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8606 # The default lists apply if the user does not specify any file.
8612 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8613 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8617 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8629 # Handling of the options.
8630 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8632 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8633 $as_echo "$ac_cs_version"; exit ;;
8634 --config |
--confi |
--conf |
--con |
--co |
--c )
8635 $as_echo "$ac_cs_config"; exit ;;
8636 --debug |
--debu |
--deb |
--de |
--d |
-d )
8638 --file |
--fil |
--fi |
--f )
8641 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8642 '') as_fn_error $?
"missing file argument" ;;
8644 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8645 ac_need_defaults
=false
;;
8646 --header |
--heade |
--head |
--hea )
8649 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8651 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8652 ac_need_defaults
=false
;;
8654 # Conflict between --help and --header
8655 as_fn_error $?
"ambiguous option: \`$1'
8656 Try \`$0 --help' for more information.";;
8657 --help |
--hel |
-h )
8658 $as_echo "$ac_cs_usage"; exit ;;
8659 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8660 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8664 -*) as_fn_error $?
"unrecognized option: \`$1'
8665 Try \`$0 --help' for more information." ;;
8667 *) as_fn_append ac_config_targets
" $1"
8668 ac_need_defaults
=false
;;
8674 ac_configure_extra_args
=
8676 if $ac_cs_silent; then
8678 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8683 if \$ac_cs_recheck; then
8684 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8686 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8687 CONFIG_SHELL='$SHELL'
8693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8698 ## Running $as_me. ##
8704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8714 # Handling of arguments.
8715 for ac_config_target
in $ac_config_targets
8717 case $ac_config_target in
8718 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8719 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8720 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8721 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
8723 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8728 # If the user did not use the arguments to specify the items to instantiate,
8729 # then the envvar interface is used. Set only those that are not.
8730 # We use the long form for the default assignment because of an extremely
8731 # bizarre bug on SunOS 4.1.3.
8732 if $ac_need_defaults; then
8733 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8734 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8735 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8738 # Have a temporary directory for convenience. Make it in the build tree
8739 # simply because there is no reason against having it here, and in addition,
8740 # creating and moving files from /tmp can sometimes cause problems.
8741 # Hook for its removal unless debugging.
8742 # Note that there is a small window in which the directory will not be cleaned:
8743 # after its creation but before its name has been assigned to `$tmp'.
8747 trap 'exit_status=$?
8749 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8751 trap 'as_fn_exit 1' 1 2 13 15
8753 # Create a (secure) tmp directory for tmp files.
8756 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8760 tmp
=.
/conf$$
-$RANDOM
8761 (umask 077 && mkdir
"$tmp")
8762 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8765 # Set up the scripts for CONFIG_FILES section.
8766 # No need to generate them if there are no CONFIG_FILES.
8767 # This happens for instance with `./config.status config.h'.
8768 if test -n "$CONFIG_FILES"; then
8771 ac_cr
=`echo X | tr X '\015'`
8772 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8773 # But we know of no other shell where ac_cr would be empty at this
8774 # point, so we can use a bashism as a fallback.
8775 if test "x$ac_cr" = x
; then
8776 eval ac_cr
=\$
\'\\r
\'
8778 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8779 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8785 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8790 echo "cat >conf$$subs.awk <<_ACEOF" &&
8791 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8794 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8795 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8797 for ac_last_try in false false false false false :; do
8798 . ./conf$$subs.sh ||
8799 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8801 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8802 if test $ac_delim_n = $ac_delim_num; then
8804 elif $ac_last_try; then
8805 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8807 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8813 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8817 s/^/S["/; s
/!.
*/"]=/
8827 s/\(.\{148\}\)..*/\1/
8829 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8834 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8841 s/\(.\{148\}\)..*/\1/
8843 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8847 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8852 ' <conf$$subs.awk | sed '
8857 ' >>$CONFIG_STATUS || ac_write_fail=1
8858 rm -f conf$$subs.awk
8859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8861 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8862 for (key in S) S_is_set[key] = 1
8868 nfields = split(line, field, "@
")
8870 len = length(field[1])
8871 for (i = 2; i < nfields; i++) {
8873 keylen = length(key)
8874 if (S_is_set[key]) {
8876 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8877 len += length(value) + length(field[++i])
8888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8889 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8890 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8893 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8894 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8897 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8898 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8899 # trailing colons and then remove the whole line if VPATH becomes empty
8900 # (actually we leave an empty line to preserve line numbers).
8901 if test "x
$srcdir" = x.; then
8902 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8921 fi # test -n "$CONFIG_FILES"
8923 # Set up the scripts for CONFIG_HEADERS section.
8924 # No need to generate them if there are no CONFIG_HEADERS.
8925 # This happens for instance with `./config.status Makefile'.
8926 if test -n "$CONFIG_HEADERS"; then
8927 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8931 # Transform confdefs.h into an awk script `defines.awk', embedded as
8932 # here-document in config.status, that substitutes the proper values into
8933 # config.h.in to produce config.h.
8935 # Create a delimiter string that does not exist in confdefs.h, to ease
8936 # handling of long lines.
8938 for ac_last_try in false false :; do
8939 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8940 if test -z "$ac_tt"; then
8942 elif $ac_last_try; then
8943 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8945 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8949 # For the awk script, D is an array of macro values keyed by name,
8950 # likewise P contains macro parameters if any. Preserve backslash
8951 # newline sequences.
8953 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8955 s/.\{148\}/&'"$ac_delim"'/g
8958 s/^[ ]*#[ ]*define[ ][ ]*/ /
8965 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8967 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8971 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8972 D["\
1"]=" \
3\\\\\\n
"\\/p
8974 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8979 s/.\{148\}/&'"$ac_delim"'/g
8984 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8987 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8989 ' <confdefs.h | sed '
8990 s/'"$ac_delim"'/"\\\
8991 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8994 for (key in D) D_is_set[key] = 1
8997 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8999 split(line, arg, " ")
9000 if (arg[1] == "#") {
9004 defundef
= substr
(arg
[1], 2)
9007 split(mac1
, mac2
, "(") #)
9009 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9010 if (D_is_set
[macro
]) {
9011 # Preserve the white space surrounding the "#".
9012 print prefix
"define", macro P
[macro
] D
[macro
]
9015 # Replace #undef with comments. This is necessary, for example,
9016 # in the case of _POSIX_SOURCE, which is predefined and required
9017 # on some systems where configure will not decide to define it.
9018 if (defundef
== "undef") {
9019 print
"/*", prefix defundef
, macro
, "*/"
9027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9028 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9029 fi # test -n "$CONFIG_HEADERS"
9032 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9037 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9039 case $ac_mode$ac_tag in
9041 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9042 :[FH
]-) ac_tag
=-:-;;
9043 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9060 -) ac_f
="$ac_tmp/stdin";;
9061 *) # Look for the file first in the build tree, then in the source tree
9062 # (if the path is not absolute). The absolute path cannot be DOS-style,
9063 # because $ac_f cannot contain `:'.
9067 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9069 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9071 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9072 as_fn_append ac_file_inputs
" '$ac_f'"
9075 # Let's still pretend it is `configure' which instantiates (i.e., don't
9076 # use $as_me), people would be surprised to read:
9077 # /* config.h. Generated by config.status. */
9078 configure_input
='Generated from '`
9079 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9081 if test x
"$ac_file" != x-
; then
9082 configure_input
="$ac_file. $configure_input"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9084 $as_echo "$as_me: creating $ac_file" >&6;}
9086 # Neutralize special characters interpreted by sed in replacement strings.
9087 case $configure_input in #(
9088 *\
&* |
*\|
* |
*\\* )
9089 ac_sed_conf_input
=`$as_echo "$configure_input" |
9090 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9091 *) ac_sed_conf_input
=$configure_input;;
9095 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9096 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9101 ac_dir
=`$as_dirname -- "$ac_file" ||
9102 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9103 X"$ac_file" : 'X\(//\)[^/]' \| \
9104 X"$ac_file" : 'X\(//\)$' \| \
9105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9106 $as_echo X"$ac_file" |
9107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9124 as_dir
="$ac_dir"; as_fn_mkdir_p
9128 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9130 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9131 # A ".." for each directory in $ac_dir_suffix.
9132 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9133 case $ac_top_builddir_sub in
9134 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9135 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9138 ac_abs_top_builddir
=$ac_pwd
9139 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9140 # for backward compatibility:
9141 ac_top_builddir
=$ac_top_build_prefix
9144 .
) # We are building in place.
9146 ac_top_srcdir
=$ac_top_builddir_sub
9147 ac_abs_top_srcdir
=$ac_pwd ;;
9148 [\\/]* | ?
:[\\/]* ) # Absolute name.
9149 ac_srcdir
=$srcdir$ac_dir_suffix;
9150 ac_top_srcdir
=$srcdir
9151 ac_abs_top_srcdir
=$srcdir ;;
9153 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9154 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9155 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9157 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9167 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9168 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9173 # If the template does not know about datarootdir, expand it.
9174 # FIXME: This hack should be removed a few years after 2.60.
9175 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9187 *datarootdir
*) ac_datarootdir_seen
=yes;;
9188 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9193 ac_datarootdir_hack='
9194 s&@datadir@&$datadir&g
9195 s&@docdir@&$docdir&g
9196 s&@infodir@&$infodir&g
9197 s&@localedir@&$localedir&g
9198 s&@mandir@&$mandir&g
9199 s&\\\${datarootdir}&$datarootdir&g' ;;
9203 # Neutralize VPATH when `$srcdir' = `.'.
9204 # Shell code in configure.ac might set extrasub.
9205 # FIXME: do we really want to maintain this feature?
9206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9207 ac_sed_extra="$ac_vpsub
9210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9212 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9213 s|@configure_input@|
$ac_sed_conf_input|
;t t
9214 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9215 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9216 s
&@srcdir@
&$ac_srcdir&;t t
9217 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9218 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9219 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9220 s
&@builddir@
&$ac_builddir&;t t
9221 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9222 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9223 s
&@INSTALL@
&$ac_INSTALL&;t t
9224 $ac_datarootdir_hack
9226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9227 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9230 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9232 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9234 which seems to be undefined. Please make sure it is defined" >&5
9235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9236 which seems to be undefined. Please make sure it is defined" >&2;}
9238 rm -f "$ac_tmp/stdin"
9240 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9241 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9249 if test x"$ac_file" != x-; then
9251 $as_echo "/* $configure_input */" \
9252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9253 } >"$ac_tmp/config.h" \
9254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9255 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9260 mv "$ac_tmp/config.h" "$ac_file" \
9261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9264 $as_echo "/* $configure_input */" \
9265 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9266 || as_fn_error $? "could not create -" "$LINENO" 5
9270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9271 $as_echo "$as_me: executing $ac_file commands" >&6;}
9276 case $ac_file$ac_mode in
9277 "default-1":C) if test -f .devel; then
9278 echo timestamp > stamp-h
9279 cat Makefile-devel-adds >> Makefile
9289 ac_clean_files=$ac_clean_files_save
9291 test $ac_write_fail = 0 ||
9292 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9295 # configure is writing to config.log, and then calls config.status.
9296 # config.status does its own redirection, appending to config.log.
9297 # Unfortunately, on DOS this fails, as config.log is still kept open
9298 # by configure, so config.status won't be able to
write to it
; its
9299 # output is simply discarded. So we exec the FD to /dev/null,
9300 # effectively closing config.log, so it can be properly (re)opened and
9301 # appended to by config.status. When coming back to configure, we
9302 # need to make the FD available again.
9303 if test "$no_create" != yes; then
9305 ac_config_status_args
=
9306 test "$silent" = yes &&
9307 ac_config_status_args
="$ac_config_status_args --quiet"
9309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9312 # would make configure fail if this is the last instruction.
9313 $ac_cs_success || as_fn_exit
1
9315 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9317 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}