2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for tor 0.2.9.10.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
579 PACKAGE_TARNAME
='tor'
580 PACKAGE_VERSION
='0.2.9.10'
581 PACKAGE_STRING
='tor 0.2.9.10'
585 ac_unique_file
="src/or/main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='am__EXEEXT_FALSE
632 BUILD_CURVE25519_DONNA_C64_FALSE
633 BUILD_CURVE25519_DONNA_C64_TRUE
634 BUILD_CURVE25519_DONNA_FALSE
635 BUILD_CURVE25519_DONNA_TRUE
650 TOR_CPPFLAGS_libevent
654 BUILD_READPASSPHRASE_C_FALSE
655 BUILD_READPASSPHRASE_C_TRUE
656 THREADS_PTHREADS_FALSE
657 THREADS_PTHREADS_TRUE
660 BUILD_NT_SERVICES_FALSE
661 BUILD_NT_SERVICES_TRUE
687 USE_OPENBSD_MALLOC_FALSE
688 USE_OPENBSD_MALLOC_TRUE
689 DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE
690 DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE
691 COVERAGE_ENABLED_FALSE
692 COVERAGE_ENABLED_TRUE
693 UNITTESTS_ENABLED_FALSE
694 UNITTESTS_ENABLED_TRUE
738 INSTALL_STRIP_PROGRAM
780 program_transform_name
793 enable_option_checking
795 enable_dependency_tracking
796 enable_openbsd_malloc
797 enable_static_openssl
798 enable_static_libevent
803 enable_asserts_in_tests
808 enable_fatal_warnings
809 enable_gcc_warnings_advisory
811 enable_expensive_hardening
812 enable_linker_hardening
815 enable_tool_name_check
829 ac_precious_vars
='build_alias
848 # Initialize some variables set by options.
850 ac_init_version
=false
851 ac_unrecognized_opts
=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
862 program_transform_name
=s
,x
,x
,
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir
='${exec_prefix}/bin'
877 sbindir
='${exec_prefix}/sbin'
878 libexecdir
='${exec_prefix}/libexec'
879 datarootdir
='${prefix}/share'
880 datadir
='${datarootdir}'
881 sysconfdir
='${prefix}/etc'
882 sharedstatedir
='${prefix}/com'
883 localstatedir
='${prefix}/var'
884 includedir
='${prefix}/include'
885 oldincludedir
='/usr/include'
886 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir
='${datarootdir}/info'
892 libdir
='${exec_prefix}/lib'
893 localedir
='${datarootdir}/locale'
894 mandir
='${datarootdir}/man'
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\
$ac_option
908 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
919 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
921 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
924 -build |
--build |
--buil |
--bui |
--bu)
925 ac_prev
=build_alias
;;
926 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
927 build_alias
=$ac_optarg ;;
929 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
930 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
931 ac_prev
=cache_file
;;
932 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
933 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
934 cache_file
=$ac_optarg ;;
937 cache_file
=config.cache
;;
939 -datadir |
--datadir |
--datadi |
--datad)
941 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
942 datadir
=$ac_optarg ;;
944 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
945 |
--dataroo |
--dataro |
--datar)
946 ac_prev
=datarootdir
;;
947 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
948 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
949 datarootdir
=$ac_optarg ;;
951 -disable-* |
--disable-*)
952 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
955 as_fn_error $?
"invalid feature name: $ac_useropt"
956 ac_useropt_orig
=$ac_useropt
957 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep
=', ';;
965 eval enable_
$ac_useropt=no
;;
967 -docdir |
--docdir |
--docdi |
--doc |
--do)
969 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
972 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
974 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
977 -enable-* |
--enable-*)
978 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
981 as_fn_error $?
"invalid feature name: $ac_useropt"
982 ac_useropt_orig
=$ac_useropt
983 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep
=', ';;
991 eval enable_
$ac_useropt=\
$ac_optarg ;;
993 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
994 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
995 |
--exec |
--exe |
--ex)
996 ac_prev
=exec_prefix
;;
997 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
998 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
999 |
--exec=* |
--exe=* |
--ex=*)
1000 exec_prefix
=$ac_optarg ;;
1002 -gas |
--gas |
--ga |
--g)
1003 # Obsolete; use --with-gas.
1006 -help |
--help |
--hel |
--he |
-h)
1007 ac_init_help
=long
;;
1008 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1009 ac_init_help
=recursive
;;
1010 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1011 ac_init_help
=short
;;
1013 -host |
--host |
--hos |
--ho)
1014 ac_prev
=host_alias
;;
1015 -host=* |
--host=* |
--hos=* |
--ho=*)
1016 host_alias
=$ac_optarg ;;
1018 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1020 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1022 htmldir
=$ac_optarg ;;
1024 -includedir |
--includedir |
--includedi |
--included |
--include \
1025 |
--includ |
--inclu |
--incl |
--inc)
1026 ac_prev
=includedir
;;
1027 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1028 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1029 includedir
=$ac_optarg ;;
1031 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1033 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1034 infodir
=$ac_optarg ;;
1036 -libdir |
--libdir |
--libdi |
--libd)
1038 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1039 libdir
=$ac_optarg ;;
1041 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1042 |
--libexe |
--libex |
--libe)
1043 ac_prev
=libexecdir
;;
1044 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1045 |
--libexe=* |
--libex=* |
--libe=*)
1046 libexecdir
=$ac_optarg ;;
1048 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1049 ac_prev
=localedir
;;
1050 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1051 localedir
=$ac_optarg ;;
1053 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1054 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1055 ac_prev
=localstatedir
;;
1056 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1057 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1058 localstatedir
=$ac_optarg ;;
1060 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1062 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1063 mandir
=$ac_optarg ;;
1065 -nfp |
--nfp |
--nf)
1066 # Obsolete; use --without-fp.
1069 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1070 |
--no-cr |
--no-c |
-n)
1073 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1074 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1077 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1078 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1079 |
--oldin |
--oldi |
--old |
--ol |
--o)
1080 ac_prev
=oldincludedir
;;
1081 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1082 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1083 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1084 oldincludedir
=$ac_optarg ;;
1086 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1088 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1089 prefix
=$ac_optarg ;;
1091 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1092 |
--program-pre |
--program-pr |
--program-p)
1093 ac_prev
=program_prefix
;;
1094 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1095 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1096 program_prefix
=$ac_optarg ;;
1098 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1099 |
--program-suf |
--program-su |
--program-s)
1100 ac_prev
=program_suffix
;;
1101 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1102 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1103 program_suffix
=$ac_optarg ;;
1105 -program-transform-name |
--program-transform-name \
1106 |
--program-transform-nam |
--program-transform-na \
1107 |
--program-transform-n |
--program-transform- \
1108 |
--program-transform |
--program-transfor \
1109 |
--program-transfo |
--program-transf \
1110 |
--program-trans |
--program-tran \
1111 |
--progr-tra |
--program-tr |
--program-t)
1112 ac_prev
=program_transform_name
;;
1113 -program-transform-name=* |
--program-transform-name=* \
1114 |
--program-transform-nam=* |
--program-transform-na=* \
1115 |
--program-transform-n=* |
--program-transform-=* \
1116 |
--program-transform=* |
--program-transfor=* \
1117 |
--program-transfo=* |
--program-transf=* \
1118 |
--program-trans=* |
--program-tran=* \
1119 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1120 program_transform_name
=$ac_optarg ;;
1122 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1124 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1125 pdfdir
=$ac_optarg ;;
1127 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1129 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1132 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1133 |
-silent |
--silent |
--silen |
--sile |
--sil)
1136 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1138 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1140 sbindir
=$ac_optarg ;;
1142 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1143 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1144 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1146 ac_prev
=sharedstatedir
;;
1147 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1148 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1149 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1151 sharedstatedir
=$ac_optarg ;;
1153 -site |
--site |
--sit)
1155 -site=* |
--site=* |
--sit=*)
1158 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1160 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1161 srcdir
=$ac_optarg ;;
1163 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1164 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1165 ac_prev
=sysconfdir
;;
1166 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1167 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1168 sysconfdir
=$ac_optarg ;;
1170 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1171 ac_prev
=target_alias
;;
1172 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1173 target_alias
=$ac_optarg ;;
1175 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1178 -version |
--version |
--versio |
--versi |
--vers |
-V)
1179 ac_init_version
=: ;;
1182 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1185 as_fn_error $?
"invalid package name: $ac_useropt"
1186 ac_useropt_orig
=$ac_useropt
1187 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1192 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep
=', ';;
1195 eval with_
$ac_useropt=\
$ac_optarg ;;
1197 -without-* |
--without-*)
1198 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1201 as_fn_error $?
"invalid package name: $ac_useropt"
1202 ac_useropt_orig
=$ac_useropt
1203 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep
=', ';;
1211 eval with_
$ac_useropt=no
;;
1214 # Obsolete; use --with-x.
1217 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1218 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1219 ac_prev
=x_includes
;;
1220 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1221 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1222 x_includes
=$ac_optarg ;;
1224 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1225 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1226 ac_prev
=x_libraries
;;
1227 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1228 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1229 x_libraries
=$ac_optarg ;;
1231 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information"
1236 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1240 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1242 eval $ac_envvar=\
$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256 if test -n "$ac_prev"; then
1257 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $?
"missing argument to $ac_option"
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1264 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 # Check all directory arguments for consistency.
1270 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val
=\$
$ac_var
1276 # Remove trailing slashes.
1279 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\
$ac_val;;
1282 # Be sure to have absolute directory names.
1284 [\\/$
]* | ?
:[\\/]* ) continue;;
1285 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1287 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target
=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x
; then
1299 if test "x$build_alias" = x
; then
1300 cross_compiling
=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1309 test "$silent" = yes && exec 6>/dev
/null
1312 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di
=`ls -di .` &&
1314 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $?
"working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $?
"pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted
=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir
=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1352 ac_srcdir_defaulted
=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1356 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var
in $ac_precious_vars; do
1373 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1375 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures tor 0.2.9.10 to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/tor]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1449 --build=BUILD configure
for building on BUILD
[guessed
]
1450 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive
) echo "Configuration of tor 0.2.9.10:";;
1461 --disable-option-checking ignore unrecognized
--enable/--with options
1462 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1463 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1464 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1465 --disable-silent-rules verbose build output
(undo
: "make V=0")
1466 --enable-dependency-tracking
1467 do not reject slow dependency extractors
1468 --disable-dependency-tracking
1469 speeds up one-time build
1470 --enable-openbsd-malloc use malloc code from OpenBSD. Linux only
1471 --enable-static-openssl link against a static openssl library. Requires
1473 --enable-static-libevent
1474 link against a static libevent library. Requires
1476 --enable-static-zlib link against a static zlib library. Requires
1478 --enable-static-tor create an entirely static Tor binary. Requires
1479 --with-openssl-dir and
--with-libevent-dir and
1481 --disable-unittests don
't build unit tests for Tor. Risky!
1482 --enable-coverage enable coverage support in the unit-test build
1483 --disable-asserts-in-tests
1484 disable tor_assert() calls in the unit tests, for
1486 --disable-system-torrc don't
look for a system-wide torrc
file
1487 --disable-asciidoc don
't use asciidoc (disables building of manpages)
1488 --enable-systemd enable systemd notification support
1489 --enable-gcc-warnings deprecated alias for enable-fatal-warnings
1490 --enable-fatal-warnings tell the compiler to treat all warnings as errors.
1491 --disable-gcc-warnings-advisory
1492 disable the regular verbose warnings
1493 --disable-gcc-hardening disable compiler security checks
1494 --enable-expensive-hardening
1495 enable more expensive compiler hardening; makes Tor
1497 --disable-linker-hardening
1498 disable linker security fixups
1499 --enable-local-appdata default to host local application data paths on
1501 --enable-tor2web-mode support tor2web non-anonymous mode
1502 --disable-tool-name-check
1503 check for sanely named toolchain when
1505 --disable-seccomp do not attempt to use libseccomp
1506 --disable-libscrypt do not attempt to use libscrypt
1507 --disable-largefile omit support for large files
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-tor-user=NAME specify username for tor daemon
1513 --with-tor-group=NAME specify group name for tor daemon
1514 --with-libevent-dir=PATH
1515 specify path to libevent installation
1516 --with-ssl-dir=PATH obsolete alias for --with-openssl-dir
1517 --with-openssl-dir=PATH specify path to openssl installation
1518 --with-zlib-dir=PATH specify path to zlib installation
1519 --with-dmalloc use debug memory allocation library
1520 --with-tcmalloc use tcmalloc memory allocation library
1521 --with-syslog-facility=LOG
1522 syslog facility to use (default=LOG_DAEMON)
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1533 PKG_CONFIG path to pkg-config utility
1535 directories to add to pkg-config's search path
1537 path overriding pkg-config
's built-in search path
1539 C compiler flags for SYSTEMD, overriding pkg-config
1541 linker flags for SYSTEMD, overriding pkg-config
1542 LIBSYSTEMD209_CFLAGS
1543 C compiler flags for LIBSYSTEMD209, overriding pkg-config
1545 linker flags for LIBSYSTEMD209, overriding pkg-config
1546 PYTHON path to Python binary
1548 Use these variables to override the choices made by `configure' or to
help
1549 it to
find libraries and programs with nonstandard names
/locations.
1551 Report bugs to the package provider.
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1559 test -d "$ac_dir" ||
1560 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1565 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1567 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568 # A ".." for each directory in $ac_dir_suffix.
1569 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1572 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1575 ac_abs_top_builddir
=$ac_pwd
1576 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir
=$ac_top_build_prefix
1581 .
) # We are building in place.
1583 ac_top_srcdir
=$ac_top_builddir_sub
1584 ac_abs_top_srcdir
=$ac_pwd ;;
1585 [\\/]* | ?
:[\\/]* ) # Absolute name.
1586 ac_srcdir
=$srcdir$ac_dir_suffix;
1587 ac_top_srcdir
=$srcdir
1588 ac_abs_top_srcdir
=$srcdir ;;
1590 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1594 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1596 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1614 tor configure
0.2.9.10
1615 generated by GNU Autoconf
2.69
1617 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1618 This configure
script is free software
; the Free Software Foundation
1619 gives unlimited permission to copy
, distribute and modify it.
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile
()
1633 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1634 rm -f conftest.
$ac_objext
1635 if { { ac_try
="$ac_compile"
1637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext; then :
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1664 } # ac_fn_c_try_compile
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1675 *) ac_try_echo
=$ac_try;;
1677 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 if test -s conftest.err
; then
1682 grep -v '^ *+' conftest.err
>conftest.er1
1683 cat conftest.er1
>&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } > conftest.i
&& {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.
$ac_ext >&5
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status
$ac_retval
1703 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1706 # the include files in INCLUDES and setting the cache variable VAR
1708 ac_fn_c_check_header_mongrel
()
1710 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1711 if eval \
${$3+:} false
; then :
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \
${$3+:} false
; then :
1715 $as_echo_n "(cached) " >&6
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1721 # Is the header compilable?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1723 $as_echo_n "checking $2 usability... " >&6; }
1724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1729 if ac_fn_c_try_compile
"$LINENO"; then :
1730 ac_header_compiler
=yes
1732 ac_header_compiler
=no
1734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1736 $as_echo "$ac_header_compiler" >&6; }
1738 # Is the header present?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1740 $as_echo_n "checking $2 presence... " >&6; }
1741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1745 if ac_fn_c_try_cpp
"$LINENO"; then :
1746 ac_header_preproc
=yes
1748 ac_header_preproc
=no
1750 rm -f conftest.err conftest.i conftest.
$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1752 $as_echo "$ac_header_preproc" >&6; }
1754 # So? What about this header?
1755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1758 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1764 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1766 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1768 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1770 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \
${$3+:} false
; then :
1778 $as_echo_n "(cached) " >&6
1780 eval "$3=\$ac_header_compiler"
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 } # ac_fn_c_check_header_mongrel
1790 # ac_fn_c_try_run LINENO
1791 # ----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793 # that executables *can* be run.
1796 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1797 if { { ac_try
="$ac_link"
1799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>&5
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808 { { case "(($ac_try" in
1809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1810 *) ac_try_echo
=$ac_try;;
1812 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_try") 2>&5
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; }; }; then :
1820 $as_echo "$as_me: program exited with status $ac_status" >&5
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.
$ac_ext >&5
1824 ac_retval
=$ac_status
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status
$ac_retval
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile
()
1838 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \
${$3+:} false
; then :
1842 $as_echo_n "(cached) " >&6
1844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1849 if ac_fn_c_try_compile
"$LINENO"; then :
1854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_header_compile
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1869 rm -f conftest.
$ac_objext conftest
$ac_exeext
1870 if { { ac_try
="$ac_link"
1872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 test -x conftest$ac_exeext
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_link
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924 #define $2 innocuous_$2
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below.
1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929 <limits.h> exists even on freestanding compilers. */
1932 # include <limits.h>
1934 # include <assert.h>
1939 /* Override any GCC internal prototype to avoid an error.
1940 Use char because int might match the return type of a GCC
1941 builtin and then its argument prototype would still apply. */
1946 /* The GNU C library defines this for functions which it implements
1947 to always fail with ENOSYS. Some functions are actually named
1948 something starting with __ and the normal name is an alias. */
1949 #if defined __stub_$2 || defined __stub___$2
1961 if ac_fn_c_try_link "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_func
1976 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1977 # ---------------------------------------------
1978 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1980 ac_fn_c_check_decl ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1984 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1986 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1996 #ifndef $as_decl_name
1998 (void) $as_decl_use;
2000 (void) $as_decl_name;
2008 if ac_fn_c_try_compile "$LINENO"; then :
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_decl
2022 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023 # ----------------------------------------------------
2024 # Tries to find if the field MEMBER exists in type AGGR, after including
2025 # INCLUDES, setting cache variable VAR accordingly.
2026 ac_fn_c_check_member ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030 $as_echo_n "checking for $2.$3... " >&6; }
2031 if eval \${$4+:} false; then :
2032 $as_echo_n "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2047 if ac_fn_c_try_compile "$LINENO"; then :
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2057 if (sizeof ac_aggr.$3)
2063 if ac_fn_c_try_compile "$LINENO"; then :
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_member
2079 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2080 # --------------------------------------------
2081 # Tries to find the compile-time value of EXPR in a program that includes
2082 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2084 ac_fn_c_compute_int ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if test "$cross_compiling" = yes; then
2088 # Depending upon the size, compute the lo and hi bounds.
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) >= 0)];
2097 return test_array [0];
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 return test_array [0];
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=$ac_mid; break
2123 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2124 if test $ac_lo -le $ac_mid; then
2128 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) < 0)];
2141 return test_array [0];
2147 if ac_fn_c_try_compile "$LINENO"; then :
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2158 return test_array [0];
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_lo=$ac_mid; break
2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2168 if test $ac_mid -le $ac_hi; then
2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 # Binary search between lo and hi bounds.
2183 while test "x$ac_lo" != "x$ac_hi"; do
2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2214 static long int longval () { return $2; }
2215 static unsigned long int ulongval () { return $2; }
2222 FILE *f = fopen ("conftest.val", "w");
2227 long int i = longval ();
2230 fprintf (f, "%ld", i);
2234 unsigned long int i = ulongval ();
2237 fprintf (f, "%lu", i);
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2247 if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2260 } # ac_fn_c_compute_int
2262 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2263 # -------------------------------------------
2264 # Tests whether TYPE exists after having included INCLUDES, setting cache
2265 # variable VAR accordingly.
2266 ac_fn_c_check_type ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if eval \${$3+:} false; then :
2272 $as_echo_n "(cached) " >&6
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2300 if ac_fn_c_try_compile "$LINENO"; then :
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314 } # ac_fn_c_check_type
2315 cat >config.log <<_ACEOF
2316 This file contains any messages produced by compilers while
2317 running configure, to aid debugging if configure makes a mistake.
2319 It was created by tor $as_me 0.2.9.10, which was
2320 generated by GNU Autoconf 2.69. Invocation command line was
2332 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2333 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2334 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2335 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2336 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2338 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2339 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2341 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2342 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2343 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2344 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2345 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2346 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2347 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 $as_echo "PATH: $as_dir"
2372 # Keep a trace of the command line.
2373 # Strip out --no-create and --no-recursion so they do not pile up.
2374 # Strip out --silent because we don't want to record it for future runs.
2375 # Also quote any args containing shell meta-characters.
2376 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_must_keep_next=false
2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388 | -silent | --silent | --silen | --sile | --sil)
2391 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2396 as_fn_append ac_configure_args1 " '$ac_arg'"
2397 if test $ac_must_keep_next = true; then
2398 ac_must_keep_next=false # Got value, back to normal.
2401 *=* | --config-cache | -C | -disable-* | --disable-* \
2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404 | -with-* | --with-* | -without-* | --without-* | --x)
2405 case "$ac_configure_args0 " in
2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2409 -* ) ac_must_keep_next=true ;;
2412 as_fn_append ac_configure_args " '$ac_arg'"
2417 { ac_configure_args0=; unset ac_configure_args0;}
2418 { ac_configure_args1=; unset ac_configure_args1;}
2420 # When interrupted or exit'd, cleanup temporary files, and complete
2421 # config.log. We remove comments because anyway the quotes in there
2422 # would cause problems or look ugly.
2423 # WARNING: Use '\'' to represent an apostrophe within the trap.
2424 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2425 trap 'exit_status=$?
2426 # Save into config.log some information that might help in debugging.
2430 $as_echo "## ---------------- ##
2431 ## Cache variables. ##
2432 ## ---------------- ##"
2434 # The following way of writing the cache mishandles newlines in values,
2436 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2437 eval ac_val=\$$ac_var
2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2442 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2452 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2466 $as_echo "## ----------------- ##
2467 ## Output variables. ##
2468 ## ----------------- ##"
2470 for ac_var in $ac_subst_vars
2472 eval ac_val=\$$ac_var
2474 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 $as_echo "$ac_var='\''$ac_val'\''"
2480 if test -n "$ac_subst_files"; then
2481 $as_echo "## ------------------- ##
2482 ## File substitutions. ##
2483 ## ------------------- ##"
2485 for ac_var in $ac_subst_files
2487 eval ac_val=\$$ac_var
2489 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2491 $as_echo "$ac_var='\''$ac_val'\''"
2496 if test -s confdefs.h; then
2497 $as_echo "## ----------- ##
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2512 for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2518 rm -f -r conftest* confdefs.h
2520 $as_echo "/* confdefs.h */" > confdefs.h
2522 # Predefined preprocessor variables.
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_NAME "$PACKAGE_NAME"
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_STRING "$PACKAGE_STRING"
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_URL "$PACKAGE_URL"
2549 # Let the site file select an alternate cache file if it wants to.
2550 # Prefer an explicitly selected file to automatically selected ones.
2553 if test -n "$CONFIG_SITE"; then
2554 # We do not want a PATH search for config.site.
2555 case $CONFIG_SITE in #((
2556 -*) ac_site_file1=./$CONFIG_SITE;;
2557 */*) ac_site_file1=$CONFIG_SITE;;
2558 *) ac_site_file1=./$CONFIG_SITE;;
2560 elif test "x$prefix" != xNONE; then
2561 ac_site_file1=$prefix/share/config.site
2562 ac_site_file2=$prefix/etc/config.site
2564 ac_site_file1=$ac_default_prefix/share/config.site
2565 ac_site_file2=$ac_default_prefix/etc/config.site
2567 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2569 test "x$ac_site_file" = xNONE && continue
2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 sed 's/^/| /' "$ac_site_file" >&5
2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 as_fn_error $? "failed to load site
script $ac_site_file
2578 See \
`config.log' for more details" "$LINENO" 5; }
2582 if test -r "$cache_file"; then
2583 # Some versions of bash will fail to source /dev/null (special files
2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2587 $as_echo "$as_me: loading cache $cache_file" >&6;}
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 # Check that the precious variables saved in the cache have kept the same
2601 ac_cache_corrupted=false
2602 for ac_var in $ac_precious_vars; do
2603 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2604 eval ac_new_set=\$ac_env_${ac_var}_set
2605 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2606 eval ac_new_val=\$ac_env_${ac_var}_value
2607 case $ac_old_set,$ac_new_set in
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2610 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2611 ac_cache_corrupted=: ;;
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2614 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2618 if test "x$ac_old_val" != "x$ac_new_val"; then
2619 # differences in whitespace do not lead to failure.
2620 ac_old_val_w=`echo x
$ac_old_val`
2621 ac_new_val_w=`echo x
$ac_new_val`
2622 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2624 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2625 ac_cache_corrupted=:
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2628 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2629 eval $ac_var=\$ac_old_val
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2632 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2634 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2637 # Pass precious variables to config.status.
2638 if test "$ac_new_set" = set; then
2640 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2641 *) ac_arg=$ac_var=$ac_new_val ;;
2643 case " $ac_configure_args " in
2644 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2645 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2649 if $ac_cache_corrupted; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2653 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2654 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2656 ## -------------------- ##
2657 ## Main body of script. ##
2658 ## -------------------- ##
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 # "foreign" means we don't follow GNU package layout standards
2671 # "1.11" means we require automake version 1.11 or newer
2672 # "subdir-objects" means put .o files in the same directory as the .c files
2673 am__api_version='1.15'
2676 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2677 if test -f "$ac_dir/install-sh"; then
2679 ac_install_sh="$ac_aux_dir/install-sh -c"
2681 elif test -f "$ac_dir/install.sh"; then
2683 ac_install_sh="$ac_aux_dir/install.sh -c"
2685 elif test -f "$ac_dir/shtool"; then
2687 ac_install_sh="$ac_aux_dir/shtool install -c"
2691 if test -z "$ac_aux_dir"; then
2692 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2695 # These three variables are undocumented and unsupported,
2696 # and are intended to be withdrawn in a future Autoconf release.
2697 # They can cause serious problems if a builder's source tree is in a directory
2698 # whose full name contains unusual characters.
2699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2704 # Find a good install program. We prefer a C program (faster),
2705 # so one script is as good as another. But avoid the broken or
2706 # incompatible versions:
2707 # SysV /etc/install, /usr/sbin/install
2708 # SunOS /usr/etc/install
2709 # IRIX /sbin/install
2711 # AmigaOS /C/install, which installs bootblocks on floppy discs
2712 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2715 # OS/2's system install, which has a completely different semantic
2716 # ./install, which can be erroneously created by make from ./install.sh.
2717 # Reject install programs that cannot install multiple files.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2719 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2720 if test -z "$INSTALL"; then
2721 if ${ac_cv_path_install+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 # Account for people who put trailing slashes in PATH elements.
2730 case $as_dir/ in #((
2731 ./ | .// | /[cC]/* | \
2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2736 # OSF1 and SCO ODT 3.0 have their own names for install.
2737 # Don't use installbsd from OSF since it installs stuff as root
2739 for ac_prog in ginstall scoinst install; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2742 if test $ac_prog = install &&
2743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2744 # AIX install. It has an incompatible calling convention.
2746 elif test $ac_prog = install &&
2747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # program-specific install script used by HP pwplus--don't use.
2751 rm -rf conftest.one conftest.two conftest.dir
2752 echo one > conftest.one
2753 echo two > conftest.two
2755 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2756 test -s conftest.one && test -s conftest.two &&
2757 test -s conftest.dir/conftest.one &&
2758 test -s conftest.dir/conftest.two
2760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2773 rm -rf conftest.one conftest.two conftest.dir
2776 if test "${ac_cv_path_install+set}" = set; then
2777 INSTALL=$ac_cv_path_install
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for INSTALL within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 INSTALL=$ac_install_sh
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2787 $as_echo "$INSTALL" >&6; }
2789 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2790 # It thinks the first close brace ends the variable substitution.
2791 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2793 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2798 $as_echo_n "checking whether build environment is sane... " >&6; }
2799 # Reject unsafe characters in $srcdir or the absolute working directory
2800 # name. Accept space and tab only in the latter.
2804 *[\\\"\#\$\&\'\`$am_lf]*)
2805 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2808 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2809 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2812 # Do 'set' in a subshell so we don't clobber the current shell's
2813 # arguments. Must try -L first in case configure is actually a
2814 # symlink; some systems play weird games with the mod time of symlinks
2815 # (eg FreeBSD returns the mod time of the symlink's containing
2819 for am_try
in 1 2; do
2820 echo "timestamp, slept: $am_has_slept" > conftest.
file
2821 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2822 if test "$*" = "X"; then
2824 set X
`ls -t "$srcdir/configure" conftest.file`
2826 if test "$*" != "X $srcdir/configure conftest.file" \
2827 && test "$*" != "X conftest.file $srcdir/configure"; then
2829 # If neither matched, then we have a broken ls. This can happen
2830 # if, for instance, CONFIG_SHELL is bash and it inherits a
2831 # broken ls alias from the environment. This has actually
2832 # happened. Such a system could not be considered "sane".
2833 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2834 alias in your environment" "$LINENO" 5
2836 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2843 test "$2" = conftest.
file
2849 as_fn_error $?
"newly created file is older than distributed files!
2850 Check your system clock" "$LINENO" 5
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854 # If we didn't sleep, we still need to ensure time stamps of config.status and
2855 # generated files are strictly newer.
2857 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2864 test "$program_prefix" != NONE
&&
2865 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2866 # Use a double $ so make ignores it.
2867 test "$program_suffix" != NONE
&&
2868 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2869 # Double any \ or $.
2870 # By default was `s,x,x', remove it if useless.
2871 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2872 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2874 # Expand $ac_aux_dir to an absolute path.
2875 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2877 if test x
"${MISSING+set}" != xset
; then
2880 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2882 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2885 # Use eval to expand $SHELL
2886 if eval "$MISSING --is-lightweight"; then
2887 am_missing_run
="$MISSING "
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2891 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2894 if test x
"${install_sh+set}" != xset
; then
2897 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2899 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2903 # Installed binaries are usually stripped using 'strip' when the user
2904 # run "make install-strip". However 'strip' might not be the right
2905 # tool to use in cross-compilation environments, therefore Automake
2906 # will honor the 'STRIP' environment variable to overrule this program.
2907 if test "$cross_compiling" != no
; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2910 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_STRIP+:} false
; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$STRIP"; then
2917 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 for ac_exec_ext
in '' $ac_executable_extensions; do
2925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 STRIP
=$ac_cv_prog_STRIP
2937 if test -n "$STRIP"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2939 $as_echo "$STRIP" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$ac_cv_prog_STRIP"; then
2949 # Extract the first word of "strip", so it can be a program name with args.
2950 set dummy strip
; ac_word
=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$ac_ct_STRIP"; then
2957 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_STRIP
="strip"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2977 if test -n "$ac_ct_STRIP"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979 $as_echo "$ac_ct_STRIP" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2985 if test "x$ac_ct_STRIP" = x
; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned
=yes ;;
2997 STRIP
="$ac_cv_prog_STRIP"
3001 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3004 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3005 if test -z "$MKDIR_P"; then
3006 if ${ac_cv_path_mkdir+:} false
; then :
3007 $as_echo_n "(cached) " >&6
3009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3010 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3013 test -z "$as_dir" && as_dir
=.
3014 for ac_prog
in mkdir gmkdir
; do
3015 for ac_exec_ext
in '' $ac_executable_extensions; do
3016 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3017 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3018 'mkdir (GNU coreutils) '* | \
3019 'mkdir (coreutils) '* | \
3020 'mkdir (fileutils) '4.1*)
3021 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3031 test -d .
/--version && rmdir .
/--version
3032 if test "${ac_cv_path_mkdir+set}" = set; then
3033 MKDIR_P
="$ac_cv_path_mkdir -p"
3035 # As a last resort, use the slow shell script. Don't cache a
3036 # value for MKDIR_P within a source directory, because that will
3037 # break other packages using the cache if that directory is
3038 # removed, or if the value is a relative name.
3039 MKDIR_P
="$ac_install_sh -d"
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3043 $as_echo "$MKDIR_P" >&6; }
3045 for ac_prog
in gawk mawk nawk
awk
3047 # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy
$ac_prog; ac_word
=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_AWK+:} false
; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$AWK"; then
3055 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir
=.
3062 for ac_exec_ext
in '' $ac_executable_extensions; do
3063 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_AWK
="$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$AWK"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077 $as_echo "$AWK" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$AWK" && break
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3088 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3090 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3091 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3092 $as_echo_n "(cached) " >&6
3094 cat >conftest.
make <<\_ACEOF
3097 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3099 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3102 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3104 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3108 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 SET_MAKE
="MAKE=${MAKE-make}"
3118 rm -rf .tst
2>/dev
/null
3119 mkdir .tst
2>/dev
/null
3120 if test -d .tst
; then
3125 rmdir .tst
2>/dev
/null
3127 # Check whether --enable-silent-rules was given.
3128 if test "${enable_silent_rules+set}" = set; then :
3129 enableval
=$enable_silent_rules;
3132 case $enable_silent_rules in # (((
3133 yes) AM_DEFAULT_VERBOSITY
=0;;
3134 no
) AM_DEFAULT_VERBOSITY
=1;;
3135 *) AM_DEFAULT_VERBOSITY
=1;;
3137 am_make
=${MAKE-make}
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3139 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3140 if ${am_cv_make_support_nested_variables+:} false
; then :
3141 $as_echo_n "(cached) " >&6
3143 if $as_echo 'TRUE=$(BAR$(V))
3149 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3150 am_cv_make_support_nested_variables
=yes
3152 am_cv_make_support_nested_variables
=no
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3156 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3157 if test $am_cv_make_support_nested_variables = yes; then
3159 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3161 AM_V
=$AM_DEFAULT_VERBOSITY
3162 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3166 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3168 # is not polluted with repeated "-I."
3169 am__isrc
=' -I$(srcdir)'
3170 # test to see if srcdir already configured
3171 if test -f $srcdir/config.status
; then
3172 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3176 # test whether we have cygpath
3177 if test -z "$CYGPATH_W"; then
3178 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3179 CYGPATH_W
='cygpath -w'
3186 # Define the identity of the package.
3191 cat >>confdefs.h
<<_ACEOF
3192 #define PACKAGE "$PACKAGE"
3196 cat >>confdefs.h
<<_ACEOF
3197 #define VERSION "$VERSION"
3200 # Some tools Automake needs.
3202 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3205 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3208 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3211 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3214 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3216 # For better backward compatibility. To be removed once Automake 1.9.x
3217 # dies out for good. For more background, see:
3218 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3219 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3220 mkdir_p
='$(MKDIR_P)'
3222 # We need awk for the "check" target (and possibly the TAP driver). The
3223 # system "awk" is bad on some platforms.
3224 # Always define AMTAR for backward compatibility. Yes, it's still used
3225 # in the wild :-( We should find a proper way to deprecate it ...
3229 # We'll loop over all known methods to create a tar archive until one works.
3230 _am_tools
='gnutar pax cpio none'
3232 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3239 # POSIX will say in a future version that running "rm -f" with no argument
3240 # is OK; and we want to be able to make that assumption in our Makefile
3241 # recipes. So use an aggressive probe to check that the usage we want is
3242 # actually supported "in the wild" to an acceptable degree.
3243 # See automake bug#10828.
3244 # To make any issue more visible, cause the running configure to be aborted
3245 # by default if the 'rm' program in use doesn't match our expectations; the
3246 # user can still override this though.
3247 if rm -f && rm -fr && rm -rf; then : OK
; else
3251 Your 'rm' program seems unable to run without file operands specified
3252 on the command line, even when the '-f' option is present. This is contrary
3253 to the behaviour of most rm programs out there, and not conforming with
3254 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3256 Please tell bug-automake@gnu.org about your system, including the value
3257 of your $PATH and any error possibly output before this message. This
3258 can help us improve future automake versions.
3261 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3262 echo 'Configuration will proceed anyway, since you have set the' >&2
3263 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3267 Aborting the configuration process, to ensure you take notice of the issue.
3269 You can download and install GNU coreutils to get an 'rm' implementation
3270 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3272 If you want to complete the configuration process using your problematic
3273 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3274 to "yes", and re-run configure.
3277 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3282 # Check whether --enable-silent-rules was given.
3283 if test "${enable_silent_rules+set}" = set; then :
3284 enableval
=$enable_silent_rules;
3287 case $enable_silent_rules in # (((
3288 yes) AM_DEFAULT_VERBOSITY
=0;;
3289 no
) AM_DEFAULT_VERBOSITY
=1;;
3290 *) AM_DEFAULT_VERBOSITY
=0;;
3292 am_make
=${MAKE-make}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3294 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3295 if ${am_cv_make_support_nested_variables+:} false
; then :
3296 $as_echo_n "(cached) " >&6
3298 if $as_echo 'TRUE=$(BAR$(V))
3304 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3305 am_cv_make_support_nested_variables
=yes
3307 am_cv_make_support_nested_variables
=no
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3311 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3312 if test $am_cv_make_support_nested_variables = yes; then
3314 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3316 AM_V
=$AM_DEFAULT_VERBOSITY
3317 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3321 ac_config_headers="$ac_config_headers orconfig.h"
3324 DEPDIR="${am__leading_dot}deps"
3326 ac_config_commands="$ac_config_commands depfiles"
3329 am_make=${MAKE-make}
3330 cat > confinc << 'END
'
3332 @echo this is the am__doit target
3335 # If we don't
find an include directive
, just comment out the code.
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3337 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3341 # First try GNU make style include.
3342 echo "include confinc" > confmf
3343 # Ignore all kinds of additional output from 'make'.
3344 case `$am_make -s -f confmf 2> /dev/null` in #(
3345 *the\ am__doit\ target
*)
3351 # Now try BSD make style include.
3352 if test "$am__include" = "#"; then
3353 echo '.include "confinc"' > confmf
3354 case `$am_make -s -f confmf 2> /dev/null` in #(
3355 *the\ am__doit\ target
*)
3356 am__include
=.include
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3365 $as_echo "$_am_result" >&6; }
3366 rm -f confinc confmf
3368 # Check whether --enable-dependency-tracking was given.
3369 if test "${enable_dependency_tracking+set}" = set; then :
3370 enableval
=$enable_dependency_tracking;
3373 if test "x$enable_dependency_tracking" != xno
; then
3374 am_depcomp
="$ac_aux_dir/depcomp"
3378 if test "x$enable_dependency_tracking" != xno; then
3388 ac_cpp
='$CPP $CPPFLAGS'
3389 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false
; then :
3398 $as_echo_n "(cached) " >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC
="$CC" # Let the user override the test.
3403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir
=.
3408 for ac_exec_ext
in '' $ac_executable_extensions; do
3409 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3431 if test -z "$ac_cv_prog_CC"; then
3433 # Extract the first word of "gcc", so it can be a program name with args.
3434 set dummy gcc
; ac_word
=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3438 $as_echo_n "(cached) " >&6
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir
=.
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_ac_ct_CC
="gcc"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463 $as_echo "$ac_ct_CC" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3469 if test "x$ac_ct_CC" = x
; then
3472 case $cross_compiling:$ac_tool_warned in
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476 ac_tool_warned
=yes ;;
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3487 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 $as_echo_n "checking for $ac_word... " >&6; }
3490 if ${ac_cv_prog_CC+:} false
; then :
3491 $as_echo_n "(cached) " >&6
3493 if test -n "$CC"; then
3494 ac_cv_prog_CC
="$CC" # Let the user override the test.
3496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir
=.
3501 for ac_exec_ext
in '' $ac_executable_extensions; do
3502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 if test -n "$CC"; then
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 $as_echo "$CC" >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3525 if test -z "$CC"; then
3526 # Extract the first word of "cc", so it can be a program name with args.
3527 set dummy cc
; ac_word
=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false
; then :
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC
="$CC" # Let the user override the test.
3537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3541 test -z "$as_dir" && as_dir
=.
3542 for ac_exec_ext
in '' $ac_executable_extensions; do
3543 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3545 ac_prog_rejected
=yes
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 if test $ac_prog_rejected = yes; then
3557 # We found a bogon in the path, so make sure we never use it.
3558 set dummy
$ac_cv_prog_CC
3560 if test $# != 0; then
3561 # We chose a different compiler from the bogus one.
3562 # However, it has the same basename, so the bogon will be chosen
3563 # first if we set CC to just the basename; use the full file name.
3565 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3581 if test -z "$CC"; then
3582 if test -n "$ac_tool_prefix"; then
3583 for ac_prog
in cl.exe
3585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3586 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if ${ac_cv_prog_CC+:} false
; then :
3590 $as_echo_n "(cached) " >&6
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC
="$CC" # Let the user override the test.
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3622 test -n "$CC" && break
3625 if test -z "$CC"; then
3627 for ac_prog
in cl.exe
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630 set dummy
$ac_prog; ac_word
=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$ac_ct_CC"; then
3637 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_ac_ct_CC
="$ac_prog"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3657 if test -n "$ac_ct_CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3659 $as_echo "$ac_ct_CC" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3666 test -n "$ac_ct_CC" && break
3669 if test "x$ac_ct_CC" = x
; then
3672 case $cross_compiling:$ac_tool_warned in
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3676 ac_tool_warned
=yes ;;
3685 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $?
"no acceptable C compiler found in \$PATH
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 # Provide some information about the compiler.
3691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3694 for ac_option
in --version -v -V -qversion; do
3695 { { ac_try
="$ac_compiler $ac_option >&5"
3697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3704 if test -s conftest.err; then
3706 ... rest of stderr output deleted ...
3707 10q' conftest.err >conftest.er1
3708 cat conftest.er1 >&5
3710 rm -f conftest.er1 conftest.err
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3726 ac_clean_files_save=$ac_clean_files
3727 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3728 # Try to create an executable without -o first, disregard a.out.
3729 # It will help us diagnose broken compilers, and finding out an intuition
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3732 $as_echo_n "checking whether the C compiler works... " >&6; }
3733 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3735 # The possible output files:
3736 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3739 for ac_file in $ac_files
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3748 if { { ac_try="$ac_link_default"
3750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3751 *) ac_try_echo
=$ac_try;;
3753 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_link_default") 2>&5
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; then :
3759 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3760 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3761 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3762 # so that the user can short-circuit this test for compilers unknown to
3764 for ac_file
in $ac_files ''
3766 test -f "$ac_file" ||
continue
3768 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3771 # We found the default executable, but exeext='' is most
3775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3777 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779 # We set ac_cv_exeext here because the later test for it is not
3780 # safe: cross compilers may not add the suffix if given an `-o'
3781 # argument, so we may need to know it at that point already.
3782 # Even if this section looks crufty: it has the advantage of
3789 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3794 if test -z "$ac_file"; then :
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797 $as_echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.
$ac_ext >&5
3800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error
77 "C compiler cannot create executables
3803 See \`config.log' for more details" "$LINENO" 5; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3809 $as_echo_n "checking for C compiler default output file name... " >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3811 $as_echo "$ac_file" >&6; }
3812 ac_exeext
=$ac_cv_exeext
3814 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3815 ac_clean_files
=$ac_clean_files_save
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3817 $as_echo_n "checking for suffix of executables... " >&6; }
3818 if { { ac_try
="$ac_link"
3820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_link") 2>&5
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
3829 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3830 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3831 # work properly (i.e., refer to `conftest.exe'), while it won't with
3833 for ac_file
in conftest.exe conftest conftest.
*; do
3834 test -f "$ac_file" ||
continue
3836 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3837 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3846 See \`config.log' for more details" "$LINENO" 5; }
3848 rm -f conftest conftest
$ac_cv_exeext
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850 $as_echo "$ac_cv_exeext" >&6; }
3852 rm -f conftest.
$ac_ext
3853 EXEEXT
=$ac_cv_exeext
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3861 FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3868 ac_clean_files
="$ac_clean_files conftest.out"
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872 $as_echo_n "checking whether we are cross compiling... " >&6; }
3873 if test "$cross_compiling" != yes; then
3874 { { ac_try
="$ac_link"
3876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }
3885 if { ac_try='./conftest$ac_cv_exeext'
3886 { { case "(($ac_try" in
3887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3888 *) ac_try_echo
=$ac_try;;
3890 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 $as_echo "$ac_try_echo"; } >&5
3892 (eval "$ac_try") 2>&5
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; }; then
3898 if test "$cross_compiling" = maybe
; then
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 as_fn_error $?
"cannot run C compiled programs.
3904 If you meant to cross compile, use \`--host'.
3905 See \`config.log' for more details" "$LINENO" 5; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910 $as_echo "$cross_compiling" >&6; }
3912 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3913 ac_clean_files
=$ac_clean_files_save
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915 $as_echo_n "checking for suffix of object files... " >&6; }
3916 if ${ac_cv_objext+:} false
; then :
3917 $as_echo_n "(cached) " >&6
3919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3930 rm -f conftest.o conftest.obj
3931 if { { ac_try
="$ac_compile"
3933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_compile") 2>&5
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; then :
3942 for ac_file in conftest.o conftest.obj conftest.*; do
3943 test -f "$ac_file" || continue;
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3951 $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3957 See \
`config.log' for more details" "$LINENO" 5; }
3959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3962 $as_echo "$ac_cv_objext" >&6; }
3963 OBJEXT=$ac_cv_objext
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3966 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3967 if ${ac_cv_c_compiler_gnu+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3984 if ac_fn_c_try_compile "$LINENO"; then :
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3994 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3995 if test $ac_compiler_gnu = yes; then
4000 ac_test_CFLAGS=${CFLAGS+set}
4001 ac_save_CFLAGS=$CFLAGS
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4003 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4004 if ${ac_cv_prog_cc_g+:} false; then :
4005 $as_echo_n "(cached) " >&6
4007 ac_save_c_werror_flag=$ac_c_werror_flag
4008 ac_c_werror_flag=yes
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4022 if ac_fn_c_try_compile "$LINENO"; then :
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4037 if ac_fn_c_try_compile "$LINENO"; then :
4040 ac_c_werror_flag=$ac_save_c_werror_flag
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4053 if ac_fn_c_try_compile "$LINENO"; then :
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_c_werror_flag=$ac_save_c_werror_flag
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4064 $as_echo "$ac_cv_prog_cc_g" >&6; }
4065 if test "$ac_test_CFLAGS" = set; then
4066 CFLAGS=$ac_save_CFLAGS
4067 elif test $ac_cv_prog_cc_g = yes; then
4068 if test "$GCC" = yes; then
4074 if test "$GCC" = yes; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4081 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4082 if ${ac_cv_prog_cc_c89+:} false; then :
4083 $as_echo_n "(cached) " >&6
4085 ac_cv_prog_cc_c89=no
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4093 struct buf { int x; };
4094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4095 static char *e (p, i)
4101 static char *f (char * (*g) (char **, int), char **p, ...)
4106 s = g (p, va_arg (v,int));
4111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4112 function prototypes and stuff, but not '\xHH' hex character constants.
4113 These don't provoke an error unfortunately, instead are silently treated
4114 as 'x'. The following induces an error, until -std is added to get
4115 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4116 array size at least. It's necessary to write '\x00'==0 to get something
4117 that's true only with -std. */
4118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4121 inside strings and character constants. */
4123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4125 int test (int i, double x);
4126 struct s1 {int (*f) (int a);};
4127 struct s2 {int (*f) (double a);};
4128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4140 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4142 CC="$ac_save_CC $ac_arg"
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_prog_cc_c89=$ac_arg
4146 rm -f core conftest.err conftest.$ac_objext
4147 test "x$ac_cv_prog_cc_c89" != "xno" && break
4149 rm -f conftest.$ac_ext
4154 case "x$ac_cv_prog_cc_c89" in
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4157 $as_echo "none needed" >&6; } ;;
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160 $as_echo "unsupported" >&6; } ;;
4162 CC="$CC $ac_cv_prog_cc_c89"
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4164 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4166 if test "x$ac_cv_prog_cc_c89" != xno; then :
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4182 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4183 if ${am_cv_prog_cc_c_o+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4197 # Make sure it works both with $CC and with simple cc.
4198 # Following AC_PROG_CC_C_O, we do the test twice because some
4199 # compilers refuse to overwrite an existing .o file with -o,
4200 # though they will create one.
4201 am_cv_prog_cc_c_o=yes
4203 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4204 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } \
4208 && test -f conftest2.$ac_objext; then
4211 am_cv_prog_cc_c_o=no
4215 rm -f core conftest*
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4219 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4220 if test "$am_cv_prog_cc_c_o" != yes; then
4221 # Losing compiler, so override with the script.
4222 # FIXME: It is wrong to rewrite CC.
4223 # But if we don't then we get into trouble of one sort or another.
4224 # A longer-term fix would be to have automake use am__CC in this case,
4225 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4226 CC="$am_aux_dir/compile $CC"
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235 depcc="$CC" am_compiler_list=
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4238 $as_echo_n "checking dependency style of $depcc... " >&6; }
4239 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4240 $as_echo_n "(cached) " >&6
4242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4243 # We make a subdir and do the tests there. Otherwise we can end up
4244 # making bogus files that we don't know about and never remove. For
4245 # instance it was reported that on HP-UX the gcc test will end up
4246 # making a dummy file named 'D' -- because '-MD' means "put the output
4250 # Copy depcomp to subdir because otherwise we won't find it if we're
4251 # using a relative directory.
4252 cp "$am_depcomp" conftest.dir
4254 # We will build objects and dependencies in a subdirectory because
4255 # it helps to detect inapplicable dependency modes. For instance
4256 # both Tru64's cc and ICC support -MD to output dependencies as a
4257 # side effect of compilation, but ICC will put the dependencies in
4258 # the current directory while Tru64 will put them in the object
4262 am_cv_CC_dependencies_compiler_type=none
4263 if test "$am_compiler_list" = ""; then
4264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4267 case " $depcc " in #(
4268 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4271 for depmode in $am_compiler_list; do
4272 # Setup a source with many dependencies, because some compilers
4273 # like to wrap large dependency lists on column 80 (with \), and
4274 # we should not choose a depcomp mode which is confused by this.
4276 # We need to recreate these files for each test, as the compiler may
4277 # overwrite some of them when testing with obscure command lines.
4278 # This happens at least with the AIX C compiler.
4280 for i in 1 2 3 4 5 6; do
4281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4282 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4283 # Solaris 10 /bin/sh.
4284 echo '/* dummy */' > sub/conftst$i.h
4286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4288 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4289 # mode. It turns out that the SunPro C++ compiler does not properly
4290 # handle '-M -o', and we need to detect this. Also, some Intel
4291 # versions had trouble with output in subdirs.
4292 am__obj=sub/conftest.${OBJEXT-o}
4293 am__minus_obj="-o $am__obj"
4296 # This depmode causes a compiler race in universal mode.
4297 test "$am__universal" = false || continue
4300 # After this tag, mechanisms are not by side-effect, so they'll
4301 # only be used when explicitly requested.
4302 if test "x$enable_dependency_tracking" = xyes; then
4308 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4309 # This compiler won't grok '-c -o', but also, the minuso test has
4310 # not run yet. These depmodes are late enough in the game, and
4311 # so weak that their functioning should not be impacted.
4312 am__obj=conftest.${OBJEXT-o}
4317 if depmode=$depmode \
4318 source=sub/conftest.c object=$am__obj \
4319 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4320 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4321 >/dev/null 2>conftest.err &&
4322 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4324 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4326 # icc doesn't choke on unknown options, it will just issue warnings
4327 # or remarks (even with -Werror). So we grep stderr for any message
4328 # that says an option was ignored or not supported.
4329 # When given -MP, icc 7.0 and 7.1 complain thusly:
4330 # icc: Command line warning: ignoring option '-M'; no argument required
4331 # The diagnosis changed in icc 8.0:
4332 # icc: Command line remark: option '-MP' not supported
4333 if (grep 'ignoring option' conftest.err ||
4334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4335 am_cv_CC_dependencies_compiler_type=$depmode
4344 am_cv_CC_dependencies_compiler_type=none
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4349 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4350 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4353 test "x$enable_dependency_tracking" != xno \
4354 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4356 am__fastdepCC_FALSE='#'
4358 am__fastdepCC_TRUE='#'
4359 am__fastdepCC_FALSE=
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4370 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4371 # On Suns, sometimes $CPP names a directory.
4372 if test -n "$CPP" && test -d "$CPP"; then
4375 if test -z "$CPP"; then
4376 if ${ac_cv_prog_CPP+:} false; then :
4377 $as_echo_n "(cached) " >&6
4379 # Double quotes because CPP needs to be expanded
4380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4383 for ac_c_preproc_warn_flag in '' yes
4385 # Use a header file that comes with gcc, so configuring glibc
4386 # with a fresh cross-compiler works.
4387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388 # <limits.h> exists even on freestanding compilers.
4389 # On the NeXT, cc -E runs the code through the compiler's parser,
4390 # not just through cpp. "Syntax error" is here to catch this case.
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4394 # include <limits.h>
4396 # include <assert.h>
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4403 # Broken: fails on valid input.
4406 rm -f conftest.err conftest.i conftest.$ac_ext
4408 # OK, works on sane cases. Now check whether nonexistent headers
4409 # can be detected and how.
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #include <ac_nonexistent.h>
4414 if ac_fn_c_try_cpp "$LINENO"; then :
4415 # Broken: success on invalid input.
4418 # Passes both tests.
4422 rm -f conftest.err conftest.i conftest.$ac_ext
4425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426 rm -f conftest.i conftest.err conftest.
$ac_ext
4427 if $ac_preproc_ok; then :
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4440 $as_echo "$CPP" >&6; }
4442 for ac_c_preproc_warn_flag
in '' yes
4444 # Use a header file that comes with gcc, so configuring glibc
4445 # with a fresh cross-compiler works.
4446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447 # <limits.h> exists even on freestanding compilers.
4448 # On the NeXT, cc -E runs the code through the compiler's parser,
4449 # not just through cpp. "Syntax error" is here to catch this case.
4450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4453 # include <limits.h>
4455 # include <assert.h>
4459 if ac_fn_c_try_cpp
"$LINENO"; then :
4462 # Broken: fails on valid input.
4465 rm -f conftest.err conftest.i conftest.
$ac_ext
4467 # OK, works on sane cases. Now check whether nonexistent headers
4468 # can be detected and how.
4469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <ac_nonexistent.h>
4473 if ac_fn_c_try_cpp
"$LINENO"; then :
4474 # Broken: success on invalid input.
4477 # Passes both tests.
4481 rm -f conftest.err conftest.i conftest.
$ac_ext
4484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4485 rm -f conftest.i conftest.err conftest.
$ac_ext
4486 if $ac_preproc_ok; then :
4489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4491 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4492 See \`config.log' for more details" "$LINENO" 5; }
4496 ac_cpp
='$CPP $CPPFLAGS'
4497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4503 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4504 if ${ac_cv_path_GREP+:} false
; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -z "$GREP"; then
4508 ac_path_GREP_found
=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4511 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4514 test -z "$as_dir" && as_dir
=.
4515 for ac_prog
in grep ggrep
; do
4516 for ac_exec_ext
in '' $ac_executable_extensions; do
4517 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4518 as_fn_executable_p
"$ac_path_GREP" ||
continue
4519 # Check for GNU ac_path_GREP and select it if it is found.
4520 # Check for GNU $ac_path_GREP
4521 case `"$ac_path_GREP" --version 2>&1` in
4523 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4526 $as_echo_n 0123456789 >"conftest.in"
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'GREP' >> "conftest.nl"
4533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4534 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4535 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_GREP
="$ac_path_GREP"
4539 ac_path_GREP_max
=$ac_count
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4544 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4547 $ac_path_GREP_found && break 3
4552 if test -z "$ac_cv_path_GREP"; then
4553 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 ac_cv_path_GREP
=$GREP
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4561 $as_echo "$ac_cv_path_GREP" >&6; }
4562 GREP
="$ac_cv_path_GREP"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4566 $as_echo_n "checking for egrep... " >&6; }
4567 if ${ac_cv_path_EGREP+:} false
; then :
4568 $as_echo_n "(cached) " >&6
4570 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4571 then ac_cv_path_EGREP
="$GREP -E"
4573 if test -z "$EGREP"; then
4574 ac_path_EGREP_found
=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4577 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_prog
in egrep; do
4582 for ac_exec_ext
in '' $ac_executable_extensions; do
4583 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4584 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4585 # Check for GNU ac_path_EGREP and select it if it is found.
4586 # Check for GNU $ac_path_EGREP
4587 case `"$ac_path_EGREP" --version 2>&1` in
4589 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4592 $as_echo_n 0123456789 >"conftest.in"
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo 'EGREP' >> "conftest.nl"
4599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4600 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4601 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_EGREP
="$ac_path_EGREP"
4605 ac_path_EGREP_max
=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4610 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4613 $ac_path_EGREP_found && break 3
4618 if test -z "$ac_cv_path_EGREP"; then
4619 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 ac_cv_path_EGREP
=$EGREP
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4628 $as_echo "$ac_cv_path_EGREP" >&6; }
4629 EGREP
="$ac_cv_path_EGREP"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4633 $as_echo_n "checking for ANSI C header files... " >&6; }
4634 if ${ac_cv_header_stdc+:} false
; then :
4635 $as_echo_n "(cached) " >&6
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4652 if ac_fn_c_try_compile
"$LINENO"; then :
4653 ac_cv_header_stdc
=yes
4655 ac_cv_header_stdc
=no
4657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4659 if test $ac_cv_header_stdc = yes; then
4660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "memchr" >/dev
/null
2>&1; then :
4670 ac_cv_header_stdc
=no
4676 if test $ac_cv_header_stdc = yes; then
4677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "free" >/dev
/null
2>&1; then :
4687 ac_cv_header_stdc
=no
4693 if test $ac_cv_header_stdc = yes; then
4694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4695 if test "$cross_compiling" = yes; then :
4698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 #if ((' ' & 0x0FF) == 0x020)
4703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4706 # define ISLOWER(c) \
4707 (('a' <= (c) && (c) <= 'i') \
4708 || ('j' <= (c) && (c) <= 'r') \
4709 || ('s' <= (c) && (c) <= 'z'))
4710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4718 for (i = 0; i < 256; i++)
4719 if (XOR (islower (i), ISLOWER (i))
4720 || toupper (i) != TOUPPER (i))
4725 if ac_fn_c_try_run
"$LINENO"; then :
4728 ac_cv_header_stdc
=no
4730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4731 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4737 $as_echo "$ac_cv_header_stdc" >&6; }
4738 if test $ac_cv_header_stdc = yes; then
4740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4745 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4746 inttypes.h stdint.h unistd.h
4748 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4749 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4751 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4752 cat >>confdefs.h
<<_ACEOF
4753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4762 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4763 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4770 if test "$MINIX" = yes; then
4772 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4775 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4778 $as_echo "#define _MINIX 1" >>confdefs.h
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4784 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4785 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4786 $as_echo_n "(cached) " >&6
4788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4791 # define __EXTENSIONS__ 1
4792 $ac_includes_default
4801 if ac_fn_c_try_compile
"$LINENO"; then :
4802 ac_cv_safe_to_define___extensions__
=yes
4804 ac_cv_safe_to_define___extensions__
=no
4806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4809 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4810 test $ac_cv_safe_to_define___extensions__ = yes &&
4811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4822 # Make sure we can run config.sub.
4823 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4824 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4827 $as_echo_n "checking build system type... " >&6; }
4828 if ${ac_cv_build+:} false
; then :
4829 $as_echo_n "(cached) " >&6
4831 ac_build_alias
=$build_alias
4832 test "x$ac_build_alias" = x
&&
4833 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4834 test "x$ac_build_alias" = x
&&
4835 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4836 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4837 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4841 $as_echo "$ac_cv_build" >&6; }
4842 case $ac_cv_build in
4844 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4847 ac_save_IFS
=$IFS; IFS
='-'
4853 # Remember, the first character of IFS is used to create $*,
4854 # except with old shells:
4857 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4861 $as_echo_n "checking host system type... " >&6; }
4862 if ${ac_cv_host+:} false
; then :
4863 $as_echo_n "(cached) " >&6
4865 if test "x$host_alias" = x
; then
4866 ac_cv_host
=$ac_cv_build
4868 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4869 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4874 $as_echo "$ac_cv_host" >&6; }
4877 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4880 ac_save_IFS
=$IFS; IFS
='-'
4886 # Remember, the first character of IFS is used to create $*,
4887 # except with old shells:
4890 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4901 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4902 if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4904 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
4908 $as_echo_n "(cached) " >&6
4912 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir
=.
4920 for ac_exec_ext
in '' $ac_executable_extensions; do
4921 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4934 if test -n "$PKG_CONFIG"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4936 $as_echo "$PKG_CONFIG" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4944 if test -z "$ac_cv_path_PKG_CONFIG"; then
4945 ac_pt_PKG_CONFIG
=$PKG_CONFIG
4946 # Extract the first word of "pkg-config", so it can be a program name with args.
4947 set dummy pkg-config
; ac_word
=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
4951 $as_echo_n "(cached) " >&6
4953 case $ac_pt_PKG_CONFIG in
4955 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir
=.
4963 for ac_exec_ext
in '' $ac_executable_extensions; do
4964 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4965 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
4977 if test -n "$ac_pt_PKG_CONFIG"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4979 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4985 if test "x$ac_pt_PKG_CONFIG" = x
; then
4988 case $cross_compiling:$ac_tool_warned in
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned
=yes ;;
4994 PKG_CONFIG
=$ac_pt_PKG_CONFIG
4997 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5001 if test -n "$PKG_CONFIG"; then
5002 _pkg_min_version
=0.9.0
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5004 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5005 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007 $as_echo "yes" >&6; }
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5015 if test -f "/etc/redhat-release"; then
5016 if test -f "/usr/kerberos/include"; then
5017 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
5021 # Not a no-op; we want to make sure that CPPFLAGS is set before we use
5022 # the += operator on it in src/or/Makefile.am
5023 CPPFLAGS
="$CPPFLAGS -I\${top_srcdir}/src/common"
5025 # Check whether --enable-openbsd-malloc was given.
5026 if test "${enable_openbsd_malloc+set}" = set; then :
5027 enableval
=$enable_openbsd_malloc;
5030 # Check whether --enable-static-openssl was given.
5031 if test "${enable_static_openssl+set}" = set; then :
5032 enableval
=$enable_static_openssl;
5035 # Check whether --enable-static-libevent was given.
5036 if test "${enable_static_libevent+set}" = set; then :
5037 enableval
=$enable_static_libevent;
5040 # Check whether --enable-static-zlib was given.
5041 if test "${enable_static_zlib+set}" = set; then :
5042 enableval
=$enable_static_zlib;
5045 # Check whether --enable-static-tor was given.
5046 if test "${enable_static_tor+set}" = set; then :
5047 enableval
=$enable_static_tor;
5050 # Check whether --enable-unittests was given.
5051 if test "${enable_unittests+set}" = set; then :
5052 enableval
=$enable_unittests;
5055 # Check whether --enable-coverage was given.
5056 if test "${enable_coverage+set}" = set; then :
5057 enableval
=$enable_coverage;
5060 # Check whether --enable-asserts-in-tests was given.
5061 if test "${enable_asserts_in_tests+set}" = set; then :
5062 enableval
=$enable_asserts_in_tests;
5065 # Check whether --enable-system-torrc was given.
5066 if test "${enable_system_torrc+set}" = set; then :
5067 enableval
=$enable_system_torrc;
5071 if test "x$enable_coverage" != "xyes" -a "x$enable_asserts_in_tests" = "xno" ; then
5072 as_fn_error $?
"Can't disable assertions outside of coverage build" "$LINENO" 5
5075 if test "x$enable_unittests" != "xno"; then
5076 UNITTESTS_ENABLED_TRUE
=
5077 UNITTESTS_ENABLED_FALSE
='#'
5079 UNITTESTS_ENABLED_TRUE
='#'
5080 UNITTESTS_ENABLED_FALSE
=
5083 if test "x$enable_coverage" = "xyes"; then
5084 COVERAGE_ENABLED_TRUE
=
5085 COVERAGE_ENABLED_FALSE
='#'
5087 COVERAGE_ENABLED_TRUE
='#'
5088 COVERAGE_ENABLED_FALSE
=
5091 if test "x$enable_asserts_in_tests" = "xno"; then
5092 DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE
=
5093 DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE
='#'
5095 DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE
='#'
5096 DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE
=
5100 if test "$enable_static_tor" = "yes"; then
5101 enable_static_libevent
="yes";
5102 enable_static_openssl
="yes";
5103 enable_static_zlib
="yes";
5104 CFLAGS
="$CFLAGS -static"
5107 if test "$enable_system_torrc" = "no"; then
5109 $as_echo "#define DISABLE_SYSTEM_TORRC 1" >>confdefs.h
5113 if test "x$enable_openbsd_malloc" = "xyes"; then
5114 USE_OPENBSD_MALLOC_TRUE
=
5115 USE_OPENBSD_MALLOC_FALSE
='#'
5117 USE_OPENBSD_MALLOC_TRUE
='#'
5118 USE_OPENBSD_MALLOC_FALSE
=
5122 # Check whether --enable-asciidoc was given.
5123 if test "${enable_asciidoc+set}" = set; then :
5124 enableval
=$enable_asciidoc; case "${enableval}" in
5125 "yes") asciidoc
=true
;;
5126 "no") asciidoc
=false
;;
5127 *) as_fn_error $?
"bad value for --disable-asciidoc" "$LINENO" 5 ;;
5134 # systemd notify support
5135 # Check whether --enable-systemd was given.
5136 if test "${enable_systemd+set}" = set; then :
5137 enableval
=$enable_systemd; case "${enableval}" in
5138 "yes") systemd
=true
;;
5139 "no") systemd
=false
;;
5140 * ) as_fn_error $?
"bad value for --enable-systemd" "$LINENO" 5 ;;
5150 if test "x$enable_systemd" = "xno"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
5156 $as_echo_n "checking for SYSTEMD... " >&6; }
5158 if test -n "$SYSTEMD_CFLAGS"; then
5159 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
5160 elif test -n "$PKG_CONFIG"; then
5161 if test -n "$PKG_CONFIG" && \
5162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
5163 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
5165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166 test $ac_status = 0; }; then
5167 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
5168 test "x$?" != "x0" && pkg_failed
=yes
5175 if test -n "$SYSTEMD_LIBS"; then
5176 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
5177 elif test -n "$PKG_CONFIG"; then
5178 if test -n "$PKG_CONFIG" && \
5179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
5180 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
5182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; }; then
5184 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
5185 test "x$?" != "x0" && pkg_failed
=yes
5195 if test $pkg_failed = yes; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5200 _pkg_short_errors_supported
=yes
5202 _pkg_short_errors_supported
=no
5204 if test $_pkg_short_errors_supported = yes; then
5205 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
5207 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
5209 # Put the nasty error message in config.log where it belongs
5210 echo "$SYSTEMD_PKG_ERRORS" >&5
5213 elif test $pkg_failed = untried
; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5218 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
5219 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221 $as_echo "yes" >&6; }
5224 if test "x$have_systemd" = "xno"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: Okay, checking for systemd a different way..." >&5
5226 $as_echo "$as_me: Okay, checking for systemd a different way..." >&6;}
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
5230 $as_echo_n "checking for SYSTEMD... " >&6; }
5232 if test -n "$SYSTEMD_CFLAGS"; then
5233 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
5234 elif test -n "$PKG_CONFIG"; then
5235 if test -n "$PKG_CONFIG" && \
5236 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
5237 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
5239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5240 test $ac_status = 0; }; then
5241 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
5242 test "x$?" != "x0" && pkg_failed
=yes
5249 if test -n "$SYSTEMD_LIBS"; then
5250 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
5251 elif test -n "$PKG_CONFIG"; then
5252 if test -n "$PKG_CONFIG" && \
5253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
5254 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
5256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257 test $ac_status = 0; }; then
5258 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
5259 test "x$?" != "x0" && pkg_failed
=yes
5269 if test $pkg_failed = yes; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5274 _pkg_short_errors_supported
=yes
5276 _pkg_short_errors_supported
=no
5278 if test $_pkg_short_errors_supported = yes; then
5279 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
5281 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
5283 # Put the nasty error message in config.log where it belongs
5284 echo "$SYSTEMD_PKG_ERRORS" >&5
5287 elif test $pkg_failed = untried
; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
5293 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295 $as_echo "yes" >&6; }
5301 if test "x$have_systemd" = "xyes"; then
5303 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
5305 TOR_SYSTEMD_CFLAGS
="${SYSTEMD_CFLAGS}"
5306 TOR_SYSTEMD_LIBS
="${SYSTEMD_LIBS}"
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD209" >&5
5310 $as_echo_n "checking for LIBSYSTEMD209... " >&6; }
5312 if test -n "$LIBSYSTEMD209_CFLAGS"; then
5313 pkg_cv_LIBSYSTEMD209_CFLAGS
="$LIBSYSTEMD209_CFLAGS"
5314 elif test -n "$PKG_CONFIG"; then
5315 if test -n "$PKG_CONFIG" && \
5316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
5317 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
5319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5320 test $ac_status = 0; }; then
5321 pkg_cv_LIBSYSTEMD209_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null`
5322 test "x$?" != "x0" && pkg_failed
=yes
5329 if test -n "$LIBSYSTEMD209_LIBS"; then
5330 pkg_cv_LIBSYSTEMD209_LIBS
="$LIBSYSTEMD209_LIBS"
5331 elif test -n "$PKG_CONFIG"; then
5332 if test -n "$PKG_CONFIG" && \
5333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
5334 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
5336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5337 test $ac_status = 0; }; then
5338 pkg_cv_LIBSYSTEMD209_LIBS
=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null`
5339 test "x$?" != "x0" && pkg_failed
=yes
5349 if test $pkg_failed = yes; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5354 _pkg_short_errors_supported
=yes
5356 _pkg_short_errors_supported
=no
5358 if test $_pkg_short_errors_supported = yes; then
5359 LIBSYSTEMD209_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
5361 LIBSYSTEMD209_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
5363 # Put the nasty error message in config.log where it belongs
5364 echo "$LIBSYSTEMD209_PKG_ERRORS" >&5
5366 as_fn_error $?
"Package requirements (libsystemd >= 209) were not met:
5368 $LIBSYSTEMD209_PKG_ERRORS
5370 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5371 installed software in a non-standard prefix.
5373 Alternatively, you may set the environment variables LIBSYSTEMD209_CFLAGS
5374 and LIBSYSTEMD209_LIBS to avoid the need to call pkg-config.
5375 See the pkg-config man page for more details." "$LINENO" 5
5376 elif test $pkg_failed = untried
; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5381 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
5382 is in your PATH or set the PKG_CONFIG environment variable to the full
5385 Alternatively, you may set the environment variables LIBSYSTEMD209_CFLAGS
5386 and LIBSYSTEMD209_LIBS to avoid the need to call pkg-config.
5387 See the pkg-config man page for more details.
5389 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5390 See \`config.log' for more details" "$LINENO" 5; }
5392 LIBSYSTEMD209_CFLAGS
=$pkg_cv_LIBSYSTEMD209_CFLAGS
5393 LIBSYSTEMD209_LIBS
=$pkg_cv_LIBSYSTEMD209_LIBS
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5395 $as_echo "yes" >&6; }
5397 $as_echo "#define HAVE_SYSTEMD_209 1" >>confdefs.h
5404 if test "x$enable_systemd" = "xyes" -a "x$have_systemd" != "xyes" ; then
5405 as_fn_error $?
"Explicitly requested systemd support, but systemd not found" "$LINENO" 5
5411 $as_echo "#define _REENTRANT 1" >>confdefs.h
5416 # Check whether --enable-gcc-warnings was given.
5417 if test "${enable_gcc_warnings+set}" = set; then :
5418 enableval
=$enable_gcc_warnings;
5421 # Check whether --enable-fatal-warnings was given.
5422 if test "${enable_fatal_warnings+set}" = set; then :
5423 enableval
=$enable_fatal_warnings;
5426 # Check whether --enable-gcc-warnings-advisory was given.
5427 if test "${enable_gcc_warnings_advisory+set}" = set; then :
5428 enableval
=$enable_gcc_warnings_advisory;
5432 # Check whether --enable-gcc-hardening was given.
5433 if test "${enable_gcc_hardening+set}" = set; then :
5434 enableval
=$enable_gcc_hardening;
5438 # Check whether --enable-expensive-hardening was given.
5439 if test "${enable_expensive_hardening+set}" = set; then :
5440 enableval
=$enable_expensive_hardening;
5444 # Check whether --enable-linker-hardening was given.
5445 if test "${enable_linker_hardening+set}" = set; then :
5446 enableval
=$enable_linker_hardening;
5450 # Check whether --enable-local-appdata was given.
5451 if test "${enable_local_appdata+set}" = set; then :
5452 enableval
=$enable_local_appdata;
5455 if test "$enable_local_appdata" = "yes"; then
5457 $as_echo "#define ENABLE_LOCAL_APPDATA 1" >>confdefs.h
5462 # Check whether --enable-tor2web-mode was given.
5463 if test "${enable_tor2web_mode+set}" = set; then :
5464 enableval
=$enable_tor2web_mode; if test "x$enableval" = "xyes"; then
5465 CFLAGS
="$CFLAGS -D ENABLE_TOR2WEB_MODE=1"
5470 # Check whether --enable-tool-name-check was given.
5471 if test "${enable_tool_name_check+set}" = set; then :
5472 enableval
=$enable_tool_name_check;
5476 # Check whether --enable-seccomp was given.
5477 if test "${enable_seccomp+set}" = set; then :
5478 enableval
=$enable_seccomp;
5482 # Check whether --enable-libscrypt was given.
5483 if test "${enable_libscrypt+set}" = set; then :
5484 enableval
=$enable_libscrypt;
5491 if test -n "$ac_tool_prefix"; then
5492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5493 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_AR+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$AR"; then
5500 ac_cv_prog_AR
="$AR" # Let the user override the test.
5502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir
=.
5507 for ac_exec_ext
in '' $ac_executable_extensions; do
5508 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 if test -n "$AR"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5522 $as_echo "$AR" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5530 if test -z "$ac_cv_prog_AR"; then
5532 # Extract the first word of "ar", so it can be a program name with args.
5533 set dummy
ar; ac_word
=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5537 $as_echo_n "(cached) " >&6
5539 if test -n "$ac_ct_AR"; then
5540 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir
=.
5547 for ac_exec_ext
in '' $ac_executable_extensions; do
5548 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_ac_ct_AR
="ar"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5560 if test -n "$ac_ct_AR"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5562 $as_echo "$ac_ct_AR" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5568 if test "x$ac_ct_AR" = x
; then
5571 case $cross_compiling:$ac_tool_warned in
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned
=yes ;;
5584 if test "x$enable_tool_name_check" != "xno"; then
5585 if test "x$ac_tool_warned" = "xyes"; then
5586 as_fn_error $?
"We are cross compiling but could not find a properly named toolchain. Do you have your cross-compiling toolchain in PATH? (You can --disable-tool-name-check to ignore this.)" "$LINENO" 5
5587 elif test "x$ac_ct_AR" != "x" -a "x$cross_compiling" = "xmaybe"; then
5588 as_fn_error $?
"We think we are cross compiling but could not find a properly named toolchain. Do you have your cross-compiling toolchain in PATH? (You can --disable-tool-name-check to ignore this.)" "$LINENO" 5
5593 ac_cpp
='$CPP $CPPFLAGS'
5594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5599 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_CC+:} false
; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$CC"; then
5606 ac_cv_prog_CC
="$CC" # Let the user override the test.
5608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir
=.
5613 for ac_exec_ext
in '' $ac_executable_extensions; do
5614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 if test -n "$CC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5628 $as_echo "$CC" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5636 if test -z "$ac_cv_prog_CC"; then
5638 # Extract the first word of "gcc", so it can be a program name with args.
5639 set dummy gcc
; ac_word
=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5643 $as_echo_n "(cached) " >&6
5645 if test -n "$ac_ct_CC"; then
5646 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir
=.
5653 for ac_exec_ext
in '' $ac_executable_extensions; do
5654 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_ac_ct_CC
="gcc"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5666 if test -n "$ac_ct_CC"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5668 $as_echo "$ac_ct_CC" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5674 if test "x$ac_ct_CC" = x
; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned
=yes ;;
5689 if test -z "$CC"; then
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5692 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_CC+:} false
; then :
5696 $as_echo_n "(cached) " >&6
5698 if test -n "$CC"; then
5699 ac_cv_prog_CC
="$CC" # Let the user override the test.
5701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir
=.
5706 for ac_exec_ext
in '' $ac_executable_extensions; do
5707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 if test -n "$CC"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5721 $as_echo "$CC" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5730 if test -z "$CC"; then
5731 # Extract the first word of "cc", so it can be a program name with args.
5732 set dummy cc
; ac_word
=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_CC+:} false
; then :
5736 $as_echo_n "(cached) " >&6
5738 if test -n "$CC"; then
5739 ac_cv_prog_CC
="$CC" # Let the user override the test.
5742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir
=.
5747 for ac_exec_ext
in '' $ac_executable_extensions; do
5748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5750 ac_prog_rejected
=yes
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 if test $ac_prog_rejected = yes; then
5762 # We found a bogon in the path, so make sure we never use it.
5763 set dummy
$ac_cv_prog_CC
5765 if test $# != 0; then
5766 # We chose a different compiler from the bogus one.
5767 # However, it has the same basename, so the bogon will be chosen
5768 # first if we set CC to just the basename; use the full file name.
5770 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5776 if test -n "$CC"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5778 $as_echo "$CC" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5786 if test -z "$CC"; then
5787 if test -n "$ac_tool_prefix"; then
5788 for ac_prog
in cl.exe
5790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_CC+:} false
; then :
5795 $as_echo_n "(cached) " >&6
5797 if test -n "$CC"; then
5798 ac_cv_prog_CC
="$CC" # Let the user override the test.
5800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir
=.
5805 for ac_exec_ext
in '' $ac_executable_extensions; do
5806 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 if test -n "$CC"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5820 $as_echo "$CC" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5827 test -n "$CC" && break
5830 if test -z "$CC"; then
5832 for ac_prog
in cl.exe
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835 set dummy
$ac_prog; ac_word
=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5839 $as_echo_n "(cached) " >&6
5841 if test -n "$ac_ct_CC"; then
5842 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir
=.
5849 for ac_exec_ext
in '' $ac_executable_extensions; do
5850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_CC
="$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5862 if test -n "$ac_ct_CC"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5864 $as_echo "$ac_ct_CC" >&6; }
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5871 test -n "$ac_ct_CC" && break
5874 if test "x$ac_ct_CC" = x
; then
5877 case $cross_compiling:$ac_tool_warned in
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned
=yes ;;
5890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 as_fn_error $?
"no acceptable C compiler found in \$PATH
5893 See \`config.log' for more details" "$LINENO" 5; }
5895 # Provide some information about the compiler.
5896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5899 for ac_option
in --version -v -V -qversion; do
5900 { { ac_try
="$ac_compiler $ac_option >&5"
5902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5906 $as_echo "$ac_try_echo"; } >&5
5907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5909 if test -s conftest.err; then
5911 ... rest of stderr output deleted ...
5912 10q' conftest.err >conftest.er1
5913 cat conftest.er1 >&5
5915 rm -f conftest.er1 conftest.err
5916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5917 test $ac_status = 0; }
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5921 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5922 if ${ac_cv_c_compiler_gnu+:} false; then :
5923 $as_echo_n "(cached) " >&6
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5939 if ac_fn_c_try_compile "$LINENO"; then :
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5949 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5950 if test $ac_compiler_gnu = yes; then
5955 ac_test_CFLAGS=${CFLAGS+set}
5956 ac_save_CFLAGS=$CFLAGS
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5958 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5959 if ${ac_cv_prog_cc_g+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 ac_save_c_werror_flag=$ac_c_werror_flag
5963 ac_c_werror_flag=yes
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5977 if ac_fn_c_try_compile "$LINENO"; then :
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5992 if ac_fn_c_try_compile "$LINENO"; then :
5995 ac_c_werror_flag=$ac_save_c_werror_flag
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6008 if ac_fn_c_try_compile "$LINENO"; then :
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 ac_c_werror_flag=$ac_save_c_werror_flag
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6019 $as_echo "$ac_cv_prog_cc_g" >&6; }
6020 if test "$ac_test_CFLAGS" = set; then
6021 CFLAGS=$ac_save_CFLAGS
6022 elif test $ac_cv_prog_cc_g = yes; then
6023 if test "$GCC" = yes; then
6029 if test "$GCC" = yes; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6036 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6037 if ${ac_cv_prog_cc_c89+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 ac_cv_prog_cc_c89=no
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6048 struct buf { int x; };
6049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6050 static char *e (p, i)
6056 static char *f (char * (*g) (char **, int), char **p, ...)
6061 s = g (p, va_arg (v,int));
6066 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6067 function prototypes and stuff, but not '\xHH' hex character constants.
6068 These don't provoke an error unfortunately, instead are silently treated
6069 as 'x'. The following induces an error, until -std is added to get
6070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6071 array size at least. It's necessary to write '\x00'==0 to get something
6072 that's true only with -std. */
6073 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6075 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6076 inside strings and character constants. */
6078 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6080 int test (int i, double x);
6081 struct s1 {int (*f) (int a);};
6082 struct s2 {int (*f) (double a);};
6083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6094 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6095 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6097 CC="$ac_save_CC $ac_arg"
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_prog_cc_c89=$ac_arg
6101 rm -f core conftest.err conftest.$ac_objext
6102 test "x$ac_cv_prog_cc_c89" != "xno" && break
6104 rm -f conftest.$ac_ext
6109 case "x$ac_cv_prog_cc_c89" in
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6112 $as_echo "none needed" >&6; } ;;
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6115 $as_echo "unsupported" >&6; } ;;
6117 CC="$CC $ac_cv_prog_cc_c89"
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6119 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6121 if test "x$ac_cv_prog_cc_c89" != xno; then :
6126 ac_cpp='$CPP $CPPFLAGS'
6127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132 ac_cpp='$CPP $CPPFLAGS'
6133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6137 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6138 if ${am_cv_prog_cc_c_o+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6152 # Make sure it works both with $CC and with simple cc.
6153 # Following AC_PROG_CC_C_O, we do the test twice because some
6154 # compilers refuse to overwrite an existing .o file with -o,
6155 # though they will create one.
6156 am_cv_prog_cc_c_o=yes
6158 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6159 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } \
6163 && test -f conftest2.$ac_objext; then
6166 am_cv_prog_cc_c_o=no
6170 rm -f core conftest*
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6174 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6175 if test "$am_cv_prog_cc_c_o" != yes; then
6176 # Losing compiler, so override with the script.
6177 # FIXME: It is wrong to rewrite CC.
6178 # But if we don't then we get into trouble of one sort or another.
6179 # A longer-term fix would be to have automake use am__CC in this case,
6180 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6181 CC="$am_aux_dir/compile $CC"
6184 ac_cpp='$CPP $CPPFLAGS'
6185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190 depcc="$CC" am_compiler_list=
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6193 $as_echo_n "checking dependency style of $depcc... " >&6; }
6194 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6195 $as_echo_n "(cached) " >&6
6197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6198 # We make a subdir and do the tests there. Otherwise we can end up
6199 # making bogus files that we don't know about and never remove. For
6200 # instance it was reported that on HP-UX the gcc test will end up
6201 # making a dummy file named 'D' -- because '-MD' means "put the output
6205 # Copy depcomp to subdir because otherwise we won't find it if we're
6206 # using a relative directory.
6207 cp "$am_depcomp" conftest.dir
6209 # We will build objects and dependencies in a subdirectory because
6210 # it helps to detect inapplicable dependency modes. For instance
6211 # both Tru64's cc and ICC support -MD to output dependencies as a
6212 # side effect of compilation, but ICC will put the dependencies in
6213 # the current directory while Tru64 will put them in the object
6217 am_cv_CC_dependencies_compiler_type=none
6218 if test "$am_compiler_list" = ""; then
6219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6222 case " $depcc " in #(
6223 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6226 for depmode in $am_compiler_list; do
6227 # Setup a source with many dependencies, because some compilers
6228 # like to wrap large dependency lists on column 80 (with \), and
6229 # we should not choose a depcomp mode which is confused by this.
6231 # We need to recreate these files for each test, as the compiler may
6232 # overwrite some of them when testing with obscure command lines.
6233 # This happens at least with the AIX C compiler.
6235 for i in 1 2 3 4 5 6; do
6236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6237 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6238 # Solaris 10 /bin/sh.
6239 echo '/* dummy */' > sub/conftst$i.h
6241 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6243 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6244 # mode. It turns out that the SunPro C++ compiler does not properly
6245 # handle '-M -o', and we need to detect this. Also, some Intel
6246 # versions had trouble with output in subdirs.
6247 am__obj=sub/conftest.${OBJEXT-o}
6248 am__minus_obj="-o $am__obj"
6251 # This depmode causes a compiler race in universal mode.
6252 test "$am__universal" = false || continue
6255 # After this tag, mechanisms are not by side-effect, so they'll
6256 # only be used when explicitly requested.
6257 if test "x$enable_dependency_tracking" = xyes; then
6263 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6264 # This compiler won't grok '-c -o', but also, the minuso test has
6265 # not run yet. These depmodes are late enough in the game, and
6266 # so weak that their functioning should not be impacted.
6267 am__obj=conftest.${OBJEXT-o}
6272 if depmode=$depmode \
6273 source=sub/conftest.c object=$am__obj \
6274 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6275 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6276 >/dev/null 2>conftest.err &&
6277 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6279 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6281 # icc doesn't choke on unknown options, it will just issue warnings
6282 # or remarks (even with -Werror). So we grep stderr for any message
6283 # that says an option was ignored or not supported.
6284 # When given -MP, icc 7.0 and 7.1 complain thusly:
6285 # icc: Command line warning: ignoring option '-M'; no argument required
6286 # The diagnosis changed in icc 8.0:
6287 # icc: Command line remark: option '-MP' not supported
6288 if (grep 'ignoring option' conftest.err ||
6289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6290 am_cv_CC_dependencies_compiler_type=$depmode
6299 am_cv_CC_dependencies_compiler_type=none
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6304 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6305 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6308 test "x$enable_dependency_tracking" != xno \
6309 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6311 am__fastdepCC_FALSE='#'
6313 am__fastdepCC_TRUE='#'
6314 am__fastdepCC_FALSE=
6319 ac_cpp='$CPP $CPPFLAGS'
6320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6324 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6325 # On Suns, sometimes $CPP names a directory.
6326 if test -n "$CPP" && test -d "$CPP"; then
6329 if test -z "$CPP"; then
6330 if ${ac_cv_prog_CPP+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 # Double quotes because CPP needs to be expanded
6334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6337 for ac_c_preproc_warn_flag in '' yes
6339 # Use a header file that comes with gcc, so configuring glibc
6340 # with a fresh cross-compiler works.
6341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342 # <limits.h> exists even on freestanding compilers.
6343 # On the NeXT, cc -E runs the code through the compiler's parser,
6344 # not just through cpp. "Syntax error" is here to catch this case.
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6348 # include <limits.h>
6350 # include <assert.h>
6354 if ac_fn_c_try_cpp "$LINENO"; then :
6357 # Broken: fails on valid input.
6360 rm -f conftest.err conftest.i conftest.$ac_ext
6362 # OK, works on sane cases. Now check whether nonexistent headers
6363 # can be detected and how.
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 #include <ac_nonexistent.h>
6368 if ac_fn_c_try_cpp "$LINENO"; then :
6369 # Broken: success on invalid input.
6372 # Passes both tests.
6376 rm -f conftest.err conftest.i conftest.$ac_ext
6379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6380 rm -f conftest.i conftest.err conftest.
$ac_ext
6381 if $ac_preproc_ok; then :
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6394 $as_echo "$CPP" >&6; }
6396 for ac_c_preproc_warn_flag
in '' yes
6398 # Use a header file that comes with gcc, so configuring glibc
6399 # with a fresh cross-compiler works.
6400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6401 # <limits.h> exists even on freestanding compilers.
6402 # On the NeXT, cc -E runs the code through the compiler's parser,
6403 # not just through cpp. "Syntax error" is here to catch this case.
6404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 # include <limits.h>
6409 # include <assert.h>
6413 if ac_fn_c_try_cpp
"$LINENO"; then :
6416 # Broken: fails on valid input.
6419 rm -f conftest.err conftest.i conftest.
$ac_ext
6421 # OK, works on sane cases. Now check whether nonexistent headers
6422 # can be detected and how.
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 #include <ac_nonexistent.h>
6427 if ac_fn_c_try_cpp
"$LINENO"; then :
6428 # Broken: success on invalid input.
6431 # Passes both tests.
6435 rm -f conftest.err conftest.i conftest.
$ac_ext
6438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6439 rm -f conftest.i conftest.err conftest.
$ac_ext
6440 if $ac_preproc_ok; then :
6443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6445 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6446 See \`config.log' for more details" "$LINENO" 5; }
6450 ac_cpp
='$CPP $CPPFLAGS'
6451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6456 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6458 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6459 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
6460 $as_echo_n "(cached) " >&6
6462 cat >conftest.
make <<\_ACEOF
6465 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6467 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6468 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6470 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6472 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6476 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6478 $as_echo "yes" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 SET_MAKE
="MAKE=${MAKE-make}"
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6488 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if ${ac_cv_prog_RANLIB+:} false
; then :
6492 $as_echo_n "(cached) " >&6
6494 if test -n "$RANLIB"; then
6495 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir
=.
6502 for ac_exec_ext
in '' $ac_executable_extensions; do
6503 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 RANLIB
=$ac_cv_prog_RANLIB
6515 if test -n "$RANLIB"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6517 $as_echo "$RANLIB" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6525 if test -z "$ac_cv_prog_RANLIB"; then
6526 ac_ct_RANLIB
=$RANLIB
6527 # Extract the first word of "ranlib", so it can be a program name with args.
6528 set dummy ranlib
; ac_word
=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6532 $as_echo_n "(cached) " >&6
6534 if test -n "$ac_ct_RANLIB"; then
6535 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir
=.
6542 for ac_exec_ext
in '' $ac_executable_extensions; do
6543 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6544 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6555 if test -n "$ac_ct_RANLIB"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6557 $as_echo "$ac_ct_RANLIB" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6563 if test "x$ac_ct_RANLIB" = x
; then
6566 case $cross_compiling:$ac_tool_warned in
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6570 ac_tool_warned
=yes ;;
6572 RANLIB
=$ac_ct_RANLIB
6575 RANLIB
="$ac_cv_prog_RANLIB"
6579 # Extract the first word of "perl", so it can be a program name with args.
6580 set dummy perl
; ac_word
=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_path_PERL+:} false
; then :
6584 $as_echo_n "(cached) " >&6
6588 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
6591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir
=.
6596 for ac_exec_ext
in '' $ac_executable_extensions; do
6597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 PERL
=$ac_cv_path_PERL
6610 if test -n "$PERL"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6612 $as_echo "$PERL" >&6; }
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6620 # Extract the first word of "sed", so it can be a program name with args.
6621 set dummy
sed; ac_word
=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if ${ac_cv_prog_SED+:} false
; then :
6625 $as_echo_n "(cached) " >&6
6627 if test -n "$SED"; then
6628 ac_cv_prog_SED
="$SED" # Let the user override the test.
6630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir
=.
6635 for ac_exec_ext
in '' $ac_executable_extensions; do
6636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_SED
="sed"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED
="/bin/false"
6649 if test -n "$SED"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6651 $as_echo "$SED" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6659 # Extract the first word of "asciidoc", so it can be a program name with args.
6660 set dummy asciidoc
; ac_word
=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_path_ASCIIDOC+:} false
; then :
6664 $as_echo_n "(cached) " >&6
6668 ac_cv_path_ASCIIDOC
="$ASCIIDOC" # Let the user override the test with a path.
6671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir
=.
6676 for ac_exec_ext
in '' $ac_executable_extensions; do
6677 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6678 ac_cv_path_ASCIIDOC
="$as_dir/$ac_word$ac_exec_ext"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 test -z "$ac_cv_path_ASCIIDOC" && ac_cv_path_ASCIIDOC
="none"
6690 ASCIIDOC
=$ac_cv_path_ASCIIDOC
6691 if test -n "$ASCIIDOC"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
6693 $as_echo "$ASCIIDOC" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6700 for ac_prog
in a2x a2x.py
6702 # Extract the first word of "$ac_prog", so it can be a program name with args.
6703 set dummy
$ac_prog; ac_word
=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_path_A2X+:} false
; then :
6707 $as_echo_n "(cached) " >&6
6711 ac_cv_path_A2X
="$A2X" # Let the user override the test with a path.
6714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir
=.
6719 for ac_exec_ext
in '' $ac_executable_extensions; do
6720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_path_A2X
="$as_dir/$ac_word$ac_exec_ext"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 if test -n "$A2X"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
6735 $as_echo "$A2X" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6742 test -n "$A2X" && break
6744 test -n "$A2X" || A2X
="none"
6747 if test "x$asciidoc" = "xtrue"; then
6749 USE_ASCIIDOC_FALSE
='#'
6751 USE_ASCIIDOC_TRUE
='#'
6756 if test "x$natpmp" = "xtrue" ||
test "x$upnp" = "xtrue"; then
6758 USE_FW_HELPER_FALSE
='#'
6760 USE_FW_HELPER_TRUE
='#'
6761 USE_FW_HELPER_FALSE
=
6764 if test "x$natpmp" = "xtrue"; then
6772 if test "x$upnp" = "xtrue"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6782 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6783 if ${ac_cv_prog_cc_c99+:} false
; then :
6784 $as_echo_n "(cached) " >&6
6786 ac_cv_prog_cc_c99
=no
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6791 #include <stdbool.h>
6796 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6797 #define debug(...) fprintf (stderr, __VA_ARGS__)
6798 #define showlist(...) puts (#__VA_ARGS__)
6799 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6801 test_varargs_macros (void)
6806 debug ("X = %d\n", x);
6807 showlist (The first, second, and third items.);
6808 report (x>y, "x is %d but y is %d", x, y);
6811 // Check long long types.
6812 #define BIG64 18446744073709551615ull
6813 #define BIG32 4294967295ul
6814 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6816 your preprocessor is broken;
6820 your preprocessor is broken;
6822 static long long int bignum = -9223372036854775807LL;
6823 static unsigned long long int ubignum = BIG64;
6825 struct incomplete_array
6833 const wchar_t *name;
6837 typedef const char *ccp;
6840 test_restrict (ccp restrict text)
6842 // See if C++-style comments work.
6843 // Iterate through items via the restricted pointer.
6844 // Also check for declarations in for loops.
6845 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6850 // Check varargs and va_copy.
6852 test_varargs (const char *format, ...)
6855 va_start (args, format);
6857 va_copy (args_copy, args);
6868 str = va_arg (args_copy, const char *);
6871 number = va_arg (args_copy, int);
6874 fnumber = va_arg (args_copy, double);
6889 _Bool success = false;
6892 if (test_restrict ("String literal") == 0)
6894 char *restrict newvar = "Another string";
6897 test_varargs ("s, d' f .", "string", 65, 34.234);
6898 test_varargs_macros ();
6900 // Check flexible array members.
6901 struct incomplete_array *ia =
6902 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6904 for (int i = 0; i < ia->datasize; ++i)
6905 ia->data[i] = i * 1.234;
6907 // Check named initializers.
6908 struct named_init ni = {
6910 .name = L"Test wide string",
6911 .average = 543.34343,
6916 int dynamic_array[ni.number];
6917 dynamic_array[ni.number - 1] = 543;
6919 // work around unused variable warnings
6920 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6921 || dynamic_array[ni.number - 1] != 543);
6927 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6929 CC
="$ac_save_CC $ac_arg"
6930 if ac_fn_c_try_compile
"$LINENO"; then :
6931 ac_cv_prog_cc_c99
=$ac_arg
6933 rm -f core conftest.err conftest.
$ac_objext
6934 test "x$ac_cv_prog_cc_c99" != "xno" && break
6936 rm -f conftest.
$ac_ext
6941 case "x$ac_cv_prog_cc_c99" in
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6944 $as_echo "none needed" >&6; } ;;
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6947 $as_echo "unsupported" >&6; } ;;
6949 CC
="$CC $ac_cv_prog_cc_c99"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6951 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6953 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6960 for ac_prog
in python python2 python2.7 python3 python3.3
6962 # Extract the first word of "$ac_prog", so it can be a program name with args.
6963 set dummy
$ac_prog; ac_word
=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_PYTHON+:} false
; then :
6967 $as_echo_n "(cached) " >&6
6969 if test -n "$PYTHON"; then
6970 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
6972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir
=.
6977 for ac_exec_ext
in '' $ac_executable_extensions; do
6978 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_PYTHON
="$ac_prog"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 PYTHON
=$ac_cv_prog_PYTHON
6990 if test -n "$PYTHON"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6992 $as_echo "$PYTHON" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6999 test -n "$PYTHON" && break
7002 if test "x$PYTHON" = "x"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python unavailable; some tests will not be run." >&5
7004 $as_echo "$as_me: WARNING: Python unavailable; some tests will not be run." >&2;}
7006 if test "x$PYTHON" != "x"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7018 $as_echo_n "checking for flexible array members... " >&6; }
7019 if ${ac_cv_c_flexmember+:} false
; then :
7020 $as_echo_n "(cached) " >&6
7022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7027 struct s { int n; double d[]; };
7032 struct s *p = malloc (offsetof (struct s, d)
7033 + m * sizeof (double));
7035 return p->d != (double *) NULL;
7040 if ac_fn_c_try_compile
"$LINENO"; then :
7041 ac_cv_c_flexmember
=yes
7043 ac_cv_c_flexmember
=no
7045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7048 $as_echo "$ac_cv_c_flexmember" >&6; }
7049 if test $ac_cv_c_flexmember = yes; then
7051 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7054 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C99 mid-block declaration syntax" >&5
7061 $as_echo_n "checking for working C99 mid-block declaration syntax... " >&6; }
7062 if ${tor_cv_c_c99_decl+:} false
; then :
7063 $as_echo_n "(cached) " >&6
7065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7071 int x; x = 3; int y; y = 4 + x;
7076 if ac_fn_c_try_compile
"$LINENO"; then :
7077 tor_cv_c_c99_decl
=yes
7079 tor_cv_c_c99_decl
=no
7081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_decl" >&5
7084 $as_echo "$tor_cv_c_c99_decl" >&6; }
7085 if test "$tor_cv_c_c99_decl" != "yes"; then
7086 as_fn_error $?
"Your compiler doesn't support c99 mid-block declarations. This is required as of Tor 0.2.6.x" "$LINENO" 5
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C99 designated initializers" >&5
7090 $as_echo_n "checking for working C99 designated initializers... " >&6; }
7091 if ${tor_cv_c_c99_designated_init+:} false
; then :
7092 $as_echo_n "(cached) " >&6
7094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 struct s { int a; int b; };
7100 struct s ss = { .b = 5, .a = 6 };
7105 if ac_fn_c_try_compile
"$LINENO"; then :
7106 tor_cv_c_c99_designated_init
=yes
7108 tor_cv_c_c99_designated_init
=no
7110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_designated_init" >&5
7113 $as_echo "$tor_cv_c_c99_designated_init" >&6; }
7115 if test "$tor_cv_c_c99_designated_init" != "yes"; then
7116 as_fn_error $?
"Your compiler doesn't support c99 designated initializers. This is required as of Tor 0.2.6.x" "$LINENO" 5
7121 # Check whether --with-tor-user was given.
7122 if test "${with_tor_user+set}" = set; then :
7123 withval
=$with_tor_user;
7133 # Check whether --with-tor-group was given.
7134 if test "${with_tor_group+set}" = set; then :
7135 withval
=$with_tor_group;
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32" >&5
7145 $as_echo_n "checking for win32... " >&6; }
7146 if test "$cross_compiling" = yes; then :
7147 bwin32
=cross
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5
7148 $as_echo "cross" >&6; }
7151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7154 int main(int c, char **v) {
7166 if ac_fn_c_try_run
"$LINENO"; then :
7167 bwin32
=true
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7168 $as_echo "yes" >&6; }
7170 bwin32
=false
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7178 if test "$bwin32" = "cross"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32 (cross)" >&5
7180 $as_echo_n "checking for win32 (cross)... " >&6; }
7181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7185 int main(int c, char **v) {return 0;}
7188 int main(int c, char **v) {return x(y);}
7192 if ac_fn_c_try_compile
"$LINENO"; then :
7193 bwin32
=true
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7194 $as_echo "yes" >&6; }
7196 bwin32
=false
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7205 if test "x$bwin32" = "xtrue"; then
7206 BUILD_NT_SERVICES_TRUE
=
7207 BUILD_NT_SERVICES_FALSE
='#'
7209 BUILD_NT_SERVICES_TRUE
='#'
7210 BUILD_NT_SERVICES_FALSE
=
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIPSpro compiler" >&5
7215 $as_echo_n "checking for MIPSpro compiler... " >&6; }
7216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7223 #if (defined(__sgi) && defined(_COMPILER_VERSION))
7232 if ac_fn_c_try_compile
"$LINENO"; then :
7233 bmipspro
=false
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7236 bmipspro
=true
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7241 if test "$bmipspro" = "true"; then
7242 CFLAGS
="$CFLAGS -c99"
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7246 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7247 if ${ac_cv_c_bigendian+:} false
; then :
7248 $as_echo_n "(cached) " >&6
7250 ac_cv_c_bigendian
=unknown
7251 # See if we're dealing with a universal compiler.
7252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 #ifndef __APPLE_CC__
7255 not a universal capable compiler
7260 if ac_fn_c_try_compile
"$LINENO"; then :
7262 # Check for potential -arch flags. It is not universal unless
7263 # there are at least two -arch flags with different values.
7266 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7267 if test -n "$ac_prev"; then
7269 i?
86 | x86_64 | ppc | ppc64
)
7270 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7273 ac_cv_c_bigendian
=universal
7279 elif test "x$ac_word" = "x-arch"; then
7284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7285 if test $ac_cv_c_bigendian = unknown
; then
7286 # See if sys/param.h defines the BYTE_ORDER macro.
7287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <sys/types.h>
7290 #include <sys/param.h>
7295 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7296 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7305 if ac_fn_c_try_compile
"$LINENO"; then :
7306 # It does; now see whether it defined to BIG_ENDIAN or not.
7307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7310 #include <sys/param.h>
7315 #if BYTE_ORDER != BIG_ENDIAN
7323 if ac_fn_c_try_compile
"$LINENO"; then :
7324 ac_cv_c_bigendian
=yes
7326 ac_cv_c_bigendian
=no
7328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7332 if test $ac_cv_c_bigendian = unknown
; then
7333 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7341 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7349 if ac_fn_c_try_compile
"$LINENO"; then :
7350 # It does; now see whether it defined to _BIG_ENDIAN or not.
7351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7366 if ac_fn_c_try_compile
"$LINENO"; then :
7367 ac_cv_c_bigendian
=yes
7369 ac_cv_c_bigendian
=no
7371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7375 if test $ac_cv_c_bigendian = unknown
; then
7376 # Compile a test program.
7377 if test "$cross_compiling" = yes; then :
7378 # Try to guess by grepping values from an object file.
7379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381 short int ascii_mm[] =
7382 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7383 short int ascii_ii[] =
7384 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7385 int use_ascii (int i) {
7386 return ascii_mm[i] + ascii_ii[i];
7388 short int ebcdic_ii[] =
7389 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7390 short int ebcdic_mm[] =
7391 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7392 int use_ebcdic (int i) {
7393 return ebcdic_mm[i] + ebcdic_ii[i];
7400 return use_ascii (foo) == use_ebcdic (foo);
7405 if ac_fn_c_try_compile
"$LINENO"; then :
7406 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7407 ac_cv_c_bigendian
=yes
7409 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7410 if test "$ac_cv_c_bigendian" = unknown
; then
7411 ac_cv_c_bigendian
=no
7413 # finding both strings is unlikely to happen, but who knows?
7414 ac_cv_c_bigendian
=unknown
7418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 $ac_includes_default
7427 /* Are we little or big endian? From Harbison&Steele. */
7431 char c[sizeof (long int)];
7434 return u.c[sizeof (long int) - 1] == 1;
7440 if ac_fn_c_try_run
"$LINENO"; then :
7441 ac_cv_c_bigendian
=no
7443 ac_cv_c_bigendian
=yes
7445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7452 $as_echo "$ac_cv_c_bigendian" >&6; }
7453 case $ac_cv_c_bigendian in #(
7455 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7461 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7465 as_fn_error $?
"unknown endianness
7466 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7471 $as_echo_n "checking for library containing socket... " >&6; }
7472 if ${ac_cv_search_socket+:} false
; then :
7473 $as_echo_n "(cached) " >&6
7475 ac_func_search_save_LIBS
=$LIBS
7476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7479 /* Override any GCC internal prototype to avoid an error.
7480 Use char because int might match the return type of a GCC
7481 builtin and then its argument prototype would still apply. */
7494 for ac_lib
in '' socket network
; do
7495 if test -z "$ac_lib"; then
7496 ac_res
="none required"
7499 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7501 if ac_fn_c_try_link
"$LINENO"; then :
7502 ac_cv_search_socket
=$ac_res
7504 rm -f core conftest.err conftest.
$ac_objext \
7506 if ${ac_cv_search_socket+:} false
; then :
7510 if ${ac_cv_search_socket+:} false
; then :
7513 ac_cv_search_socket
=no
7516 LIBS
=$ac_func_search_save_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7519 $as_echo "$ac_cv_search_socket" >&6; }
7520 ac_res
=$ac_cv_search_socket
7521 if test "$ac_res" != no
; then :
7522 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7527 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7528 if ${ac_cv_search_gethostbyname+:} false
; then :
7529 $as_echo_n "(cached) " >&6
7531 ac_func_search_save_LIBS
=$LIBS
7532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7535 /* Override any GCC internal prototype to avoid an error.
7536 Use char because int might match the return type of a GCC
7537 builtin and then its argument prototype would still apply. */
7541 char gethostbyname ();
7545 return gethostbyname ();
7550 for ac_lib
in '' nsl
; do
7551 if test -z "$ac_lib"; then
7552 ac_res
="none required"
7555 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7557 if ac_fn_c_try_link
"$LINENO"; then :
7558 ac_cv_search_gethostbyname
=$ac_res
7560 rm -f core conftest.err conftest.
$ac_objext \
7562 if ${ac_cv_search_gethostbyname+:} false
; then :
7566 if ${ac_cv_search_gethostbyname+:} false
; then :
7569 ac_cv_search_gethostbyname
=no
7572 LIBS
=$ac_func_search_save_LIBS
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7575 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7576 ac_res
=$ac_cv_search_gethostbyname
7577 if test "$ac_res" != no
; then :
7578 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7583 $as_echo_n "checking for library containing dlopen... " >&6; }
7584 if ${ac_cv_search_dlopen+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 ac_func_search_save_LIBS
=$LIBS
7588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 /* Override any GCC internal prototype to avoid an error.
7592 Use char because int might match the return type of a GCC
7593 builtin and then its argument prototype would still apply. */
7606 for ac_lib
in '' dl
; do
7607 if test -z "$ac_lib"; then
7608 ac_res
="none required"
7611 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7613 if ac_fn_c_try_link
"$LINENO"; then :
7614 ac_cv_search_dlopen
=$ac_res
7616 rm -f core conftest.err conftest.
$ac_objext \
7618 if ${ac_cv_search_dlopen+:} false
; then :
7622 if ${ac_cv_search_dlopen+:} false
; then :
7625 ac_cv_search_dlopen
=no
7628 LIBS
=$ac_func_search_save_LIBS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7631 $as_echo "$ac_cv_search_dlopen" >&6; }
7632 ac_res
=$ac_cv_search_dlopen
7633 if test "$ac_res" != no
; then :
7634 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
7639 $as_echo_n "checking for library containing inet_aton... " >&6; }
7640 if ${ac_cv_search_inet_aton+:} false
; then :
7641 $as_echo_n "(cached) " >&6
7643 ac_func_search_save_LIBS
=$LIBS
7644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7647 /* Override any GCC internal prototype to avoid an error.
7648 Use char because int might match the return type of a GCC
7649 builtin and then its argument prototype would still apply. */
7657 return inet_aton ();
7662 for ac_lib
in '' resolv
; do
7663 if test -z "$ac_lib"; then
7664 ac_res
="none required"
7667 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7669 if ac_fn_c_try_link
"$LINENO"; then :
7670 ac_cv_search_inet_aton
=$ac_res
7672 rm -f core conftest.err conftest.
$ac_objext \
7674 if ${ac_cv_search_inet_aton+:} false
; then :
7678 if ${ac_cv_search_inet_aton+:} false
; then :
7681 ac_cv_search_inet_aton
=no
7684 LIBS
=$ac_func_search_save_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
7687 $as_echo "$ac_cv_search_inet_aton" >&6; }
7688 ac_res
=$ac_cv_search_inet_aton
7689 if test "$ac_res" != no
; then :
7690 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
7695 $as_echo_n "checking for library containing backtrace... " >&6; }
7696 if ${ac_cv_search_backtrace+:} false
; then :
7697 $as_echo_n "(cached) " >&6
7699 ac_func_search_save_LIBS
=$LIBS
7700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7703 /* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7713 return backtrace ();
7718 for ac_lib
in '' execinfo
; do
7719 if test -z "$ac_lib"; then
7720 ac_res
="none required"
7723 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7725 if ac_fn_c_try_link
"$LINENO"; then :
7726 ac_cv_search_backtrace
=$ac_res
7728 rm -f core conftest.err conftest.
$ac_objext \
7730 if ${ac_cv_search_backtrace+:} false
; then :
7734 if ${ac_cv_search_backtrace+:} false
; then :
7737 ac_cv_search_backtrace
=no
7740 LIBS
=$ac_func_search_save_LIBS
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
7743 $as_echo "$ac_cv_search_backtrace" >&6; }
7744 ac_res
=$ac_cv_search_backtrace
7745 if test "$ac_res" != no
; then :
7746 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7752 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7753 if ${ac_cv_search_clock_gettime+:} false
; then :
7754 $as_echo_n "(cached) " >&6
7756 ac_func_search_save_LIBS
=$LIBS
7757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7760 /* Override any GCC internal prototype to avoid an error.
7761 Use char because int might match the return type of a GCC
7762 builtin and then its argument prototype would still apply. */
7766 char clock_gettime ();
7770 return clock_gettime ();
7775 for ac_lib
in '' rt
; do
7776 if test -z "$ac_lib"; then
7777 ac_res
="none required"
7780 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7782 if ac_fn_c_try_link
"$LINENO"; then :
7783 ac_cv_search_clock_gettime
=$ac_res
7785 rm -f core conftest.err conftest.
$ac_objext \
7787 if ${ac_cv_search_clock_gettime+:} false
; then :
7791 if ${ac_cv_search_clock_gettime+:} false
; then :
7794 ac_cv_search_clock_gettime
=no
7797 LIBS
=$ac_func_search_save_LIBS
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7800 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7801 ac_res
=$ac_cv_search_clock_gettime
7802 if test "$ac_res" != no
; then :
7803 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7807 if test "$LIBS" != "$saved_LIBS"; then
7808 # Looks like we need -lrt for clock_gettime().
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
7813 $as_echo_n "checking for library containing pthread_create... " >&6; }
7814 if ${ac_cv_search_pthread_create+:} false
; then :
7815 $as_echo_n "(cached) " >&6
7817 ac_func_search_save_LIBS
=$LIBS
7818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7821 /* Override any GCC internal prototype to avoid an error.
7822 Use char because int might match the return type of a GCC
7823 builtin and then its argument prototype would still apply. */
7827 char pthread_create ();
7831 return pthread_create ();
7836 for ac_lib
in '' pthread
; do
7837 if test -z "$ac_lib"; then
7838 ac_res
="none required"
7841 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7843 if ac_fn_c_try_link
"$LINENO"; then :
7844 ac_cv_search_pthread_create
=$ac_res
7846 rm -f core conftest.err conftest.
$ac_objext \
7848 if ${ac_cv_search_pthread_create+:} false
; then :
7852 if ${ac_cv_search_pthread_create+:} false
; then :
7855 ac_cv_search_pthread_create
=no
7858 LIBS
=$ac_func_search_save_LIBS
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
7861 $as_echo "$ac_cv_search_pthread_create" >&6; }
7862 ac_res
=$ac_cv_search_pthread_create
7863 if test "$ac_res" != no
; then :
7864 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_detach" >&5
7869 $as_echo_n "checking for library containing pthread_detach... " >&6; }
7870 if ${ac_cv_search_pthread_detach+:} false
; then :
7871 $as_echo_n "(cached) " >&6
7873 ac_func_search_save_LIBS
=$LIBS
7874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7883 char pthread_detach ();
7887 return pthread_detach ();
7892 for ac_lib
in '' pthread
; do
7893 if test -z "$ac_lib"; then
7894 ac_res
="none required"
7897 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7899 if ac_fn_c_try_link
"$LINENO"; then :
7900 ac_cv_search_pthread_detach
=$ac_res
7902 rm -f core conftest.err conftest.
$ac_objext \
7904 if ${ac_cv_search_pthread_detach+:} false
; then :
7908 if ${ac_cv_search_pthread_detach+:} false
; then :
7911 ac_cv_search_pthread_detach
=no
7914 LIBS
=$ac_func_search_save_LIBS
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_detach" >&5
7917 $as_echo "$ac_cv_search_pthread_detach" >&6; }
7918 ac_res
=$ac_cv_search_pthread_detach
7919 if test "$ac_res" != no
; then :
7920 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7925 if test "$bwin32" = "true"; then
7927 THREADS_WIN32_FALSE
='#'
7929 THREADS_WIN32_TRUE
='#'
7930 THREADS_WIN32_FALSE
=
7933 if test "$bwin32" = "false"; then
7934 THREADS_PTHREADS_TRUE
=
7935 THREADS_PTHREADS_FALSE
='#'
7937 THREADS_PTHREADS_TRUE
='#'
7938 THREADS_PTHREADS_FALSE
=
7942 for ac_func
in _NSGetEnviron \
7943 RtlSecureZeroMemory \
7947 backtrace_symbols_fd \
7991 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7992 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7993 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7994 cat >>confdefs.h
<<_ACEOF
7995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8002 # Apple messed up when they added two functions functions in Sierra: they
8003 # forgot to decorate them with appropriate AVAILABLE_MAC_OS_VERSION
8004 # checks. So we should only probe for those functions if we are sure that we
8005 # are not targetting OSX 10.11 or earlier.
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a pre-Sierra OSX build target" >&5
8007 $as_echo_n "checking for a pre-Sierra OSX build target... " >&6; }
8008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8012 # include <AvailabilityMacros.h>
8013 # ifndef MAC_OS_X_VERSION_10_12
8014 # define MAC_OS_X_VERSION_10_12 101200
8016 # if defined(MAC_OS_X_VERSION_MIN_REQUIRED)
8017 # if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
8018 # error "Running on Mac OSX 10.11 or earlier"
8031 if ac_fn_c_try_compile
"$LINENO"; then :
8032 on_macos_pre_10_12
=no
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8035 on_macos_pre_10_12
=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8036 $as_echo "yes" >&6; }
8038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8040 if test "$on_macos_pre_10_12" = "no"; then
8041 for ac_func
in clock_gettime \
8045 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8046 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8047 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8048 cat >>confdefs.h
<<_ACEOF
8049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8057 if test "$bwin32" != "true"; then
8058 for ac_header
in pthread.h
8060 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8061 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8062 cat >>confdefs.h
<<_ACEOF
8063 #define HAVE_PTHREAD_H 1
8070 for ac_func
in pthread_create
8072 ac_fn_c_check_func
"$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8073 if test "x$ac_cv_func_pthread_create" = xyes
; then :
8074 cat >>confdefs.h
<<_ACEOF
8075 #define HAVE_PTHREAD_CREATE 1
8081 for ac_func
in pthread_condattr_setclock
8083 ac_fn_c_check_func
"$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
8084 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
; then :
8085 cat >>confdefs.h
<<_ACEOF
8086 #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
8094 if test "$bwin32" = "true"; then
8095 ac_fn_c_check_decl
"$LINENO" "SecureZeroMemory" "ac_cv_have_decl_SecureZeroMemory" "
8096 #include <windows.h>
8101 if test "x$ac_cv_have_decl_SecureZeroMemory" = xyes
; then :
8107 cat >>confdefs.h
<<_ACEOF
8108 #define HAVE_DECL_SECUREZEROMEMORY $ac_have_decl
8110 ac_fn_c_check_decl
"$LINENO" "_getwch" "ac_cv_have_decl__getwch" "
8111 #include <windows.h>
8116 if test "x$ac_cv_have_decl__getwch" = xyes
; then :
8122 cat >>confdefs.h
<<_ACEOF
8123 #define HAVE_DECL__GETWCH $ac_have_decl
8128 if test "x$ac_cv_func_readpassphrase" = "xno" && test "$bwin32" = "false"; then
8129 BUILD_READPASSPHRASE_C_TRUE
=
8130 BUILD_READPASSPHRASE_C_FALSE
='#'
8132 BUILD_READPASSPHRASE_C_TRUE
='#'
8133 BUILD_READPASSPHRASE_C_FALSE
=
8138 if test "$bwin32" = "true"; then
8139 TOR_LIB_WS32
=-lws2_32
8140 TOR_LIB_IPHLPAPI
=-liphlpapi
8141 # Some of the cargo-cults recommend -lwsock32 as well, but I don't
8142 # think it's actually necessary.
8152 tor_libevent_pkg_redhat
="libevent"
8153 tor_libevent_pkg_debian
="libevent-dev"
8154 tor_libevent_devpkg_redhat
="libevent-devel"
8155 tor_libevent_devpkg_debian
="libevent-dev"
8157 STATIC_LIBEVENT_FLAGS
=""
8158 if test "$enable_static_libevent" = "yes"; then
8159 if test "$have_rt" = "yes"; then
8160 STATIC_LIBEVENT_FLAGS
=" -lrt "
8167 # Check whether --with-libevent-dir was given.
8168 if test "${with_libevent_dir+set}" = set; then :
8169 withval
=$with_libevent_dir;
8170 if test x
$withval != xno
; then
8171 trylibeventdir
="$withval"
8176 if test "x$trylibeventdir" = x
&& test "x$ALT_libevent_WITHVAL" != x
; then
8177 trylibeventdir
="$ALT_libevent_WITHVAL"
8180 tor_saved_LIBS
="$LIBS"
8181 tor_saved_LDFLAGS
="$LDFLAGS"
8182 tor_saved_CPPFLAGS
="$CPPFLAGS"
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent directory" >&5
8184 $as_echo_n "checking for libevent directory... " >&6; }
8185 if ${tor_cv_library_libevent_dir+:} false
; then :
8186 $as_echo_n "(cached) " >&6
8189 tor_libevent_dir_found
=no
8190 tor_libevent_any_linkable
=no
8192 for tor_trydir
in "$trylibeventdir" "(system)" "$prefix" /usr
/local /usr
/pkg
/opt
/libevent
; do
8193 LDFLAGS
="$tor_saved_LDFLAGS"
8194 LIBS
="$tor_saved_LIBS -levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32"
8195 CPPFLAGS
="$tor_saved_CPPFLAGS"
8197 if test -z "$tor_trydir" ; then
8201 # Skip the directory if it isn't there.
8202 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
8206 # If this isn't blank, try adding the directory (or appropriate
8207 # include/libs subdirectories) to the command line.
8208 if test "$tor_trydir" != "(system)"; then
8210 if test -d "$tor_trydir/lib"; then
8211 LDFLAGS
="-L$tor_trydir/lib $LDFLAGS"
8213 LDFLAGS
="-L$tor_trydir $LDFLAGS"
8215 if test -d "$tor_trydir/include"; then
8216 CPPFLAGS
="-I$tor_trydir/include $CPPFLAGS"
8218 CPPFLAGS
="-I$tor_trydir $CPPFLAGS"
8223 # Can we link against (but not necessarily run, or find the headers for)
8225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8229 #include <winsock2.h>
8232 struct event_base *event_base_new(void);
8238 {WSADATA d; WSAStartup(0x101,&d); }
8246 if ac_fn_c_try_link
"$LINENO"; then :
8251 rm -f core conftest.err conftest.
$ac_objext \
8252 conftest
$ac_exeext conftest.
$ac_ext
8254 if test "$linkable" = yes; then
8255 tor_libevent_any_linkable
=yes
8256 # Okay, we can link against it. Can we find the headers?
8257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8261 #include <winsock2.h>
8263 #include <sys/time.h>
8264 #include <sys/types.h>
8265 #include <event2/event.h>
8271 {WSADATA d; WSAStartup(0x101,&d); }
8279 if ac_fn_c_try_compile
"$LINENO"; then :
8284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8285 if test "$buildable" = yes; then
8286 tor_cv_library_libevent_dir
=$tor_trydir
8287 tor_libevent_dir_found
=yes
8293 if test "$tor_libevent_dir_found" = no
; then
8294 if test "$tor_libevent_any_linkable" = no
; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a linkable libevent. If you have it installed somewhere unusual, you can specify an explicit path using --with-libevent-dir" >&5
8296 $as_echo "$as_me: WARNING: Could not find a linkable libevent. If you have it installed somewhere unusual, you can specify an explicit path using --with-libevent-dir" >&2;}
8299 if test xpkg
= xdevpkg
; then
8302 if test -f /etc
/debian_version
&& test x
"$tor_libevent_pkg_debian" != x
; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_pkg_debian\"" >&5
8304 $as_echo "$as_me: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_pkg_debian\"" >&2;}
8305 if test x
"$tor_libevent_pkg_debian" != x
"$tor_libevent_devpkg_debian"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&5
8307 $as_echo "$as_me: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&2;}
8310 if test -f /etc
/fedora-release
&& test x
"$tor_libevent_pkg_redhat" != x
; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_pkg_redhat\"" >&5
8312 $as_echo "$as_me: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_pkg_redhat\"" >&2;}
8313 if test x
"$tor_libevent_pkg_redhat" != x
"$tor_libevent_devpkg_redhat"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5
8315 $as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
8318 if test -f /etc
/redhat-release
&& test x
"$tor_libevent_pkg_redhat" != x
; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On most Redhat-based systems, you can get$h libevent by installing the $tor_libevent_pkg_redhat RPM package" >&5
8320 $as_echo "$as_me: WARNING: On most Redhat-based systems, you can get$h libevent by installing the $tor_libevent_pkg_redhat RPM package" >&2;}
8321 if test x
"$tor_libevent_pkg_redhat" != x
"$tor_libevent_devpkg_redhat"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5
8323 $as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
8328 as_fn_error $?
"Missing libraries; unable to proceed." "$LINENO" 5
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We found the libraries for libevent, but we could not find the C header files. You may need to install a devel package." >&5
8331 $as_echo "$as_me: WARNING: We found the libraries for libevent, but we could not find the C header files. You may need to install a devel package." >&2;}
8334 if test xdevpkg
= xdevpkg
; then
8337 if test -f /etc
/debian_version
&& test x
"$tor_libevent_devpkg_debian" != x
; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_devpkg_debian\"" >&5
8339 $as_echo "$as_me: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_devpkg_debian\"" >&2;}
8340 if test x
"$tor_libevent_devpkg_debian" != x
"$tor_libevent_devpkg_debian"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&5
8342 $as_echo "$as_me: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&2;}
8345 if test -f /etc
/fedora-release
&& test x
"$tor_libevent_devpkg_redhat" != x
; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_devpkg_redhat\"" >&5
8347 $as_echo "$as_me: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_devpkg_redhat\"" >&2;}
8348 if test x
"$tor_libevent_devpkg_redhat" != x
"$tor_libevent_devpkg_redhat"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5
8350 $as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
8353 if test -f /etc
/redhat-release
&& test x
"$tor_libevent_devpkg_redhat" != x
; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On most Redhat-based systems, you can get$h libevent by installing the $tor_libevent_devpkg_redhat RPM package" >&5
8355 $as_echo "$as_me: WARNING: On most Redhat-based systems, you can get$h libevent by installing the $tor_libevent_devpkg_redhat RPM package" >&2;}
8356 if test x
"$tor_libevent_devpkg_redhat" != x
"$tor_libevent_devpkg_redhat"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5
8358 $as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
8363 as_fn_error $?
"Missing headers; unable to proceed." "$LINENO" 5
8367 LDFLAGS
="$tor_saved_LDFLAGS"
8368 LIBS
="$tor_saved_LIBS"
8369 CPPFLAGS
="$tor_saved_CPPFLAGS"
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_dir" >&5
8373 $as_echo "$tor_cv_library_libevent_dir" >&6; }
8374 LIBS
="$LIBS -levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32"
8375 if test "$tor_cv_library_libevent_dir" != "(system)"; then
8377 if test -d "$tor_cv_library_libevent_dir/lib"; then
8378 LDFLAGS
="-L$tor_cv_library_libevent_dir/lib $LDFLAGS"
8380 LDFLAGS
="-L$tor_cv_library_libevent_dir $LDFLAGS"
8382 if test -d "$tor_cv_library_libevent_dir/include"; then
8383 CPPFLAGS
="-I$tor_cv_library_libevent_dir/include $CPPFLAGS"
8385 CPPFLAGS
="-I$tor_cv_library_libevent_dir $CPPFLAGS"
8391 if test x
$tor_cv_library_libevent_dir = "x(system)"; then
8392 TOR_LDFLAGS_libevent
=""
8393 TOR_CPPFLAGS_libevent
=""
8395 if test -d "$tor_cv_library_libevent_dir/lib"; then
8396 TOR_LDFLAGS_libevent
="-L$tor_cv_library_libevent_dir/lib"
8397 TOR_LIBDIR_libevent
="$tor_cv_library_libevent_dir/lib"
8399 TOR_LDFLAGS_libevent
="-L$tor_cv_library_libevent_dir"
8400 TOR_LIBDIR_libevent
="$tor_cv_library_libevent_dir"
8402 if test -d "$tor_cv_library_libevent_dir/include"; then
8403 TOR_CPPFLAGS_libevent
="-I$tor_cv_library_libevent_dir/include"
8405 TOR_CPPFLAGS_libevent
="-I$tor_cv_library_libevent_dir"
8412 if test "$cross_compiling" != yes; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link libevent" >&5
8414 $as_echo_n "checking whether we need extra options to link libevent... " >&6; }
8415 if ${tor_cv_library_libevent_linker_option+:} false
; then :
8416 $as_echo_n "(cached) " >&6
8419 orig_LDFLAGS
="$LDFLAGS"
8422 if test -d "$tor_cv_library_libevent_dir/lib"; then
8423 tor_trydir
="$tor_cv_library_libevent_dir/lib"
8425 tor_trydir
="$tor_cv_library_libevent_dir"
8427 for tor_tryextra
in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
8428 "-Wl,-rpath,$tor_trydir" ; do
8429 if test "$tor_tryextra" = "(none)"; then
8430 LDFLAGS
="$orig_LDFLAGS"
8432 LDFLAGS
="$tor_tryextra $orig_LDFLAGS"
8434 if test "$cross_compiling" = yes; then :
8435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8437 as_fn_error $?
"cannot run test program while cross compiling
8438 See \`config.log' for more details" "$LINENO" 5; }
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8444 #include <winsock2.h>
8447 struct event_base *event_base_new(void);
8453 {WSADATA d; WSAStartup(0x101,&d); }
8461 if ac_fn_c_try_run
"$LINENO"; then :
8466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8470 if test "$runnable" = yes; then
8471 tor_cv_library_libevent_linker_option
=$tor_tryextra
8476 if test "$runnable" = no
; then
8477 as_fn_error $?
"Found linkable libevent in $tor_cv_library_libevent_dir, but it does not seem to run, even with -R. Maybe specify another using --with-libevent-dir}" "$LINENO" 5
8479 LDFLAGS
="$orig_LDFLAGS"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_linker_option" >&5
8483 $as_echo "$tor_cv_library_libevent_linker_option" >&6; }
8484 if test "$tor_cv_library_libevent_linker_option" != "(none)" ; then
8485 TOR_LDFLAGS_libevent
="$TOR_LDFLAGS_libevent $tor_cv_library_libevent_linker_option"
8489 LIBS
="$tor_saved_LIBS"
8490 LDFLAGS
="$tor_saved_LDFLAGS"
8491 CPPFLAGS
="$tor_saved_CPPFLAGS"
8496 save_LDFLAGS
="$LDFLAGS"
8497 save_CPPFLAGS
="$CPPFLAGS"
8499 LIBS
="$STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32 $save_LIBS"
8500 LDFLAGS
="$TOR_LDFLAGS_libevent $LDFLAGS"
8501 CPPFLAGS
="$TOR_CPPFLAGS_libevent $CPPFLAGS"
8503 for ac_header
in event
2/event.h event
2/dns.h event
2/bufferevent_ssl.h
8505 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8507 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8508 cat >>confdefs.h
<<_ACEOF
8509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8517 if test "$enable_static_libevent" = "yes"; then
8518 if test "$tor_cv_library_libevent_dir" = "(system)"; then
8519 as_fn_error $?
"\"You must specify an explicit --with-libevent-dir=x option when using --enable-static-libevent\"" "$LINENO" 5
8521 TOR_LIBEVENT_LIBS
="$TOR_LIBDIR_libevent/libevent.a $STATIC_LIBEVENT_FLAGS"
8524 if test "x$ac_cv_header_event2_event_h" = "xyes"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_new" >&5
8526 $as_echo_n "checking for library containing event_new... " >&6; }
8527 if ${ac_cv_search_event_new+:} false
; then :
8528 $as_echo_n "(cached) " >&6
8530 ac_func_search_save_LIBS
=$LIBS
8531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8534 /* Override any GCC internal prototype to avoid an error.
8535 Use char because int might match the return type of a GCC
8536 builtin and then its argument prototype would still apply. */
8544 return event_new ();
8549 for ac_lib
in '' event event_core
; do
8550 if test -z "$ac_lib"; then
8551 ac_res
="none required"
8554 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8556 if ac_fn_c_try_link
"$LINENO"; then :
8557 ac_cv_search_event_new
=$ac_res
8559 rm -f core conftest.err conftest.
$ac_objext \
8561 if ${ac_cv_search_event_new+:} false
; then :
8565 if ${ac_cv_search_event_new+:} false
; then :
8568 ac_cv_search_event_new
=no
8571 LIBS
=$ac_func_search_save_LIBS
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_new" >&5
8574 $as_echo "$ac_cv_search_event_new" >&6; }
8575 ac_res
=$ac_cv_search_event_new
8576 if test "$ac_res" != no
; then :
8577 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8580 as_fn_error $?
"\"libevent2 is installed but linking it failed while searching for event_new\"" "$LINENO" 5
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing evdns_base_new" >&5
8584 $as_echo_n "checking for library containing evdns_base_new... " >&6; }
8585 if ${ac_cv_search_evdns_base_new+:} false
; then :
8586 $as_echo_n "(cached) " >&6
8588 ac_func_search_save_LIBS
=$LIBS
8589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8592 /* Override any GCC internal prototype to avoid an error.
8593 Use char because int might match the return type of a GCC
8594 builtin and then its argument prototype would still apply. */
8598 char evdns_base_new ();
8602 return evdns_base_new ();
8607 for ac_lib
in '' event event_extra
; do
8608 if test -z "$ac_lib"; then
8609 ac_res
="none required"
8612 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8614 if ac_fn_c_try_link
"$LINENO"; then :
8615 ac_cv_search_evdns_base_new
=$ac_res
8617 rm -f core conftest.err conftest.
$ac_objext \
8619 if ${ac_cv_search_evdns_base_new+:} false
; then :
8623 if ${ac_cv_search_evdns_base_new+:} false
; then :
8626 ac_cv_search_evdns_base_new
=no
8629 LIBS
=$ac_func_search_save_LIBS
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_evdns_base_new" >&5
8632 $as_echo "$ac_cv_search_evdns_base_new" >&6; }
8633 ac_res
=$ac_cv_search_evdns_base_new
8634 if test "$ac_res" != no
; then :
8635 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8638 as_fn_error $?
"\"libevent2 is installed but linking it failed while searching for evdns_base_new\"" "$LINENO" 5
8642 if test "$ac_cv_search_event_new" != "none required"; then
8643 TOR_LIBEVENT_LIBS
="$ac_cv_search_event_new"
8645 if test "$ac_cv_search_evdns_base_new" != "none required"; then
8646 TOR_LIBEVENT_LIBS
="$ac_cv_search_evdns_base_new $TOR_LIBEVENT_LIBS"
8649 as_fn_error $?
"\"libevent2 is required but the headers could not be found\"" "$LINENO" 5
8653 for ac_func
in evutil_secure_rng_set_urandom_device_file \
8654 evutil_secure_rng_add_bytes \
8657 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8658 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8659 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8660 cat >>confdefs.h
<<_ACEOF
8661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8669 LDFLAGS
="$save_LDFLAGS"
8670 CPPFLAGS
="$save_CPPFLAGS"
8672 CPPFLAGS
="$CPPFLAGS $TOR_CPPFLAGS_libevent"
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Libevent is new enough" >&5
8674 $as_echo_n "checking whether Libevent is new enough... " >&6; }
8675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8678 #include <event2/event.h>
8679 #if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000a00
8687 if ac_fn_c_try_compile
"$LINENO"; then :
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8689 $as_echo "yes" >&6; }
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8693 as_fn_error $?
"Libevent is not new enough. We require 2.0.10-stable or later" "$LINENO" 5
8695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8698 LDFLAGS
="$save_LDFLAGS"
8699 CPPFLAGS
="$save_CPPFLAGS"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
8707 $as_echo_n "checking for library containing pow... " >&6; }
8708 if ${ac_cv_search_pow+:} false
; then :
8709 $as_echo_n "(cached) " >&6
8711 ac_func_search_save_LIBS
=$LIBS
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8715 /* Override any GCC internal prototype to avoid an error.
8716 Use char because int might match the return type of a GCC
8717 builtin and then its argument prototype would still apply. */
8730 for ac_lib
in '' m
; do
8731 if test -z "$ac_lib"; then
8732 ac_res
="none required"
8735 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8737 if ac_fn_c_try_link
"$LINENO"; then :
8738 ac_cv_search_pow
=$ac_res
8740 rm -f core conftest.err conftest.
$ac_objext \
8742 if ${ac_cv_search_pow+:} false
; then :
8746 if ${ac_cv_search_pow+:} false
; then :
8752 LIBS
=$ac_func_search_save_LIBS
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
8755 $as_echo "$ac_cv_search_pow" >&6; }
8756 ac_res
=$ac_cv_search_pow
8757 if test "$ac_res" != no
; then :
8758 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8761 as_fn_error $?
"Could not find pow in libm or libc." "$LINENO" 5
8764 if test "$ac_cv_search_pow" != "none required"; then
8765 TOR_LIB_MATH
="$ac_cv_search_pow"
8771 tor_openssl_pkg_redhat
="openssl"
8772 tor_openssl_pkg_debian
="libssl-dev"
8773 tor_openssl_devpkg_redhat
="openssl-devel"
8774 tor_openssl_devpkg_debian
="libssl-dev"
8776 ALT_openssl_WITHVAL
=""
8778 # Check whether --with-ssl-dir was given.
8779 if test "${with_ssl_dir+set}" = set; then :
8780 withval
=$with_ssl_dir;
8781 if test "x$withval" != "xno" && test "x$withval" != "x"; then
8782 ALT_openssl_WITHVAL
="$withval"
8791 # Check whether --with-openssl-dir was given.
8792 if test "${with_openssl_dir+set}" = set; then :
8793 withval
=$with_openssl_dir;
8794 if test x
$withval != xno
; then
8795 tryopenssldir
="$withval"
8800 if test "x$tryopenssldir" = x
&& test "x$ALT_openssl_WITHVAL" != x
; then
8801 tryopenssldir
="$ALT_openssl_WITHVAL"
8804 tor_saved_LIBS
="$LIBS"
8805 tor_saved_LDFLAGS
="$LDFLAGS"
8806 tor_saved_CPPFLAGS
="$CPPFLAGS"
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl directory" >&5
8808 $as_echo_n "checking for openssl directory... " >&6; }
8809 if ${tor_cv_library_openssl_dir+:} false
; then :
8810 $as_echo_n "(cached) " >&6
8813 tor_openssl_dir_found
=no
8814 tor_openssl_any_linkable
=no
8816 for tor_trydir
in "$tryopenssldir" "(system)" "$prefix" /usr
/local /usr
/pkg
/usr
/local
/openssl
/usr
/lib
/openssl
/usr
/local
/ssl
/usr
/lib
/ssl
/usr
/local /usr
/athena
/opt
/openssl
; do
8817 LDFLAGS
="$tor_saved_LDFLAGS"
8818 LIBS
="$tor_saved_LIBS -lssl -lcrypto $TOR_LIB_GDI"
8819 CPPFLAGS
="$tor_saved_CPPFLAGS"
8821 if test -z "$tor_trydir" ; then
8825 # Skip the directory if it isn't there.
8826 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
8830 # If this isn't blank, try adding the directory (or appropriate
8831 # include/libs subdirectories) to the command line.
8832 if test "$tor_trydir" != "(system)"; then
8834 if test -d "$tor_trydir/lib"; then
8835 LDFLAGS
="-L$tor_trydir/lib $LDFLAGS"
8837 LDFLAGS
="-L$tor_trydir $LDFLAGS"
8839 if test -d "$tor_trydir/include"; then
8840 CPPFLAGS
="-I$tor_trydir/include $CPPFLAGS"
8842 CPPFLAGS
="-I$tor_trydir $CPPFLAGS"
8847 # Can we link against (but not necessarily run, or find the headers for)
8849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 void RAND_add(const void *buf, int num, double entropy);
8855 RAND_add((void*)0,0,0);
8860 if ac_fn_c_try_link
"$LINENO"; then :
8865 rm -f core conftest.err conftest.
$ac_objext \
8866 conftest
$ac_exeext conftest.
$ac_ext
8868 if test "$linkable" = yes; then
8869 tor_openssl_any_linkable
=yes
8870 # Okay, we can link against it. Can we find the headers?
8871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 #include <openssl/rand.h>
8877 RAND_add((void*)0,0,0);
8882 if ac_fn_c_try_compile
"$LINENO"; then :
8887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8888 if test "$buildable" = yes; then
8889 tor_cv_library_openssl_dir
=$tor_trydir
8890 tor_openssl_dir_found
=yes
8896 if test "$tor_openssl_dir_found" = no
; then
8897 if test "$tor_openssl_any_linkable" = no
; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a linkable openssl. If you have it installed somewhere unusual, you can specify an explicit path using --with-openssl-dir" >&5
8899 $as_echo "$as_me: WARNING: Could not find a linkable openssl. If you have it installed somewhere unusual, you can specify an explicit path using --with-openssl-dir" >&2;}
8902 if test xpkg
= xdevpkg
; then
8905 if test -f /etc
/debian_version
&& test x
"$tor_openssl_pkg_debian" != x
; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_pkg_debian\"" >&5
8907 $as_echo "$as_me: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_pkg_debian\"" >&2;}
8908 if test x
"$tor_openssl_pkg_debian" != x
"$tor_openssl_devpkg_debian"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&5
8910 $as_echo "$as_me: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&2;}
8913 if test -f /etc
/fedora-release
&& test x
"$tor_openssl_pkg_redhat" != x
; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_pkg_redhat\"" >&5
8915 $as_echo "$as_me: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_pkg_redhat\"" >&2;}
8916 if test x
"$tor_openssl_pkg_redhat" != x
"$tor_openssl_devpkg_redhat"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5
8918 $as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
8921 if test -f /etc
/redhat-release
&& test x
"$tor_openssl_pkg_redhat" != x
; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On most Redhat-based systems, you can get$h openssl by installing the $tor_openssl_pkg_redhat RPM package" >&5
8923 $as_echo "$as_me: WARNING: On most Redhat-based systems, you can get$h openssl by installing the $tor_openssl_pkg_redhat RPM package" >&2;}
8924 if test x
"$tor_openssl_pkg_redhat" != x
"$tor_openssl_devpkg_redhat"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5
8926 $as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
8931 as_fn_error $?
"Missing libraries; unable to proceed." "$LINENO" 5
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We found the libraries for openssl, but we could not find the C header files. You may need to install a devel package." >&5
8934 $as_echo "$as_me: WARNING: We found the libraries for openssl, but we could not find the C header files. You may need to install a devel package." >&2;}
8937 if test xdevpkg
= xdevpkg
; then
8940 if test -f /etc
/debian_version
&& test x
"$tor_openssl_devpkg_debian" != x
; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_devpkg_debian\"" >&5
8942 $as_echo "$as_me: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_devpkg_debian\"" >&2;}
8943 if test x
"$tor_openssl_devpkg_debian" != x
"$tor_openssl_devpkg_debian"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&5
8945 $as_echo "$as_me: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&2;}
8948 if test -f /etc
/fedora-release
&& test x
"$tor_openssl_devpkg_redhat" != x
; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_devpkg_redhat\"" >&5
8950 $as_echo "$as_me: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_devpkg_redhat\"" >&2;}
8951 if test x
"$tor_openssl_devpkg_redhat" != x
"$tor_openssl_devpkg_redhat"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5
8953 $as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
8956 if test -f /etc
/redhat-release
&& test x
"$tor_openssl_devpkg_redhat" != x
; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On most Redhat-based systems, you can get$h openssl by installing the $tor_openssl_devpkg_redhat RPM package" >&5
8958 $as_echo "$as_me: WARNING: On most Redhat-based systems, you can get$h openssl by installing the $tor_openssl_devpkg_redhat RPM package" >&2;}
8959 if test x
"$tor_openssl_devpkg_redhat" != x
"$tor_openssl_devpkg_redhat"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5
8961 $as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
8966 as_fn_error $?
"Missing headers; unable to proceed." "$LINENO" 5
8970 LDFLAGS
="$tor_saved_LDFLAGS"
8971 LIBS
="$tor_saved_LIBS"
8972 CPPFLAGS
="$tor_saved_CPPFLAGS"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_dir" >&5
8976 $as_echo "$tor_cv_library_openssl_dir" >&6; }
8977 LIBS
="$LIBS -lssl -lcrypto $TOR_LIB_GDI"
8978 if test "$tor_cv_library_openssl_dir" != "(system)"; then
8980 if test -d "$tor_cv_library_openssl_dir/lib"; then
8981 LDFLAGS
="-L$tor_cv_library_openssl_dir/lib $LDFLAGS"
8983 LDFLAGS
="-L$tor_cv_library_openssl_dir $LDFLAGS"
8985 if test -d "$tor_cv_library_openssl_dir/include"; then
8986 CPPFLAGS
="-I$tor_cv_library_openssl_dir/include $CPPFLAGS"
8988 CPPFLAGS
="-I$tor_cv_library_openssl_dir $CPPFLAGS"
8994 if test x
$tor_cv_library_openssl_dir = "x(system)"; then
8995 TOR_LDFLAGS_openssl
=""
8996 TOR_CPPFLAGS_openssl
=""
8998 if test -d "$tor_cv_library_openssl_dir/lib"; then
8999 TOR_LDFLAGS_openssl
="-L$tor_cv_library_openssl_dir/lib"
9000 TOR_LIBDIR_openssl
="$tor_cv_library_openssl_dir/lib"
9002 TOR_LDFLAGS_openssl
="-L$tor_cv_library_openssl_dir"
9003 TOR_LIBDIR_openssl
="$tor_cv_library_openssl_dir"
9005 if test -d "$tor_cv_library_openssl_dir/include"; then
9006 TOR_CPPFLAGS_openssl
="-I$tor_cv_library_openssl_dir/include"
9008 TOR_CPPFLAGS_openssl
="-I$tor_cv_library_openssl_dir"
9015 if test "$cross_compiling" != yes; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link openssl" >&5
9017 $as_echo_n "checking whether we need extra options to link openssl... " >&6; }
9018 if ${tor_cv_library_openssl_linker_option+:} false
; then :
9019 $as_echo_n "(cached) " >&6
9022 orig_LDFLAGS
="$LDFLAGS"
9025 if test -d "$tor_cv_library_openssl_dir/lib"; then
9026 tor_trydir
="$tor_cv_library_openssl_dir/lib"
9028 tor_trydir
="$tor_cv_library_openssl_dir"
9030 for tor_tryextra
in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
9031 "-Wl,-rpath,$tor_trydir" ; do
9032 if test "$tor_tryextra" = "(none)"; then
9033 LDFLAGS
="$orig_LDFLAGS"
9035 LDFLAGS
="$tor_tryextra $orig_LDFLAGS"
9037 if test "$cross_compiling" = yes; then :
9038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9040 as_fn_error $?
"cannot run test program while cross compiling
9041 See \`config.log' for more details" "$LINENO" 5; }
9043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 void RAND_add(const void *buf, int num, double entropy);
9049 RAND_add((void*)0,0,0);
9054 if ac_fn_c_try_run
"$LINENO"; then :
9059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9063 if test "$runnable" = yes; then
9064 tor_cv_library_openssl_linker_option
=$tor_tryextra
9069 if test "$runnable" = no
; then
9070 as_fn_error $?
"Found linkable openssl in $tor_cv_library_openssl_dir, but it does not seem to run, even with -R. Maybe specify another using --with-openssl-dir}" "$LINENO" 5
9072 LDFLAGS
="$orig_LDFLAGS"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_linker_option" >&5
9076 $as_echo "$tor_cv_library_openssl_linker_option" >&6; }
9077 if test "$tor_cv_library_openssl_linker_option" != "(none)" ; then
9078 TOR_LDFLAGS_openssl
="$TOR_LDFLAGS_openssl $tor_cv_library_openssl_linker_option"
9082 LIBS
="$tor_saved_LIBS"
9083 LDFLAGS
="$tor_saved_LDFLAGS"
9084 CPPFLAGS
="$tor_saved_CPPFLAGS"
9089 if test "$enable_static_openssl" = "yes"; then
9090 if test "$tor_cv_library_openssl_dir" = "(system)"; then
9091 as_fn_error $?
"\"You must specify an explicit --with-openssl-dir=x option when using --enable-static-openssl\"" "$LINENO" 5
9093 TOR_OPENSSL_LIBS
="$TOR_LIBDIR_openssl/libssl.a $TOR_LIBDIR_openssl/libcrypto.a"
9096 TOR_OPENSSL_LIBS
="-lssl -lcrypto"
9101 save_LDFLAGS
="$LDFLAGS"
9102 save_CPPFLAGS
="$CPPFLAGS"
9103 LIBS
="$TOR_OPENSSL_LIBS $LIBS"
9104 LDFLAGS
="$TOR_LDFLAGS_openssl $LDFLAGS"
9105 CPPFLAGS
="$TOR_CPPFLAGS_openssl $CPPFLAGS"
9107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9110 #include <openssl/opensslv.h>
9111 #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1000100fL
9123 if ac_fn_c_try_compile
"$LINENO"; then :
9126 as_fn_error $?
"OpenSSL is too old. We require 1.0.1 or later. You can specify a path to a newer one with --with-openssl-dir." "$LINENO" 5
9128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9133 #include <openssl/opensslv.h>
9134 #include <openssl/evp.h>
9135 #if defined(OPENSSL_NO_EC) || defined(OPENSSL_NO_ECDH) || defined(OPENSSL_NO_ECDSA)
9138 #if !defined(NID_X9_62_prime256v1) || !defined(NID_secp224r1)
9139 #error "curves unavailable"
9150 if ac_fn_c_try_compile
"$LINENO"; then :
9153 as_fn_error $?
"OpenSSL is built without full ECC support, including curves P256 and P224. You can specify a path to one with ECC support with --with-openssl-dir." "$LINENO" 5
9155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9157 ac_fn_c_check_member
"$LINENO" "struct ssl_method_st" "get_cipher_by_char" "ac_cv_member_struct_ssl_method_st_get_cipher_by_char" "#include <openssl/ssl.h>
9160 if test "x$ac_cv_member_struct_ssl_method_st_get_cipher_by_char" = xyes
; then :
9162 cat >>confdefs.h
<<_ACEOF
9163 #define HAVE_STRUCT_SSL_METHOD_ST_GET_CIPHER_BY_CHAR 1
9171 SSL_SESSION_get_master_key \
9172 SSL_get_server_random \
9173 SSL_get_client_ciphers \
9174 SSL_get_client_random \
9179 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9180 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9181 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9182 cat >>confdefs.h
<<_ACEOF
9183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9190 for ac_func
in EVP_PBE_scrypt
9192 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9193 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9194 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9195 cat >>confdefs.h
<<_ACEOF
9196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9203 ac_fn_c_check_member
"$LINENO" "SSL" "state" "ac_cv_member_SSL_state" "#include <openssl/ssl.h>
9206 if test "x$ac_cv_member_SSL_state" = xyes
; then :
9208 cat >>confdefs.h
<<_ACEOF
9209 #define HAVE_SSL_STATE 1
9217 LDFLAGS
="$save_LDFLAGS"
9218 CPPFLAGS
="$save_CPPFLAGS"
9221 tor_zlib_pkg_redhat
="zlib"
9222 tor_zlib_pkg_debian
="zlib1g"
9223 tor_zlib_devpkg_redhat
="zlib-devel"
9224 tor_zlib_devpkg_debian
="zlib1g-dev"
9229 # Check whether --with-zlib-dir was given.
9230 if test "${with_zlib_dir+set}" = set; then :
9231 withval
=$with_zlib_dir;
9232 if test x
$withval != xno
; then
9233 tryzlibdir
="$withval"
9238 if test "x$tryzlibdir" = x
&& test "x$ALT_zlib_WITHVAL" != x
; then
9239 tryzlibdir
="$ALT_zlib_WITHVAL"
9242 tor_saved_LIBS
="$LIBS"
9243 tor_saved_LDFLAGS
="$LDFLAGS"
9244 tor_saved_CPPFLAGS
="$CPPFLAGS"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib directory" >&5
9246 $as_echo_n "checking for zlib directory... " >&6; }
9247 if ${tor_cv_library_zlib_dir+:} false
; then :
9248 $as_echo_n "(cached) " >&6
9251 tor_zlib_dir_found
=no
9252 tor_zlib_any_linkable
=no
9254 for tor_trydir
in "$tryzlibdir" "(system)" "$prefix" /usr
/local /usr
/pkg
/opt
/zlib
; do
9255 LDFLAGS
="$tor_saved_LDFLAGS"
9256 LIBS
="$tor_saved_LIBS -lz"
9257 CPPFLAGS
="$tor_saved_CPPFLAGS"
9259 if test -z "$tor_trydir" ; then
9263 # Skip the directory if it isn't there.
9264 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
9268 # If this isn't blank, try adding the directory (or appropriate
9269 # include/libs subdirectories) to the command line.
9270 if test "$tor_trydir" != "(system)"; then
9272 if test -d "$tor_trydir/lib"; then
9273 LDFLAGS
="-L$tor_trydir/lib $LDFLAGS"
9275 LDFLAGS
="-L$tor_trydir $LDFLAGS"
9277 if test -d "$tor_trydir/include"; then
9278 CPPFLAGS
="-I$tor_trydir/include $CPPFLAGS"
9280 CPPFLAGS
="-I$tor_trydir $CPPFLAGS"
9285 # Can we link against (but not necessarily run, or find the headers for)
9287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 const char * zlibVersion(void);
9298 if ac_fn_c_try_link
"$LINENO"; then :
9303 rm -f core conftest.err conftest.
$ac_objext \
9304 conftest
$ac_exeext conftest.
$ac_ext
9306 if test "$linkable" = yes; then
9307 tor_zlib_any_linkable
=yes
9308 # Okay, we can link against it. Can we find the headers?
9309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9320 if ac_fn_c_try_compile
"$LINENO"; then :
9325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9326 if test "$buildable" = yes; then
9327 tor_cv_library_zlib_dir
=$tor_trydir
9328 tor_zlib_dir_found
=yes
9334 if test "$tor_zlib_dir_found" = no
; then
9335 if test "$tor_zlib_any_linkable" = no
; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a linkable zlib. If you have it installed somewhere unusual, you can specify an explicit path using --with-zlib-dir" >&5
9337 $as_echo "$as_me: WARNING: Could not find a linkable zlib. If you have it installed somewhere unusual, you can specify an explicit path using --with-zlib-dir" >&2;}
9340 if test xpkg
= xdevpkg
; then
9343 if test -f /etc
/debian_version
&& test x
"$tor_zlib_pkg_debian" != x
; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_pkg_debian\"" >&5
9345 $as_echo "$as_me: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_pkg_debian\"" >&2;}
9346 if test x
"$tor_zlib_pkg_debian" != x
"$tor_zlib_devpkg_debian"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&5
9348 $as_echo "$as_me: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&2;}
9351 if test -f /etc
/fedora-release
&& test x
"$tor_zlib_pkg_redhat" != x
; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_pkg_redhat\"" >&5
9353 $as_echo "$as_me: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_pkg_redhat\"" >&2;}
9354 if test x
"$tor_zlib_pkg_redhat" != x
"$tor_zlib_devpkg_redhat"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5
9356 $as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
9359 if test -f /etc
/redhat-release
&& test x
"$tor_zlib_pkg_redhat" != x
; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On most Redhat-based systems, you can get$h zlib by installing the $tor_zlib_pkg_redhat RPM package" >&5
9361 $as_echo "$as_me: WARNING: On most Redhat-based systems, you can get$h zlib by installing the $tor_zlib_pkg_redhat RPM package" >&2;}
9362 if test x
"$tor_zlib_pkg_redhat" != x
"$tor_zlib_devpkg_redhat"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5
9364 $as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
9369 as_fn_error $?
"Missing libraries; unable to proceed." "$LINENO" 5
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We found the libraries for zlib, but we could not find the C header files. You may need to install a devel package." >&5
9372 $as_echo "$as_me: WARNING: We found the libraries for zlib, but we could not find the C header files. You may need to install a devel package." >&2;}
9375 if test xdevpkg
= xdevpkg
; then
9378 if test -f /etc
/debian_version
&& test x
"$tor_zlib_devpkg_debian" != x
; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_devpkg_debian\"" >&5
9380 $as_echo "$as_me: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_devpkg_debian\"" >&2;}
9381 if test x
"$tor_zlib_devpkg_debian" != x
"$tor_zlib_devpkg_debian"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&5
9383 $as_echo "$as_me: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&2;}
9386 if test -f /etc
/fedora-release
&& test x
"$tor_zlib_devpkg_redhat" != x
; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_devpkg_redhat\"" >&5
9388 $as_echo "$as_me: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_devpkg_redhat\"" >&2;}
9389 if test x
"$tor_zlib_devpkg_redhat" != x
"$tor_zlib_devpkg_redhat"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5
9391 $as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
9394 if test -f /etc
/redhat-release
&& test x
"$tor_zlib_devpkg_redhat" != x
; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On most Redhat-based systems, you can get$h zlib by installing the $tor_zlib_devpkg_redhat RPM package" >&5
9396 $as_echo "$as_me: WARNING: On most Redhat-based systems, you can get$h zlib by installing the $tor_zlib_devpkg_redhat RPM package" >&2;}
9397 if test x
"$tor_zlib_devpkg_redhat" != x
"$tor_zlib_devpkg_redhat"; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5
9399 $as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
9404 as_fn_error $?
"Missing headers; unable to proceed." "$LINENO" 5
9408 LDFLAGS
="$tor_saved_LDFLAGS"
9409 LIBS
="$tor_saved_LIBS"
9410 CPPFLAGS
="$tor_saved_CPPFLAGS"
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_dir" >&5
9414 $as_echo "$tor_cv_library_zlib_dir" >&6; }
9416 if test "$tor_cv_library_zlib_dir" != "(system)"; then
9418 if test -d "$tor_cv_library_zlib_dir/lib"; then
9419 LDFLAGS
="-L$tor_cv_library_zlib_dir/lib $LDFLAGS"
9421 LDFLAGS
="-L$tor_cv_library_zlib_dir $LDFLAGS"
9423 if test -d "$tor_cv_library_zlib_dir/include"; then
9424 CPPFLAGS
="-I$tor_cv_library_zlib_dir/include $CPPFLAGS"
9426 CPPFLAGS
="-I$tor_cv_library_zlib_dir $CPPFLAGS"
9432 if test x
$tor_cv_library_zlib_dir = "x(system)"; then
9434 TOR_CPPFLAGS_zlib
=""
9436 if test -d "$tor_cv_library_zlib_dir/lib"; then
9437 TOR_LDFLAGS_zlib
="-L$tor_cv_library_zlib_dir/lib"
9438 TOR_LIBDIR_zlib
="$tor_cv_library_zlib_dir/lib"
9440 TOR_LDFLAGS_zlib
="-L$tor_cv_library_zlib_dir"
9441 TOR_LIBDIR_zlib
="$tor_cv_library_zlib_dir"
9443 if test -d "$tor_cv_library_zlib_dir/include"; then
9444 TOR_CPPFLAGS_zlib
="-I$tor_cv_library_zlib_dir/include"
9446 TOR_CPPFLAGS_zlib
="-I$tor_cv_library_zlib_dir"
9453 if test "$cross_compiling" != yes; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link zlib" >&5
9455 $as_echo_n "checking whether we need extra options to link zlib... " >&6; }
9456 if ${tor_cv_library_zlib_linker_option+:} false
; then :
9457 $as_echo_n "(cached) " >&6
9460 orig_LDFLAGS
="$LDFLAGS"
9463 if test -d "$tor_cv_library_zlib_dir/lib"; then
9464 tor_trydir
="$tor_cv_library_zlib_dir/lib"
9466 tor_trydir
="$tor_cv_library_zlib_dir"
9468 for tor_tryextra
in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
9469 "-Wl,-rpath,$tor_trydir" ; do
9470 if test "$tor_tryextra" = "(none)"; then
9471 LDFLAGS
="$orig_LDFLAGS"
9473 LDFLAGS
="$tor_tryextra $orig_LDFLAGS"
9475 if test "$cross_compiling" = yes; then :
9476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9478 as_fn_error $?
"cannot run test program while cross compiling
9479 See \`config.log' for more details" "$LINENO" 5; }
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 const char * zlibVersion(void);
9492 if ac_fn_c_try_run
"$LINENO"; then :
9497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9501 if test "$runnable" = yes; then
9502 tor_cv_library_zlib_linker_option
=$tor_tryextra
9507 if test "$runnable" = no
; then
9508 as_fn_error $?
"Found linkable zlib in $tor_cv_library_zlib_dir, but it does not seem to run, even with -R. Maybe specify another using --with-zlib-dir}" "$LINENO" 5
9510 LDFLAGS
="$orig_LDFLAGS"
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_linker_option" >&5
9514 $as_echo "$tor_cv_library_zlib_linker_option" >&6; }
9515 if test "$tor_cv_library_zlib_linker_option" != "(none)" ; then
9516 TOR_LDFLAGS_zlib
="$TOR_LDFLAGS_zlib $tor_cv_library_zlib_linker_option"
9520 LIBS
="$tor_saved_LIBS"
9521 LDFLAGS
="$tor_saved_LDFLAGS"
9522 CPPFLAGS
="$tor_saved_CPPFLAGS"
9526 if test "$enable_static_zlib" = "yes"; then
9527 if test "$tor_cv_library_zlib_dir" = "(system)"; then
9528 as_fn_error $?
"\"You must specify an explicit --with-zlib-dir=x option when
9529 using --enable-static-zlib\"" "$LINENO" 5
9531 TOR_ZLIB_LIBS
="$TOR_LIBDIR_zlib/libz.a"
9539 tor_cap_pkg_debian
="libcap2"
9540 tor_cap_pkg_redhat
="libcap"
9541 tor_cap_devpkg_debian
="libcap-dev"
9542 tor_cap_devpkg_redhat
="libcap-devel"
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
9545 $as_echo_n "checking for cap_init in -lcap... " >&6; }
9546 if ${ac_cv_lib_cap_cap_init+:} false
; then :
9547 $as_echo_n "(cached) " >&6
9549 ac_check_lib_save_LIBS
=$LIBS
9551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9569 if ac_fn_c_try_link
"$LINENO"; then :
9570 ac_cv_lib_cap_cap_init
=yes
9572 ac_cv_lib_cap_cap_init
=no
9574 rm -f core conftest.err conftest.
$ac_objext \
9575 conftest
$ac_exeext conftest.
$ac_ext
9576 LIBS
=$ac_check_lib_save_LIBS
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
9579 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
9580 if test "x$ac_cv_lib_cap_cap_init" = xyes
; then :
9581 cat >>confdefs.h
<<_ACEOF
9582 #define HAVE_LIBCAP 1
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: Libcap was not found. Capabilities will not be usable." >&5
9589 $as_echo "$as_me: Libcap was not found. Capabilities will not be usable." >&6;}
9593 for ac_func
in cap_set_proc
9595 ac_fn_c_check_func
"$LINENO" "cap_set_proc" "ac_cv_func_cap_set_proc"
9596 if test "x$ac_cv_func_cap_set_proc" = xyes
; then :
9597 cat >>confdefs.h
<<_ACEOF
9598 #define HAVE_CAP_SET_PROC 1
9606 all_ldflags_for_check
="$TOR_LDFLAGS_zlib $TOR_LDFLAGS_openssl $TOR_LDFLAGS_libevent"
9607 all_libs_for_check
="$TOR_ZLIB_LIBS $TOR_LIB_MATH $TOR_LIBEVENT_LIBS $TOR_OPENSSL_LIBS $TOR_SYSTEMD_LIBS $TOR_LIB_WS32 $TOR_LIB_GDI $TOR_CAP_LIBS"
9614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9621 #if !defined(__clang__)
9628 if ac_fn_c_try_compile
"$LINENO"; then :
9633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9635 if test "x$enable_gcc_hardening" != "xno"; then
9636 CFLAGS
="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
9637 if test "x$have_clang" = "xyes"; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Qunused-arguments" >&5
9642 $as_echo_n "checking whether the compiler accepts -Qunused-arguments... " >&6; }
9643 if ${tor_cv_cflags__Qunused_arguments+:} false
; then :
9644 $as_echo_n "(cached) " >&6
9647 tor_saved_CFLAGS
="$CFLAGS"
9648 CFLAGS
="$CFLAGS -pedantic -Werror -Qunused-arguments"
9649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9660 if ac_fn_c_try_compile
"$LINENO"; then :
9661 tor_cv_cflags__Qunused_arguments
=yes
9663 tor_cv_cflags__Qunused_arguments
=no
9665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9666 if test x
!= x
; then
9668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9679 if ac_fn_c_try_link
"$LINENO"; then :
9680 tor_can_link__Qunused_arguments
=yes
9682 tor_can_link__Qunused_arguments
=no
9684 rm -f core conftest.err conftest.
$ac_objext \
9685 conftest
$ac_exeext conftest.
$ac_ext
9688 CFLAGS
="$tor_saved_CFLAGS"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Qunused_arguments" >&5
9692 $as_echo "$tor_cv_cflags__Qunused_arguments" >&6; }
9693 if test x
$tor_cv_cflags__Qunused_arguments = xyes
; then
9694 CFLAGS
="$CFLAGS -Qunused-arguments"
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fstack-protector-all" >&5
9706 $as_echo_n "checking whether the compiler accepts -fstack-protector-all... " >&6; }
9707 if ${tor_cv_cflags__fstack_protector_all+:} false
; then :
9708 $as_echo_n "(cached) " >&6
9711 tor_saved_CFLAGS
="$CFLAGS"
9712 CFLAGS
="$CFLAGS -pedantic -Werror -fstack-protector-all"
9713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9724 if ac_fn_c_try_compile
"$LINENO"; then :
9725 tor_cv_cflags__fstack_protector_all
=yes
9727 tor_cv_cflags__fstack_protector_all
=no
9729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9730 if test xalso_link
!= x
; then
9732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9743 if ac_fn_c_try_link
"$LINENO"; then :
9744 tor_can_link__fstack_protector_all
=yes
9746 tor_can_link__fstack_protector_all
=no
9748 rm -f core conftest.err conftest.
$ac_objext \
9749 conftest
$ac_exeext conftest.
$ac_ext
9752 CFLAGS
="$tor_saved_CFLAGS"
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fstack_protector_all" >&5
9756 $as_echo "$tor_cv_cflags__fstack_protector_all" >&6; }
9757 if test x
$tor_cv_cflags__fstack_protector_all = xyes
; then
9758 CFLAGS
="$CFLAGS -fstack-protector-all"
9768 if test "x$tor_cv_cflags__fstack_protector_all" = xyes
; then :
9769 if test "x$tor_can_link__fstack_protector_all" = xyes
; then :
9772 as_fn_error $?
"We tried to build with stack protection; it looks like your compiler supports it but your libc does not provide it. Are you missing libssp? (You can --disable-gcc-hardening to ignore this error.)" "$LINENO" 5
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstack-protector" >&5
9782 $as_echo_n "checking whether the compiler accepts -Wstack-protector... " >&6; }
9783 if ${tor_cv_cflags__Wstack_protector+:} false
; then :
9784 $as_echo_n "(cached) " >&6
9787 tor_saved_CFLAGS
="$CFLAGS"
9788 CFLAGS
="$CFLAGS -pedantic -Werror -Wstack-protector"
9789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9800 if ac_fn_c_try_compile
"$LINENO"; then :
9801 tor_cv_cflags__Wstack_protector
=yes
9803 tor_cv_cflags__Wstack_protector
=no
9805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9806 if test x
!= x
; then
9808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9819 if ac_fn_c_try_link
"$LINENO"; then :
9820 tor_can_link__Wstack_protector
=yes
9822 tor_can_link__Wstack_protector
=no
9824 rm -f core conftest.err conftest.
$ac_objext \
9825 conftest
$ac_exeext conftest.
$ac_ext
9828 CFLAGS
="$tor_saved_CFLAGS"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstack_protector" >&5
9832 $as_echo "$tor_cv_cflags__Wstack_protector" >&6; }
9833 if test x
$tor_cv_cflags__Wstack_protector = xyes
; then
9834 CFLAGS
="$CFLAGS -Wstack-protector"
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts --param ssp-buffer-size=1" >&5
9845 $as_echo_n "checking whether the compiler accepts --param ssp-buffer-size=1... " >&6; }
9846 if ${tor_cv_cflags___param_ssp_buffer_size_1+:} false
; then :
9847 $as_echo_n "(cached) " >&6
9850 tor_saved_CFLAGS
="$CFLAGS"
9851 CFLAGS
="$CFLAGS -pedantic -Werror --param ssp-buffer-size=1"
9852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9863 if ac_fn_c_try_compile
"$LINENO"; then :
9864 tor_cv_cflags___param_ssp_buffer_size_1
=yes
9866 tor_cv_cflags___param_ssp_buffer_size_1
=no
9868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9869 if test x
!= x
; then
9871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9882 if ac_fn_c_try_link
"$LINENO"; then :
9883 tor_can_link___param_ssp_buffer_size_1
=yes
9885 tor_can_link___param_ssp_buffer_size_1
=no
9887 rm -f core conftest.err conftest.
$ac_objext \
9888 conftest
$ac_exeext conftest.
$ac_ext
9891 CFLAGS
="$tor_saved_CFLAGS"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags___param_ssp_buffer_size_1" >&5
9895 $as_echo "$tor_cv_cflags___param_ssp_buffer_size_1" >&6; }
9896 if test x
$tor_cv_cflags___param_ssp_buffer_size_1 = xyes
; then
9897 CFLAGS
="$CFLAGS --param ssp-buffer-size=1"
9904 if test "$bwin32" = "false"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIE" >&5
9909 $as_echo_n "checking whether the compiler accepts -fPIE... " >&6; }
9910 if ${tor_cv_cflags__fPIE+:} false
; then :
9911 $as_echo_n "(cached) " >&6
9914 tor_saved_CFLAGS
="$CFLAGS"
9915 CFLAGS
="$CFLAGS -pedantic -Werror -fPIE"
9916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9927 if ac_fn_c_try_compile
"$LINENO"; then :
9928 tor_cv_cflags__fPIE
=yes
9930 tor_cv_cflags__fPIE
=no
9932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9933 if test x
!= x
; then
9935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9946 if ac_fn_c_try_link
"$LINENO"; then :
9947 tor_can_link__fPIE
=yes
9949 tor_can_link__fPIE
=no
9951 rm -f core conftest.err conftest.
$ac_objext \
9952 conftest
$ac_exeext conftest.
$ac_ext
9955 CFLAGS
="$tor_saved_CFLAGS"
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fPIE" >&5
9959 $as_echo "$tor_cv_cflags__fPIE" >&6; }
9960 if test x
$tor_cv_cflags__fPIE = xyes
; then
9961 CFLAGS
="$CFLAGS -fPIE"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
9971 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
9972 if ${tor_cv_ldflags__pie+:} false
; then :
9973 $as_echo_n "(cached) " >&6
9976 tor_saved_CFLAGS
="$CFLAGS"
9977 tor_saved_LDFLAGS
="$LDFLAGS"
9978 tor_saved_LIBS
="$LIBS"
9979 CFLAGS
="$CFLAGS -pedantic -Werror"
9980 LDFLAGS
="$LDFLAGS "$all_ldflags_for_check" -pie"
9981 LIBS
="$LIBS "$all_libs_for_check""
9982 if test "$cross_compiling" = yes; then :
9983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9994 if ac_fn_c_try_link
"$LINENO"; then :
9995 tor_cv_ldflags__pie
=yes
9997 tor_cv_ldflags__pie
=no
9999 rm -f core conftest.err conftest.
$ac_objext \
10000 conftest
$ac_exeext conftest.
$ac_ext
10002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10013 if ac_fn_c_try_run
"$LINENO"; then :
10014 tor_cv_ldflags__pie
=yes
10016 tor_cv_ldflags__pie
=no
10018 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10019 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10022 CFLAGS
="$tor_saved_CFLAGS"
10023 LDFLAGS
="$tor_saved_LDFLAGS"
10024 LIBS
="$tor_saved_LIBS"
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__pie" >&5
10028 $as_echo "$tor_cv_ldflags__pie" >&6; }
10029 if test x
$tor_cv_ldflags__pie = xyes
; then
10030 LDFLAGS
="$LDFLAGS -pie"
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fwrapv" >&5
10038 $as_echo_n "checking whether the compiler accepts -fwrapv... " >&6; }
10039 if ${tor_cv_cflags__fwrapv+:} false
; then :
10040 $as_echo_n "(cached) " >&6
10043 tor_saved_CFLAGS
="$CFLAGS"
10044 CFLAGS
="$CFLAGS -pedantic -Werror -fwrapv"
10045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10056 if ac_fn_c_try_compile
"$LINENO"; then :
10057 tor_cv_cflags__fwrapv
=yes
10059 tor_cv_cflags__fwrapv
=no
10061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10062 if test xalso_link
!= x
; then
10064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10075 if ac_fn_c_try_link
"$LINENO"; then :
10076 tor_can_link__fwrapv
=yes
10078 tor_can_link__fwrapv
=no
10080 rm -f core conftest.err conftest.
$ac_objext \
10081 conftest
$ac_exeext conftest.
$ac_ext
10084 CFLAGS
="$tor_saved_CFLAGS"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fwrapv" >&5
10088 $as_echo "$tor_cv_cflags__fwrapv" >&6; }
10089 if test x
$tor_cv_cflags__fwrapv = xyes
; then
10090 CFLAGS_FWRAPV
="-fwrapv"
10098 if test "x$enable_expensive_hardening" = "xyes"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -ftrapv" >&5
10102 $as_echo_n "checking whether the compiler accepts -ftrapv... " >&6; }
10103 if ${tor_cv_cflags__ftrapv+:} false
; then :
10104 $as_echo_n "(cached) " >&6
10107 tor_saved_CFLAGS
="$CFLAGS"
10108 CFLAGS
="$CFLAGS -pedantic -Werror -ftrapv"
10109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10120 if ac_fn_c_try_compile
"$LINENO"; then :
10121 tor_cv_cflags__ftrapv
=yes
10123 tor_cv_cflags__ftrapv
=no
10125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10126 if test xalso_link
!= x
; then
10128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10139 if ac_fn_c_try_link
"$LINENO"; then :
10140 tor_can_link__ftrapv
=yes
10142 tor_can_link__ftrapv
=no
10144 rm -f core conftest.err conftest.
$ac_objext \
10145 conftest
$ac_exeext conftest.
$ac_ext
10148 CFLAGS
="$tor_saved_CFLAGS"
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__ftrapv" >&5
10152 $as_echo "$tor_cv_cflags__ftrapv" >&6; }
10153 if test x
$tor_cv_cflags__ftrapv = xyes
; then
10154 CFLAGS_FTRAPV
="-ftrapv"
10160 if test "$tor_cv_cflags__ftrapv" = "yes" && test "$tor_can_link__ftrapv" != "yes"; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The compiler supports -ftrapv, but for some reason I was not able to link with -ftrapv. Are you missing run-time support? Run-time hardening will not work as well as it should." >&5
10162 $as_echo "$as_me: WARNING: The compiler supports -ftrapv, but for some reason I was not able to link with -ftrapv. Are you missing run-time support? Run-time hardening will not work as well as it should." >&2;}
10165 if test "$tor_cv_cflags__ftrapv" != "yes"; then
10166 as_fn_error $?
"You requested expensive hardening, but the compiler does not seem to support -ftrapv." "$LINENO" 5
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=address" >&5
10172 $as_echo_n "checking whether the compiler accepts -fsanitize=address... " >&6; }
10173 if ${tor_cv_cflags__fsanitize_address+:} false
; then :
10174 $as_echo_n "(cached) " >&6
10177 tor_saved_CFLAGS
="$CFLAGS"
10178 CFLAGS
="$CFLAGS -pedantic -Werror -fsanitize=address"
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10190 if ac_fn_c_try_compile
"$LINENO"; then :
10191 tor_cv_cflags__fsanitize_address
=yes
10193 tor_cv_cflags__fsanitize_address
=no
10195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10196 if test xalso_link
!= x
; then
10198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10209 if ac_fn_c_try_link
"$LINENO"; then :
10210 tor_can_link__fsanitize_address
=yes
10212 tor_can_link__fsanitize_address
=no
10214 rm -f core conftest.err conftest.
$ac_objext \
10215 conftest
$ac_exeext conftest.
$ac_ext
10218 CFLAGS
="$tor_saved_CFLAGS"
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_address" >&5
10222 $as_echo "$tor_cv_cflags__fsanitize_address" >&6; }
10223 if test x
$tor_cv_cflags__fsanitize_address = xyes
; then
10224 CFLAGS_ASAN
="-fsanitize=address"
10230 if test "$tor_cv_cflags__fsanitize_address" = "yes" && test "$tor_can_link__fsanitize_address" != "yes"; then
10231 as_fn_error $?
"The compiler supports -fsanitize=address, but for some reason I was not able to link when using it. Are you missing run-time support? With GCC you need libubsan.so, and with Clang you need libclang_rt.ubsan*" "$LINENO" 5
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=undefined" >&5
10237 $as_echo_n "checking whether the compiler accepts -fsanitize=undefined... " >&6; }
10238 if ${tor_cv_cflags__fsanitize_undefined+:} false
; then :
10239 $as_echo_n "(cached) " >&6
10242 tor_saved_CFLAGS
="$CFLAGS"
10243 CFLAGS
="$CFLAGS -pedantic -Werror -fsanitize=undefined"
10244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10255 if ac_fn_c_try_compile
"$LINENO"; then :
10256 tor_cv_cflags__fsanitize_undefined
=yes
10258 tor_cv_cflags__fsanitize_undefined
=no
10260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10261 if test xalso_link
!= x
; then
10263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10274 if ac_fn_c_try_link
"$LINENO"; then :
10275 tor_can_link__fsanitize_undefined
=yes
10277 tor_can_link__fsanitize_undefined
=no
10279 rm -f core conftest.err conftest.
$ac_objext \
10280 conftest
$ac_exeext conftest.
$ac_ext
10283 CFLAGS
="$tor_saved_CFLAGS"
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_undefined" >&5
10287 $as_echo "$tor_cv_cflags__fsanitize_undefined" >&6; }
10288 if test x
$tor_cv_cflags__fsanitize_undefined = xyes
; then
10289 CFLAGS_UBSAN
="-fsanitize=undefined"
10295 if test "$tor_cv_cflags__fsanitize_address" = "yes" && test "$tor_can_link__fsanitize_address" != "yes"; then
10296 as_fn_error $?
"The compiler supports -fsanitize=undefined, but for some reason I was not able to link when using it. Are you missing run-time support? With GCC you need libasan.so, and with Clang you need libclang_rt.ubsan*" "$LINENO" 5
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-omit-frame-pointer" >&5
10303 $as_echo_n "checking whether the compiler accepts -fno-omit-frame-pointer... " >&6; }
10304 if ${tor_cv_cflags__fno_omit_frame_pointer+:} false
; then :
10305 $as_echo_n "(cached) " >&6
10308 tor_saved_CFLAGS
="$CFLAGS"
10309 CFLAGS
="$CFLAGS -pedantic -Werror -fno-omit-frame-pointer"
10310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10321 if ac_fn_c_try_compile
"$LINENO"; then :
10322 tor_cv_cflags__fno_omit_frame_pointer
=yes
10324 tor_cv_cflags__fno_omit_frame_pointer
=no
10326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10327 if test x
!= x
; then
10329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10340 if ac_fn_c_try_link
"$LINENO"; then :
10341 tor_can_link__fno_omit_frame_pointer
=yes
10343 tor_can_link__fno_omit_frame_pointer
=no
10345 rm -f core conftest.err conftest.
$ac_objext \
10346 conftest
$ac_exeext conftest.
$ac_ext
10349 CFLAGS
="$tor_saved_CFLAGS"
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_omit_frame_pointer" >&5
10353 $as_echo "$tor_cv_cflags__fno_omit_frame_pointer" >&6; }
10354 if test x
$tor_cv_cflags__fno_omit_frame_pointer = xyes
; then
10355 CFLAGS
="$CFLAGS -fno-omit-frame-pointer"
10364 CFLAGS_BUGTRAP
="$CFLAGS_FTRAPV $CFLAGS_ASAN $CFLAGS_UBSAN"
10365 CFLAGS_CONSTTIME
="$CFLAGS_FWRAPV"
10367 mulodi_fixes_ftrapv
=no
10368 if test "$have_clang" = "yes"; then
10369 saved_CFLAGS
="$CFLAGS"
10370 CFLAGS
="$CFLAGS $CFLAGS_FTRAPV"
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang -ftrapv can link a 64-bit int multiply" >&5
10372 $as_echo_n "checking whether clang -ftrapv can link a 64-bit int multiply... " >&6; }
10373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10377 #include <stdint.h>
10378 #include <stdlib.h>
10379 int main(int argc, char **argv)
10381 int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2])
10382 * (int64_t)atoi(argv[3]);
10386 if ac_fn_c_try_link
"$LINENO"; then :
10387 ftrapv_can_link
=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10388 $as_echo "yes" >&6; }
10390 ftrapv_can_link
=no
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10393 rm -f core conftest.err conftest.
$ac_objext \
10394 conftest
$ac_exeext conftest.
$ac_ext
10395 if test "$ftrapv_can_link" = "no"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defining __mulodi4 fixes that" >&5
10397 $as_echo_n "checking whether defining __mulodi4 fixes that... " >&6; }
10398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10402 #include <stdint.h>
10403 #include <stdlib.h>
10404 int64_t __mulodi4(int64_t a, int64_t b, int *overflow) {
10408 int main(int argc, char **argv)
10410 int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2])
10411 * (int64_t)atoi(argv[3]);
10415 if ac_fn_c_try_link
"$LINENO"; then :
10416 mulodi_fixes_ftrapv
=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10417 $as_echo "yes" >&6; }
10419 mulodi_fixes_ftrapv
=no
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10422 rm -f core conftest.err conftest.
$ac_objext \
10423 conftest
$ac_exeext conftest.
$ac_ext
10425 CFLAGS
="$saved_CFLAGS"
10428 if test "$mulodi_fixes_ftrapv" = "yes"; then
10430 ADD_MULODI4_FALSE
='#'
10432 ADD_MULODI4_TRUE
='#'
10440 if test "x$enable_linker_hardening" != "xno"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
10444 $as_echo_n "checking whether the linker accepts -z relro -z now... " >&6; }
10445 if ${tor_cv_ldflags__z_relro__z_now+:} false
; then :
10446 $as_echo_n "(cached) " >&6
10449 tor_saved_CFLAGS
="$CFLAGS"
10450 tor_saved_LDFLAGS
="$LDFLAGS"
10451 tor_saved_LIBS
="$LIBS"
10452 CFLAGS
="$CFLAGS -pedantic -Werror"
10453 LDFLAGS
="$LDFLAGS "$all_ldflags_for_check" -z relro -z now"
10454 LIBS
="$LIBS "$all_libs_for_check""
10455 if test "$cross_compiling" = yes; then :
10456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10467 if ac_fn_c_try_link
"$LINENO"; then :
10468 tor_cv_ldflags__z_relro__z_now
=yes
10470 tor_cv_ldflags__z_relro__z_now
=no
10472 rm -f core conftest.err conftest.
$ac_objext \
10473 conftest
$ac_exeext conftest.
$ac_ext
10475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10486 if ac_fn_c_try_run
"$LINENO"; then :
10487 tor_cv_ldflags__z_relro__z_now
=yes
10489 tor_cv_ldflags__z_relro__z_now
=no
10491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10495 CFLAGS
="$tor_saved_CFLAGS"
10496 LDFLAGS
="$tor_saved_LDFLAGS"
10497 LIBS
="$tor_saved_LIBS"
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__z_relro__z_now" >&5
10501 $as_echo "$tor_cv_ldflags__z_relro__z_now" >&6; }
10502 if test x
$tor_cv_ldflags__z_relro__z_now = xyes
; then
10503 LDFLAGS
="$LDFLAGS -z relro -z now"
10509 # For backtrace support
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -rdynamic" >&5
10513 $as_echo_n "checking whether the linker accepts -rdynamic... " >&6; }
10514 if ${tor_cv_ldflags__rdynamic+:} false
; then :
10515 $as_echo_n "(cached) " >&6
10518 tor_saved_CFLAGS
="$CFLAGS"
10519 tor_saved_LDFLAGS
="$LDFLAGS"
10520 tor_saved_LIBS
="$LIBS"
10521 CFLAGS
="$CFLAGS -pedantic -Werror"
10522 LDFLAGS
="$LDFLAGS -rdynamic"
10524 if test "$cross_compiling" = yes; then :
10525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10536 if ac_fn_c_try_link
"$LINENO"; then :
10537 tor_cv_ldflags__rdynamic
=yes
10539 tor_cv_ldflags__rdynamic
=no
10541 rm -f core conftest.err conftest.
$ac_objext \
10542 conftest
$ac_exeext conftest.
$ac_ext
10544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10555 if ac_fn_c_try_run
"$LINENO"; then :
10556 tor_cv_ldflags__rdynamic
=yes
10558 tor_cv_ldflags__rdynamic
=no
10560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10564 CFLAGS
="$tor_saved_CFLAGS"
10565 LDFLAGS
="$tor_saved_LDFLAGS"
10566 LIBS
="$tor_saved_LIBS"
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__rdynamic" >&5
10570 $as_echo "$tor_cv_ldflags__rdynamic" >&6; }
10571 if test x
$tor_cv_ldflags__rdynamic = xyes
; then
10572 LDFLAGS
="$LDFLAGS -rdynamic"
10578 saved_CFLAGS
="$CFLAGS"
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fomit-frame-pointer" >&5
10583 $as_echo_n "checking whether the compiler accepts -fomit-frame-pointer... " >&6; }
10584 if ${tor_cv_cflags__fomit_frame_pointer+:} false
; then :
10585 $as_echo_n "(cached) " >&6
10588 tor_saved_CFLAGS
="$CFLAGS"
10589 CFLAGS
="$CFLAGS -pedantic -Werror -fomit-frame-pointer"
10590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10601 if ac_fn_c_try_compile
"$LINENO"; then :
10602 tor_cv_cflags__fomit_frame_pointer
=yes
10604 tor_cv_cflags__fomit_frame_pointer
=no
10606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10607 if test x
!= x
; then
10609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10620 if ac_fn_c_try_link
"$LINENO"; then :
10621 tor_can_link__fomit_frame_pointer
=yes
10623 tor_can_link__fomit_frame_pointer
=no
10625 rm -f core conftest.err conftest.
$ac_objext \
10626 conftest
$ac_exeext conftest.
$ac_ext
10629 CFLAGS
="$tor_saved_CFLAGS"
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fomit_frame_pointer" >&5
10633 $as_echo "$tor_cv_cflags__fomit_frame_pointer" >&6; }
10634 if test x
$tor_cv_cflags__fomit_frame_pointer = xyes
; then
10635 CFLAGS
="$CFLAGS -fomit-frame-pointer"
10642 F_OMIT_FRAME_POINTER
=''
10643 if test "$saved_CFLAGS" != "$CFLAGS"; then
10644 if test "x$enable_expensive_hardening" != "xyes"; then
10645 F_OMIT_FRAME_POINTER
='-fomit-frame-pointer'
10648 CFLAGS
="$saved_CFLAGS"
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fasynchronous-unwind-tables" >&5
10655 $as_echo_n "checking whether the compiler accepts -fasynchronous-unwind-tables... " >&6; }
10656 if ${tor_cv_cflags__fasynchronous_unwind_tables+:} false
; then :
10657 $as_echo_n "(cached) " >&6
10660 tor_saved_CFLAGS
="$CFLAGS"
10661 CFLAGS
="$CFLAGS -pedantic -Werror -fasynchronous-unwind-tables"
10662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10673 if ac_fn_c_try_compile
"$LINENO"; then :
10674 tor_cv_cflags__fasynchronous_unwind_tables
=yes
10676 tor_cv_cflags__fasynchronous_unwind_tables
=no
10678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10679 if test x
!= x
; then
10681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10692 if ac_fn_c_try_link
"$LINENO"; then :
10693 tor_can_link__fasynchronous_unwind_tables
=yes
10695 tor_can_link__fasynchronous_unwind_tables
=no
10697 rm -f core conftest.err conftest.
$ac_objext \
10698 conftest
$ac_exeext conftest.
$ac_ext
10701 CFLAGS
="$tor_saved_CFLAGS"
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fasynchronous_unwind_tables" >&5
10705 $as_echo "$tor_cv_cflags__fasynchronous_unwind_tables" >&6; }
10706 if test x
$tor_cv_cflags__fasynchronous_unwind_tables = xyes
; then
10707 CFLAGS
="$CFLAGS -fasynchronous-unwind-tables"
10716 if test "x$enable_seccomp" != "xno"; then
10717 for ac_header
in seccomp.h
10719 ac_fn_c_check_header_mongrel
"$LINENO" "seccomp.h" "ac_cv_header_seccomp_h" "$ac_includes_default"
10720 if test "x$ac_cv_header_seccomp_h" = xyes
; then :
10721 cat >>confdefs.h
<<_ACEOF
10722 #define HAVE_SECCOMP_H 1
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
10730 $as_echo_n "checking for library containing seccomp_init... " >&6; }
10731 if ${ac_cv_search_seccomp_init+:} false
; then :
10732 $as_echo_n "(cached) " >&6
10734 ac_func_search_save_LIBS
=$LIBS
10735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10744 char seccomp_init ();
10748 return seccomp_init ();
10753 for ac_lib
in '' seccomp
; do
10754 if test -z "$ac_lib"; then
10755 ac_res
="none required"
10758 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10760 if ac_fn_c_try_link
"$LINENO"; then :
10761 ac_cv_search_seccomp_init
=$ac_res
10763 rm -f core conftest.err conftest.
$ac_objext \
10765 if ${ac_cv_search_seccomp_init+:} false
; then :
10769 if ${ac_cv_search_seccomp_init+:} false
; then :
10772 ac_cv_search_seccomp_init
=no
10774 rm conftest.
$ac_ext
10775 LIBS
=$ac_func_search_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
10778 $as_echo "$ac_cv_search_seccomp_init" >&6; }
10779 ac_res
=$ac_cv_search_seccomp_init
10780 if test "$ac_res" != no
; then :
10781 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10788 if test "x$enable_libscrypt" != "xno"; then
10789 for ac_header
in libscrypt.h
10791 ac_fn_c_check_header_mongrel
"$LINENO" "libscrypt.h" "ac_cv_header_libscrypt_h" "$ac_includes_default"
10792 if test "x$ac_cv_header_libscrypt_h" = xyes
; then :
10793 cat >>confdefs.h
<<_ACEOF
10794 #define HAVE_LIBSCRYPT_H 1
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libscrypt_scrypt" >&5
10802 $as_echo_n "checking for library containing libscrypt_scrypt... " >&6; }
10803 if ${ac_cv_search_libscrypt_scrypt+:} false
; then :
10804 $as_echo_n "(cached) " >&6
10806 ac_func_search_save_LIBS
=$LIBS
10807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10816 char libscrypt_scrypt ();
10820 return libscrypt_scrypt ();
10825 for ac_lib
in '' scrypt
; do
10826 if test -z "$ac_lib"; then
10827 ac_res
="none required"
10830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10832 if ac_fn_c_try_link
"$LINENO"; then :
10833 ac_cv_search_libscrypt_scrypt
=$ac_res
10835 rm -f core conftest.err conftest.
$ac_objext \
10837 if ${ac_cv_search_libscrypt_scrypt+:} false
; then :
10841 if ${ac_cv_search_libscrypt_scrypt+:} false
; then :
10844 ac_cv_search_libscrypt_scrypt
=no
10846 rm conftest.
$ac_ext
10847 LIBS
=$ac_func_search_save_LIBS
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libscrypt_scrypt" >&5
10850 $as_echo "$ac_cv_search_libscrypt_scrypt" >&6; }
10851 ac_res
=$ac_cv_search_libscrypt_scrypt
10852 if test "$ac_res" != no
; then :
10853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10857 for ac_func
in libscrypt_scrypt
10859 ac_fn_c_check_func
"$LINENO" "libscrypt_scrypt" "ac_cv_func_libscrypt_scrypt"
10860 if test "x$ac_cv_func_libscrypt_scrypt" = xyes
; then :
10861 cat >>confdefs.h
<<_ACEOF
10862 #define HAVE_LIBSCRYPT_SCRYPT 1
10871 build_curve25519_donna
=no
10872 build_curve25519_donna_c64
=no
10873 use_curve25519_donna
=no
10874 use_curve25519_nacl
=no
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use curve25519-donna-c64" >&5
10878 $as_echo_n "checking whether we can use curve25519-donna-c64... " >&6; }
10879 if ${tor_cv_can_use_curve25519_donna_c64+:} false
; then :
10880 $as_echo_n "(cached) " >&6
10882 if test "$cross_compiling" = yes; then :
10883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10885 #include <stdint.h>
10886 typedef unsigned uint128_t __attribute__((mode(TI)));
10887 int func(uint64_t a, uint64_t b) {
10888 uint128_t c = ((uint128_t)a) * b;
10889 int ok = ((uint64_t)(c>>96)) == 522859 &&
10890 (((uint64_t)(c>>64))&0xffffffffL) == 3604448702L &&
10891 (((uint64_t)(c>>32))&0xffffffffL) == 2351960064L &&
10892 (((uint64_t)(c))&0xffffffffL) == 0;
10899 int ok = func( ((uint64_t)2000000000) * 1000000000,
10900 ((uint64_t)1234567890) << 24);
10907 if ac_fn_c_try_link
"$LINENO"; then :
10908 tor_cv_can_use_curve25519_donna_c64
=cross
10910 tor_cv_can_use_curve25519_donna_c64
=no
10912 rm -f core conftest.err conftest.
$ac_objext \
10913 conftest
$ac_exeext conftest.
$ac_ext
10915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917 #include <stdint.h>
10918 typedef unsigned uint128_t __attribute__((mode(TI)));
10919 int func(uint64_t a, uint64_t b) {
10920 uint128_t c = ((uint128_t)a) * b;
10921 int ok = ((uint64_t)(c>>96)) == 522859 &&
10922 (((uint64_t)(c>>64))&0xffffffffL) == 3604448702L &&
10923 (((uint64_t)(c>>32))&0xffffffffL) == 2351960064L &&
10924 (((uint64_t)(c))&0xffffffffL) == 0;
10931 int ok = func( ((uint64_t)2000000000) * 1000000000,
10932 ((uint64_t)1234567890) << 24);
10939 if ac_fn_c_try_run
"$LINENO"; then :
10940 tor_cv_can_use_curve25519_donna_c64
=yes
10942 tor_cv_can_use_curve25519_donna_c64
=no
10944 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10945 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_donna_c64" >&5
10950 $as_echo "$tor_cv_can_use_curve25519_donna_c64" >&6; }
10952 for ac_header
in crypto_scalarmult_curve25519.h \
10953 nacl
/crypto_scalarmult_curve25519.h
10955 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10956 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10957 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10958 cat >>confdefs.h
<<_ACEOF
10959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nacl compiled with a fast curve25519 implementation" >&5
10968 $as_echo_n "checking for nacl compiled with a fast curve25519 implementation... " >&6; }
10969 if ${tor_cv_can_use_curve25519_nacl+:} false
; then :
10970 $as_echo_n "(cached) " >&6
10972 tor_saved_LIBS
="$LIBS"
10973 LIBS
="$LIBS -lnacl"
10974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10976 #ifdef HAVE_CRYPTO_SCALARMULT_CURVE25519_H
10977 #include <crypto_scalarmult_curve25519.h>
10978 #elif defined(HAVE_NACL_CRYPTO_SCALARMULT_CURVE25519_H)
10979 #include <nacl/crypto_scalarmult_curve25519.h>
10981 #ifdef crypto_scalarmult_curve25519_ref_BYTES
10982 #error Hey, this is the reference implementation! That's not fast.
10989 unsigned char *a, *b, *c; crypto_scalarmult_curve25519(a,b,c);
10995 if ac_fn_c_try_link
"$LINENO"; then :
10996 tor_cv_can_use_curve25519_nacl
=yes
10998 tor_cv_can_use_curve25519_nacl
=no
11000 rm -f core conftest.err conftest.
$ac_objext \
11001 conftest
$ac_exeext conftest.
$ac_ext
11002 LIBS
="$tor_saved_LIBS"
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_nacl" >&5
11005 $as_echo "$tor_cv_can_use_curve25519_nacl" >&6; }
11008 if test "x$tor_cv_can_use_curve25519_donna_c64" != "xno"; then
11009 build_curve25519_donna_c64
=yes
11010 use_curve25519_donna
=yes
11011 elif test "x$tor_cv_can_use_curve25519_nacl" = "xyes"; then
11012 use_curve25519_nacl
=yes
11013 CURVE25519_LIBS
=-lnacl
11015 build_curve25519_donna
=yes
11016 use_curve25519_donna
=yes
11019 if test "x$use_curve25519_donna" = "xyes"; then
11021 $as_echo "#define USE_CURVE25519_DONNA 1" >>confdefs.h
11024 if test "x$use_curve25519_nacl" = "xyes"; then
11026 $as_echo "#define USE_CURVE25519_NACL 1" >>confdefs.h
11029 if test "x$build_curve25519_donna" = "xyes"; then
11030 BUILD_CURVE25519_DONNA_TRUE
=
11031 BUILD_CURVE25519_DONNA_FALSE
='#'
11033 BUILD_CURVE25519_DONNA_TRUE
='#'
11034 BUILD_CURVE25519_DONNA_FALSE
=
11037 if test "x$build_curve25519_donna_c64" = "xyes"; then
11038 BUILD_CURVE25519_DONNA_C64_TRUE
=
11039 BUILD_CURVE25519_DONNA_C64_FALSE
='#'
11041 BUILD_CURVE25519_DONNA_C64_TRUE
='#'
11042 BUILD_CURVE25519_DONNA_C64_FALSE
=
11047 # Check whether --enable-largefile was given.
11048 if test "${enable_largefile+set}" = set; then :
11049 enableval
=$enable_largefile;
11052 if test "$enable_largefile" != no
; then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11055 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11056 if ${ac_cv_sys_largefile_CC+:} false
; then :
11057 $as_echo_n "(cached) " >&6
11059 ac_cv_sys_largefile_CC
=no
11060 if test "$GCC" != yes; then
11063 # IRIX 6.2 and later do not support large files by default,
11064 # so use the C compiler's -n32 option if that helps.
11065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067 #include <sys/types.h>
11068 /* Check that off_t can represent 2**63 - 1 correctly.
11069 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11070 since some C++ compilers masquerading as C compilers
11071 incorrectly reject 9223372036854775807. */
11072 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11073 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11074 && LARGE_OFF_T % 2147483647 == 1)
11084 if ac_fn_c_try_compile
"$LINENO"; then :
11087 rm -f core conftest.err conftest.
$ac_objext
11089 if ac_fn_c_try_compile
"$LINENO"; then :
11090 ac_cv_sys_largefile_CC
=' -n32'; break
11092 rm -f core conftest.err conftest.
$ac_objext
11096 rm -f conftest.
$ac_ext
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11100 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11101 if test "$ac_cv_sys_largefile_CC" != no
; then
11102 CC
=$CC$ac_cv_sys_largefile_CC
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11106 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11107 if ${ac_cv_sys_file_offset_bits+:} false
; then :
11108 $as_echo_n "(cached) " >&6
11111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 #include <sys/types.h>
11114 /* Check that off_t can represent 2**63 - 1 correctly.
11115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11116 since some C++ compilers masquerading as C compilers
11117 incorrectly reject 9223372036854775807. */
11118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11120 && LARGE_OFF_T % 2147483647 == 1)
11130 if ac_fn_c_try_compile
"$LINENO"; then :
11131 ac_cv_sys_file_offset_bits
=no
; break
11133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 #define _FILE_OFFSET_BITS 64
11137 #include <sys/types.h>
11138 /* Check that off_t can represent 2**63 - 1 correctly.
11139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11140 since some C++ compilers masquerading as C compilers
11141 incorrectly reject 9223372036854775807. */
11142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11144 && LARGE_OFF_T % 2147483647 == 1)
11154 if ac_fn_c_try_compile
"$LINENO"; then :
11155 ac_cv_sys_file_offset_bits
=64; break
11157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11158 ac_cv_sys_file_offset_bits
=unknown
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11163 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11164 case $ac_cv_sys_file_offset_bits in #(
11167 cat >>confdefs.h
<<_ACEOF
11168 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11173 if test $ac_cv_sys_file_offset_bits = unknown
; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11175 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11176 if ${ac_cv_sys_large_files+:} false
; then :
11177 $as_echo_n "(cached) " >&6
11180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 #include <sys/types.h>
11183 /* Check that off_t can represent 2**63 - 1 correctly.
11184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11185 since some C++ compilers masquerading as C compilers
11186 incorrectly reject 9223372036854775807. */
11187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11189 && LARGE_OFF_T % 2147483647 == 1)
11199 if ac_fn_c_try_compile
"$LINENO"; then :
11200 ac_cv_sys_large_files
=no
; break
11202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11205 #define _LARGE_FILES 1
11206 #include <sys/types.h>
11207 /* Check that off_t can represent 2**63 - 1 correctly.
11208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11209 since some C++ compilers masquerading as C compilers
11210 incorrectly reject 9223372036854775807. */
11211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11213 && LARGE_OFF_T % 2147483647 == 1)
11223 if ac_fn_c_try_compile
"$LINENO"; then :
11224 ac_cv_sys_large_files
=1; break
11226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11227 ac_cv_sys_large_files
=unknown
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11232 $as_echo "$ac_cv_sys_large_files" >&6; }
11233 case $ac_cv_sys_large_files in #(
11236 cat >>confdefs.h
<<_ACEOF
11237 #define _LARGE_FILES $ac_cv_sys_large_files
11248 for ac_header
in assert.h \
11301 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11303 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11304 cat >>confdefs.h
<<_ACEOF
11305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11313 for ac_header
in sys
/param.h
11315 ac_fn_c_check_header_mongrel
"$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11316 if test "x$ac_cv_header_sys_param_h" = xyes
; then :
11317 cat >>confdefs.h
<<_ACEOF
11318 #define HAVE_SYS_PARAM_H 1
11326 for ac_header
in net
/if.h
11328 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_TYPES_H
11329 #include <sys/types.h>
11331 #ifdef HAVE_SYS_SOCKET_H
11332 #include <sys/socket.h>
11335 if test "x$ac_cv_header_net_if_h" = xyes
; then :
11336 cat >>confdefs.h
<<_ACEOF
11337 #define HAVE_NET_IF_H 1
11346 for ac_header
in net
/pfvar.h
11348 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#ifdef HAVE_SYS_TYPES_H
11349 #include <sys/types.h>
11351 #ifdef HAVE_SYS_SOCKET_H
11352 #include <sys/socket.h>
11354 #ifdef HAVE_NET_IF_H
11355 #include <net/if.h>
11357 #ifdef HAVE_NETINET_IN_H
11358 #include <netinet/in.h>
11361 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
11362 cat >>confdefs.h
<<_ACEOF
11363 #define HAVE_NET_PFVAR_H 1
11373 for ac_header
in linux
/if.h
11375 ac_fn_c_check_header_compile
"$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
11376 #ifdef HAVE_SYS_SOCKET_H
11377 #include <sys/socket.h>
11381 if test "x$ac_cv_header_linux_if_h" = xyes
; then :
11382 cat >>confdefs.h
<<_ACEOF
11383 #define HAVE_LINUX_IF_H 1
11391 for ac_header
in linux
/netfilter_ipv4.h
11393 ac_fn_c_check_header_compile
"$LINENO" "linux/netfilter_ipv4.h" "ac_cv_header_linux_netfilter_ipv4_h" "#ifdef HAVE_SYS_TYPES_H
11394 #include <sys/types.h>
11396 #ifdef HAVE_SYS_SOCKET_H
11397 #include <sys/socket.h>
11399 #ifdef HAVE_LIMITS_H
11400 #include <limits.h>
11402 #ifdef HAVE_LINUX_TYPES_H
11403 #include <linux/types.h>
11405 #ifdef HAVE_NETINET_IN6_H
11406 #include <netinet/in6.h>
11408 #ifdef HAVE_NETINET_IN_H
11409 #include <netinet/in.h>
11412 if test "x$ac_cv_header_linux_netfilter_ipv4_h" = xyes
; then :
11413 cat >>confdefs.h
<<_ACEOF
11414 #define HAVE_LINUX_NETFILTER_IPV4_H 1
11416 linux_netfilter_ipv4
=1
11418 linux_netfilter_ipv4
=0
11424 for ac_header
in linux
/netfilter_ipv
6/ip6_tables.h
11426 ac_fn_c_check_header_compile
"$LINENO" "linux/netfilter_ipv6/ip6_tables.h" "ac_cv_header_linux_netfilter_ipv6_ip6_tables_h" "#ifdef HAVE_SYS_TYPES_H
11427 #include <sys/types.h>
11429 #ifdef HAVE_SYS_SOCKET_H
11430 #include <sys/socket.h>
11432 #ifdef HAVE_LIMITS_H
11433 #include <limits.h>
11435 #ifdef HAVE_LINUX_TYPES_H
11436 #include <linux/types.h>
11438 #ifdef HAVE_NETINET_IN6_H
11439 #include <netinet/in6.h>
11441 #ifdef HAVE_NETINET_IN_H
11442 #include <netinet/in.h>
11444 #ifdef HAVE_LINUX_IF_H
11445 #include <linux/if.h>
11448 if test "x$ac_cv_header_linux_netfilter_ipv6_ip6_tables_h" = xyes
; then :
11449 cat >>confdefs.h
<<_ACEOF
11450 #define HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H 1
11452 linux_netfilter_ipv6_ip6_tables
=1
11454 linux_netfilter_ipv6_ip6_tables
=0
11461 if test "x$net_if_found" = "x1" && test "x$net_pfvar_found" = "x1"; then
11464 if test "x$linux_netfilter_ipv4" = "x1"; then
11467 if test "x$linux_netfilter_ipv6_ip6_tables" = "x1"; then
11470 if test "x$transparent_ok" = "x1"; then
11472 $as_echo "#define USE_TRANSPARENT 1" >>confdefs.h
11475 *-*-openbsd* |
*-*-bitrig*)
11477 $as_echo "#define OPENBSD 1" >>confdefs.h
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: Transparent proxy support enabled, but missing headers." >&5
11482 $as_echo "$as_me: Transparent proxy support enabled, but missing headers." >&6;}
11485 ac_fn_c_check_member
"$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "#ifdef HAVE_SYS_TYPES_H
11486 #include <sys/types.h>
11488 #ifdef HAVE_SYS_TIME_H
11489 #include <sys/time.h>
11492 if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes
; then :
11494 cat >>confdefs.h
<<_ACEOF
11495 #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
11503 # The cast to long int works around a bug in the HP C Compiler
11504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11506 # This bug is HP SR number 8606223364.
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int8_t" >&5
11508 $as_echo_n "checking size of int8_t... " >&6; }
11509 if ${ac_cv_sizeof_int8_t+:} false
; then :
11510 $as_echo_n "(cached) " >&6
11512 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int8_t))" "ac_cv_sizeof_int8_t" "$ac_includes_default"; then :
11515 if test "$ac_cv_type_int8_t" = yes; then
11516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11518 as_fn_error
77 "cannot compute sizeof (int8_t)
11519 See \`config.log' for more details" "$LINENO" 5; }
11521 ac_cv_sizeof_int8_t
=0
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int8_t" >&5
11527 $as_echo "$ac_cv_sizeof_int8_t" >&6; }
11531 cat >>confdefs.h
<<_ACEOF
11532 #define SIZEOF_INT8_T $ac_cv_sizeof_int8_t
11536 # The cast to long int works around a bug in the HP C Compiler
11537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11539 # This bug is HP SR number 8606223364.
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
11541 $as_echo_n "checking size of int16_t... " >&6; }
11542 if ${ac_cv_sizeof_int16_t+:} false
; then :
11543 $as_echo_n "(cached) " >&6
11545 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
11548 if test "$ac_cv_type_int16_t" = yes; then
11549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11551 as_fn_error
77 "cannot compute sizeof (int16_t)
11552 See \`config.log' for more details" "$LINENO" 5; }
11554 ac_cv_sizeof_int16_t
=0
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
11560 $as_echo "$ac_cv_sizeof_int16_t" >&6; }
11564 cat >>confdefs.h
<<_ACEOF
11565 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
11569 # The cast to long int works around a bug in the HP C Compiler
11570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11572 # This bug is HP SR number 8606223364.
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
11574 $as_echo_n "checking size of int32_t... " >&6; }
11575 if ${ac_cv_sizeof_int32_t+:} false
; then :
11576 $as_echo_n "(cached) " >&6
11578 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
11581 if test "$ac_cv_type_int32_t" = yes; then
11582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11584 as_fn_error
77 "cannot compute sizeof (int32_t)
11585 See \`config.log' for more details" "$LINENO" 5; }
11587 ac_cv_sizeof_int32_t
=0
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
11593 $as_echo "$ac_cv_sizeof_int32_t" >&6; }
11597 cat >>confdefs.h
<<_ACEOF
11598 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
11602 # The cast to long int works around a bug in the HP C Compiler
11603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11605 # This bug is HP SR number 8606223364.
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
11607 $as_echo_n "checking size of int64_t... " >&6; }
11608 if ${ac_cv_sizeof_int64_t+:} false
; then :
11609 $as_echo_n "(cached) " >&6
11611 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
11614 if test "$ac_cv_type_int64_t" = yes; then
11615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11617 as_fn_error
77 "cannot compute sizeof (int64_t)
11618 See \`config.log' for more details" "$LINENO" 5; }
11620 ac_cv_sizeof_int64_t
=0
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
11626 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
11630 cat >>confdefs.h
<<_ACEOF
11631 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
11635 # The cast to long int works around a bug in the HP C Compiler
11636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11638 # This bug is HP SR number 8606223364.
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint8_t" >&5
11640 $as_echo_n "checking size of uint8_t... " >&6; }
11641 if ${ac_cv_sizeof_uint8_t+:} false
; then :
11642 $as_echo_n "(cached) " >&6
11644 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (uint8_t))" "ac_cv_sizeof_uint8_t" "$ac_includes_default"; then :
11647 if test "$ac_cv_type_uint8_t" = yes; then
11648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11650 as_fn_error
77 "cannot compute sizeof (uint8_t)
11651 See \`config.log' for more details" "$LINENO" 5; }
11653 ac_cv_sizeof_uint8_t
=0
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint8_t" >&5
11659 $as_echo "$ac_cv_sizeof_uint8_t" >&6; }
11663 cat >>confdefs.h
<<_ACEOF
11664 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
11668 # The cast to long int works around a bug in the HP C Compiler
11669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11671 # This bug is HP SR number 8606223364.
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
11673 $as_echo_n "checking size of uint16_t... " >&6; }
11674 if ${ac_cv_sizeof_uint16_t+:} false
; then :
11675 $as_echo_n "(cached) " >&6
11677 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
11680 if test "$ac_cv_type_uint16_t" = yes; then
11681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11683 as_fn_error
77 "cannot compute sizeof (uint16_t)
11684 See \`config.log' for more details" "$LINENO" 5; }
11686 ac_cv_sizeof_uint16_t
=0
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
11692 $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
11696 cat >>confdefs.h
<<_ACEOF
11697 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
11701 # The cast to long int works around a bug in the HP C Compiler
11702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11704 # This bug is HP SR number 8606223364.
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
11706 $as_echo_n "checking size of uint32_t... " >&6; }
11707 if ${ac_cv_sizeof_uint32_t+:} false
; then :
11708 $as_echo_n "(cached) " >&6
11710 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
11713 if test "$ac_cv_type_uint32_t" = yes; then
11714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11716 as_fn_error
77 "cannot compute sizeof (uint32_t)
11717 See \`config.log' for more details" "$LINENO" 5; }
11719 ac_cv_sizeof_uint32_t
=0
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
11725 $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
11729 cat >>confdefs.h
<<_ACEOF
11730 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
11734 # The cast to long int works around a bug in the HP C Compiler
11735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11737 # This bug is HP SR number 8606223364.
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
11739 $as_echo_n "checking size of uint64_t... " >&6; }
11740 if ${ac_cv_sizeof_uint64_t+:} false
; then :
11741 $as_echo_n "(cached) " >&6
11743 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"; then :
11746 if test "$ac_cv_type_uint64_t" = yes; then
11747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11749 as_fn_error
77 "cannot compute sizeof (uint64_t)
11750 See \`config.log' for more details" "$LINENO" 5; }
11752 ac_cv_sizeof_uint64_t
=0
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
11758 $as_echo "$ac_cv_sizeof_uint64_t" >&6; }
11762 cat >>confdefs.h
<<_ACEOF
11763 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
11767 # The cast to long int works around a bug in the HP C Compiler
11768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11770 # This bug is HP SR number 8606223364.
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5
11772 $as_echo_n "checking size of intptr_t... " >&6; }
11773 if ${ac_cv_sizeof_intptr_t+:} false
; then :
11774 $as_echo_n "(cached) " >&6
11776 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default"; then :
11779 if test "$ac_cv_type_intptr_t" = yes; then
11780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11782 as_fn_error
77 "cannot compute sizeof (intptr_t)
11783 See \`config.log' for more details" "$LINENO" 5; }
11785 ac_cv_sizeof_intptr_t
=0
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5
11791 $as_echo "$ac_cv_sizeof_intptr_t" >&6; }
11795 cat >>confdefs.h
<<_ACEOF
11796 #define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
11800 # The cast to long int works around a bug in the HP C Compiler
11801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11803 # This bug is HP SR number 8606223364.
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
11805 $as_echo_n "checking size of uintptr_t... " >&6; }
11806 if ${ac_cv_sizeof_uintptr_t+:} false
; then :
11807 $as_echo_n "(cached) " >&6
11809 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
11812 if test "$ac_cv_type_uintptr_t" = yes; then
11813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11815 as_fn_error
77 "cannot compute sizeof (uintptr_t)
11816 See \`config.log' for more details" "$LINENO" 5; }
11818 ac_cv_sizeof_uintptr_t
=0
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
11824 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
11828 cat >>confdefs.h
<<_ACEOF
11829 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11835 # The cast to long int works around a bug in the HP C Compiler
11836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11838 # This bug is HP SR number 8606223364.
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11840 $as_echo_n "checking size of char... " >&6; }
11841 if ${ac_cv_sizeof_char+:} false
; then :
11842 $as_echo_n "(cached) " >&6
11844 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11847 if test "$ac_cv_type_char" = yes; then
11848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11850 as_fn_error
77 "cannot compute sizeof (char)
11851 See \`config.log' for more details" "$LINENO" 5; }
11853 ac_cv_sizeof_char
=0
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11859 $as_echo "$ac_cv_sizeof_char" >&6; }
11863 cat >>confdefs.h
<<_ACEOF
11864 #define SIZEOF_CHAR $ac_cv_sizeof_char
11868 # The cast to long int works around a bug in the HP C Compiler
11869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11871 # This bug is HP SR number 8606223364.
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11873 $as_echo_n "checking size of short... " >&6; }
11874 if ${ac_cv_sizeof_short+:} false
; then :
11875 $as_echo_n "(cached) " >&6
11877 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11880 if test "$ac_cv_type_short" = yes; then
11881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11883 as_fn_error
77 "cannot compute sizeof (short)
11884 See \`config.log' for more details" "$LINENO" 5; }
11886 ac_cv_sizeof_short
=0
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11892 $as_echo "$ac_cv_sizeof_short" >&6; }
11896 cat >>confdefs.h
<<_ACEOF
11897 #define SIZEOF_SHORT $ac_cv_sizeof_short
11901 # The cast to long int works around a bug in the HP C Compiler
11902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11904 # This bug is HP SR number 8606223364.
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11906 $as_echo_n "checking size of int... " >&6; }
11907 if ${ac_cv_sizeof_int+:} false
; then :
11908 $as_echo_n "(cached) " >&6
11910 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11913 if test "$ac_cv_type_int" = yes; then
11914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11916 as_fn_error
77 "cannot compute sizeof (int)
11917 See \`config.log' for more details" "$LINENO" 5; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11925 $as_echo "$ac_cv_sizeof_int" >&6; }
11929 cat >>confdefs.h
<<_ACEOF
11930 #define SIZEOF_INT $ac_cv_sizeof_int
11934 # The cast to long int works around a bug in the HP C Compiler
11935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11937 # This bug is HP SR number 8606223364.
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11939 $as_echo_n "checking size of long... " >&6; }
11940 if ${ac_cv_sizeof_long+:} false
; then :
11941 $as_echo_n "(cached) " >&6
11943 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11946 if test "$ac_cv_type_long" = yes; then
11947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11949 as_fn_error
77 "cannot compute sizeof (long)
11950 See \`config.log' for more details" "$LINENO" 5; }
11952 ac_cv_sizeof_long
=0
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11958 $as_echo "$ac_cv_sizeof_long" >&6; }
11962 cat >>confdefs.h
<<_ACEOF
11963 #define SIZEOF_LONG $ac_cv_sizeof_long
11967 # The cast to long int works around a bug in the HP C Compiler
11968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11970 # This bug is HP SR number 8606223364.
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11972 $as_echo_n "checking size of long long... " >&6; }
11973 if ${ac_cv_sizeof_long_long+:} false
; then :
11974 $as_echo_n "(cached) " >&6
11976 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11979 if test "$ac_cv_type_long_long" = yes; then
11980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11982 as_fn_error
77 "cannot compute sizeof (long long)
11983 See \`config.log' for more details" "$LINENO" 5; }
11985 ac_cv_sizeof_long_long
=0
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11991 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11995 cat >>confdefs.h
<<_ACEOF
11996 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12000 # The cast to long int works around a bug in the HP C Compiler
12001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12003 # This bug is HP SR number 8606223364.
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
12005 $as_echo_n "checking size of __int64... " >&6; }
12006 if ${ac_cv_sizeof___int64+:} false
; then :
12007 $as_echo_n "(cached) " >&6
12009 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
12012 if test "$ac_cv_type___int64" = yes; then
12013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12015 as_fn_error
77 "cannot compute sizeof (__int64)
12016 See \`config.log' for more details" "$LINENO" 5; }
12018 ac_cv_sizeof___int64
=0
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
12024 $as_echo "$ac_cv_sizeof___int64" >&6; }
12028 cat >>confdefs.h
<<_ACEOF
12029 #define SIZEOF___INT64 $ac_cv_sizeof___int64
12033 # The cast to long int works around a bug in the HP C Compiler
12034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12036 # This bug is HP SR number 8606223364.
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12038 $as_echo_n "checking size of void *... " >&6; }
12039 if ${ac_cv_sizeof_void_p+:} false
; then :
12040 $as_echo_n "(cached) " >&6
12042 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12045 if test "$ac_cv_type_void_p" = yes; then
12046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12048 as_fn_error
77 "cannot compute sizeof (void *)
12049 See \`config.log' for more details" "$LINENO" 5; }
12051 ac_cv_sizeof_void_p
=0
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12057 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12061 cat >>confdefs.h
<<_ACEOF
12062 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12066 # The cast to long int works around a bug in the HP C Compiler
12067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12069 # This bug is HP SR number 8606223364.
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12071 $as_echo_n "checking size of time_t... " >&6; }
12072 if ${ac_cv_sizeof_time_t+:} false
; then :
12073 $as_echo_n "(cached) " >&6
12075 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12078 if test "$ac_cv_type_time_t" = yes; then
12079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12081 as_fn_error
77 "cannot compute sizeof (time_t)
12082 See \`config.log' for more details" "$LINENO" 5; }
12084 ac_cv_sizeof_time_t
=0
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12090 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12094 cat >>confdefs.h
<<_ACEOF
12095 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12099 # The cast to long int works around a bug in the HP C Compiler
12100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12102 # This bug is HP SR number 8606223364.
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12104 $as_echo_n "checking size of size_t... " >&6; }
12105 if ${ac_cv_sizeof_size_t+:} false
; then :
12106 $as_echo_n "(cached) " >&6
12108 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
12111 if test "$ac_cv_type_size_t" = yes; then
12112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12114 as_fn_error
77 "cannot compute sizeof (size_t)
12115 See \`config.log' for more details" "$LINENO" 5; }
12117 ac_cv_sizeof_size_t
=0
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12123 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12127 cat >>confdefs.h
<<_ACEOF
12128 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12132 # The cast to long int works around a bug in the HP C Compiler
12133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12135 # This bug is HP SR number 8606223364.
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
12137 $as_echo_n "checking size of pid_t... " >&6; }
12138 if ${ac_cv_sizeof_pid_t+:} false
; then :
12139 $as_echo_n "(cached) " >&6
12141 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
12144 if test "$ac_cv_type_pid_t" = yes; then
12145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12147 as_fn_error
77 "cannot compute sizeof (pid_t)
12148 See \`config.log' for more details" "$LINENO" 5; }
12150 ac_cv_sizeof_pid_t
=0
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
12156 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
12160 cat >>confdefs.h
<<_ACEOF
12161 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
12166 ac_fn_c_check_type
"$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
12167 if test "x$ac_cv_type_uint" = xyes
; then :
12169 cat >>confdefs.h
<<_ACEOF
12170 #define HAVE_UINT 1
12175 ac_fn_c_check_type
"$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
12176 if test "x$ac_cv_type_u_char" = xyes
; then :
12178 cat >>confdefs.h
<<_ACEOF
12179 #define HAVE_U_CHAR 1
12184 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12185 if test "x$ac_cv_type_ssize_t" = xyes
; then :
12187 cat >>confdefs.h
<<_ACEOF
12188 #define HAVE_SSIZE_T 1
12195 for ac_header
in ucontext.h
12197 ac_fn_c_check_header_mongrel
"$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
12198 if test "x$ac_cv_header_ucontext_h" = xyes
; then :
12199 cat >>confdefs.h
<<_ACEOF
12200 #define HAVE_UCONTEXT_H 1
12207 # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly
12208 # (this was fixed in later redhats). <ucontext.h> works fine, so use that.
12209 if grep "Red Hat Linux release 7" /etc
/redhat-release
>/dev
/null
2>&1; then
12211 $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
12213 ac_cv_header_sys_ucontext_h
=no
12215 for ac_header
in sys
/ucontext.h
12217 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
12218 if test "x$ac_cv_header_sys_ucontext_h" = xyes
; then :
12219 cat >>confdefs.h
<<_ACEOF
12220 #define HAVE_SYS_UCONTEXT_H 1
12226 # ucontext on OS X 10.6 (at least)
12228 for ac_header
in cygwin
/signal.h
12230 ac_fn_c_check_header_mongrel
"$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
12231 if test "x$ac_cv_header_cygwin_signal_h" = xyes
; then :
12232 cat >>confdefs.h
<<_ACEOF
12233 #define HAVE_CYGWIN_SIGNAL_H 1
12239 # ucontext on cywgin
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
12241 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
12242 pc_fields
=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
12243 pc_fields
="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
12244 pc_fields
="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
12245 pc_fields
="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
12246 pc_fields
="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
12247 pc_fields
="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
12248 pc_fields
="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
12249 pc_fields
="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64)
12250 pc_fields
="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
12251 pc_fields
="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
12252 pc_fields
="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
12253 pc_fields
="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
12254 pc_fields
="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
12255 pc_fields
="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
12256 pc_fields
="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
12257 pc_fields
="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
12258 pc_fields
="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
12259 pc_fields
="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
12260 pc_field_found
=false
12261 for pc_field
in $pc_fields; do
12262 if ! $pc_field_found; then
12263 # Prefer sys/ucontext.h to ucontext.h, for OS X's sake.
12264 if test "x$ac_cv_header_cygwin_signal_h" = xyes
; then
12265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 #include <cygwin/signal.h>
12271 ucontext_t u; return u.$pc_field == 0;
12276 if ac_fn_c_try_compile
"$LINENO"; then :
12278 cat >>confdefs.h
<<_ACEOF
12279 #define PC_FROM_UCONTEXT $pc_field
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
12283 $as_echo "$pc_field" >&6; }
12284 pc_field_found
=true
12286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12287 elif test "x$ac_cv_header_sys_ucontext_h" = xyes
; then
12288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290 #include <sys/ucontext.h>
12294 ucontext_t u; return u.$pc_field == 0;
12299 if ac_fn_c_try_compile
"$LINENO"; then :
12301 cat >>confdefs.h
<<_ACEOF
12302 #define PC_FROM_UCONTEXT $pc_field
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
12306 $as_echo "$pc_field" >&6; }
12307 pc_field_found
=true
12309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12310 elif test "x$ac_cv_header_ucontext_h" = xyes
; then
12311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313 #include <ucontext.h>
12317 ucontext_t u; return u.$pc_field == 0;
12322 if ac_fn_c_try_compile
"$LINENO"; then :
12324 cat >>confdefs.h
<<_ACEOF
12325 #define PC_FROM_UCONTEXT $pc_field
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
12329 $as_echo "$pc_field" >&6; }
12330 pc_field_found
=true
12332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12333 else # hope some standard header gives it to us
12334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12340 ucontext_t u; return u.$pc_field == 0;
12345 if ac_fn_c_try_compile
"$LINENO"; then :
12347 cat >>confdefs.h
<<_ACEOF
12348 #define PC_FROM_UCONTEXT $pc_field
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
12352 $as_echo "$pc_field" >&6; }
12353 pc_field_found
=true
12355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12359 if ! $pc_field_found; then
12360 pc_fields
=" sc_eip" # OpenBSD (i386)
12361 pc_fields
="$pc_fields sc_rip" # OpenBSD (x86_64)
12362 for pc_field
in $pc_fields; do
12363 if ! $pc_field_found; then
12364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 #include <signal.h>
12370 ucontext_t u; return u.$pc_field == 0;
12375 if ac_fn_c_try_compile
"$LINENO"; then :
12377 cat >>confdefs.h
<<_ACEOF
12378 #define PC_FROM_UCONTEXT $pc_field
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
12382 $as_echo "$pc_field" >&6; }
12383 pc_field_found
=true
12385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12389 if ! $pc_field_found; then
12393 ac_fn_c_check_type
"$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef HAVE_SYS_TYPES_H
12394 #include <sys/types.h>
12396 #ifdef HAVE_NETINET_IN_H
12397 #include <netinet/in.h>
12399 #ifdef HAVE_NETINET_IN6_H
12400 #include <netinet/in6.h>
12402 #ifdef HAVE_SYS_SOCKET_H
12403 #include <sys/socket.h>
12406 #define _WIN32_WINNT 0x0501
12407 #define WIN32_LEAN_AND_MEAN
12408 #include <winsock2.h>
12409 #include <ws2tcpip.h>
12413 if test "x$ac_cv_type_struct_in6_addr" = xyes
; then :
12415 cat >>confdefs.h
<<_ACEOF
12416 #define HAVE_STRUCT_IN6_ADDR 1
12421 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef HAVE_SYS_TYPES_H
12422 #include <sys/types.h>
12424 #ifdef HAVE_NETINET_IN_H
12425 #include <netinet/in.h>
12427 #ifdef HAVE_NETINET_IN6_H
12428 #include <netinet/in6.h>
12430 #ifdef HAVE_SYS_SOCKET_H
12431 #include <sys/socket.h>
12434 #define _WIN32_WINNT 0x0501
12435 #define WIN32_LEAN_AND_MEAN
12436 #include <winsock2.h>
12437 #include <ws2tcpip.h>
12441 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
12443 cat >>confdefs.h
<<_ACEOF
12444 #define HAVE_STRUCT_SOCKADDR_IN6 1
12449 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#ifdef HAVE_SYS_TYPES_H
12450 #include <sys/types.h>
12452 #ifdef HAVE_NETINET_IN_H
12453 #include <netinet/in.h>
12455 #ifdef HAVE_NETINET_IN6_H
12456 #include <netinet/in6.h>
12458 #ifdef HAVE_SYS_SOCKET_H
12459 #include <sys/socket.h>
12462 #define _WIN32_WINNT 0x0501
12463 #define WIN32_LEAN_AND_MEAN
12464 #include <winsock2.h>
12465 #include <ws2tcpip.h>
12469 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
12471 cat >>confdefs.h
<<_ACEOF
12472 #define HAVE_SA_FAMILY_T 1
12478 ac_fn_c_check_member
"$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#ifdef HAVE_SYS_TYPES_H
12479 #include <sys/types.h>
12481 #ifdef HAVE_NETINET_IN_H
12482 #include <netinet/in.h>
12484 #ifdef HAVE_NETINET_IN6_H
12485 #include <netinet/in6.h>
12487 #ifdef HAVE_SYS_SOCKET_H
12488 #include <sys/socket.h>
12491 #define _WIN32_WINNT 0x0501
12492 #define WIN32_LEAN_AND_MEAN
12493 #include <winsock2.h>
12494 #include <ws2tcpip.h>
12498 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes
; then :
12500 cat >>confdefs.h
<<_ACEOF
12501 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
12506 ac_fn_c_check_member
"$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#ifdef HAVE_SYS_TYPES_H
12507 #include <sys/types.h>
12509 #ifdef HAVE_NETINET_IN_H
12510 #include <netinet/in.h>
12512 #ifdef HAVE_NETINET_IN6_H
12513 #include <netinet/in6.h>
12515 #ifdef HAVE_SYS_SOCKET_H
12516 #include <sys/socket.h>
12519 #define _WIN32_WINNT 0x0501
12520 #define WIN32_LEAN_AND_MEAN
12521 #include <winsock2.h>
12522 #include <ws2tcpip.h>
12526 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes
; then :
12528 cat >>confdefs.h
<<_ACEOF
12529 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
12534 ac_fn_c_check_member
"$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef HAVE_SYS_TYPES_H
12535 #include <sys/types.h>
12537 #ifdef HAVE_NETINET_IN_H
12538 #include <netinet/in.h>
12540 #ifdef HAVE_NETINET_IN6_H
12541 #include <netinet/in6.h>
12543 #ifdef HAVE_SYS_SOCKET_H
12544 #include <sys/socket.h>
12547 #define _WIN32_WINNT 0x0501
12548 #define WIN32_LEAN_AND_MEAN
12549 #include <winsock2.h>
12550 #include <ws2tcpip.h>
12554 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
; then :
12556 cat >>confdefs.h
<<_ACEOF
12557 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12562 ac_fn_c_check_member
"$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#ifdef HAVE_SYS_TYPES_H
12563 #include <sys/types.h>
12565 #ifdef HAVE_NETINET_IN_H
12566 #include <netinet/in.h>
12568 #ifdef HAVE_NETINET_IN6_H
12569 #include <netinet/in6.h>
12571 #ifdef HAVE_SYS_SOCKET_H
12572 #include <sys/socket.h>
12575 #define _WIN32_WINNT 0x0501
12576 #define WIN32_LEAN_AND_MEAN
12577 #include <winsock2.h>
12578 #include <ws2tcpip.h>
12582 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
; then :
12584 cat >>confdefs.h
<<_ACEOF
12585 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
12592 ac_fn_c_check_type
"$LINENO" "rlim_t" "ac_cv_type_rlim_t" "#ifdef HAVE_SYS_TYPES_H
12593 #include <sys/types.h>
12595 #ifdef HAVE_SYS_TIME_H
12596 #include <sys/time.h>
12598 #ifdef HAVE_SYS_RESOURCE_H
12599 #include <sys/resource.h>
12603 if test "x$ac_cv_type_rlim_t" = xyes
; then :
12605 cat >>confdefs.h
<<_ACEOF
12606 #define HAVE_RLIM_T 1
12614 typename
=`echo time_t | sed "s/[^a-zA-Z0-9_]/_/g"`
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5
12616 $as_echo_n "checking whether time_t is signed... " >&6; }
12617 if eval \
${ax_cv_decl_${typename}_signed+:} false
; then :
12618 $as_echo_n "(cached) " >&6
12621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12624 #ifdef HAVE_SYS_TYPES_H
12625 #include <sys/types.h>
12627 #ifdef HAVE_SYS_TIME_H
12628 #include <sys/time.h>
12637 int foo [ 1 - 2 * !(((time_t) -1) < 0) ]
12642 if ac_fn_c_try_compile
"$LINENO"; then :
12643 eval "ax_cv_decl_${typename}_signed=\"yes\""
12645 eval "ax_cv_decl_${typename}_signed=\"no\""
12647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12649 eval ac_res
=\
$ax_cv_decl_${typename}_signed
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12651 $as_echo "$ac_res" >&6; }
12652 symbolname
=`echo time_t | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"`
12653 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then
12655 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then
12660 if test "$ax_cv_decl_time_t_signed" = "no"; then
12661 as_fn_error $?
"You have an unsigned time_t; Tor does not support that. Please tell the Tor developers about your interesting platform." "$LINENO" 5
12665 typename
=`echo size_t | sed "s/[^a-zA-Z0-9_]/_/g"`
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t is signed" >&5
12667 $as_echo_n "checking whether size_t is signed... " >&6; }
12668 if eval \
${ax_cv_decl_${typename}_signed+:} false
; then :
12669 $as_echo_n "(cached) " >&6
12672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12675 #ifdef HAVE_SYS_TYPES_H
12676 #include <sys/types.h>
12682 int foo [ 1 - 2 * !(((size_t) -1) < 0) ]
12687 if ac_fn_c_try_compile
"$LINENO"; then :
12688 eval "ax_cv_decl_${typename}_signed=\"yes\""
12690 eval "ax_cv_decl_${typename}_signed=\"no\""
12692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12694 eval ac_res
=\
$ax_cv_decl_${typename}_signed
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12696 $as_echo "$ac_res" >&6; }
12697 symbolname
=`echo size_t | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"`
12698 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then
12699 tor_cv_size_t_signed
=yes
12700 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then
12701 tor_cv_size_t_signed
=no
12705 if test "$ax_cv_decl_size_t_signed" = "yes"; then
12706 as_fn_error $?
"You have a signed size_t; that's grossly nonconformant." "$LINENO" 5
12710 typename
=`echo enum always | sed "s/[^a-zA-Z0-9_]/_/g"`
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether enum always is signed" >&5
12712 $as_echo_n "checking whether enum always is signed... " >&6; }
12713 if eval \
${ax_cv_decl_${typename}_signed+:} false
; then :
12714 $as_echo_n "(cached) " >&6
12717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12720 enum always { AAA, BBB, CCC };
12725 int foo [ 1 - 2 * !(((enum always) -1) < 0) ]
12730 if ac_fn_c_try_compile
"$LINENO"; then :
12731 eval "ax_cv_decl_${typename}_signed=\"yes\""
12733 eval "ax_cv_decl_${typename}_signed=\"no\""
12735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12737 eval ac_res
=\
$ax_cv_decl_${typename}_signed
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12739 $as_echo "$ac_res" >&6; }
12740 symbolname
=`echo enum always | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"`
12741 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then
12743 $as_echo "#define ENUM_VALS_ARE_SIGNED 1" >>confdefs.h
12745 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then
12750 # The cast to long int works around a bug in the HP C Compiler
12751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12753 # This bug is HP SR number 8606223364.
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
12755 $as_echo_n "checking size of socklen_t... " >&6; }
12756 if ${ac_cv_sizeof_socklen_t+:} false
; then :
12757 $as_echo_n "(cached) " >&6
12759 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t" "$ac_includes_default
12760 #ifdef HAVE_SYS_SOCKET_H
12761 #include <sys/socket.h>
12767 if test "$ac_cv_type_socklen_t" = yes; then
12768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12770 as_fn_error
77 "cannot compute sizeof (socklen_t)
12771 See \`config.log' for more details" "$LINENO" 5; }
12773 ac_cv_sizeof_socklen_t
=0
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
12779 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
12783 cat >>confdefs.h
<<_ACEOF
12784 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
12789 # We want to make sure that we _don't_ have a cell_t defined, like IRIX does.
12791 # The cast to long int works around a bug in the HP C Compiler
12792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12794 # This bug is HP SR number 8606223364.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of cell_t" >&5
12796 $as_echo_n "checking size of cell_t... " >&6; }
12797 if ${ac_cv_sizeof_cell_t+:} false
; then :
12798 $as_echo_n "(cached) " >&6
12800 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (cell_t))" "ac_cv_sizeof_cell_t" "$ac_includes_default"; then :
12803 if test "$ac_cv_type_cell_t" = yes; then
12804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12806 as_fn_error
77 "cannot compute sizeof (cell_t)
12807 See \`config.log' for more details" "$LINENO" 5; }
12809 ac_cv_sizeof_cell_t
=0
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_cell_t" >&5
12815 $as_echo "$ac_cv_sizeof_cell_t" >&6; }
12819 cat >>confdefs.h
<<_ACEOF
12820 #define SIZEOF_CELL_T $ac_cv_sizeof_cell_t
12825 # Now make sure that NULL can be represented as zero bytes.
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets pointers to NULL" >&5
12827 $as_echo_n "checking whether memset(0) sets pointers to NULL... " >&6; }
12828 if ${tor_cv_null_is_zero+:} false
; then :
12829 $as_echo_n "(cached) " >&6
12831 if test "$cross_compiling" = yes; then :
12832 tor_cv_null_is_zero
=cross
12834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12836 #include <stdlib.h>
12837 #include <string.h>
12839 #ifdef HAVE_STDDEF_H
12840 #include <stddef.h>
12842 int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
12843 return memcmp(&p1,&p2,sizeof(char*))?1:0; }
12845 if ac_fn_c_try_run
"$LINENO"; then :
12846 tor_cv_null_is_zero
=yes
12848 tor_cv_null_is_zero
=no
12850 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12851 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_null_is_zero" >&5
12856 $as_echo "$tor_cv_null_is_zero" >&6; }
12858 if test "$tor_cv_null_is_zero" = "cross"; then
12859 # Cross-compiling; let's hope that the target isn't raving mad.
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes." >&5
12861 $as_echo "$as_me: Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes." >&6;}
12864 if test "$tor_cv_null_is_zero" != "no"; then
12866 $as_echo "#define NULL_REP_IS_ZERO_BYTES 1" >>confdefs.h
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets doubles to 0.0" >&5
12871 $as_echo_n "checking whether memset(0) sets doubles to 0.0... " >&6; }
12872 if ${tor_cv_dbl0_is_zero+:} false
; then :
12873 $as_echo_n "(cached) " >&6
12875 if test "$cross_compiling" = yes; then :
12876 tor_cv_dbl0_is_zero
=cross
12878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #include <stdlib.h>
12881 #include <string.h>
12883 #ifdef HAVE_STDDEF_H
12884 #include <stddef.h>
12886 int main () { double d1,d2; d1=0; memset(&d2,0,sizeof(d2));
12887 return memcmp(&d1,&d2,sizeof(d1))?1:0; }
12889 if ac_fn_c_try_run
"$LINENO"; then :
12890 tor_cv_dbl0_is_zero
=yes
12892 tor_cv_dbl0_is_zero
=no
12894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_dbl0_is_zero" >&5
12900 $as_echo "$tor_cv_dbl0_is_zero" >&6; }
12902 if test "$tor_cv_dbl0_is_zero" = "cross"; then
12903 # Cross-compiling; let's hope that the target isn't raving mad.
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that 0.0 can be represented as a sequence of 0-valued bytes." >&5
12905 $as_echo "$as_me: Cross-compiling: we'll assume that 0.0 can be represented as a sequence of 0-valued bytes." >&6;}
12908 if test "$tor_cv_dbl0_is_zero" != "no"; then
12910 $as_echo "#define DOUBLE_0_REP_IS_ZERO_BYTES 1" >>confdefs.h
12914 # And what happens when we malloc zero?
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can malloc(0) safely." >&5
12916 $as_echo_n "checking whether we can malloc(0) safely.... " >&6; }
12917 if ${tor_cv_malloc_zero_works+:} false
; then :
12918 $as_echo_n "(cached) " >&6
12920 if test "$cross_compiling" = yes; then :
12921 tor_cv_malloc_zero_works
=cross
12923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925 #include <stdlib.h>
12926 #include <string.h>
12928 #ifdef HAVE_STDDEF_H
12929 #include <stddef.h>
12931 int main () { return malloc(0)?0:1; }
12933 if ac_fn_c_try_run
"$LINENO"; then :
12934 tor_cv_malloc_zero_works
=yes
12936 tor_cv_malloc_zero_works
=no
12938 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12939 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_malloc_zero_works" >&5
12944 $as_echo "$tor_cv_malloc_zero_works" >&6; }
12946 if test "$tor_cv_malloc_zero_works" = "cross"; then
12947 # Cross-compiling; let's hope that the target isn't raving mad.
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that we need to check malloc() arguments for 0." >&5
12949 $as_echo "$as_me: Cross-compiling: we'll assume that we need to check malloc() arguments for 0." >&6;}
12952 if test "$tor_cv_malloc_zero_works" = "yes"; then
12954 $as_echo "#define MALLOC_ZERO_WORKS 1" >>confdefs.h
12958 # whether we seem to be in a 2s-complement world.
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using 2s-complement arithmetic" >&5
12960 $as_echo_n "checking whether we are using 2s-complement arithmetic... " >&6; }
12961 if ${tor_cv_twos_complement+:} false
; then :
12962 $as_echo_n "(cached) " >&6
12964 if test "$cross_compiling" = yes; then :
12965 tor_cv_twos_complement
=cross
12967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 int main () { int problem = ((-99) != (~99)+1);
12970 return problem ? 1 : 0; }
12972 if ac_fn_c_try_run
"$LINENO"; then :
12973 tor_cv_twos_complement
=yes
12975 tor_cv_twos_complement
=no
12977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_twos_complement" >&5
12983 $as_echo "$tor_cv_twos_complement" >&6; }
12985 if test "$tor_cv_twos_complement" = "cross"; then
12986 # Cross-compiling; let's hope that the target isn't raving mad.
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that negative integers are represented with two's complement." >&5
12988 $as_echo "$as_me: Cross-compiling: we'll assume that negative integers are represented with two's complement." >&6;}
12991 if test "$tor_cv_twos_complement" != "no"; then
12993 $as_echo "#define USING_TWOS_COMPLEMENT 1" >>confdefs.h
12997 # What does shifting a negative value do?
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right-shift on negative values does sign-extension" >&5
12999 $as_echo_n "checking whether right-shift on negative values does sign-extension... " >&6; }
13000 if ${tor_cv_sign_extend+:} false
; then :
13001 $as_echo_n "(cached) " >&6
13003 if test "$cross_compiling" = yes; then :
13004 tor_cv_sign_extend
=cross
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 int main () { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }
13010 if ac_fn_c_try_run
"$LINENO"; then :
13011 tor_cv_sign_extend
=yes
13013 tor_cv_sign_extend
=no
13015 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13016 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_sign_extend" >&5
13021 $as_echo "$tor_cv_sign_extend" >&6; }
13023 if test "$tor_cv_sign_extend" = "cross"; then
13024 # Cross-compiling; let's hope that the target isn't raving mad.
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that right-shifting negative integers causes sign-extension" >&5
13026 $as_echo "$as_me: Cross-compiling: we'll assume that right-shifting negative integers causes sign-extension" >&6;}
13029 if test "$tor_cv_sign_extend" != "no"; then
13031 $as_echo "#define RSHIFT_DOES_SIGN_EXTEND 1" >>confdefs.h
13035 # Whether we should use the dmalloc memory allocation debugging library.
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmalloc (debug memory allocation library)" >&5
13037 $as_echo_n "checking whether to use dmalloc (debug memory allocation library)... " >&6; }
13039 # Check whether --with-dmalloc was given.
13040 if test "${with_dmalloc+set}" = set; then :
13041 withval
=$with_dmalloc; if [ "$withval" = "yes" ]; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13044 $as_echo "yes" >&6; }
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13051 dmalloc
=0; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13057 if [ $dmalloc -eq 1 ]; then
13058 for ac_header
in dmalloc.h
13060 ac_fn_c_check_header_mongrel
"$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
13061 if test "x$ac_cv_header_dmalloc_h" = xyes
; then :
13062 cat >>confdefs.h
<<_ACEOF
13063 #define HAVE_DMALLOC_H 1
13067 as_fn_error $?
"dmalloc header file not found. Do you have the development files for dmalloc installed?" "$LINENO" 5
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dmalloc_malloc" >&5
13073 $as_echo_n "checking for library containing dmalloc_malloc... " >&6; }
13074 if ${ac_cv_search_dmalloc_malloc+:} false
; then :
13075 $as_echo_n "(cached) " >&6
13077 ac_func_search_save_LIBS
=$LIBS
13078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13087 char dmalloc_malloc ();
13091 return dmalloc_malloc ();
13096 for ac_lib
in '' dmallocth dmalloc
; do
13097 if test -z "$ac_lib"; then
13098 ac_res
="none required"
13101 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13103 if ac_fn_c_try_link
"$LINENO"; then :
13104 ac_cv_search_dmalloc_malloc
=$ac_res
13106 rm -f core conftest.err conftest.
$ac_objext \
13108 if ${ac_cv_search_dmalloc_malloc+:} false
; then :
13112 if ${ac_cv_search_dmalloc_malloc+:} false
; then :
13115 ac_cv_search_dmalloc_malloc
=no
13117 rm conftest.
$ac_ext
13118 LIBS
=$ac_func_search_save_LIBS
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dmalloc_malloc" >&5
13121 $as_echo "$ac_cv_search_dmalloc_malloc" >&6; }
13122 ac_res
=$ac_cv_search_dmalloc_malloc
13123 if test "$ac_res" != no
; then :
13124 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13127 as_fn_error $?
"Libdmalloc library not found. If you enable it you better have it installed." "$LINENO" 5
13131 $as_echo "#define USE_DMALLOC 1" >>confdefs.h
13133 for ac_func
in dmalloc_strdup dmalloc_strndup
13135 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13136 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13137 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13138 cat >>confdefs.h
<<_ACEOF
13139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13148 # Check whether --with-tcmalloc was given.
13149 if test "${with_tcmalloc+set}" = set; then :
13150 withval
=$with_tcmalloc; tcmalloc
=yes
13156 if test "x$tcmalloc" = "xyes"; then
13157 LDFLAGS
="-ltcmalloc $LDFLAGS"
13160 using_custom_malloc
=no
13161 if test "x$enable_openbsd_malloc" = "xyes"; then
13162 using_custom_malloc
=yes
13164 if test "x$tcmalloc" = "xyes"; then
13165 using_custom_malloc
=yes
13167 if test "$using_custom_malloc" = "no"; then
13168 for ac_func
in mallinfo
13170 ac_fn_c_check_func
"$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13171 if test "x$ac_cv_func_mallinfo" = xyes
; then :
13172 cat >>confdefs.h
<<_ACEOF
13173 #define HAVE_MALLINFO 1
13181 # By default, we're going to assume we don't have mlockall()
13182 # bionic and other platforms have various broken mlockall subsystems.
13183 # Some systems don't have a working mlockall, some aren't linkable,
13184 # and some have it but don't declare it.
13185 for ac_func
in mlockall
13187 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
13188 if test "x$ac_cv_func_mlockall" = xyes
; then :
13189 cat >>confdefs.h
<<_ACEOF
13190 #define HAVE_MLOCKALL 1
13196 ac_fn_c_check_decl
"$LINENO" "mlockall" "ac_cv_have_decl_mlockall" "
13197 #ifdef HAVE_SYS_MMAN_H
13198 #include <sys/mman.h>
13201 if test "x$ac_cv_have_decl_mlockall" = xyes
; then :
13207 cat >>confdefs.h
<<_ACEOF
13208 #define HAVE_DECL_MLOCKALL $ac_have_decl
13212 # Allow user to specify an alternate syslog facility
13214 # Check whether --with-syslog-facility was given.
13215 if test "${with_syslog_facility+set}" = set; then :
13216 withval
=$with_syslog_facility; syslog_facility
="$withval"
13218 syslog_facility
="LOG_DAEMON"
13222 cat >>confdefs.h
<<_ACEOF
13223 #define LOGFACILITY $syslog_facility
13228 # Check if we have getresuid and getresgid
13229 for ac_func
in getresuid getresgid
13231 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13232 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13233 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13234 cat >>confdefs.h
<<_ACEOF
13235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13242 # Check for gethostbyname_r in all its glorious incompatible versions.
13243 # (This logic is based on that in Python's configure.in)
13246 ac_fn_c_check_func
"$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13247 if test "x$ac_cv_func_gethostbyname_r" = xyes
; then :
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13250 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13252 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13263 struct hostent *h1, *h2;
13265 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13271 if ac_fn_c_try_compile
"$LINENO"; then :
13273 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13276 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13279 $as_echo "6" >&6; }
13283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13293 struct hostent *h1;
13295 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13301 if ac_fn_c_try_compile
"$LINENO"; then :
13303 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13306 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13309 $as_echo "5" >&6; }
13313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13323 struct hostent *h1;
13324 struct hostent_data hd;
13325 (void) gethostbyname_r(cp1,h1,&hd);
13331 if ac_fn_c_try_compile
"$LINENO"; then :
13333 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13336 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13339 $as_echo "3" >&6; }
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13344 $as_echo "0" >&6; }
13347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __func__" >&5
13360 $as_echo_n "checking whether the C compiler supports __func__... " >&6; }
13361 if ${tor_cv_have_func_macro+:} false
; then :
13362 $as_echo_n "(cached) " >&6
13364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13368 int main(int c, char **v) { puts(__func__); }
13370 if ac_fn_c_try_compile
"$LINENO"; then :
13371 tor_cv_have_func_macro
=yes
13373 tor_cv_have_func_macro
=no
13375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_func_macro" >&5
13378 $as_echo "$tor_cv_have_func_macro" >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNC__" >&5
13381 $as_echo_n "checking whether the C compiler supports __FUNC__... " >&6; }
13382 if ${tor_cv_have_FUNC_macro+:} false
; then :
13383 $as_echo_n "(cached) " >&6
13385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13389 int main(int c, char **v) { puts(__FUNC__); }
13391 if ac_fn_c_try_compile
"$LINENO"; then :
13392 tor_cv_have_FUNC_macro
=yes
13394 tor_cv_have_FUNC_macro
=no
13396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNC_macro" >&5
13399 $as_echo "$tor_cv_have_FUNC_macro" >&6; }
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNCTION__" >&5
13402 $as_echo_n "checking whether the C compiler supports __FUNCTION__... " >&6; }
13403 if ${tor_cv_have_FUNCTION_macro+:} false
; then :
13404 $as_echo_n "(cached) " >&6
13406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13410 int main(int c, char **v) { puts(__FUNCTION__); }
13412 if ac_fn_c_try_compile
"$LINENO"; then :
13413 tor_cv_have_FUNCTION_macro
=yes
13415 tor_cv_have_FUNCTION_macro
=no
13417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNCTION_macro" >&5
13420 $as_echo "$tor_cv_have_FUNCTION_macro" >&6; }
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have extern char **environ already declared" >&5
13423 $as_echo_n "checking whether we have extern char **environ already declared... " >&6; }
13424 if ${tor_cv_have_environ_declared+:} false
; then :
13425 $as_echo_n "(cached) " >&6
13427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 #ifdef HAVE_UNISTD_H
13431 #include <unistd.h>
13433 #include <stdlib.h>
13434 int main(int c, char **v) { char **t = environ; }
13436 if ac_fn_c_try_compile
"$LINENO"; then :
13437 tor_cv_have_environ_declared
=yes
13439 tor_cv_have_environ_declared
=no
13441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_environ_declared" >&5
13444 $as_echo "$tor_cv_have_environ_declared" >&6; }
13446 if test "$tor_cv_have_func_macro" = "yes"; then
13448 $as_echo "#define HAVE_MACRO__func__ 1" >>confdefs.h
13452 if test "$tor_cv_have_FUNC_macro" = "yes"; then
13454 $as_echo "#define HAVE_MACRO__FUNC__ 1" >>confdefs.h
13458 if test "$tor_cv_have_FUNCTION_macro" = "yes"; then
13460 $as_echo "#define HAVE_MACRO__FUNCTION__ 1" >>confdefs.h
13464 if test "$tor_cv_have_environ_declared" = "yes"; then
13466 $as_echo "#define HAVE_EXTERN_ENVIRON_DECLARED 1" >>confdefs.h
13470 # $prefix stores the value of the --prefix command line option, or
13471 # NONE if the option wasn't set. In the case that it wasn't set, make
13472 # it be the default, so that we can use it to expand directories now.
13473 if test "x$prefix" = "xNONE"; then
13474 prefix
=$ac_default_prefix
13477 # and similarly for $exec_prefix
13478 if test "x$exec_prefix" = "xNONE"; then
13479 exec_prefix
=$prefix
13482 if test "x$BUILDDIR" = "x"; then
13487 cat >>confdefs.h
<<_ACEOF
13488 #define BUILDDIR "$BUILDDIR"
13492 if test "x$CONFDIR" = "x"; then
13493 CONFDIR
=`eval echo $sysconfdir/tor`
13497 cat >>confdefs.h
<<_ACEOF
13498 #define CONFDIR "$CONFDIR"
13502 BINDIR
=`eval echo $bindir`
13504 LOCALSTATEDIR
=`eval echo $localstatedir`
13507 if test "$bwin32" = "true"; then
13508 # Test if the linker supports the --nxcompat and --dynamicbase options
13510 save_LDFLAGS
="$LDFLAGS"
13511 LDFLAGS
="-Wl,--nxcompat -Wl,--dynamicbase"
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports DllCharacteristics" >&5
13513 $as_echo_n "checking whether the linker supports DllCharacteristics... " >&6; }
13514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13525 if ac_fn_c_try_link
"$LINENO"; then :
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13527 $as_echo "yes" >&6; }
13528 save_LDFLAGS
="$save_LDFLAGS $LDFLAGS"
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13534 rm -f core conftest.err conftest.
$ac_objext \
13535 conftest
$ac_exeext conftest.
$ac_ext
13536 LDFLAGS
="$save_LDFLAGS"
13539 # Set CFLAGS _after_ all the above checks, since our warnings are stricter
13540 # than autoconf's macros like.
13541 if test "$GCC" = "yes"; then
13542 # Disable GCC's strict aliasing checks. They are an hours-to-debug
13543 # accident waiting to happen.
13544 CFLAGS
="$CFLAGS -Wall -fno-strict-aliasing"
13546 # Override optimization level for non-gcc compilers
13547 CFLAGS
="$CFLAGS -O"
13548 enable_gcc_warnings
=no
13549 enable_gcc_warnings_advisory
=no
13552 # Warnings implies advisory-warnings and -Werror.
13553 if test "$enable_gcc_warnings" = "yes"; then
13554 enable_gcc_warnings_advisory
=yes
13555 enable_fatal_warnings
=yes
13558 # OS X Lion started deprecating the system openssl. Let's just disable
13559 # all deprecation warnings on OS X. Also, to potentially make the binary
13560 # a little smaller, let's enable dead_strip.
13564 CFLAGS
="$CFLAGS -Wno-deprecated-declarations"
13565 LDFLAGS
="$LDFLAGS -dead_strip" ;;
13568 # Add some more warnings which we use in development but not in the
13569 # released versions. (Some relevant gcc versions can't handle these.)
13571 # Note that we have to do this near the end of the autoconf process, or
13572 # else we may run into problems when these warnings hit on the testing C
13573 # programs that autoconf wants to build.
13574 if test "x$enable_gcc_warnings_advisory" != "xno"; then
13577 *-*-openbsd* |
*-*-bitrig*)
13578 # Some OpenBSD versions (like 4.8) have -Wsystem-headers by default.
13579 # That's fine, except that the headers don't pass -Wredundant-decls.
13580 # Therefore, let's disable -Wsystem-headers when we're building
13581 # with maximal warnings on OpenBSD.
13582 CFLAGS
="$CFLAGS -Wno-system-headers" ;;
13585 # GCC4.3 users once report trouble with -Wstrict-overflow=5. GCC5 users
13586 # have it work better.
13587 # CFLAGS="$CFLAGS -Wstrict-overflow=1"
13589 # This warning was added in gcc 4.3, but it appears to generate
13590 # spurious warnings in gcc 4.4. I don't know if it works in 4.5.
13591 #CFLAGS="$CFLAGS -Wlogical-op"
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress" >&5
13597 $as_echo_n "checking whether the compiler accepts -Waddress... " >&6; }
13598 if ${tor_cv_cflags__Waddress+:} false
; then :
13599 $as_echo_n "(cached) " >&6
13602 tor_saved_CFLAGS
="$CFLAGS"
13603 CFLAGS
="$CFLAGS -pedantic -Werror -Waddress"
13604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13615 if ac_fn_c_try_compile
"$LINENO"; then :
13616 tor_cv_cflags__Waddress
=yes
13618 tor_cv_cflags__Waddress
=no
13620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13621 if test x
!= x
; then
13623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13634 if ac_fn_c_try_link
"$LINENO"; then :
13635 tor_can_link__Waddress
=yes
13637 tor_can_link__Waddress
=no
13639 rm -f core conftest.err conftest.
$ac_objext \
13640 conftest
$ac_exeext conftest.
$ac_ext
13643 CFLAGS
="$tor_saved_CFLAGS"
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress" >&5
13647 $as_echo "$tor_cv_cflags__Waddress" >&6; }
13648 if test x
$tor_cv_cflags__Waddress = xyes
; then
13649 CFLAGS
="$CFLAGS -Waddress"
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-array-temporary" >&5
13659 $as_echo_n "checking whether the compiler accepts -Waddress-of-array-temporary... " >&6; }
13660 if ${tor_cv_cflags__Waddress_of_array_temporary+:} false
; then :
13661 $as_echo_n "(cached) " >&6
13664 tor_saved_CFLAGS
="$CFLAGS"
13665 CFLAGS
="$CFLAGS -pedantic -Werror -Waddress-of-array-temporary"
13666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13677 if ac_fn_c_try_compile
"$LINENO"; then :
13678 tor_cv_cflags__Waddress_of_array_temporary
=yes
13680 tor_cv_cflags__Waddress_of_array_temporary
=no
13682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13683 if test x
!= x
; then
13685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13696 if ac_fn_c_try_link
"$LINENO"; then :
13697 tor_can_link__Waddress_of_array_temporary
=yes
13699 tor_can_link__Waddress_of_array_temporary
=no
13701 rm -f core conftest.err conftest.
$ac_objext \
13702 conftest
$ac_exeext conftest.
$ac_ext
13705 CFLAGS
="$tor_saved_CFLAGS"
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_array_temporary" >&5
13709 $as_echo "$tor_cv_cflags__Waddress_of_array_temporary" >&6; }
13710 if test x
$tor_cv_cflags__Waddress_of_array_temporary = xyes
; then
13711 CFLAGS
="$CFLAGS -Waddress-of-array-temporary"
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-temporary" >&5
13721 $as_echo_n "checking whether the compiler accepts -Waddress-of-temporary... " >&6; }
13722 if ${tor_cv_cflags__Waddress_of_temporary+:} false
; then :
13723 $as_echo_n "(cached) " >&6
13726 tor_saved_CFLAGS
="$CFLAGS"
13727 CFLAGS
="$CFLAGS -pedantic -Werror -Waddress-of-temporary"
13728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13739 if ac_fn_c_try_compile
"$LINENO"; then :
13740 tor_cv_cflags__Waddress_of_temporary
=yes
13742 tor_cv_cflags__Waddress_of_temporary
=no
13744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13745 if test x
!= x
; then
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13758 if ac_fn_c_try_link
"$LINENO"; then :
13759 tor_can_link__Waddress_of_temporary
=yes
13761 tor_can_link__Waddress_of_temporary
=no
13763 rm -f core conftest.err conftest.
$ac_objext \
13764 conftest
$ac_exeext conftest.
$ac_ext
13767 CFLAGS
="$tor_saved_CFLAGS"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_temporary" >&5
13771 $as_echo "$tor_cv_cflags__Waddress_of_temporary" >&6; }
13772 if test x
$tor_cv_cflags__Waddress_of_temporary = xyes
; then
13773 CFLAGS
="$CFLAGS -Waddress-of-temporary"
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wambiguous-macro" >&5
13783 $as_echo_n "checking whether the compiler accepts -Wambiguous-macro... " >&6; }
13784 if ${tor_cv_cflags__Wambiguous_macro+:} false
; then :
13785 $as_echo_n "(cached) " >&6
13788 tor_saved_CFLAGS
="$CFLAGS"
13789 CFLAGS
="$CFLAGS -pedantic -Werror -Wambiguous-macro"
13790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13801 if ac_fn_c_try_compile
"$LINENO"; then :
13802 tor_cv_cflags__Wambiguous_macro
=yes
13804 tor_cv_cflags__Wambiguous_macro
=no
13806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13807 if test x
!= x
; then
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13820 if ac_fn_c_try_link
"$LINENO"; then :
13821 tor_can_link__Wambiguous_macro
=yes
13823 tor_can_link__Wambiguous_macro
=no
13825 rm -f core conftest.err conftest.
$ac_objext \
13826 conftest
$ac_exeext conftest.
$ac_ext
13829 CFLAGS
="$tor_saved_CFLAGS"
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wambiguous_macro" >&5
13833 $as_echo "$tor_cv_cflags__Wambiguous_macro" >&6; }
13834 if test x
$tor_cv_cflags__Wambiguous_macro = xyes
; then
13835 CFLAGS
="$CFLAGS -Wambiguous-macro"
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wanonymous-pack-parens" >&5
13845 $as_echo_n "checking whether the compiler accepts -Wanonymous-pack-parens... " >&6; }
13846 if ${tor_cv_cflags__Wanonymous_pack_parens+:} false
; then :
13847 $as_echo_n "(cached) " >&6
13850 tor_saved_CFLAGS
="$CFLAGS"
13851 CFLAGS
="$CFLAGS -pedantic -Werror -Wanonymous-pack-parens"
13852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13863 if ac_fn_c_try_compile
"$LINENO"; then :
13864 tor_cv_cflags__Wanonymous_pack_parens
=yes
13866 tor_cv_cflags__Wanonymous_pack_parens
=no
13868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13869 if test x
!= x
; then
13871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13882 if ac_fn_c_try_link
"$LINENO"; then :
13883 tor_can_link__Wanonymous_pack_parens
=yes
13885 tor_can_link__Wanonymous_pack_parens
=no
13887 rm -f core conftest.err conftest.
$ac_objext \
13888 conftest
$ac_exeext conftest.
$ac_ext
13891 CFLAGS
="$tor_saved_CFLAGS"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wanonymous_pack_parens" >&5
13895 $as_echo "$tor_cv_cflags__Wanonymous_pack_parens" >&6; }
13896 if test x
$tor_cv_cflags__Wanonymous_pack_parens = xyes
; then
13897 CFLAGS
="$CFLAGS -Wanonymous-pack-parens"
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc" >&5
13907 $as_echo_n "checking whether the compiler accepts -Warc... " >&6; }
13908 if ${tor_cv_cflags__Warc+:} false
; then :
13909 $as_echo_n "(cached) " >&6
13912 tor_saved_CFLAGS
="$CFLAGS"
13913 CFLAGS
="$CFLAGS -pedantic -Werror -Warc"
13914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13925 if ac_fn_c_try_compile
"$LINENO"; then :
13926 tor_cv_cflags__Warc
=yes
13928 tor_cv_cflags__Warc
=no
13930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13931 if test x
!= x
; then
13933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13944 if ac_fn_c_try_link
"$LINENO"; then :
13945 tor_can_link__Warc
=yes
13947 tor_can_link__Warc
=no
13949 rm -f core conftest.err conftest.
$ac_objext \
13950 conftest
$ac_exeext conftest.
$ac_ext
13953 CFLAGS
="$tor_saved_CFLAGS"
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc" >&5
13957 $as_echo "$tor_cv_cflags__Warc" >&6; }
13958 if test x
$tor_cv_cflags__Warc = xyes
; then
13959 CFLAGS
="$CFLAGS -Warc"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-abi" >&5
13969 $as_echo_n "checking whether the compiler accepts -Warc-abi... " >&6; }
13970 if ${tor_cv_cflags__Warc_abi+:} false
; then :
13971 $as_echo_n "(cached) " >&6
13974 tor_saved_CFLAGS
="$CFLAGS"
13975 CFLAGS
="$CFLAGS -pedantic -Werror -Warc-abi"
13976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13987 if ac_fn_c_try_compile
"$LINENO"; then :
13988 tor_cv_cflags__Warc_abi
=yes
13990 tor_cv_cflags__Warc_abi
=no
13992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13993 if test x
!= x
; then
13995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
14006 if ac_fn_c_try_link
"$LINENO"; then :
14007 tor_can_link__Warc_abi
=yes
14009 tor_can_link__Warc_abi
=no
14011 rm -f core conftest.err conftest.
$ac_objext \
14012 conftest
$ac_exeext conftest.
$ac_ext
14015 CFLAGS
="$tor_saved_CFLAGS"
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_abi" >&5
14019 $as_echo "$tor_cv_cflags__Warc_abi" >&6; }
14020 if test x
$tor_cv_cflags__Warc_abi = xyes
; then
14021 CFLAGS
="$CFLAGS -Warc-abi"
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc" >&5
14031 $as_echo_n "checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc... " >&6; }
14032 if ${tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc+:} false
; then :
14033 $as_echo_n "(cached) " >&6
14036 tor_saved_CFLAGS
="$CFLAGS"
14037 CFLAGS
="$CFLAGS -pedantic -Werror -Warc-bridge-casts-disallowed-in-nonarc"
14038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14049 if ac_fn_c_try_compile
"$LINENO"; then :
14050 tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc
=yes
14052 tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc
=no
14054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14055 if test x
!= x
; then
14057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14068 if ac_fn_c_try_link
"$LINENO"; then :
14069 tor_can_link__Warc_bridge_casts_disallowed_in_nonarc
=yes
14071 tor_can_link__Warc_bridge_casts_disallowed_in_nonarc
=no
14073 rm -f core conftest.err conftest.
$ac_objext \
14074 conftest
$ac_exeext conftest.
$ac_ext
14077 CFLAGS
="$tor_saved_CFLAGS"
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc" >&5
14081 $as_echo "$tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc" >&6; }
14082 if test x
$tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc = xyes
; then
14083 CFLAGS
="$CFLAGS -Warc-bridge-casts-disallowed-in-nonarc"
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak" >&5
14093 $as_echo_n "checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak... " >&6; }
14094 if ${tor_cv_cflags__Warc_maybe_repeated_use_of_weak+:} false
; then :
14095 $as_echo_n "(cached) " >&6
14098 tor_saved_CFLAGS
="$CFLAGS"
14099 CFLAGS
="$CFLAGS -pedantic -Werror -Warc-maybe-repeated-use-of-weak"
14100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14111 if ac_fn_c_try_compile
"$LINENO"; then :
14112 tor_cv_cflags__Warc_maybe_repeated_use_of_weak
=yes
14114 tor_cv_cflags__Warc_maybe_repeated_use_of_weak
=no
14116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14117 if test x
!= x
; then
14119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14130 if ac_fn_c_try_link
"$LINENO"; then :
14131 tor_can_link__Warc_maybe_repeated_use_of_weak
=yes
14133 tor_can_link__Warc_maybe_repeated_use_of_weak
=no
14135 rm -f core conftest.err conftest.
$ac_objext \
14136 conftest
$ac_exeext conftest.
$ac_ext
14139 CFLAGS
="$tor_saved_CFLAGS"
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_maybe_repeated_use_of_weak" >&5
14143 $as_echo "$tor_cv_cflags__Warc_maybe_repeated_use_of_weak" >&6; }
14144 if test x
$tor_cv_cflags__Warc_maybe_repeated_use_of_weak = xyes
; then
14145 CFLAGS
="$CFLAGS -Warc-maybe-repeated-use-of-weak"
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-performSelector-leaks" >&5
14155 $as_echo_n "checking whether the compiler accepts -Warc-performSelector-leaks... " >&6; }
14156 if ${tor_cv_cflags__Warc_performSelector_leaks+:} false
; then :
14157 $as_echo_n "(cached) " >&6
14160 tor_saved_CFLAGS
="$CFLAGS"
14161 CFLAGS
="$CFLAGS -pedantic -Werror -Warc-performSelector-leaks"
14162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14173 if ac_fn_c_try_compile
"$LINENO"; then :
14174 tor_cv_cflags__Warc_performSelector_leaks
=yes
14176 tor_cv_cflags__Warc_performSelector_leaks
=no
14178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14179 if test x
!= x
; then
14181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14192 if ac_fn_c_try_link
"$LINENO"; then :
14193 tor_can_link__Warc_performSelector_leaks
=yes
14195 tor_can_link__Warc_performSelector_leaks
=no
14197 rm -f core conftest.err conftest.
$ac_objext \
14198 conftest
$ac_exeext conftest.
$ac_ext
14201 CFLAGS
="$tor_saved_CFLAGS"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_performSelector_leaks" >&5
14205 $as_echo "$tor_cv_cflags__Warc_performSelector_leaks" >&6; }
14206 if test x
$tor_cv_cflags__Warc_performSelector_leaks = xyes
; then
14207 CFLAGS
="$CFLAGS -Warc-performSelector-leaks"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-repeated-use-of-weak" >&5
14217 $as_echo_n "checking whether the compiler accepts -Warc-repeated-use-of-weak... " >&6; }
14218 if ${tor_cv_cflags__Warc_repeated_use_of_weak+:} false
; then :
14219 $as_echo_n "(cached) " >&6
14222 tor_saved_CFLAGS
="$CFLAGS"
14223 CFLAGS
="$CFLAGS -pedantic -Werror -Warc-repeated-use-of-weak"
14224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14235 if ac_fn_c_try_compile
"$LINENO"; then :
14236 tor_cv_cflags__Warc_repeated_use_of_weak
=yes
14238 tor_cv_cflags__Warc_repeated_use_of_weak
=no
14240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14241 if test x
!= x
; then
14243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14254 if ac_fn_c_try_link
"$LINENO"; then :
14255 tor_can_link__Warc_repeated_use_of_weak
=yes
14257 tor_can_link__Warc_repeated_use_of_weak
=no
14259 rm -f core conftest.err conftest.
$ac_objext \
14260 conftest
$ac_exeext conftest.
$ac_ext
14263 CFLAGS
="$tor_saved_CFLAGS"
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_repeated_use_of_weak" >&5
14267 $as_echo "$tor_cv_cflags__Warc_repeated_use_of_weak" >&6; }
14268 if test x
$tor_cv_cflags__Warc_repeated_use_of_weak = xyes
; then
14269 CFLAGS
="$CFLAGS -Warc-repeated-use-of-weak"
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds" >&5
14279 $as_echo_n "checking whether the compiler accepts -Warray-bounds... " >&6; }
14280 if ${tor_cv_cflags__Warray_bounds+:} false
; then :
14281 $as_echo_n "(cached) " >&6
14284 tor_saved_CFLAGS
="$CFLAGS"
14285 CFLAGS
="$CFLAGS -pedantic -Werror -Warray-bounds"
14286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14297 if ac_fn_c_try_compile
"$LINENO"; then :
14298 tor_cv_cflags__Warray_bounds
=yes
14300 tor_cv_cflags__Warray_bounds
=no
14302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14303 if test x
!= x
; then
14305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14316 if ac_fn_c_try_link
"$LINENO"; then :
14317 tor_can_link__Warray_bounds
=yes
14319 tor_can_link__Warray_bounds
=no
14321 rm -f core conftest.err conftest.
$ac_objext \
14322 conftest
$ac_exeext conftest.
$ac_ext
14325 CFLAGS
="$tor_saved_CFLAGS"
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds" >&5
14329 $as_echo "$tor_cv_cflags__Warray_bounds" >&6; }
14330 if test x
$tor_cv_cflags__Warray_bounds = xyes
; then
14331 CFLAGS
="$CFLAGS -Warray-bounds"
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds-pointer-arithmetic" >&5
14341 $as_echo_n "checking whether the compiler accepts -Warray-bounds-pointer-arithmetic... " >&6; }
14342 if ${tor_cv_cflags__Warray_bounds_pointer_arithmetic+:} false
; then :
14343 $as_echo_n "(cached) " >&6
14346 tor_saved_CFLAGS
="$CFLAGS"
14347 CFLAGS
="$CFLAGS -pedantic -Werror -Warray-bounds-pointer-arithmetic"
14348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14359 if ac_fn_c_try_compile
"$LINENO"; then :
14360 tor_cv_cflags__Warray_bounds_pointer_arithmetic
=yes
14362 tor_cv_cflags__Warray_bounds_pointer_arithmetic
=no
14364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14365 if test x
!= x
; then
14367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14378 if ac_fn_c_try_link
"$LINENO"; then :
14379 tor_can_link__Warray_bounds_pointer_arithmetic
=yes
14381 tor_can_link__Warray_bounds_pointer_arithmetic
=no
14383 rm -f core conftest.err conftest.
$ac_objext \
14384 conftest
$ac_exeext conftest.
$ac_ext
14387 CFLAGS
="$tor_saved_CFLAGS"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds_pointer_arithmetic" >&5
14391 $as_echo "$tor_cv_cflags__Warray_bounds_pointer_arithmetic" >&6; }
14392 if test x
$tor_cv_cflags__Warray_bounds_pointer_arithmetic = xyes
; then
14393 CFLAGS
="$CFLAGS -Warray-bounds-pointer-arithmetic"
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm" >&5
14403 $as_echo_n "checking whether the compiler accepts -Wasm... " >&6; }
14404 if ${tor_cv_cflags__Wasm+:} false
; then :
14405 $as_echo_n "(cached) " >&6
14408 tor_saved_CFLAGS
="$CFLAGS"
14409 CFLAGS
="$CFLAGS -pedantic -Werror -Wasm"
14410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14421 if ac_fn_c_try_compile
"$LINENO"; then :
14422 tor_cv_cflags__Wasm
=yes
14424 tor_cv_cflags__Wasm
=no
14426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14427 if test x
!= x
; then
14429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14440 if ac_fn_c_try_link
"$LINENO"; then :
14441 tor_can_link__Wasm
=yes
14443 tor_can_link__Wasm
=no
14445 rm -f core conftest.err conftest.
$ac_objext \
14446 conftest
$ac_exeext conftest.
$ac_ext
14449 CFLAGS
="$tor_saved_CFLAGS"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm" >&5
14453 $as_echo "$tor_cv_cflags__Wasm" >&6; }
14454 if test x
$tor_cv_cflags__Wasm = xyes
; then
14455 CFLAGS
="$CFLAGS -Wasm"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm-operand-widths" >&5
14465 $as_echo_n "checking whether the compiler accepts -Wasm-operand-widths... " >&6; }
14466 if ${tor_cv_cflags__Wasm_operand_widths+:} false
; then :
14467 $as_echo_n "(cached) " >&6
14470 tor_saved_CFLAGS
="$CFLAGS"
14471 CFLAGS
="$CFLAGS -pedantic -Werror -Wasm-operand-widths"
14472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14483 if ac_fn_c_try_compile
"$LINENO"; then :
14484 tor_cv_cflags__Wasm_operand_widths
=yes
14486 tor_cv_cflags__Wasm_operand_widths
=no
14488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14489 if test x
!= x
; then
14491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14502 if ac_fn_c_try_link
"$LINENO"; then :
14503 tor_can_link__Wasm_operand_widths
=yes
14505 tor_can_link__Wasm_operand_widths
=no
14507 rm -f core conftest.err conftest.
$ac_objext \
14508 conftest
$ac_exeext conftest.
$ac_ext
14511 CFLAGS
="$tor_saved_CFLAGS"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm_operand_widths" >&5
14515 $as_echo "$tor_cv_cflags__Wasm_operand_widths" >&6; }
14516 if test x
$tor_cv_cflags__Wasm_operand_widths = xyes
; then
14517 CFLAGS
="$CFLAGS -Wasm-operand-widths"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-properties" >&5
14527 $as_echo_n "checking whether the compiler accepts -Watomic-properties... " >&6; }
14528 if ${tor_cv_cflags__Watomic_properties+:} false
; then :
14529 $as_echo_n "(cached) " >&6
14532 tor_saved_CFLAGS
="$CFLAGS"
14533 CFLAGS
="$CFLAGS -pedantic -Werror -Watomic-properties"
14534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14545 if ac_fn_c_try_compile
"$LINENO"; then :
14546 tor_cv_cflags__Watomic_properties
=yes
14548 tor_cv_cflags__Watomic_properties
=no
14550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14551 if test x
!= x
; then
14553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14564 if ac_fn_c_try_link
"$LINENO"; then :
14565 tor_can_link__Watomic_properties
=yes
14567 tor_can_link__Watomic_properties
=no
14569 rm -f core conftest.err conftest.
$ac_objext \
14570 conftest
$ac_exeext conftest.
$ac_ext
14573 CFLAGS
="$tor_saved_CFLAGS"
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_properties" >&5
14577 $as_echo "$tor_cv_cflags__Watomic_properties" >&6; }
14578 if test x
$tor_cv_cflags__Watomic_properties = xyes
; then
14579 CFLAGS
="$CFLAGS -Watomic-properties"
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-property-with-user-defined-accessor" >&5
14589 $as_echo_n "checking whether the compiler accepts -Watomic-property-with-user-defined-accessor... " >&6; }
14590 if ${tor_cv_cflags__Watomic_property_with_user_defined_accessor+:} false
; then :
14591 $as_echo_n "(cached) " >&6
14594 tor_saved_CFLAGS
="$CFLAGS"
14595 CFLAGS
="$CFLAGS -pedantic -Werror -Watomic-property-with-user-defined-accessor"
14596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14607 if ac_fn_c_try_compile
"$LINENO"; then :
14608 tor_cv_cflags__Watomic_property_with_user_defined_accessor
=yes
14610 tor_cv_cflags__Watomic_property_with_user_defined_accessor
=no
14612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14613 if test x
!= x
; then
14615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14626 if ac_fn_c_try_link
"$LINENO"; then :
14627 tor_can_link__Watomic_property_with_user_defined_accessor
=yes
14629 tor_can_link__Watomic_property_with_user_defined_accessor
=no
14631 rm -f core conftest.err conftest.
$ac_objext \
14632 conftest
$ac_exeext conftest.
$ac_ext
14635 CFLAGS
="$tor_saved_CFLAGS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_property_with_user_defined_accessor" >&5
14639 $as_echo "$tor_cv_cflags__Watomic_property_with_user_defined_accessor" >&6; }
14640 if test x
$tor_cv_cflags__Watomic_property_with_user_defined_accessor = xyes
; then
14641 CFLAGS
="$CFLAGS -Watomic-property-with-user-defined-accessor"
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-import" >&5
14651 $as_echo_n "checking whether the compiler accepts -Wauto-import... " >&6; }
14652 if ${tor_cv_cflags__Wauto_import+:} false
; then :
14653 $as_echo_n "(cached) " >&6
14656 tor_saved_CFLAGS
="$CFLAGS"
14657 CFLAGS
="$CFLAGS -pedantic -Werror -Wauto-import"
14658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14669 if ac_fn_c_try_compile
"$LINENO"; then :
14670 tor_cv_cflags__Wauto_import
=yes
14672 tor_cv_cflags__Wauto_import
=no
14674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14675 if test x
!= x
; then
14677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14688 if ac_fn_c_try_link
"$LINENO"; then :
14689 tor_can_link__Wauto_import
=yes
14691 tor_can_link__Wauto_import
=no
14693 rm -f core conftest.err conftest.
$ac_objext \
14694 conftest
$ac_exeext conftest.
$ac_ext
14697 CFLAGS
="$tor_saved_CFLAGS"
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_import" >&5
14701 $as_echo "$tor_cv_cflags__Wauto_import" >&6; }
14702 if test x
$tor_cv_cflags__Wauto_import = xyes
; then
14703 CFLAGS
="$CFLAGS -Wauto-import"
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-storage-class" >&5
14713 $as_echo_n "checking whether the compiler accepts -Wauto-storage-class... " >&6; }
14714 if ${tor_cv_cflags__Wauto_storage_class+:} false
; then :
14715 $as_echo_n "(cached) " >&6
14718 tor_saved_CFLAGS
="$CFLAGS"
14719 CFLAGS
="$CFLAGS -pedantic -Werror -Wauto-storage-class"
14720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14731 if ac_fn_c_try_compile
"$LINENO"; then :
14732 tor_cv_cflags__Wauto_storage_class
=yes
14734 tor_cv_cflags__Wauto_storage_class
=no
14736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14737 if test x
!= x
; then
14739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14750 if ac_fn_c_try_link
"$LINENO"; then :
14751 tor_can_link__Wauto_storage_class
=yes
14753 tor_can_link__Wauto_storage_class
=no
14755 rm -f core conftest.err conftest.
$ac_objext \
14756 conftest
$ac_exeext conftest.
$ac_ext
14759 CFLAGS
="$tor_saved_CFLAGS"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_storage_class" >&5
14763 $as_echo "$tor_cv_cflags__Wauto_storage_class" >&6; }
14764 if test x
$tor_cv_cflags__Wauto_storage_class = xyes
; then
14765 CFLAGS
="$CFLAGS -Wauto-storage-class"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-var-id" >&5
14775 $as_echo_n "checking whether the compiler accepts -Wauto-var-id... " >&6; }
14776 if ${tor_cv_cflags__Wauto_var_id+:} false
; then :
14777 $as_echo_n "(cached) " >&6
14780 tor_saved_CFLAGS
="$CFLAGS"
14781 CFLAGS
="$CFLAGS -pedantic -Werror -Wauto-var-id"
14782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14793 if ac_fn_c_try_compile
"$LINENO"; then :
14794 tor_cv_cflags__Wauto_var_id
=yes
14796 tor_cv_cflags__Wauto_var_id
=no
14798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14799 if test x
!= x
; then
14801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14812 if ac_fn_c_try_link
"$LINENO"; then :
14813 tor_can_link__Wauto_var_id
=yes
14815 tor_can_link__Wauto_var_id
=no
14817 rm -f core conftest.err conftest.
$ac_objext \
14818 conftest
$ac_exeext conftest.
$ac_ext
14821 CFLAGS
="$tor_saved_CFLAGS"
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_var_id" >&5
14825 $as_echo "$tor_cv_cflags__Wauto_var_id" >&6; }
14826 if test x
$tor_cv_cflags__Wauto_var_id = xyes
; then
14827 CFLAGS
="$CFLAGS -Wauto-var-id"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wavailability" >&5
14837 $as_echo_n "checking whether the compiler accepts -Wavailability... " >&6; }
14838 if ${tor_cv_cflags__Wavailability+:} false
; then :
14839 $as_echo_n "(cached) " >&6
14842 tor_saved_CFLAGS
="$CFLAGS"
14843 CFLAGS
="$CFLAGS -pedantic -Werror -Wavailability"
14844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14855 if ac_fn_c_try_compile
"$LINENO"; then :
14856 tor_cv_cflags__Wavailability
=yes
14858 tor_cv_cflags__Wavailability
=no
14860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14861 if test x
!= x
; then
14863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14874 if ac_fn_c_try_link
"$LINENO"; then :
14875 tor_can_link__Wavailability
=yes
14877 tor_can_link__Wavailability
=no
14879 rm -f core conftest.err conftest.
$ac_objext \
14880 conftest
$ac_exeext conftest.
$ac_ext
14883 CFLAGS
="$tor_saved_CFLAGS"
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wavailability" >&5
14887 $as_echo "$tor_cv_cflags__Wavailability" >&6; }
14888 if test x
$tor_cv_cflags__Wavailability = xyes
; then
14889 CFLAGS
="$CFLAGS -Wavailability"
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbackslash-newline-escape" >&5
14899 $as_echo_n "checking whether the compiler accepts -Wbackslash-newline-escape... " >&6; }
14900 if ${tor_cv_cflags__Wbackslash_newline_escape+:} false
; then :
14901 $as_echo_n "(cached) " >&6
14904 tor_saved_CFLAGS
="$CFLAGS"
14905 CFLAGS
="$CFLAGS -pedantic -Werror -Wbackslash-newline-escape"
14906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14917 if ac_fn_c_try_compile
"$LINENO"; then :
14918 tor_cv_cflags__Wbackslash_newline_escape
=yes
14920 tor_cv_cflags__Wbackslash_newline_escape
=no
14922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14923 if test x
!= x
; then
14925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14936 if ac_fn_c_try_link
"$LINENO"; then :
14937 tor_can_link__Wbackslash_newline_escape
=yes
14939 tor_can_link__Wbackslash_newline_escape
=no
14941 rm -f core conftest.err conftest.
$ac_objext \
14942 conftest
$ac_exeext conftest.
$ac_ext
14945 CFLAGS
="$tor_saved_CFLAGS"
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbackslash_newline_escape" >&5
14949 $as_echo "$tor_cv_cflags__Wbackslash_newline_escape" >&6; }
14950 if test x
$tor_cv_cflags__Wbackslash_newline_escape = xyes
; then
14951 CFLAGS
="$CFLAGS -Wbackslash-newline-escape"
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbad-array-new-length" >&5
14961 $as_echo_n "checking whether the compiler accepts -Wbad-array-new-length... " >&6; }
14962 if ${tor_cv_cflags__Wbad_array_new_length+:} false
; then :
14963 $as_echo_n "(cached) " >&6
14966 tor_saved_CFLAGS
="$CFLAGS"
14967 CFLAGS
="$CFLAGS -pedantic -Werror -Wbad-array-new-length"
14968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14979 if ac_fn_c_try_compile
"$LINENO"; then :
14980 tor_cv_cflags__Wbad_array_new_length
=yes
14982 tor_cv_cflags__Wbad_array_new_length
=no
14984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14985 if test x
!= x
; then
14987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14998 if ac_fn_c_try_link
"$LINENO"; then :
14999 tor_can_link__Wbad_array_new_length
=yes
15001 tor_can_link__Wbad_array_new_length
=no
15003 rm -f core conftest.err conftest.
$ac_objext \
15004 conftest
$ac_exeext conftest.
$ac_ext
15007 CFLAGS
="$tor_saved_CFLAGS"
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbad_array_new_length" >&5
15011 $as_echo "$tor_cv_cflags__Wbad_array_new_length" >&6; }
15012 if test x
$tor_cv_cflags__Wbad_array_new_length = xyes
; then
15013 CFLAGS
="$CFLAGS -Wbad-array-new-length"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbind-to-temporary-copy" >&5
15023 $as_echo_n "checking whether the compiler accepts -Wbind-to-temporary-copy... " >&6; }
15024 if ${tor_cv_cflags__Wbind_to_temporary_copy+:} false
; then :
15025 $as_echo_n "(cached) " >&6
15028 tor_saved_CFLAGS
="$CFLAGS"
15029 CFLAGS
="$CFLAGS -pedantic -Werror -Wbind-to-temporary-copy"
15030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15041 if ac_fn_c_try_compile
"$LINENO"; then :
15042 tor_cv_cflags__Wbind_to_temporary_copy
=yes
15044 tor_cv_cflags__Wbind_to_temporary_copy
=no
15046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15047 if test x
!= x
; then
15049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15060 if ac_fn_c_try_link
"$LINENO"; then :
15061 tor_can_link__Wbind_to_temporary_copy
=yes
15063 tor_can_link__Wbind_to_temporary_copy
=no
15065 rm -f core conftest.err conftest.
$ac_objext \
15066 conftest
$ac_exeext conftest.
$ac_ext
15069 CFLAGS
="$tor_saved_CFLAGS"
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbind_to_temporary_copy" >&5
15073 $as_echo "$tor_cv_cflags__Wbind_to_temporary_copy" >&6; }
15074 if test x
$tor_cv_cflags__Wbind_to_temporary_copy = xyes
; then
15075 CFLAGS
="$CFLAGS -Wbind-to-temporary-copy"
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbitfield-constant-conversion" >&5
15085 $as_echo_n "checking whether the compiler accepts -Wbitfield-constant-conversion... " >&6; }
15086 if ${tor_cv_cflags__Wbitfield_constant_conversion+:} false
; then :
15087 $as_echo_n "(cached) " >&6
15090 tor_saved_CFLAGS
="$CFLAGS"
15091 CFLAGS
="$CFLAGS -pedantic -Werror -Wbitfield-constant-conversion"
15092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15103 if ac_fn_c_try_compile
"$LINENO"; then :
15104 tor_cv_cflags__Wbitfield_constant_conversion
=yes
15106 tor_cv_cflags__Wbitfield_constant_conversion
=no
15108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15109 if test x
!= x
; then
15111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15122 if ac_fn_c_try_link
"$LINENO"; then :
15123 tor_can_link__Wbitfield_constant_conversion
=yes
15125 tor_can_link__Wbitfield_constant_conversion
=no
15127 rm -f core conftest.err conftest.
$ac_objext \
15128 conftest
$ac_exeext conftest.
$ac_ext
15131 CFLAGS
="$tor_saved_CFLAGS"
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbitfield_constant_conversion" >&5
15135 $as_echo "$tor_cv_cflags__Wbitfield_constant_conversion" >&6; }
15136 if test x
$tor_cv_cflags__Wbitfield_constant_conversion = xyes
; then
15137 CFLAGS
="$CFLAGS -Wbitfield-constant-conversion"
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversion" >&5
15147 $as_echo_n "checking whether the compiler accepts -Wbool-conversion... " >&6; }
15148 if ${tor_cv_cflags__Wbool_conversion+:} false
; then :
15149 $as_echo_n "(cached) " >&6
15152 tor_saved_CFLAGS
="$CFLAGS"
15153 CFLAGS
="$CFLAGS -pedantic -Werror -Wbool-conversion"
15154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15165 if ac_fn_c_try_compile
"$LINENO"; then :
15166 tor_cv_cflags__Wbool_conversion
=yes
15168 tor_cv_cflags__Wbool_conversion
=no
15170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15171 if test x
!= x
; then
15173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15184 if ac_fn_c_try_link
"$LINENO"; then :
15185 tor_can_link__Wbool_conversion
=yes
15187 tor_can_link__Wbool_conversion
=no
15189 rm -f core conftest.err conftest.
$ac_objext \
15190 conftest
$ac_exeext conftest.
$ac_ext
15193 CFLAGS
="$tor_saved_CFLAGS"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversion" >&5
15197 $as_echo "$tor_cv_cflags__Wbool_conversion" >&6; }
15198 if test x
$tor_cv_cflags__Wbool_conversion = xyes
; then
15199 CFLAGS
="$CFLAGS -Wbool-conversion"
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversions" >&5
15209 $as_echo_n "checking whether the compiler accepts -Wbool-conversions... " >&6; }
15210 if ${tor_cv_cflags__Wbool_conversions+:} false
; then :
15211 $as_echo_n "(cached) " >&6
15214 tor_saved_CFLAGS
="$CFLAGS"
15215 CFLAGS
="$CFLAGS -pedantic -Werror -Wbool-conversions"
15216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15227 if ac_fn_c_try_compile
"$LINENO"; then :
15228 tor_cv_cflags__Wbool_conversions
=yes
15230 tor_cv_cflags__Wbool_conversions
=no
15232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15233 if test x
!= x
; then
15235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15246 if ac_fn_c_try_link
"$LINENO"; then :
15247 tor_can_link__Wbool_conversions
=yes
15249 tor_can_link__Wbool_conversions
=no
15251 rm -f core conftest.err conftest.
$ac_objext \
15252 conftest
$ac_exeext conftest.
$ac_ext
15255 CFLAGS
="$tor_saved_CFLAGS"
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversions" >&5
15259 $as_echo "$tor_cv_cflags__Wbool_conversions" >&6; }
15260 if test x
$tor_cv_cflags__Wbool_conversions = xyes
; then
15261 CFLAGS
="$CFLAGS -Wbool-conversions"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbuiltin-requires-header" >&5
15271 $as_echo_n "checking whether the compiler accepts -Wbuiltin-requires-header... " >&6; }
15272 if ${tor_cv_cflags__Wbuiltin_requires_header+:} false
; then :
15273 $as_echo_n "(cached) " >&6
15276 tor_saved_CFLAGS
="$CFLAGS"
15277 CFLAGS
="$CFLAGS -pedantic -Werror -Wbuiltin-requires-header"
15278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15289 if ac_fn_c_try_compile
"$LINENO"; then :
15290 tor_cv_cflags__Wbuiltin_requires_header
=yes
15292 tor_cv_cflags__Wbuiltin_requires_header
=no
15294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15295 if test x
!= x
; then
15297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15308 if ac_fn_c_try_link
"$LINENO"; then :
15309 tor_can_link__Wbuiltin_requires_header
=yes
15311 tor_can_link__Wbuiltin_requires_header
=no
15313 rm -f core conftest.err conftest.
$ac_objext \
15314 conftest
$ac_exeext conftest.
$ac_ext
15317 CFLAGS
="$tor_saved_CFLAGS"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbuiltin_requires_header" >&5
15321 $as_echo "$tor_cv_cflags__Wbuiltin_requires_header" >&6; }
15322 if test x
$tor_cv_cflags__Wbuiltin_requires_header = xyes
; then
15323 CFLAGS
="$CFLAGS -Wbuiltin-requires-header"
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wchar-align" >&5
15333 $as_echo_n "checking whether the compiler accepts -Wchar-align... " >&6; }
15334 if ${tor_cv_cflags__Wchar_align+:} false
; then :
15335 $as_echo_n "(cached) " >&6
15338 tor_saved_CFLAGS
="$CFLAGS"
15339 CFLAGS
="$CFLAGS -pedantic -Werror -Wchar-align"
15340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15351 if ac_fn_c_try_compile
"$LINENO"; then :
15352 tor_cv_cflags__Wchar_align
=yes
15354 tor_cv_cflags__Wchar_align
=no
15356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15357 if test x
!= x
; then
15359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15370 if ac_fn_c_try_link
"$LINENO"; then :
15371 tor_can_link__Wchar_align
=yes
15373 tor_can_link__Wchar_align
=no
15375 rm -f core conftest.err conftest.
$ac_objext \
15376 conftest
$ac_exeext conftest.
$ac_ext
15379 CFLAGS
="$tor_saved_CFLAGS"
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wchar_align" >&5
15383 $as_echo "$tor_cv_cflags__Wchar_align" >&6; }
15384 if test x
$tor_cv_cflags__Wchar_align = xyes
; then
15385 CFLAGS
="$CFLAGS -Wchar-align"
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcompare-distinct-pointer-types" >&5
15395 $as_echo_n "checking whether the compiler accepts -Wcompare-distinct-pointer-types... " >&6; }
15396 if ${tor_cv_cflags__Wcompare_distinct_pointer_types+:} false
; then :
15397 $as_echo_n "(cached) " >&6
15400 tor_saved_CFLAGS
="$CFLAGS"
15401 CFLAGS
="$CFLAGS -pedantic -Werror -Wcompare-distinct-pointer-types"
15402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15413 if ac_fn_c_try_compile
"$LINENO"; then :
15414 tor_cv_cflags__Wcompare_distinct_pointer_types
=yes
15416 tor_cv_cflags__Wcompare_distinct_pointer_types
=no
15418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15419 if test x
!= x
; then
15421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15432 if ac_fn_c_try_link
"$LINENO"; then :
15433 tor_can_link__Wcompare_distinct_pointer_types
=yes
15435 tor_can_link__Wcompare_distinct_pointer_types
=no
15437 rm -f core conftest.err conftest.
$ac_objext \
15438 conftest
$ac_exeext conftest.
$ac_ext
15441 CFLAGS
="$tor_saved_CFLAGS"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcompare_distinct_pointer_types" >&5
15445 $as_echo "$tor_cv_cflags__Wcompare_distinct_pointer_types" >&6; }
15446 if test x
$tor_cv_cflags__Wcompare_distinct_pointer_types = xyes
; then
15447 CFLAGS
="$CFLAGS -Wcompare-distinct-pointer-types"
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcomplex-component-init" >&5
15457 $as_echo_n "checking whether the compiler accepts -Wcomplex-component-init... " >&6; }
15458 if ${tor_cv_cflags__Wcomplex_component_init+:} false
; then :
15459 $as_echo_n "(cached) " >&6
15462 tor_saved_CFLAGS
="$CFLAGS"
15463 CFLAGS
="$CFLAGS -pedantic -Werror -Wcomplex-component-init"
15464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15475 if ac_fn_c_try_compile
"$LINENO"; then :
15476 tor_cv_cflags__Wcomplex_component_init
=yes
15478 tor_cv_cflags__Wcomplex_component_init
=no
15480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15481 if test x
!= x
; then
15483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15494 if ac_fn_c_try_link
"$LINENO"; then :
15495 tor_can_link__Wcomplex_component_init
=yes
15497 tor_can_link__Wcomplex_component_init
=no
15499 rm -f core conftest.err conftest.
$ac_objext \
15500 conftest
$ac_exeext conftest.
$ac_ext
15503 CFLAGS
="$tor_saved_CFLAGS"
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcomplex_component_init" >&5
15507 $as_echo "$tor_cv_cflags__Wcomplex_component_init" >&6; }
15508 if test x
$tor_cv_cflags__Wcomplex_component_init = xyes
; then
15509 CFLAGS
="$CFLAGS -Wcomplex-component-init"
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconditional-type-mismatch" >&5
15519 $as_echo_n "checking whether the compiler accepts -Wconditional-type-mismatch... " >&6; }
15520 if ${tor_cv_cflags__Wconditional_type_mismatch+:} false
; then :
15521 $as_echo_n "(cached) " >&6
15524 tor_saved_CFLAGS
="$CFLAGS"
15525 CFLAGS
="$CFLAGS -pedantic -Werror -Wconditional-type-mismatch"
15526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15537 if ac_fn_c_try_compile
"$LINENO"; then :
15538 tor_cv_cflags__Wconditional_type_mismatch
=yes
15540 tor_cv_cflags__Wconditional_type_mismatch
=no
15542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15543 if test x
!= x
; then
15545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15556 if ac_fn_c_try_link
"$LINENO"; then :
15557 tor_can_link__Wconditional_type_mismatch
=yes
15559 tor_can_link__Wconditional_type_mismatch
=no
15561 rm -f core conftest.err conftest.
$ac_objext \
15562 conftest
$ac_exeext conftest.
$ac_ext
15565 CFLAGS
="$tor_saved_CFLAGS"
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconditional_type_mismatch" >&5
15569 $as_echo "$tor_cv_cflags__Wconditional_type_mismatch" >&6; }
15570 if test x
$tor_cv_cflags__Wconditional_type_mismatch = xyes
; then
15571 CFLAGS
="$CFLAGS -Wconditional-type-mismatch"
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconfig-macros" >&5
15581 $as_echo_n "checking whether the compiler accepts -Wconfig-macros... " >&6; }
15582 if ${tor_cv_cflags__Wconfig_macros+:} false
; then :
15583 $as_echo_n "(cached) " >&6
15586 tor_saved_CFLAGS
="$CFLAGS"
15587 CFLAGS
="$CFLAGS -pedantic -Werror -Wconfig-macros"
15588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15599 if ac_fn_c_try_compile
"$LINENO"; then :
15600 tor_cv_cflags__Wconfig_macros
=yes
15602 tor_cv_cflags__Wconfig_macros
=no
15604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15605 if test x
!= x
; then
15607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15608 /* end confdefs.h. */
15618 if ac_fn_c_try_link
"$LINENO"; then :
15619 tor_can_link__Wconfig_macros
=yes
15621 tor_can_link__Wconfig_macros
=no
15623 rm -f core conftest.err conftest.
$ac_objext \
15624 conftest
$ac_exeext conftest.
$ac_ext
15627 CFLAGS
="$tor_saved_CFLAGS"
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconfig_macros" >&5
15631 $as_echo "$tor_cv_cflags__Wconfig_macros" >&6; }
15632 if test x
$tor_cv_cflags__Wconfig_macros = xyes
; then
15633 CFLAGS
="$CFLAGS -Wconfig-macros"
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-conversion" >&5
15643 $as_echo_n "checking whether the compiler accepts -Wconstant-conversion... " >&6; }
15644 if ${tor_cv_cflags__Wconstant_conversion+:} false
; then :
15645 $as_echo_n "(cached) " >&6
15648 tor_saved_CFLAGS
="$CFLAGS"
15649 CFLAGS
="$CFLAGS -pedantic -Werror -Wconstant-conversion"
15650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15661 if ac_fn_c_try_compile
"$LINENO"; then :
15662 tor_cv_cflags__Wconstant_conversion
=yes
15664 tor_cv_cflags__Wconstant_conversion
=no
15666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15667 if test x
!= x
; then
15669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15680 if ac_fn_c_try_link
"$LINENO"; then :
15681 tor_can_link__Wconstant_conversion
=yes
15683 tor_can_link__Wconstant_conversion
=no
15685 rm -f core conftest.err conftest.
$ac_objext \
15686 conftest
$ac_exeext conftest.
$ac_ext
15689 CFLAGS
="$tor_saved_CFLAGS"
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_conversion" >&5
15693 $as_echo "$tor_cv_cflags__Wconstant_conversion" >&6; }
15694 if test x
$tor_cv_cflags__Wconstant_conversion = xyes
; then
15695 CFLAGS
="$CFLAGS -Wconstant-conversion"
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-logical-operand" >&5
15705 $as_echo_n "checking whether the compiler accepts -Wconstant-logical-operand... " >&6; }
15706 if ${tor_cv_cflags__Wconstant_logical_operand+:} false
; then :
15707 $as_echo_n "(cached) " >&6
15710 tor_saved_CFLAGS
="$CFLAGS"
15711 CFLAGS
="$CFLAGS -pedantic -Werror -Wconstant-logical-operand"
15712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15723 if ac_fn_c_try_compile
"$LINENO"; then :
15724 tor_cv_cflags__Wconstant_logical_operand
=yes
15726 tor_cv_cflags__Wconstant_logical_operand
=no
15728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15729 if test x
!= x
; then
15731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15732 /* end confdefs.h. */
15742 if ac_fn_c_try_link
"$LINENO"; then :
15743 tor_can_link__Wconstant_logical_operand
=yes
15745 tor_can_link__Wconstant_logical_operand
=no
15747 rm -f core conftest.err conftest.
$ac_objext \
15748 conftest
$ac_exeext conftest.
$ac_ext
15751 CFLAGS
="$tor_saved_CFLAGS"
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_logical_operand" >&5
15755 $as_echo "$tor_cv_cflags__Wconstant_logical_operand" >&6; }
15756 if test x
$tor_cv_cflags__Wconstant_logical_operand = xyes
; then
15757 CFLAGS
="$CFLAGS -Wconstant-logical-operand"
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstexpr-not-const" >&5
15767 $as_echo_n "checking whether the compiler accepts -Wconstexpr-not-const... " >&6; }
15768 if ${tor_cv_cflags__Wconstexpr_not_const+:} false
; then :
15769 $as_echo_n "(cached) " >&6
15772 tor_saved_CFLAGS
="$CFLAGS"
15773 CFLAGS
="$CFLAGS -pedantic -Werror -Wconstexpr-not-const"
15774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h. */
15785 if ac_fn_c_try_compile
"$LINENO"; then :
15786 tor_cv_cflags__Wconstexpr_not_const
=yes
15788 tor_cv_cflags__Wconstexpr_not_const
=no
15790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15791 if test x
!= x
; then
15793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15804 if ac_fn_c_try_link
"$LINENO"; then :
15805 tor_can_link__Wconstexpr_not_const
=yes
15807 tor_can_link__Wconstexpr_not_const
=no
15809 rm -f core conftest.err conftest.
$ac_objext \
15810 conftest
$ac_exeext conftest.
$ac_ext
15813 CFLAGS
="$tor_saved_CFLAGS"
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstexpr_not_const" >&5
15817 $as_echo "$tor_cv_cflags__Wconstexpr_not_const" >&6; }
15818 if test x
$tor_cv_cflags__Wconstexpr_not_const = xyes
; then
15819 CFLAGS
="$CFLAGS -Wconstexpr-not-const"
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcustom-atomic-properties" >&5
15829 $as_echo_n "checking whether the compiler accepts -Wcustom-atomic-properties... " >&6; }
15830 if ${tor_cv_cflags__Wcustom_atomic_properties+:} false
; then :
15831 $as_echo_n "(cached) " >&6
15834 tor_saved_CFLAGS
="$CFLAGS"
15835 CFLAGS
="$CFLAGS -pedantic -Werror -Wcustom-atomic-properties"
15836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15847 if ac_fn_c_try_compile
"$LINENO"; then :
15848 tor_cv_cflags__Wcustom_atomic_properties
=yes
15850 tor_cv_cflags__Wcustom_atomic_properties
=no
15852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15853 if test x
!= x
; then
15855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15866 if ac_fn_c_try_link
"$LINENO"; then :
15867 tor_can_link__Wcustom_atomic_properties
=yes
15869 tor_can_link__Wcustom_atomic_properties
=no
15871 rm -f core conftest.err conftest.
$ac_objext \
15872 conftest
$ac_exeext conftest.
$ac_ext
15875 CFLAGS
="$tor_saved_CFLAGS"
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcustom_atomic_properties" >&5
15879 $as_echo "$tor_cv_cflags__Wcustom_atomic_properties" >&6; }
15880 if test x
$tor_cv_cflags__Wcustom_atomic_properties = xyes
; then
15881 CFLAGS
="$CFLAGS -Wcustom-atomic-properties"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-field" >&5
15891 $as_echo_n "checking whether the compiler accepts -Wdangling-field... " >&6; }
15892 if ${tor_cv_cflags__Wdangling_field+:} false
; then :
15893 $as_echo_n "(cached) " >&6
15896 tor_saved_CFLAGS
="$CFLAGS"
15897 CFLAGS
="$CFLAGS -pedantic -Werror -Wdangling-field"
15898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15909 if ac_fn_c_try_compile
"$LINENO"; then :
15910 tor_cv_cflags__Wdangling_field
=yes
15912 tor_cv_cflags__Wdangling_field
=no
15914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15915 if test x
!= x
; then
15917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15928 if ac_fn_c_try_link
"$LINENO"; then :
15929 tor_can_link__Wdangling_field
=yes
15931 tor_can_link__Wdangling_field
=no
15933 rm -f core conftest.err conftest.
$ac_objext \
15934 conftest
$ac_exeext conftest.
$ac_ext
15937 CFLAGS
="$tor_saved_CFLAGS"
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_field" >&5
15941 $as_echo "$tor_cv_cflags__Wdangling_field" >&6; }
15942 if test x
$tor_cv_cflags__Wdangling_field = xyes
; then
15943 CFLAGS
="$CFLAGS -Wdangling-field"
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-initializer-list" >&5
15953 $as_echo_n "checking whether the compiler accepts -Wdangling-initializer-list... " >&6; }
15954 if ${tor_cv_cflags__Wdangling_initializer_list+:} false
; then :
15955 $as_echo_n "(cached) " >&6
15958 tor_saved_CFLAGS
="$CFLAGS"
15959 CFLAGS
="$CFLAGS -pedantic -Werror -Wdangling-initializer-list"
15960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15971 if ac_fn_c_try_compile
"$LINENO"; then :
15972 tor_cv_cflags__Wdangling_initializer_list
=yes
15974 tor_cv_cflags__Wdangling_initializer_list
=no
15976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15977 if test x
!= x
; then
15979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15990 if ac_fn_c_try_link
"$LINENO"; then :
15991 tor_can_link__Wdangling_initializer_list
=yes
15993 tor_can_link__Wdangling_initializer_list
=no
15995 rm -f core conftest.err conftest.
$ac_objext \
15996 conftest
$ac_exeext conftest.
$ac_ext
15999 CFLAGS
="$tor_saved_CFLAGS"
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_initializer_list" >&5
16003 $as_echo "$tor_cv_cflags__Wdangling_initializer_list" >&6; }
16004 if test x
$tor_cv_cflags__Wdangling_initializer_list = xyes
; then
16005 CFLAGS
="$CFLAGS -Wdangling-initializer-list"
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdate-time" >&5
16015 $as_echo_n "checking whether the compiler accepts -Wdate-time... " >&6; }
16016 if ${tor_cv_cflags__Wdate_time+:} false
; then :
16017 $as_echo_n "(cached) " >&6
16020 tor_saved_CFLAGS
="$CFLAGS"
16021 CFLAGS
="$CFLAGS -pedantic -Werror -Wdate-time"
16022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16033 if ac_fn_c_try_compile
"$LINENO"; then :
16034 tor_cv_cflags__Wdate_time
=yes
16036 tor_cv_cflags__Wdate_time
=no
16038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16039 if test x
!= x
; then
16041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16052 if ac_fn_c_try_link
"$LINENO"; then :
16053 tor_can_link__Wdate_time
=yes
16055 tor_can_link__Wdate_time
=no
16057 rm -f core conftest.err conftest.
$ac_objext \
16058 conftest
$ac_exeext conftest.
$ac_ext
16061 CFLAGS
="$tor_saved_CFLAGS"
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdate_time" >&5
16065 $as_echo "$tor_cv_cflags__Wdate_time" >&6; }
16066 if test x
$tor_cv_cflags__Wdate_time = xyes
; then
16067 CFLAGS
="$CFLAGS -Wdate-time"
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdelegating-ctor-cycles" >&5
16077 $as_echo_n "checking whether the compiler accepts -Wdelegating-ctor-cycles... " >&6; }
16078 if ${tor_cv_cflags__Wdelegating_ctor_cycles+:} false
; then :
16079 $as_echo_n "(cached) " >&6
16082 tor_saved_CFLAGS
="$CFLAGS"
16083 CFLAGS
="$CFLAGS -pedantic -Werror -Wdelegating-ctor-cycles"
16084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16095 if ac_fn_c_try_compile
"$LINENO"; then :
16096 tor_cv_cflags__Wdelegating_ctor_cycles
=yes
16098 tor_cv_cflags__Wdelegating_ctor_cycles
=no
16100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16101 if test x
!= x
; then
16103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16114 if ac_fn_c_try_link
"$LINENO"; then :
16115 tor_can_link__Wdelegating_ctor_cycles
=yes
16117 tor_can_link__Wdelegating_ctor_cycles
=no
16119 rm -f core conftest.err conftest.
$ac_objext \
16120 conftest
$ac_exeext conftest.
$ac_ext
16123 CFLAGS
="$tor_saved_CFLAGS"
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdelegating_ctor_cycles" >&5
16127 $as_echo "$tor_cv_cflags__Wdelegating_ctor_cycles" >&6; }
16128 if test x
$tor_cv_cflags__Wdelegating_ctor_cycles = xyes
; then
16129 CFLAGS
="$CFLAGS -Wdelegating-ctor-cycles"
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-implementations" >&5
16139 $as_echo_n "checking whether the compiler accepts -Wdeprecated-implementations... " >&6; }
16140 if ${tor_cv_cflags__Wdeprecated_implementations+:} false
; then :
16141 $as_echo_n "(cached) " >&6
16144 tor_saved_CFLAGS
="$CFLAGS"
16145 CFLAGS
="$CFLAGS -pedantic -Werror -Wdeprecated-implementations"
16146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16157 if ac_fn_c_try_compile
"$LINENO"; then :
16158 tor_cv_cflags__Wdeprecated_implementations
=yes
16160 tor_cv_cflags__Wdeprecated_implementations
=no
16162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16163 if test x
!= x
; then
16165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16176 if ac_fn_c_try_link
"$LINENO"; then :
16177 tor_can_link__Wdeprecated_implementations
=yes
16179 tor_can_link__Wdeprecated_implementations
=no
16181 rm -f core conftest.err conftest.
$ac_objext \
16182 conftest
$ac_exeext conftest.
$ac_ext
16185 CFLAGS
="$tor_saved_CFLAGS"
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_implementations" >&5
16189 $as_echo "$tor_cv_cflags__Wdeprecated_implementations" >&6; }
16190 if test x
$tor_cv_cflags__Wdeprecated_implementations = xyes
; then
16191 CFLAGS
="$CFLAGS -Wdeprecated-implementations"
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-register" >&5
16201 $as_echo_n "checking whether the compiler accepts -Wdeprecated-register... " >&6; }
16202 if ${tor_cv_cflags__Wdeprecated_register+:} false
; then :
16203 $as_echo_n "(cached) " >&6
16206 tor_saved_CFLAGS
="$CFLAGS"
16207 CFLAGS
="$CFLAGS -pedantic -Werror -Wdeprecated-register"
16208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16219 if ac_fn_c_try_compile
"$LINENO"; then :
16220 tor_cv_cflags__Wdeprecated_register
=yes
16222 tor_cv_cflags__Wdeprecated_register
=no
16224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16225 if test x
!= x
; then
16227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16238 if ac_fn_c_try_link
"$LINENO"; then :
16239 tor_can_link__Wdeprecated_register
=yes
16241 tor_can_link__Wdeprecated_register
=no
16243 rm -f core conftest.err conftest.
$ac_objext \
16244 conftest
$ac_exeext conftest.
$ac_ext
16247 CFLAGS
="$tor_saved_CFLAGS"
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_register" >&5
16251 $as_echo "$tor_cv_cflags__Wdeprecated_register" >&6; }
16252 if test x
$tor_cv_cflags__Wdeprecated_register = xyes
; then
16253 CFLAGS
="$CFLAGS -Wdeprecated-register"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdirect-ivar-access" >&5
16263 $as_echo_n "checking whether the compiler accepts -Wdirect-ivar-access... " >&6; }
16264 if ${tor_cv_cflags__Wdirect_ivar_access+:} false
; then :
16265 $as_echo_n "(cached) " >&6
16268 tor_saved_CFLAGS
="$CFLAGS"
16269 CFLAGS
="$CFLAGS -pedantic -Werror -Wdirect-ivar-access"
16270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16281 if ac_fn_c_try_compile
"$LINENO"; then :
16282 tor_cv_cflags__Wdirect_ivar_access
=yes
16284 tor_cv_cflags__Wdirect_ivar_access
=no
16286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16287 if test x
!= x
; then
16289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16300 if ac_fn_c_try_link
"$LINENO"; then :
16301 tor_can_link__Wdirect_ivar_access
=yes
16303 tor_can_link__Wdirect_ivar_access
=no
16305 rm -f core conftest.err conftest.
$ac_objext \
16306 conftest
$ac_exeext conftest.
$ac_ext
16309 CFLAGS
="$tor_saved_CFLAGS"
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdirect_ivar_access" >&5
16313 $as_echo "$tor_cv_cflags__Wdirect_ivar_access" >&6; }
16314 if test x
$tor_cv_cflags__Wdirect_ivar_access = xyes
; then
16315 CFLAGS
="$CFLAGS -Wdirect-ivar-access"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdiscard-qual" >&5
16325 $as_echo_n "checking whether the compiler accepts -Wdiscard-qual... " >&6; }
16326 if ${tor_cv_cflags__Wdiscard_qual+:} false
; then :
16327 $as_echo_n "(cached) " >&6
16330 tor_saved_CFLAGS
="$CFLAGS"
16331 CFLAGS
="$CFLAGS -pedantic -Werror -Wdiscard-qual"
16332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16343 if ac_fn_c_try_compile
"$LINENO"; then :
16344 tor_cv_cflags__Wdiscard_qual
=yes
16346 tor_cv_cflags__Wdiscard_qual
=no
16348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16349 if test x
!= x
; then
16351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16362 if ac_fn_c_try_link
"$LINENO"; then :
16363 tor_can_link__Wdiscard_qual
=yes
16365 tor_can_link__Wdiscard_qual
=no
16367 rm -f core conftest.err conftest.
$ac_objext \
16368 conftest
$ac_exeext conftest.
$ac_ext
16371 CFLAGS
="$tor_saved_CFLAGS"
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdiscard_qual" >&5
16375 $as_echo "$tor_cv_cflags__Wdiscard_qual" >&6; }
16376 if test x
$tor_cv_cflags__Wdiscard_qual = xyes
; then
16377 CFLAGS
="$CFLAGS -Wdiscard-qual"
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdistributed-object-modifiers" >&5
16387 $as_echo_n "checking whether the compiler accepts -Wdistributed-object-modifiers... " >&6; }
16388 if ${tor_cv_cflags__Wdistributed_object_modifiers+:} false
; then :
16389 $as_echo_n "(cached) " >&6
16392 tor_saved_CFLAGS
="$CFLAGS"
16393 CFLAGS
="$CFLAGS -pedantic -Werror -Wdistributed-object-modifiers"
16394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16405 if ac_fn_c_try_compile
"$LINENO"; then :
16406 tor_cv_cflags__Wdistributed_object_modifiers
=yes
16408 tor_cv_cflags__Wdistributed_object_modifiers
=no
16410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16411 if test x
!= x
; then
16413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16424 if ac_fn_c_try_link
"$LINENO"; then :
16425 tor_can_link__Wdistributed_object_modifiers
=yes
16427 tor_can_link__Wdistributed_object_modifiers
=no
16429 rm -f core conftest.err conftest.
$ac_objext \
16430 conftest
$ac_exeext conftest.
$ac_ext
16433 CFLAGS
="$tor_saved_CFLAGS"
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdistributed_object_modifiers" >&5
16437 $as_echo "$tor_cv_cflags__Wdistributed_object_modifiers" >&6; }
16438 if test x
$tor_cv_cflags__Wdistributed_object_modifiers = xyes
; then
16439 CFLAGS
="$CFLAGS -Wdistributed-object-modifiers"
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdivision-by-zero" >&5
16449 $as_echo_n "checking whether the compiler accepts -Wdivision-by-zero... " >&6; }
16450 if ${tor_cv_cflags__Wdivision_by_zero+:} false
; then :
16451 $as_echo_n "(cached) " >&6
16454 tor_saved_CFLAGS
="$CFLAGS"
16455 CFLAGS
="$CFLAGS -pedantic -Werror -Wdivision-by-zero"
16456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16467 if ac_fn_c_try_compile
"$LINENO"; then :
16468 tor_cv_cflags__Wdivision_by_zero
=yes
16470 tor_cv_cflags__Wdivision_by_zero
=no
16472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16473 if test x
!= x
; then
16475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16486 if ac_fn_c_try_link
"$LINENO"; then :
16487 tor_can_link__Wdivision_by_zero
=yes
16489 tor_can_link__Wdivision_by_zero
=no
16491 rm -f core conftest.err conftest.
$ac_objext \
16492 conftest
$ac_exeext conftest.
$ac_ext
16495 CFLAGS
="$tor_saved_CFLAGS"
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdivision_by_zero" >&5
16499 $as_echo "$tor_cv_cflags__Wdivision_by_zero" >&6; }
16500 if test x
$tor_cv_cflags__Wdivision_by_zero = xyes
; then
16501 CFLAGS
="$CFLAGS -Wdivision-by-zero"
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdollar-in-identifier-extension" >&5
16511 $as_echo_n "checking whether the compiler accepts -Wdollar-in-identifier-extension... " >&6; }
16512 if ${tor_cv_cflags__Wdollar_in_identifier_extension+:} false
; then :
16513 $as_echo_n "(cached) " >&6
16516 tor_saved_CFLAGS
="$CFLAGS"
16517 CFLAGS
="$CFLAGS -pedantic -Werror -Wdollar-in-identifier-extension"
16518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16529 if ac_fn_c_try_compile
"$LINENO"; then :
16530 tor_cv_cflags__Wdollar_in_identifier_extension
=yes
16532 tor_cv_cflags__Wdollar_in_identifier_extension
=no
16534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16535 if test x
!= x
; then
16537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16548 if ac_fn_c_try_link
"$LINENO"; then :
16549 tor_can_link__Wdollar_in_identifier_extension
=yes
16551 tor_can_link__Wdollar_in_identifier_extension
=no
16553 rm -f core conftest.err conftest.
$ac_objext \
16554 conftest
$ac_exeext conftest.
$ac_ext
16557 CFLAGS
="$tor_saved_CFLAGS"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdollar_in_identifier_extension" >&5
16561 $as_echo "$tor_cv_cflags__Wdollar_in_identifier_extension" >&6; }
16562 if test x
$tor_cv_cflags__Wdollar_in_identifier_extension = xyes
; then
16563 CFLAGS
="$CFLAGS -Wdollar-in-identifier-extension"
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdouble-promotion" >&5
16573 $as_echo_n "checking whether the compiler accepts -Wdouble-promotion... " >&6; }
16574 if ${tor_cv_cflags__Wdouble_promotion+:} false
; then :
16575 $as_echo_n "(cached) " >&6
16578 tor_saved_CFLAGS
="$CFLAGS"
16579 CFLAGS
="$CFLAGS -pedantic -Werror -Wdouble-promotion"
16580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16591 if ac_fn_c_try_compile
"$LINENO"; then :
16592 tor_cv_cflags__Wdouble_promotion
=yes
16594 tor_cv_cflags__Wdouble_promotion
=no
16596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16597 if test x
!= x
; then
16599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16610 if ac_fn_c_try_link
"$LINENO"; then :
16611 tor_can_link__Wdouble_promotion
=yes
16613 tor_can_link__Wdouble_promotion
=no
16615 rm -f core conftest.err conftest.
$ac_objext \
16616 conftest
$ac_exeext conftest.
$ac_ext
16619 CFLAGS
="$tor_saved_CFLAGS"
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdouble_promotion" >&5
16623 $as_echo "$tor_cv_cflags__Wdouble_promotion" >&6; }
16624 if test x
$tor_cv_cflags__Wdouble_promotion = xyes
; then
16625 CFLAGS
="$CFLAGS -Wdouble-promotion"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-decl-specifier" >&5
16635 $as_echo_n "checking whether the compiler accepts -Wduplicate-decl-specifier... " >&6; }
16636 if ${tor_cv_cflags__Wduplicate_decl_specifier+:} false
; then :
16637 $as_echo_n "(cached) " >&6
16640 tor_saved_CFLAGS
="$CFLAGS"
16641 CFLAGS
="$CFLAGS -pedantic -Werror -Wduplicate-decl-specifier"
16642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16653 if ac_fn_c_try_compile
"$LINENO"; then :
16654 tor_cv_cflags__Wduplicate_decl_specifier
=yes
16656 tor_cv_cflags__Wduplicate_decl_specifier
=no
16658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16659 if test x
!= x
; then
16661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16672 if ac_fn_c_try_link
"$LINENO"; then :
16673 tor_can_link__Wduplicate_decl_specifier
=yes
16675 tor_can_link__Wduplicate_decl_specifier
=no
16677 rm -f core conftest.err conftest.
$ac_objext \
16678 conftest
$ac_exeext conftest.
$ac_ext
16681 CFLAGS
="$tor_saved_CFLAGS"
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_decl_specifier" >&5
16685 $as_echo "$tor_cv_cflags__Wduplicate_decl_specifier" >&6; }
16686 if test x
$tor_cv_cflags__Wduplicate_decl_specifier = xyes
; then
16687 CFLAGS
="$CFLAGS -Wduplicate-decl-specifier"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-enum" >&5
16697 $as_echo_n "checking whether the compiler accepts -Wduplicate-enum... " >&6; }
16698 if ${tor_cv_cflags__Wduplicate_enum+:} false
; then :
16699 $as_echo_n "(cached) " >&6
16702 tor_saved_CFLAGS
="$CFLAGS"
16703 CFLAGS
="$CFLAGS -pedantic -Werror -Wduplicate-enum"
16704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16715 if ac_fn_c_try_compile
"$LINENO"; then :
16716 tor_cv_cflags__Wduplicate_enum
=yes
16718 tor_cv_cflags__Wduplicate_enum
=no
16720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16721 if test x
!= x
; then
16723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16734 if ac_fn_c_try_link
"$LINENO"; then :
16735 tor_can_link__Wduplicate_enum
=yes
16737 tor_can_link__Wduplicate_enum
=no
16739 rm -f core conftest.err conftest.
$ac_objext \
16740 conftest
$ac_exeext conftest.
$ac_ext
16743 CFLAGS
="$tor_saved_CFLAGS"
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_enum" >&5
16747 $as_echo "$tor_cv_cflags__Wduplicate_enum" >&6; }
16748 if test x
$tor_cv_cflags__Wduplicate_enum = xyes
; then
16749 CFLAGS
="$CFLAGS -Wduplicate-enum"
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-arg" >&5
16759 $as_echo_n "checking whether the compiler accepts -Wduplicate-method-arg... " >&6; }
16760 if ${tor_cv_cflags__Wduplicate_method_arg+:} false
; then :
16761 $as_echo_n "(cached) " >&6
16764 tor_saved_CFLAGS
="$CFLAGS"
16765 CFLAGS
="$CFLAGS -pedantic -Werror -Wduplicate-method-arg"
16766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16777 if ac_fn_c_try_compile
"$LINENO"; then :
16778 tor_cv_cflags__Wduplicate_method_arg
=yes
16780 tor_cv_cflags__Wduplicate_method_arg
=no
16782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16783 if test x
!= x
; then
16785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16796 if ac_fn_c_try_link
"$LINENO"; then :
16797 tor_can_link__Wduplicate_method_arg
=yes
16799 tor_can_link__Wduplicate_method_arg
=no
16801 rm -f core conftest.err conftest.
$ac_objext \
16802 conftest
$ac_exeext conftest.
$ac_ext
16805 CFLAGS
="$tor_saved_CFLAGS"
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_arg" >&5
16809 $as_echo "$tor_cv_cflags__Wduplicate_method_arg" >&6; }
16810 if test x
$tor_cv_cflags__Wduplicate_method_arg = xyes
; then
16811 CFLAGS
="$CFLAGS -Wduplicate-method-arg"
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-match" >&5
16821 $as_echo_n "checking whether the compiler accepts -Wduplicate-method-match... " >&6; }
16822 if ${tor_cv_cflags__Wduplicate_method_match+:} false
; then :
16823 $as_echo_n "(cached) " >&6
16826 tor_saved_CFLAGS
="$CFLAGS"
16827 CFLAGS
="$CFLAGS -pedantic -Werror -Wduplicate-method-match"
16828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16839 if ac_fn_c_try_compile
"$LINENO"; then :
16840 tor_cv_cflags__Wduplicate_method_match
=yes
16842 tor_cv_cflags__Wduplicate_method_match
=no
16844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16845 if test x
!= x
; then
16847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16858 if ac_fn_c_try_link
"$LINENO"; then :
16859 tor_can_link__Wduplicate_method_match
=yes
16861 tor_can_link__Wduplicate_method_match
=no
16863 rm -f core conftest.err conftest.
$ac_objext \
16864 conftest
$ac_exeext conftest.
$ac_ext
16867 CFLAGS
="$tor_saved_CFLAGS"
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_match" >&5
16871 $as_echo "$tor_cv_cflags__Wduplicate_method_match" >&6; }
16872 if test x
$tor_cv_cflags__Wduplicate_method_match = xyes
; then
16873 CFLAGS
="$CFLAGS -Wduplicate-method-match"
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicated-cond" >&5
16883 $as_echo_n "checking whether the compiler accepts -Wduplicated-cond... " >&6; }
16884 if ${tor_cv_cflags__Wduplicated_cond+:} false
; then :
16885 $as_echo_n "(cached) " >&6
16888 tor_saved_CFLAGS
="$CFLAGS"
16889 CFLAGS
="$CFLAGS -pedantic -Werror -Wduplicated-cond"
16890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16901 if ac_fn_c_try_compile
"$LINENO"; then :
16902 tor_cv_cflags__Wduplicated_cond
=yes
16904 tor_cv_cflags__Wduplicated_cond
=no
16906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16907 if test x
!= x
; then
16909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16920 if ac_fn_c_try_link
"$LINENO"; then :
16921 tor_can_link__Wduplicated_cond
=yes
16923 tor_can_link__Wduplicated_cond
=no
16925 rm -f core conftest.err conftest.
$ac_objext \
16926 conftest
$ac_exeext conftest.
$ac_ext
16929 CFLAGS
="$tor_saved_CFLAGS"
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicated_cond" >&5
16933 $as_echo "$tor_cv_cflags__Wduplicated_cond" >&6; }
16934 if test x
$tor_cv_cflags__Wduplicated_cond = xyes
; then
16935 CFLAGS
="$CFLAGS -Wduplicated-cond"
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdynamic-class-memaccess" >&5
16945 $as_echo_n "checking whether the compiler accepts -Wdynamic-class-memaccess... " >&6; }
16946 if ${tor_cv_cflags__Wdynamic_class_memaccess+:} false
; then :
16947 $as_echo_n "(cached) " >&6
16950 tor_saved_CFLAGS
="$CFLAGS"
16951 CFLAGS
="$CFLAGS -pedantic -Werror -Wdynamic-class-memaccess"
16952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16963 if ac_fn_c_try_compile
"$LINENO"; then :
16964 tor_cv_cflags__Wdynamic_class_memaccess
=yes
16966 tor_cv_cflags__Wdynamic_class_memaccess
=no
16968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16969 if test x
!= x
; then
16971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16982 if ac_fn_c_try_link
"$LINENO"; then :
16983 tor_can_link__Wdynamic_class_memaccess
=yes
16985 tor_can_link__Wdynamic_class_memaccess
=no
16987 rm -f core conftest.err conftest.
$ac_objext \
16988 conftest
$ac_exeext conftest.
$ac_ext
16991 CFLAGS
="$tor_saved_CFLAGS"
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdynamic_class_memaccess" >&5
16995 $as_echo "$tor_cv_cflags__Wdynamic_class_memaccess" >&6; }
16996 if test x
$tor_cv_cflags__Wdynamic_class_memaccess = xyes
; then
16997 CFLAGS
="$CFLAGS -Wdynamic-class-memaccess"
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wembedded-directive" >&5
17007 $as_echo_n "checking whether the compiler accepts -Wembedded-directive... " >&6; }
17008 if ${tor_cv_cflags__Wembedded_directive+:} false
; then :
17009 $as_echo_n "(cached) " >&6
17012 tor_saved_CFLAGS
="$CFLAGS"
17013 CFLAGS
="$CFLAGS -pedantic -Werror -Wembedded-directive"
17014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17025 if ac_fn_c_try_compile
"$LINENO"; then :
17026 tor_cv_cflags__Wembedded_directive
=yes
17028 tor_cv_cflags__Wembedded_directive
=no
17030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17031 if test x
!= x
; then
17033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17044 if ac_fn_c_try_link
"$LINENO"; then :
17045 tor_can_link__Wembedded_directive
=yes
17047 tor_can_link__Wembedded_directive
=no
17049 rm -f core conftest.err conftest.
$ac_objext \
17050 conftest
$ac_exeext conftest.
$ac_ext
17053 CFLAGS
="$tor_saved_CFLAGS"
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wembedded_directive" >&5
17057 $as_echo "$tor_cv_cflags__Wembedded_directive" >&6; }
17058 if test x
$tor_cv_cflags__Wembedded_directive = xyes
; then
17059 CFLAGS
="$CFLAGS -Wembedded-directive"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wempty-translation-unit" >&5
17069 $as_echo_n "checking whether the compiler accepts -Wempty-translation-unit... " >&6; }
17070 if ${tor_cv_cflags__Wempty_translation_unit+:} false
; then :
17071 $as_echo_n "(cached) " >&6
17074 tor_saved_CFLAGS
="$CFLAGS"
17075 CFLAGS
="$CFLAGS -pedantic -Werror -Wempty-translation-unit"
17076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17087 if ac_fn_c_try_compile
"$LINENO"; then :
17088 tor_cv_cflags__Wempty_translation_unit
=yes
17090 tor_cv_cflags__Wempty_translation_unit
=no
17092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17093 if test x
!= x
; then
17095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17106 if ac_fn_c_try_link
"$LINENO"; then :
17107 tor_can_link__Wempty_translation_unit
=yes
17109 tor_can_link__Wempty_translation_unit
=no
17111 rm -f core conftest.err conftest.
$ac_objext \
17112 conftest
$ac_exeext conftest.
$ac_ext
17115 CFLAGS
="$tor_saved_CFLAGS"
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wempty_translation_unit" >&5
17119 $as_echo "$tor_cv_cflags__Wempty_translation_unit" >&6; }
17120 if test x
$tor_cv_cflags__Wempty_translation_unit = xyes
; then
17121 CFLAGS
="$CFLAGS -Wempty-translation-unit"
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wenum-conversion" >&5
17131 $as_echo_n "checking whether the compiler accepts -Wenum-conversion... " >&6; }
17132 if ${tor_cv_cflags__Wenum_conversion+:} false
; then :
17133 $as_echo_n "(cached) " >&6
17136 tor_saved_CFLAGS
="$CFLAGS"
17137 CFLAGS
="$CFLAGS -pedantic -Werror -Wenum-conversion"
17138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17139 /* end confdefs.h. */
17149 if ac_fn_c_try_compile
"$LINENO"; then :
17150 tor_cv_cflags__Wenum_conversion
=yes
17152 tor_cv_cflags__Wenum_conversion
=no
17154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17155 if test x
!= x
; then
17157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17168 if ac_fn_c_try_link
"$LINENO"; then :
17169 tor_can_link__Wenum_conversion
=yes
17171 tor_can_link__Wenum_conversion
=no
17173 rm -f core conftest.err conftest.
$ac_objext \
17174 conftest
$ac_exeext conftest.
$ac_ext
17177 CFLAGS
="$tor_saved_CFLAGS"
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wenum_conversion" >&5
17181 $as_echo "$tor_cv_cflags__Wenum_conversion" >&6; }
17182 if test x
$tor_cv_cflags__Wenum_conversion = xyes
; then
17183 CFLAGS
="$CFLAGS -Wenum-conversion"
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexit-time-destructors" >&5
17193 $as_echo_n "checking whether the compiler accepts -Wexit-time-destructors... " >&6; }
17194 if ${tor_cv_cflags__Wexit_time_destructors+:} false
; then :
17195 $as_echo_n "(cached) " >&6
17198 tor_saved_CFLAGS
="$CFLAGS"
17199 CFLAGS
="$CFLAGS -pedantic -Werror -Wexit-time-destructors"
17200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17211 if ac_fn_c_try_compile
"$LINENO"; then :
17212 tor_cv_cflags__Wexit_time_destructors
=yes
17214 tor_cv_cflags__Wexit_time_destructors
=no
17216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17217 if test x
!= x
; then
17219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17230 if ac_fn_c_try_link
"$LINENO"; then :
17231 tor_can_link__Wexit_time_destructors
=yes
17233 tor_can_link__Wexit_time_destructors
=no
17235 rm -f core conftest.err conftest.
$ac_objext \
17236 conftest
$ac_exeext conftest.
$ac_ext
17239 CFLAGS
="$tor_saved_CFLAGS"
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexit_time_destructors" >&5
17243 $as_echo "$tor_cv_cflags__Wexit_time_destructors" >&6; }
17244 if test x
$tor_cv_cflags__Wexit_time_destructors = xyes
; then
17245 CFLAGS
="$CFLAGS -Wexit-time-destructors"
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexplicit-ownership-type" >&5
17255 $as_echo_n "checking whether the compiler accepts -Wexplicit-ownership-type... " >&6; }
17256 if ${tor_cv_cflags__Wexplicit_ownership_type+:} false
; then :
17257 $as_echo_n "(cached) " >&6
17260 tor_saved_CFLAGS
="$CFLAGS"
17261 CFLAGS
="$CFLAGS -pedantic -Werror -Wexplicit-ownership-type"
17262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h. */
17273 if ac_fn_c_try_compile
"$LINENO"; then :
17274 tor_cv_cflags__Wexplicit_ownership_type
=yes
17276 tor_cv_cflags__Wexplicit_ownership_type
=no
17278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17279 if test x
!= x
; then
17281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17292 if ac_fn_c_try_link
"$LINENO"; then :
17293 tor_can_link__Wexplicit_ownership_type
=yes
17295 tor_can_link__Wexplicit_ownership_type
=no
17297 rm -f core conftest.err conftest.
$ac_objext \
17298 conftest
$ac_exeext conftest.
$ac_ext
17301 CFLAGS
="$tor_saved_CFLAGS"
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexplicit_ownership_type" >&5
17305 $as_echo "$tor_cv_cflags__Wexplicit_ownership_type" >&6; }
17306 if test x
$tor_cv_cflags__Wexplicit_ownership_type = xyes
; then
17307 CFLAGS
="$CFLAGS -Wexplicit-ownership-type"
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextern-initializer" >&5
17317 $as_echo_n "checking whether the compiler accepts -Wextern-initializer... " >&6; }
17318 if ${tor_cv_cflags__Wextern_initializer+:} false
; then :
17319 $as_echo_n "(cached) " >&6
17322 tor_saved_CFLAGS
="$CFLAGS"
17323 CFLAGS
="$CFLAGS -pedantic -Werror -Wextern-initializer"
17324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h. */
17335 if ac_fn_c_try_compile
"$LINENO"; then :
17336 tor_cv_cflags__Wextern_initializer
=yes
17338 tor_cv_cflags__Wextern_initializer
=no
17340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17341 if test x
!= x
; then
17343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17354 if ac_fn_c_try_link
"$LINENO"; then :
17355 tor_can_link__Wextern_initializer
=yes
17357 tor_can_link__Wextern_initializer
=no
17359 rm -f core conftest.err conftest.
$ac_objext \
17360 conftest
$ac_exeext conftest.
$ac_ext
17363 CFLAGS
="$tor_saved_CFLAGS"
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextern_initializer" >&5
17367 $as_echo "$tor_cv_cflags__Wextern_initializer" >&6; }
17368 if test x
$tor_cv_cflags__Wextern_initializer = xyes
; then
17369 CFLAGS
="$CFLAGS -Wextern-initializer"
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra" >&5
17379 $as_echo_n "checking whether the compiler accepts -Wextra... " >&6; }
17380 if ${tor_cv_cflags__Wextra+:} false
; then :
17381 $as_echo_n "(cached) " >&6
17384 tor_saved_CFLAGS
="$CFLAGS"
17385 CFLAGS
="$CFLAGS -pedantic -Werror -Wextra"
17386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17397 if ac_fn_c_try_compile
"$LINENO"; then :
17398 tor_cv_cflags__Wextra
=yes
17400 tor_cv_cflags__Wextra
=no
17402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17403 if test x
!= x
; then
17405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17416 if ac_fn_c_try_link
"$LINENO"; then :
17417 tor_can_link__Wextra
=yes
17419 tor_can_link__Wextra
=no
17421 rm -f core conftest.err conftest.
$ac_objext \
17422 conftest
$ac_exeext conftest.
$ac_ext
17425 CFLAGS
="$tor_saved_CFLAGS"
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra" >&5
17429 $as_echo "$tor_cv_cflags__Wextra" >&6; }
17430 if test x
$tor_cv_cflags__Wextra = xyes
; then
17431 CFLAGS
="$CFLAGS -Wextra"
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra-semi" >&5
17441 $as_echo_n "checking whether the compiler accepts -Wextra-semi... " >&6; }
17442 if ${tor_cv_cflags__Wextra_semi+:} false
; then :
17443 $as_echo_n "(cached) " >&6
17446 tor_saved_CFLAGS
="$CFLAGS"
17447 CFLAGS
="$CFLAGS -pedantic -Werror -Wextra-semi"
17448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17459 if ac_fn_c_try_compile
"$LINENO"; then :
17460 tor_cv_cflags__Wextra_semi
=yes
17462 tor_cv_cflags__Wextra_semi
=no
17464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17465 if test x
!= x
; then
17467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17478 if ac_fn_c_try_link
"$LINENO"; then :
17479 tor_can_link__Wextra_semi
=yes
17481 tor_can_link__Wextra_semi
=no
17483 rm -f core conftest.err conftest.
$ac_objext \
17484 conftest
$ac_exeext conftest.
$ac_ext
17487 CFLAGS
="$tor_saved_CFLAGS"
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra_semi" >&5
17491 $as_echo "$tor_cv_cflags__Wextra_semi" >&6; }
17492 if test x
$tor_cv_cflags__Wextra_semi = xyes
; then
17493 CFLAGS
="$CFLAGS -Wextra-semi"
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra-tokens" >&5
17503 $as_echo_n "checking whether the compiler accepts -Wextra-tokens... " >&6; }
17504 if ${tor_cv_cflags__Wextra_tokens+:} false
; then :
17505 $as_echo_n "(cached) " >&6
17508 tor_saved_CFLAGS
="$CFLAGS"
17509 CFLAGS
="$CFLAGS -pedantic -Werror -Wextra-tokens"
17510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17521 if ac_fn_c_try_compile
"$LINENO"; then :
17522 tor_cv_cflags__Wextra_tokens
=yes
17524 tor_cv_cflags__Wextra_tokens
=no
17526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17527 if test x
!= x
; then
17529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17540 if ac_fn_c_try_link
"$LINENO"; then :
17541 tor_can_link__Wextra_tokens
=yes
17543 tor_can_link__Wextra_tokens
=no
17545 rm -f core conftest.err conftest.
$ac_objext \
17546 conftest
$ac_exeext conftest.
$ac_ext
17549 CFLAGS
="$tor_saved_CFLAGS"
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra_tokens" >&5
17553 $as_echo "$tor_cv_cflags__Wextra_tokens" >&6; }
17554 if test x
$tor_cv_cflags__Wextra_tokens = xyes
; then
17555 CFLAGS
="$CFLAGS -Wextra-tokens"
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wflexible-array-extensions" >&5
17565 $as_echo_n "checking whether the compiler accepts -Wflexible-array-extensions... " >&6; }
17566 if ${tor_cv_cflags__Wflexible_array_extensions+:} false
; then :
17567 $as_echo_n "(cached) " >&6
17570 tor_saved_CFLAGS
="$CFLAGS"
17571 CFLAGS
="$CFLAGS -pedantic -Werror -Wflexible-array-extensions"
17572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17583 if ac_fn_c_try_compile
"$LINENO"; then :
17584 tor_cv_cflags__Wflexible_array_extensions
=yes
17586 tor_cv_cflags__Wflexible_array_extensions
=no
17588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17589 if test x
!= x
; then
17591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17602 if ac_fn_c_try_link
"$LINENO"; then :
17603 tor_can_link__Wflexible_array_extensions
=yes
17605 tor_can_link__Wflexible_array_extensions
=no
17607 rm -f core conftest.err conftest.
$ac_objext \
17608 conftest
$ac_exeext conftest.
$ac_ext
17611 CFLAGS
="$tor_saved_CFLAGS"
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wflexible_array_extensions" >&5
17615 $as_echo "$tor_cv_cflags__Wflexible_array_extensions" >&6; }
17616 if test x
$tor_cv_cflags__Wflexible_array_extensions = xyes
; then
17617 CFLAGS
="$CFLAGS -Wflexible-array-extensions"
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfloat-conversion" >&5
17627 $as_echo_n "checking whether the compiler accepts -Wfloat-conversion... " >&6; }
17628 if ${tor_cv_cflags__Wfloat_conversion+:} false
; then :
17629 $as_echo_n "(cached) " >&6
17632 tor_saved_CFLAGS
="$CFLAGS"
17633 CFLAGS
="$CFLAGS -pedantic -Werror -Wfloat-conversion"
17634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17645 if ac_fn_c_try_compile
"$LINENO"; then :
17646 tor_cv_cflags__Wfloat_conversion
=yes
17648 tor_cv_cflags__Wfloat_conversion
=no
17650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17651 if test x
!= x
; then
17653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17664 if ac_fn_c_try_link
"$LINENO"; then :
17665 tor_can_link__Wfloat_conversion
=yes
17667 tor_can_link__Wfloat_conversion
=no
17669 rm -f core conftest.err conftest.
$ac_objext \
17670 conftest
$ac_exeext conftest.
$ac_ext
17673 CFLAGS
="$tor_saved_CFLAGS"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfloat_conversion" >&5
17677 $as_echo "$tor_cv_cflags__Wfloat_conversion" >&6; }
17678 if test x
$tor_cv_cflags__Wfloat_conversion = xyes
; then
17679 CFLAGS
="$CFLAGS -Wfloat-conversion"
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wformat-non-iso" >&5
17689 $as_echo_n "checking whether the compiler accepts -Wformat-non-iso... " >&6; }
17690 if ${tor_cv_cflags__Wformat_non_iso+:} false
; then :
17691 $as_echo_n "(cached) " >&6
17694 tor_saved_CFLAGS
="$CFLAGS"
17695 CFLAGS
="$CFLAGS -pedantic -Werror -Wformat-non-iso"
17696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17707 if ac_fn_c_try_compile
"$LINENO"; then :
17708 tor_cv_cflags__Wformat_non_iso
=yes
17710 tor_cv_cflags__Wformat_non_iso
=no
17712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17713 if test x
!= x
; then
17715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17726 if ac_fn_c_try_link
"$LINENO"; then :
17727 tor_can_link__Wformat_non_iso
=yes
17729 tor_can_link__Wformat_non_iso
=no
17731 rm -f core conftest.err conftest.
$ac_objext \
17732 conftest
$ac_exeext conftest.
$ac_ext
17735 CFLAGS
="$tor_saved_CFLAGS"
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wformat_non_iso" >&5
17739 $as_echo "$tor_cv_cflags__Wformat_non_iso" >&6; }
17740 if test x
$tor_cv_cflags__Wformat_non_iso = xyes
; then
17741 CFLAGS
="$CFLAGS -Wformat-non-iso"
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfour-char-constants" >&5
17751 $as_echo_n "checking whether the compiler accepts -Wfour-char-constants... " >&6; }
17752 if ${tor_cv_cflags__Wfour_char_constants+:} false
; then :
17753 $as_echo_n "(cached) " >&6
17756 tor_saved_CFLAGS
="$CFLAGS"
17757 CFLAGS
="$CFLAGS -pedantic -Werror -Wfour-char-constants"
17758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17769 if ac_fn_c_try_compile
"$LINENO"; then :
17770 tor_cv_cflags__Wfour_char_constants
=yes
17772 tor_cv_cflags__Wfour_char_constants
=no
17774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17775 if test x
!= x
; then
17777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17788 if ac_fn_c_try_link
"$LINENO"; then :
17789 tor_can_link__Wfour_char_constants
=yes
17791 tor_can_link__Wfour_char_constants
=no
17793 rm -f core conftest.err conftest.
$ac_objext \
17794 conftest
$ac_exeext conftest.
$ac_ext
17797 CFLAGS
="$tor_saved_CFLAGS"
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfour_char_constants" >&5
17801 $as_echo "$tor_cv_cflags__Wfour_char_constants" >&6; }
17802 if test x
$tor_cv_cflags__Wfour_char_constants = xyes
; then
17803 CFLAGS
="$CFLAGS -Wfour-char-constants"
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgcc-compat" >&5
17813 $as_echo_n "checking whether the compiler accepts -Wgcc-compat... " >&6; }
17814 if ${tor_cv_cflags__Wgcc_compat+:} false
; then :
17815 $as_echo_n "(cached) " >&6
17818 tor_saved_CFLAGS
="$CFLAGS"
17819 CFLAGS
="$CFLAGS -pedantic -Werror -Wgcc-compat"
17820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17831 if ac_fn_c_try_compile
"$LINENO"; then :
17832 tor_cv_cflags__Wgcc_compat
=yes
17834 tor_cv_cflags__Wgcc_compat
=no
17836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17837 if test x
!= x
; then
17839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17850 if ac_fn_c_try_link
"$LINENO"; then :
17851 tor_can_link__Wgcc_compat
=yes
17853 tor_can_link__Wgcc_compat
=no
17855 rm -f core conftest.err conftest.
$ac_objext \
17856 conftest
$ac_exeext conftest.
$ac_ext
17859 CFLAGS
="$tor_saved_CFLAGS"
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgcc_compat" >&5
17863 $as_echo "$tor_cv_cflags__Wgcc_compat" >&6; }
17864 if test x
$tor_cv_cflags__Wgcc_compat = xyes
; then
17865 CFLAGS
="$CFLAGS -Wgcc-compat"
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wglobal-constructors" >&5
17875 $as_echo_n "checking whether the compiler accepts -Wglobal-constructors... " >&6; }
17876 if ${tor_cv_cflags__Wglobal_constructors+:} false
; then :
17877 $as_echo_n "(cached) " >&6
17880 tor_saved_CFLAGS
="$CFLAGS"
17881 CFLAGS
="$CFLAGS -pedantic -Werror -Wglobal-constructors"
17882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17893 if ac_fn_c_try_compile
"$LINENO"; then :
17894 tor_cv_cflags__Wglobal_constructors
=yes
17896 tor_cv_cflags__Wglobal_constructors
=no
17898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17899 if test x
!= x
; then
17901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h. */
17912 if ac_fn_c_try_link
"$LINENO"; then :
17913 tor_can_link__Wglobal_constructors
=yes
17915 tor_can_link__Wglobal_constructors
=no
17917 rm -f core conftest.err conftest.
$ac_objext \
17918 conftest
$ac_exeext conftest.
$ac_ext
17921 CFLAGS
="$tor_saved_CFLAGS"
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wglobal_constructors" >&5
17925 $as_echo "$tor_cv_cflags__Wglobal_constructors" >&6; }
17926 if test x
$tor_cv_cflags__Wglobal_constructors = xyes
; then
17927 CFLAGS
="$CFLAGS -Wglobal-constructors"
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-array-member-paren-init" >&5
17937 $as_echo_n "checking whether the compiler accepts -Wgnu-array-member-paren-init... " >&6; }
17938 if ${tor_cv_cflags__Wgnu_array_member_paren_init+:} false
; then :
17939 $as_echo_n "(cached) " >&6
17942 tor_saved_CFLAGS
="$CFLAGS"
17943 CFLAGS
="$CFLAGS -pedantic -Werror -Wgnu-array-member-paren-init"
17944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17955 if ac_fn_c_try_compile
"$LINENO"; then :
17956 tor_cv_cflags__Wgnu_array_member_paren_init
=yes
17958 tor_cv_cflags__Wgnu_array_member_paren_init
=no
17960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17961 if test x
!= x
; then
17963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h. */
17974 if ac_fn_c_try_link
"$LINENO"; then :
17975 tor_can_link__Wgnu_array_member_paren_init
=yes
17977 tor_can_link__Wgnu_array_member_paren_init
=no
17979 rm -f core conftest.err conftest.
$ac_objext \
17980 conftest
$ac_exeext conftest.
$ac_ext
17983 CFLAGS
="$tor_saved_CFLAGS"
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_array_member_paren_init" >&5
17987 $as_echo "$tor_cv_cflags__Wgnu_array_member_paren_init" >&6; }
17988 if test x
$tor_cv_cflags__Wgnu_array_member_paren_init = xyes
; then
17989 CFLAGS
="$CFLAGS -Wgnu-array-member-paren-init"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-designator" >&5
17999 $as_echo_n "checking whether the compiler accepts -Wgnu-designator... " >&6; }
18000 if ${tor_cv_cflags__Wgnu_designator+:} false
; then :
18001 $as_echo_n "(cached) " >&6
18004 tor_saved_CFLAGS
="$CFLAGS"
18005 CFLAGS
="$CFLAGS -pedantic -Werror -Wgnu-designator"
18006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18017 if ac_fn_c_try_compile
"$LINENO"; then :
18018 tor_cv_cflags__Wgnu_designator
=yes
18020 tor_cv_cflags__Wgnu_designator
=no
18022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18023 if test x
!= x
; then
18025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18036 if ac_fn_c_try_link
"$LINENO"; then :
18037 tor_can_link__Wgnu_designator
=yes
18039 tor_can_link__Wgnu_designator
=no
18041 rm -f core conftest.err conftest.
$ac_objext \
18042 conftest
$ac_exeext conftest.
$ac_ext
18045 CFLAGS
="$tor_saved_CFLAGS"
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_designator" >&5
18049 $as_echo "$tor_cv_cflags__Wgnu_designator" >&6; }
18050 if test x
$tor_cv_cflags__Wgnu_designator = xyes
; then
18051 CFLAGS
="$CFLAGS -Wgnu-designator"
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-static-float-init" >&5
18061 $as_echo_n "checking whether the compiler accepts -Wgnu-static-float-init... " >&6; }
18062 if ${tor_cv_cflags__Wgnu_static_float_init+:} false
; then :
18063 $as_echo_n "(cached) " >&6
18066 tor_saved_CFLAGS
="$CFLAGS"
18067 CFLAGS
="$CFLAGS -pedantic -Werror -Wgnu-static-float-init"
18068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18069 /* end confdefs.h. */
18079 if ac_fn_c_try_compile
"$LINENO"; then :
18080 tor_cv_cflags__Wgnu_static_float_init
=yes
18082 tor_cv_cflags__Wgnu_static_float_init
=no
18084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18085 if test x
!= x
; then
18087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18098 if ac_fn_c_try_link
"$LINENO"; then :
18099 tor_can_link__Wgnu_static_float_init
=yes
18101 tor_can_link__Wgnu_static_float_init
=no
18103 rm -f core conftest.err conftest.
$ac_objext \
18104 conftest
$ac_exeext conftest.
$ac_ext
18107 CFLAGS
="$tor_saved_CFLAGS"
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_static_float_init" >&5
18111 $as_echo "$tor_cv_cflags__Wgnu_static_float_init" >&6; }
18112 if test x
$tor_cv_cflags__Wgnu_static_float_init = xyes
; then
18113 CFLAGS
="$CFLAGS -Wgnu-static-float-init"
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-guard" >&5
18123 $as_echo_n "checking whether the compiler accepts -Wheader-guard... " >&6; }
18124 if ${tor_cv_cflags__Wheader_guard+:} false
; then :
18125 $as_echo_n "(cached) " >&6
18128 tor_saved_CFLAGS
="$CFLAGS"
18129 CFLAGS
="$CFLAGS -pedantic -Werror -Wheader-guard"
18130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18141 if ac_fn_c_try_compile
"$LINENO"; then :
18142 tor_cv_cflags__Wheader_guard
=yes
18144 tor_cv_cflags__Wheader_guard
=no
18146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18147 if test x
!= x
; then
18149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18160 if ac_fn_c_try_link
"$LINENO"; then :
18161 tor_can_link__Wheader_guard
=yes
18163 tor_can_link__Wheader_guard
=no
18165 rm -f core conftest.err conftest.
$ac_objext \
18166 conftest
$ac_exeext conftest.
$ac_ext
18169 CFLAGS
="$tor_saved_CFLAGS"
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_guard" >&5
18173 $as_echo "$tor_cv_cflags__Wheader_guard" >&6; }
18174 if test x
$tor_cv_cflags__Wheader_guard = xyes
; then
18175 CFLAGS
="$CFLAGS -Wheader-guard"
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-hygiene" >&5
18185 $as_echo_n "checking whether the compiler accepts -Wheader-hygiene... " >&6; }
18186 if ${tor_cv_cflags__Wheader_hygiene+:} false
; then :
18187 $as_echo_n "(cached) " >&6
18190 tor_saved_CFLAGS
="$CFLAGS"
18191 CFLAGS
="$CFLAGS -pedantic -Werror -Wheader-hygiene"
18192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18203 if ac_fn_c_try_compile
"$LINENO"; then :
18204 tor_cv_cflags__Wheader_hygiene
=yes
18206 tor_cv_cflags__Wheader_hygiene
=no
18208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18209 if test x
!= x
; then
18211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18222 if ac_fn_c_try_link
"$LINENO"; then :
18223 tor_can_link__Wheader_hygiene
=yes
18225 tor_can_link__Wheader_hygiene
=no
18227 rm -f core conftest.err conftest.
$ac_objext \
18228 conftest
$ac_exeext conftest.
$ac_ext
18231 CFLAGS
="$tor_saved_CFLAGS"
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_hygiene" >&5
18235 $as_echo "$tor_cv_cflags__Wheader_hygiene" >&6; }
18236 if test x
$tor_cv_cflags__Wheader_hygiene = xyes
; then
18237 CFLAGS
="$CFLAGS -Wheader-hygiene"
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Widiomatic-parentheses" >&5
18247 $as_echo_n "checking whether the compiler accepts -Widiomatic-parentheses... " >&6; }
18248 if ${tor_cv_cflags__Widiomatic_parentheses+:} false
; then :
18249 $as_echo_n "(cached) " >&6
18252 tor_saved_CFLAGS
="$CFLAGS"
18253 CFLAGS
="$CFLAGS -pedantic -Werror -Widiomatic-parentheses"
18254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18265 if ac_fn_c_try_compile
"$LINENO"; then :
18266 tor_cv_cflags__Widiomatic_parentheses
=yes
18268 tor_cv_cflags__Widiomatic_parentheses
=no
18270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18271 if test x
!= x
; then
18273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18284 if ac_fn_c_try_link
"$LINENO"; then :
18285 tor_can_link__Widiomatic_parentheses
=yes
18287 tor_can_link__Widiomatic_parentheses
=no
18289 rm -f core conftest.err conftest.
$ac_objext \
18290 conftest
$ac_exeext conftest.
$ac_ext
18293 CFLAGS
="$tor_saved_CFLAGS"
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Widiomatic_parentheses" >&5
18297 $as_echo "$tor_cv_cflags__Widiomatic_parentheses" >&6; }
18298 if test x
$tor_cv_cflags__Widiomatic_parentheses = xyes
; then
18299 CFLAGS
="$CFLAGS -Widiomatic-parentheses"
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wignored-attributes" >&5
18309 $as_echo_n "checking whether the compiler accepts -Wignored-attributes... " >&6; }
18310 if ${tor_cv_cflags__Wignored_attributes+:} false
; then :
18311 $as_echo_n "(cached) " >&6
18314 tor_saved_CFLAGS
="$CFLAGS"
18315 CFLAGS
="$CFLAGS -pedantic -Werror -Wignored-attributes"
18316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18327 if ac_fn_c_try_compile
"$LINENO"; then :
18328 tor_cv_cflags__Wignored_attributes
=yes
18330 tor_cv_cflags__Wignored_attributes
=no
18332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18333 if test x
!= x
; then
18335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18346 if ac_fn_c_try_link
"$LINENO"; then :
18347 tor_can_link__Wignored_attributes
=yes
18349 tor_can_link__Wignored_attributes
=no
18351 rm -f core conftest.err conftest.
$ac_objext \
18352 conftest
$ac_exeext conftest.
$ac_ext
18355 CFLAGS
="$tor_saved_CFLAGS"
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wignored_attributes" >&5
18359 $as_echo "$tor_cv_cflags__Wignored_attributes" >&6; }
18360 if test x
$tor_cv_cflags__Wignored_attributes = xyes
; then
18361 CFLAGS
="$CFLAGS -Wignored-attributes"
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-atomic-properties" >&5
18371 $as_echo_n "checking whether the compiler accepts -Wimplicit-atomic-properties... " >&6; }
18372 if ${tor_cv_cflags__Wimplicit_atomic_properties+:} false
; then :
18373 $as_echo_n "(cached) " >&6
18376 tor_saved_CFLAGS
="$CFLAGS"
18377 CFLAGS
="$CFLAGS -pedantic -Werror -Wimplicit-atomic-properties"
18378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18389 if ac_fn_c_try_compile
"$LINENO"; then :
18390 tor_cv_cflags__Wimplicit_atomic_properties
=yes
18392 tor_cv_cflags__Wimplicit_atomic_properties
=no
18394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18395 if test x
!= x
; then
18397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18408 if ac_fn_c_try_link
"$LINENO"; then :
18409 tor_can_link__Wimplicit_atomic_properties
=yes
18411 tor_can_link__Wimplicit_atomic_properties
=no
18413 rm -f core conftest.err conftest.
$ac_objext \
18414 conftest
$ac_exeext conftest.
$ac_ext
18417 CFLAGS
="$tor_saved_CFLAGS"
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_atomic_properties" >&5
18421 $as_echo "$tor_cv_cflags__Wimplicit_atomic_properties" >&6; }
18422 if test x
$tor_cv_cflags__Wimplicit_atomic_properties = xyes
; then
18423 CFLAGS
="$CFLAGS -Wimplicit-atomic-properties"
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool" >&5
18433 $as_echo_n "checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool... " >&6; }
18434 if ${tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool+:} false
; then :
18435 $as_echo_n "(cached) " >&6
18438 tor_saved_CFLAGS
="$CFLAGS"
18439 CFLAGS
="$CFLAGS -pedantic -Werror -Wimplicit-conversion-floating-point-to-bool"
18440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18451 if ac_fn_c_try_compile
"$LINENO"; then :
18452 tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool
=yes
18454 tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool
=no
18456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18457 if test x
!= x
; then
18459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18460 /* end confdefs.h. */
18470 if ac_fn_c_try_link
"$LINENO"; then :
18471 tor_can_link__Wimplicit_conversion_floating_point_to_bool
=yes
18473 tor_can_link__Wimplicit_conversion_floating_point_to_bool
=no
18475 rm -f core conftest.err conftest.
$ac_objext \
18476 conftest
$ac_exeext conftest.
$ac_ext
18479 CFLAGS
="$tor_saved_CFLAGS"
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool" >&5
18483 $as_echo "$tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool" >&6; }
18484 if test x
$tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool = xyes
; then
18485 CFLAGS
="$CFLAGS -Wimplicit-conversion-floating-point-to-bool"
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-exception-spec-mismatch" >&5
18495 $as_echo_n "checking whether the compiler accepts -Wimplicit-exception-spec-mismatch... " >&6; }
18496 if ${tor_cv_cflags__Wimplicit_exception_spec_mismatch+:} false
; then :
18497 $as_echo_n "(cached) " >&6
18500 tor_saved_CFLAGS
="$CFLAGS"
18501 CFLAGS
="$CFLAGS -pedantic -Werror -Wimplicit-exception-spec-mismatch"
18502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18513 if ac_fn_c_try_compile
"$LINENO"; then :
18514 tor_cv_cflags__Wimplicit_exception_spec_mismatch
=yes
18516 tor_cv_cflags__Wimplicit_exception_spec_mismatch
=no
18518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18519 if test x
!= x
; then
18521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18532 if ac_fn_c_try_link
"$LINENO"; then :
18533 tor_can_link__Wimplicit_exception_spec_mismatch
=yes
18535 tor_can_link__Wimplicit_exception_spec_mismatch
=no
18537 rm -f core conftest.err conftest.
$ac_objext \
18538 conftest
$ac_exeext conftest.
$ac_ext
18541 CFLAGS
="$tor_saved_CFLAGS"
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_exception_spec_mismatch" >&5
18545 $as_echo "$tor_cv_cflags__Wimplicit_exception_spec_mismatch" >&6; }
18546 if test x
$tor_cv_cflags__Wimplicit_exception_spec_mismatch = xyes
; then
18547 CFLAGS
="$CFLAGS -Wimplicit-exception-spec-mismatch"
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough" >&5
18557 $as_echo_n "checking whether the compiler accepts -Wimplicit-fallthrough... " >&6; }
18558 if ${tor_cv_cflags__Wimplicit_fallthrough+:} false
; then :
18559 $as_echo_n "(cached) " >&6
18562 tor_saved_CFLAGS
="$CFLAGS"
18563 CFLAGS
="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough"
18564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18575 if ac_fn_c_try_compile
"$LINENO"; then :
18576 tor_cv_cflags__Wimplicit_fallthrough
=yes
18578 tor_cv_cflags__Wimplicit_fallthrough
=no
18580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18581 if test x
!= x
; then
18583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h. */
18594 if ac_fn_c_try_link
"$LINENO"; then :
18595 tor_can_link__Wimplicit_fallthrough
=yes
18597 tor_can_link__Wimplicit_fallthrough
=no
18599 rm -f core conftest.err conftest.
$ac_objext \
18600 conftest
$ac_exeext conftest.
$ac_ext
18603 CFLAGS
="$tor_saved_CFLAGS"
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough" >&5
18607 $as_echo "$tor_cv_cflags__Wimplicit_fallthrough" >&6; }
18608 if test x
$tor_cv_cflags__Wimplicit_fallthrough = xyes
; then
18609 CFLAGS
="$CFLAGS -Wimplicit-fallthrough"
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough-per-function" >&5
18619 $as_echo_n "checking whether the compiler accepts -Wimplicit-fallthrough-per-function... " >&6; }
18620 if ${tor_cv_cflags__Wimplicit_fallthrough_per_function+:} false
; then :
18621 $as_echo_n "(cached) " >&6
18624 tor_saved_CFLAGS
="$CFLAGS"
18625 CFLAGS
="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough-per-function"
18626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18637 if ac_fn_c_try_compile
"$LINENO"; then :
18638 tor_cv_cflags__Wimplicit_fallthrough_per_function
=yes
18640 tor_cv_cflags__Wimplicit_fallthrough_per_function
=no
18642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18643 if test x
!= x
; then
18645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h. */
18656 if ac_fn_c_try_link
"$LINENO"; then :
18657 tor_can_link__Wimplicit_fallthrough_per_function
=yes
18659 tor_can_link__Wimplicit_fallthrough_per_function
=no
18661 rm -f core conftest.err conftest.
$ac_objext \
18662 conftest
$ac_exeext conftest.
$ac_ext
18665 CFLAGS
="$tor_saved_CFLAGS"
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough_per_function" >&5
18669 $as_echo "$tor_cv_cflags__Wimplicit_fallthrough_per_function" >&6; }
18670 if test x
$tor_cv_cflags__Wimplicit_fallthrough_per_function = xyes
; then
18671 CFLAGS
="$CFLAGS -Wimplicit-fallthrough-per-function"
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-retain-self" >&5
18681 $as_echo_n "checking whether the compiler accepts -Wimplicit-retain-self... " >&6; }
18682 if ${tor_cv_cflags__Wimplicit_retain_self+:} false
; then :
18683 $as_echo_n "(cached) " >&6
18686 tor_saved_CFLAGS
="$CFLAGS"
18687 CFLAGS
="$CFLAGS -pedantic -Werror -Wimplicit-retain-self"
18688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h. */
18699 if ac_fn_c_try_compile
"$LINENO"; then :
18700 tor_cv_cflags__Wimplicit_retain_self
=yes
18702 tor_cv_cflags__Wimplicit_retain_self
=no
18704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18705 if test x
!= x
; then
18707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18718 if ac_fn_c_try_link
"$LINENO"; then :
18719 tor_can_link__Wimplicit_retain_self
=yes
18721 tor_can_link__Wimplicit_retain_self
=no
18723 rm -f core conftest.err conftest.
$ac_objext \
18724 conftest
$ac_exeext conftest.
$ac_ext
18727 CFLAGS
="$tor_saved_CFLAGS"
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_retain_self" >&5
18731 $as_echo "$tor_cv_cflags__Wimplicit_retain_self" >&6; }
18732 if test x
$tor_cv_cflags__Wimplicit_retain_self = xyes
; then
18733 CFLAGS
="$CFLAGS -Wimplicit-retain-self"
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic" >&5
18743 $as_echo_n "checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic... " >&6; }
18744 if ${tor_cv_cflags__Wimport_preprocessor_directive_pedantic+:} false
; then :
18745 $as_echo_n "(cached) " >&6
18748 tor_saved_CFLAGS
="$CFLAGS"
18749 CFLAGS
="$CFLAGS -pedantic -Werror -Wimport-preprocessor-directive-pedantic"
18750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h. */
18761 if ac_fn_c_try_compile
"$LINENO"; then :
18762 tor_cv_cflags__Wimport_preprocessor_directive_pedantic
=yes
18764 tor_cv_cflags__Wimport_preprocessor_directive_pedantic
=no
18766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18767 if test x
!= x
; then
18769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18780 if ac_fn_c_try_link
"$LINENO"; then :
18781 tor_can_link__Wimport_preprocessor_directive_pedantic
=yes
18783 tor_can_link__Wimport_preprocessor_directive_pedantic
=no
18785 rm -f core conftest.err conftest.
$ac_objext \
18786 conftest
$ac_exeext conftest.
$ac_ext
18789 CFLAGS
="$tor_saved_CFLAGS"
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimport_preprocessor_directive_pedantic" >&5
18793 $as_echo "$tor_cv_cflags__Wimport_preprocessor_directive_pedantic" >&6; }
18794 if test x
$tor_cv_cflags__Wimport_preprocessor_directive_pedantic = xyes
; then
18795 CFLAGS
="$CFLAGS -Wimport-preprocessor-directive-pedantic"
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-library-redeclaration" >&5
18805 $as_echo_n "checking whether the compiler accepts -Wincompatible-library-redeclaration... " >&6; }
18806 if ${tor_cv_cflags__Wincompatible_library_redeclaration+:} false
; then :
18807 $as_echo_n "(cached) " >&6
18810 tor_saved_CFLAGS
="$CFLAGS"
18811 CFLAGS
="$CFLAGS -pedantic -Werror -Wincompatible-library-redeclaration"
18812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18823 if ac_fn_c_try_compile
"$LINENO"; then :
18824 tor_cv_cflags__Wincompatible_library_redeclaration
=yes
18826 tor_cv_cflags__Wincompatible_library_redeclaration
=no
18828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18829 if test x
!= x
; then
18831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18842 if ac_fn_c_try_link
"$LINENO"; then :
18843 tor_can_link__Wincompatible_library_redeclaration
=yes
18845 tor_can_link__Wincompatible_library_redeclaration
=no
18847 rm -f core conftest.err conftest.
$ac_objext \
18848 conftest
$ac_exeext conftest.
$ac_ext
18851 CFLAGS
="$tor_saved_CFLAGS"
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_library_redeclaration" >&5
18855 $as_echo "$tor_cv_cflags__Wincompatible_library_redeclaration" >&6; }
18856 if test x
$tor_cv_cflags__Wincompatible_library_redeclaration = xyes
; then
18857 CFLAGS
="$CFLAGS -Wincompatible-library-redeclaration"
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers" >&5
18867 $as_echo_n "checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers... " >&6; }
18868 if ${tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers+:} false
; then :
18869 $as_echo_n "(cached) " >&6
18872 tor_saved_CFLAGS
="$CFLAGS"
18873 CFLAGS
="$CFLAGS -pedantic -Werror -Wincompatible-pointer-types-discards-qualifiers"
18874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18875 /* end confdefs.h. */
18885 if ac_fn_c_try_compile
"$LINENO"; then :
18886 tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers
=yes
18888 tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers
=no
18890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18891 if test x
!= x
; then
18893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18904 if ac_fn_c_try_link
"$LINENO"; then :
18905 tor_can_link__Wincompatible_pointer_types_discards_qualifiers
=yes
18907 tor_can_link__Wincompatible_pointer_types_discards_qualifiers
=no
18909 rm -f core conftest.err conftest.
$ac_objext \
18910 conftest
$ac_exeext conftest.
$ac_ext
18913 CFLAGS
="$tor_saved_CFLAGS"
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers" >&5
18917 $as_echo "$tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers" >&6; }
18918 if test x
$tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers = xyes
; then
18919 CFLAGS
="$CFLAGS -Wincompatible-pointer-types-discards-qualifiers"
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-implementation" >&5
18929 $as_echo_n "checking whether the compiler accepts -Wincomplete-implementation... " >&6; }
18930 if ${tor_cv_cflags__Wincomplete_implementation+:} false
; then :
18931 $as_echo_n "(cached) " >&6
18934 tor_saved_CFLAGS
="$CFLAGS"
18935 CFLAGS
="$CFLAGS -pedantic -Werror -Wincomplete-implementation"
18936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18947 if ac_fn_c_try_compile
"$LINENO"; then :
18948 tor_cv_cflags__Wincomplete_implementation
=yes
18950 tor_cv_cflags__Wincomplete_implementation
=no
18952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18953 if test x
!= x
; then
18955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18966 if ac_fn_c_try_link
"$LINENO"; then :
18967 tor_can_link__Wincomplete_implementation
=yes
18969 tor_can_link__Wincomplete_implementation
=no
18971 rm -f core conftest.err conftest.
$ac_objext \
18972 conftest
$ac_exeext conftest.
$ac_ext
18975 CFLAGS
="$tor_saved_CFLAGS"
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_implementation" >&5
18979 $as_echo "$tor_cv_cflags__Wincomplete_implementation" >&6; }
18980 if test x
$tor_cv_cflags__Wincomplete_implementation = xyes
; then
18981 CFLAGS
="$CFLAGS -Wincomplete-implementation"
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-module" >&5
18991 $as_echo_n "checking whether the compiler accepts -Wincomplete-module... " >&6; }
18992 if ${tor_cv_cflags__Wincomplete_module+:} false
; then :
18993 $as_echo_n "(cached) " >&6
18996 tor_saved_CFLAGS
="$CFLAGS"
18997 CFLAGS
="$CFLAGS -pedantic -Werror -Wincomplete-module"
18998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19009 if ac_fn_c_try_compile
"$LINENO"; then :
19010 tor_cv_cflags__Wincomplete_module
=yes
19012 tor_cv_cflags__Wincomplete_module
=no
19014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19015 if test x
!= x
; then
19017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19028 if ac_fn_c_try_link
"$LINENO"; then :
19029 tor_can_link__Wincomplete_module
=yes
19031 tor_can_link__Wincomplete_module
=no
19033 rm -f core conftest.err conftest.
$ac_objext \
19034 conftest
$ac_exeext conftest.
$ac_ext
19037 CFLAGS
="$tor_saved_CFLAGS"
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_module" >&5
19041 $as_echo "$tor_cv_cflags__Wincomplete_module" >&6; }
19042 if test x
$tor_cv_cflags__Wincomplete_module = xyes
; then
19043 CFLAGS
="$CFLAGS -Wincomplete-module"
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-umbrella" >&5
19053 $as_echo_n "checking whether the compiler accepts -Wincomplete-umbrella... " >&6; }
19054 if ${tor_cv_cflags__Wincomplete_umbrella+:} false
; then :
19055 $as_echo_n "(cached) " >&6
19058 tor_saved_CFLAGS
="$CFLAGS"
19059 CFLAGS
="$CFLAGS -pedantic -Werror -Wincomplete-umbrella"
19060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19071 if ac_fn_c_try_compile
"$LINENO"; then :
19072 tor_cv_cflags__Wincomplete_umbrella
=yes
19074 tor_cv_cflags__Wincomplete_umbrella
=no
19076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19077 if test x
!= x
; then
19079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19080 /* end confdefs.h. */
19090 if ac_fn_c_try_link
"$LINENO"; then :
19091 tor_can_link__Wincomplete_umbrella
=yes
19093 tor_can_link__Wincomplete_umbrella
=no
19095 rm -f core conftest.err conftest.
$ac_objext \
19096 conftest
$ac_exeext conftest.
$ac_ext
19099 CFLAGS
="$tor_saved_CFLAGS"
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_umbrella" >&5
19103 $as_echo "$tor_cv_cflags__Wincomplete_umbrella" >&6; }
19104 if test x
$tor_cv_cflags__Wincomplete_umbrella = xyes
; then
19105 CFLAGS
="$CFLAGS -Wincomplete-umbrella"
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winit-self" >&5
19115 $as_echo_n "checking whether the compiler accepts -Winit-self... " >&6; }
19116 if ${tor_cv_cflags__Winit_self+:} false
; then :
19117 $as_echo_n "(cached) " >&6
19120 tor_saved_CFLAGS
="$CFLAGS"
19121 CFLAGS
="$CFLAGS -pedantic -Werror -Winit-self"
19122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19133 if ac_fn_c_try_compile
"$LINENO"; then :
19134 tor_cv_cflags__Winit_self
=yes
19136 tor_cv_cflags__Winit_self
=no
19138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19139 if test x
!= x
; then
19141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19152 if ac_fn_c_try_link
"$LINENO"; then :
19153 tor_can_link__Winit_self
=yes
19155 tor_can_link__Winit_self
=no
19157 rm -f core conftest.err conftest.
$ac_objext \
19158 conftest
$ac_exeext conftest.
$ac_ext
19161 CFLAGS
="$tor_saved_CFLAGS"
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winit_self" >&5
19165 $as_echo "$tor_cv_cflags__Winit_self" >&6; }
19166 if test x
$tor_cv_cflags__Winit_self = xyes
; then
19167 CFLAGS
="$CFLAGS -Winit-self"
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-conversions" >&5
19177 $as_echo_n "checking whether the compiler accepts -Wint-conversions... " >&6; }
19178 if ${tor_cv_cflags__Wint_conversions+:} false
; then :
19179 $as_echo_n "(cached) " >&6
19182 tor_saved_CFLAGS
="$CFLAGS"
19183 CFLAGS
="$CFLAGS -pedantic -Werror -Wint-conversions"
19184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19195 if ac_fn_c_try_compile
"$LINENO"; then :
19196 tor_cv_cflags__Wint_conversions
=yes
19198 tor_cv_cflags__Wint_conversions
=no
19200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19201 if test x
!= x
; then
19203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19214 if ac_fn_c_try_link
"$LINENO"; then :
19215 tor_can_link__Wint_conversions
=yes
19217 tor_can_link__Wint_conversions
=no
19219 rm -f core conftest.err conftest.
$ac_objext \
19220 conftest
$ac_exeext conftest.
$ac_ext
19223 CFLAGS
="$tor_saved_CFLAGS"
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_conversions" >&5
19227 $as_echo "$tor_cv_cflags__Wint_conversions" >&6; }
19228 if test x
$tor_cv_cflags__Wint_conversions = xyes
; then
19229 CFLAGS
="$CFLAGS -Wint-conversions"
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-to-void-pointer-cast" >&5
19239 $as_echo_n "checking whether the compiler accepts -Wint-to-void-pointer-cast... " >&6; }
19240 if ${tor_cv_cflags__Wint_to_void_pointer_cast+:} false
; then :
19241 $as_echo_n "(cached) " >&6
19244 tor_saved_CFLAGS
="$CFLAGS"
19245 CFLAGS
="$CFLAGS -pedantic -Werror -Wint-to-void-pointer-cast"
19246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19257 if ac_fn_c_try_compile
"$LINENO"; then :
19258 tor_cv_cflags__Wint_to_void_pointer_cast
=yes
19260 tor_cv_cflags__Wint_to_void_pointer_cast
=no
19262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19263 if test x
!= x
; then
19265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h. */
19276 if ac_fn_c_try_link
"$LINENO"; then :
19277 tor_can_link__Wint_to_void_pointer_cast
=yes
19279 tor_can_link__Wint_to_void_pointer_cast
=no
19281 rm -f core conftest.err conftest.
$ac_objext \
19282 conftest
$ac_exeext conftest.
$ac_ext
19285 CFLAGS
="$tor_saved_CFLAGS"
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_to_void_pointer_cast" >&5
19289 $as_echo "$tor_cv_cflags__Wint_to_void_pointer_cast" >&6; }
19290 if test x
$tor_cv_cflags__Wint_to_void_pointer_cast = xyes
; then
19291 CFLAGS
="$CFLAGS -Wint-to-void-pointer-cast"
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winteger-overflow" >&5
19301 $as_echo_n "checking whether the compiler accepts -Winteger-overflow... " >&6; }
19302 if ${tor_cv_cflags__Winteger_overflow+:} false
; then :
19303 $as_echo_n "(cached) " >&6
19306 tor_saved_CFLAGS
="$CFLAGS"
19307 CFLAGS
="$CFLAGS -pedantic -Werror -Winteger-overflow"
19308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19319 if ac_fn_c_try_compile
"$LINENO"; then :
19320 tor_cv_cflags__Winteger_overflow
=yes
19322 tor_cv_cflags__Winteger_overflow
=no
19324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19325 if test x
!= x
; then
19327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19328 /* end confdefs.h. */
19338 if ac_fn_c_try_link
"$LINENO"; then :
19339 tor_can_link__Winteger_overflow
=yes
19341 tor_can_link__Winteger_overflow
=no
19343 rm -f core conftest.err conftest.
$ac_objext \
19344 conftest
$ac_exeext conftest.
$ac_ext
19347 CFLAGS
="$tor_saved_CFLAGS"
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winteger_overflow" >&5
19351 $as_echo "$tor_cv_cflags__Winteger_overflow" >&6; }
19352 if test x
$tor_cv_cflags__Winteger_overflow = xyes
; then
19353 CFLAGS
="$CFLAGS -Winteger-overflow"
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-constexpr" >&5
19363 $as_echo_n "checking whether the compiler accepts -Winvalid-constexpr... " >&6; }
19364 if ${tor_cv_cflags__Winvalid_constexpr+:} false
; then :
19365 $as_echo_n "(cached) " >&6
19368 tor_saved_CFLAGS
="$CFLAGS"
19369 CFLAGS
="$CFLAGS -pedantic -Werror -Winvalid-constexpr"
19370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19381 if ac_fn_c_try_compile
"$LINENO"; then :
19382 tor_cv_cflags__Winvalid_constexpr
=yes
19384 tor_cv_cflags__Winvalid_constexpr
=no
19386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19387 if test x
!= x
; then
19389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19400 if ac_fn_c_try_link
"$LINENO"; then :
19401 tor_can_link__Winvalid_constexpr
=yes
19403 tor_can_link__Winvalid_constexpr
=no
19405 rm -f core conftest.err conftest.
$ac_objext \
19406 conftest
$ac_exeext conftest.
$ac_ext
19409 CFLAGS
="$tor_saved_CFLAGS"
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_constexpr" >&5
19413 $as_echo "$tor_cv_cflags__Winvalid_constexpr" >&6; }
19414 if test x
$tor_cv_cflags__Winvalid_constexpr = xyes
; then
19415 CFLAGS
="$CFLAGS -Winvalid-constexpr"
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-iboutlet" >&5
19425 $as_echo_n "checking whether the compiler accepts -Winvalid-iboutlet... " >&6; }
19426 if ${tor_cv_cflags__Winvalid_iboutlet+:} false
; then :
19427 $as_echo_n "(cached) " >&6
19430 tor_saved_CFLAGS
="$CFLAGS"
19431 CFLAGS
="$CFLAGS -pedantic -Werror -Winvalid-iboutlet"
19432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19443 if ac_fn_c_try_compile
"$LINENO"; then :
19444 tor_cv_cflags__Winvalid_iboutlet
=yes
19446 tor_cv_cflags__Winvalid_iboutlet
=no
19448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19449 if test x
!= x
; then
19451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19462 if ac_fn_c_try_link
"$LINENO"; then :
19463 tor_can_link__Winvalid_iboutlet
=yes
19465 tor_can_link__Winvalid_iboutlet
=no
19467 rm -f core conftest.err conftest.
$ac_objext \
19468 conftest
$ac_exeext conftest.
$ac_ext
19471 CFLAGS
="$tor_saved_CFLAGS"
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_iboutlet" >&5
19475 $as_echo "$tor_cv_cflags__Winvalid_iboutlet" >&6; }
19476 if test x
$tor_cv_cflags__Winvalid_iboutlet = xyes
; then
19477 CFLAGS
="$CFLAGS -Winvalid-iboutlet"
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-noreturn" >&5
19487 $as_echo_n "checking whether the compiler accepts -Winvalid-noreturn... " >&6; }
19488 if ${tor_cv_cflags__Winvalid_noreturn+:} false
; then :
19489 $as_echo_n "(cached) " >&6
19492 tor_saved_CFLAGS
="$CFLAGS"
19493 CFLAGS
="$CFLAGS -pedantic -Werror -Winvalid-noreturn"
19494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19505 if ac_fn_c_try_compile
"$LINENO"; then :
19506 tor_cv_cflags__Winvalid_noreturn
=yes
19508 tor_cv_cflags__Winvalid_noreturn
=no
19510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19511 if test x
!= x
; then
19513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19524 if ac_fn_c_try_link
"$LINENO"; then :
19525 tor_can_link__Winvalid_noreturn
=yes
19527 tor_can_link__Winvalid_noreturn
=no
19529 rm -f core conftest.err conftest.
$ac_objext \
19530 conftest
$ac_exeext conftest.
$ac_ext
19533 CFLAGS
="$tor_saved_CFLAGS"
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_noreturn" >&5
19537 $as_echo "$tor_cv_cflags__Winvalid_noreturn" >&6; }
19538 if test x
$tor_cv_cflags__Winvalid_noreturn = xyes
; then
19539 CFLAGS
="$CFLAGS -Winvalid-noreturn"
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-pp-token" >&5
19549 $as_echo_n "checking whether the compiler accepts -Winvalid-pp-token... " >&6; }
19550 if ${tor_cv_cflags__Winvalid_pp_token+:} false
; then :
19551 $as_echo_n "(cached) " >&6
19554 tor_saved_CFLAGS
="$CFLAGS"
19555 CFLAGS
="$CFLAGS -pedantic -Werror -Winvalid-pp-token"
19556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19567 if ac_fn_c_try_compile
"$LINENO"; then :
19568 tor_cv_cflags__Winvalid_pp_token
=yes
19570 tor_cv_cflags__Winvalid_pp_token
=no
19572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19573 if test x
!= x
; then
19575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19576 /* end confdefs.h. */
19586 if ac_fn_c_try_link
"$LINENO"; then :
19587 tor_can_link__Winvalid_pp_token
=yes
19589 tor_can_link__Winvalid_pp_token
=no
19591 rm -f core conftest.err conftest.
$ac_objext \
19592 conftest
$ac_exeext conftest.
$ac_ext
19595 CFLAGS
="$tor_saved_CFLAGS"
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_pp_token" >&5
19599 $as_echo "$tor_cv_cflags__Winvalid_pp_token" >&6; }
19600 if test x
$tor_cv_cflags__Winvalid_pp_token = xyes
; then
19601 CFLAGS
="$CFLAGS -Winvalid-pp-token"
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-source-encoding" >&5
19611 $as_echo_n "checking whether the compiler accepts -Winvalid-source-encoding... " >&6; }
19612 if ${tor_cv_cflags__Winvalid_source_encoding+:} false
; then :
19613 $as_echo_n "(cached) " >&6
19616 tor_saved_CFLAGS
="$CFLAGS"
19617 CFLAGS
="$CFLAGS -pedantic -Werror -Winvalid-source-encoding"
19618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19629 if ac_fn_c_try_compile
"$LINENO"; then :
19630 tor_cv_cflags__Winvalid_source_encoding
=yes
19632 tor_cv_cflags__Winvalid_source_encoding
=no
19634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19635 if test x
!= x
; then
19637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19648 if ac_fn_c_try_link
"$LINENO"; then :
19649 tor_can_link__Winvalid_source_encoding
=yes
19651 tor_can_link__Winvalid_source_encoding
=no
19653 rm -f core conftest.err conftest.
$ac_objext \
19654 conftest
$ac_exeext conftest.
$ac_ext
19657 CFLAGS
="$tor_saved_CFLAGS"
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_source_encoding" >&5
19661 $as_echo "$tor_cv_cflags__Winvalid_source_encoding" >&6; }
19662 if test x
$tor_cv_cflags__Winvalid_source_encoding = xyes
; then
19663 CFLAGS
="$CFLAGS -Winvalid-source-encoding"
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-token-paste" >&5
19673 $as_echo_n "checking whether the compiler accepts -Winvalid-token-paste... " >&6; }
19674 if ${tor_cv_cflags__Winvalid_token_paste+:} false
; then :
19675 $as_echo_n "(cached) " >&6
19678 tor_saved_CFLAGS
="$CFLAGS"
19679 CFLAGS
="$CFLAGS -pedantic -Werror -Winvalid-token-paste"
19680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19691 if ac_fn_c_try_compile
"$LINENO"; then :
19692 tor_cv_cflags__Winvalid_token_paste
=yes
19694 tor_cv_cflags__Winvalid_token_paste
=no
19696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19697 if test x
!= x
; then
19699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19710 if ac_fn_c_try_link
"$LINENO"; then :
19711 tor_can_link__Winvalid_token_paste
=yes
19713 tor_can_link__Winvalid_token_paste
=no
19715 rm -f core conftest.err conftest.
$ac_objext \
19716 conftest
$ac_exeext conftest.
$ac_ext
19719 CFLAGS
="$tor_saved_CFLAGS"
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_token_paste" >&5
19723 $as_echo "$tor_cv_cflags__Winvalid_token_paste" >&6; }
19724 if test x
$tor_cv_cflags__Winvalid_token_paste = xyes
; then
19725 CFLAGS
="$CFLAGS -Winvalid-token-paste"
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wknr-promoted-parameter" >&5
19735 $as_echo_n "checking whether the compiler accepts -Wknr-promoted-parameter... " >&6; }
19736 if ${tor_cv_cflags__Wknr_promoted_parameter+:} false
; then :
19737 $as_echo_n "(cached) " >&6
19740 tor_saved_CFLAGS
="$CFLAGS"
19741 CFLAGS
="$CFLAGS -pedantic -Werror -Wknr-promoted-parameter"
19742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h. */
19753 if ac_fn_c_try_compile
"$LINENO"; then :
19754 tor_cv_cflags__Wknr_promoted_parameter
=yes
19756 tor_cv_cflags__Wknr_promoted_parameter
=no
19758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19759 if test x
!= x
; then
19761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19762 /* end confdefs.h. */
19772 if ac_fn_c_try_link
"$LINENO"; then :
19773 tor_can_link__Wknr_promoted_parameter
=yes
19775 tor_can_link__Wknr_promoted_parameter
=no
19777 rm -f core conftest.err conftest.
$ac_objext \
19778 conftest
$ac_exeext conftest.
$ac_ext
19781 CFLAGS
="$tor_saved_CFLAGS"
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wknr_promoted_parameter" >&5
19785 $as_echo "$tor_cv_cflags__Wknr_promoted_parameter" >&6; }
19786 if test x
$tor_cv_cflags__Wknr_promoted_parameter = xyes
; then
19787 CFLAGS
="$CFLAGS -Wknr-promoted-parameter"
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlanguage-extension-token" >&5
19797 $as_echo_n "checking whether the compiler accepts -Wlanguage-extension-token... " >&6; }
19798 if ${tor_cv_cflags__Wlanguage_extension_token+:} false
; then :
19799 $as_echo_n "(cached) " >&6
19802 tor_saved_CFLAGS
="$CFLAGS"
19803 CFLAGS
="$CFLAGS -pedantic -Werror -Wlanguage-extension-token"
19804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h. */
19815 if ac_fn_c_try_compile
"$LINENO"; then :
19816 tor_cv_cflags__Wlanguage_extension_token
=yes
19818 tor_cv_cflags__Wlanguage_extension_token
=no
19820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19821 if test x
!= x
; then
19823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19824 /* end confdefs.h. */
19834 if ac_fn_c_try_link
"$LINENO"; then :
19835 tor_can_link__Wlanguage_extension_token
=yes
19837 tor_can_link__Wlanguage_extension_token
=no
19839 rm -f core conftest.err conftest.
$ac_objext \
19840 conftest
$ac_exeext conftest.
$ac_ext
19843 CFLAGS
="$tor_saved_CFLAGS"
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlanguage_extension_token" >&5
19847 $as_echo "$tor_cv_cflags__Wlanguage_extension_token" >&6; }
19848 if test x
$tor_cv_cflags__Wlanguage_extension_token = xyes
; then
19849 CFLAGS
="$CFLAGS -Wlanguage-extension-token"
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlarge-by-value-copy" >&5
19859 $as_echo_n "checking whether the compiler accepts -Wlarge-by-value-copy... " >&6; }
19860 if ${tor_cv_cflags__Wlarge_by_value_copy+:} false
; then :
19861 $as_echo_n "(cached) " >&6
19864 tor_saved_CFLAGS
="$CFLAGS"
19865 CFLAGS
="$CFLAGS -pedantic -Werror -Wlarge-by-value-copy"
19866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19867 /* end confdefs.h. */
19877 if ac_fn_c_try_compile
"$LINENO"; then :
19878 tor_cv_cflags__Wlarge_by_value_copy
=yes
19880 tor_cv_cflags__Wlarge_by_value_copy
=no
19882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19883 if test x
!= x
; then
19885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19896 if ac_fn_c_try_link
"$LINENO"; then :
19897 tor_can_link__Wlarge_by_value_copy
=yes
19899 tor_can_link__Wlarge_by_value_copy
=no
19901 rm -f core conftest.err conftest.
$ac_objext \
19902 conftest
$ac_exeext conftest.
$ac_ext
19905 CFLAGS
="$tor_saved_CFLAGS"
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlarge_by_value_copy" >&5
19909 $as_echo "$tor_cv_cflags__Wlarge_by_value_copy" >&6; }
19910 if test x
$tor_cv_cflags__Wlarge_by_value_copy = xyes
; then
19911 CFLAGS
="$CFLAGS -Wlarge-by-value-copy"
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-conversion" >&5
19921 $as_echo_n "checking whether the compiler accepts -Wliteral-conversion... " >&6; }
19922 if ${tor_cv_cflags__Wliteral_conversion+:} false
; then :
19923 $as_echo_n "(cached) " >&6
19926 tor_saved_CFLAGS
="$CFLAGS"
19927 CFLAGS
="$CFLAGS -pedantic -Werror -Wliteral-conversion"
19928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19939 if ac_fn_c_try_compile
"$LINENO"; then :
19940 tor_cv_cflags__Wliteral_conversion
=yes
19942 tor_cv_cflags__Wliteral_conversion
=no
19944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19945 if test x
!= x
; then
19947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19948 /* end confdefs.h. */
19958 if ac_fn_c_try_link
"$LINENO"; then :
19959 tor_can_link__Wliteral_conversion
=yes
19961 tor_can_link__Wliteral_conversion
=no
19963 rm -f core conftest.err conftest.
$ac_objext \
19964 conftest
$ac_exeext conftest.
$ac_ext
19967 CFLAGS
="$tor_saved_CFLAGS"
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_conversion" >&5
19971 $as_echo "$tor_cv_cflags__Wliteral_conversion" >&6; }
19972 if test x
$tor_cv_cflags__Wliteral_conversion = xyes
; then
19973 CFLAGS
="$CFLAGS -Wliteral-conversion"
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-range" >&5
19983 $as_echo_n "checking whether the compiler accepts -Wliteral-range... " >&6; }
19984 if ${tor_cv_cflags__Wliteral_range+:} false
; then :
19985 $as_echo_n "(cached) " >&6
19988 tor_saved_CFLAGS
="$CFLAGS"
19989 CFLAGS
="$CFLAGS -pedantic -Werror -Wliteral-range"
19990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19991 /* end confdefs.h. */
20001 if ac_fn_c_try_compile
"$LINENO"; then :
20002 tor_cv_cflags__Wliteral_range
=yes
20004 tor_cv_cflags__Wliteral_range
=no
20006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20007 if test x
!= x
; then
20009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20020 if ac_fn_c_try_link
"$LINENO"; then :
20021 tor_can_link__Wliteral_range
=yes
20023 tor_can_link__Wliteral_range
=no
20025 rm -f core conftest.err conftest.
$ac_objext \
20026 conftest
$ac_exeext conftest.
$ac_ext
20029 CFLAGS
="$tor_saved_CFLAGS"
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_range" >&5
20033 $as_echo "$tor_cv_cflags__Wliteral_range" >&6; }
20034 if test x
$tor_cv_cflags__Wliteral_range = xyes
; then
20035 CFLAGS
="$CFLAGS -Wliteral-range"
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlocal-type-template-args" >&5
20045 $as_echo_n "checking whether the compiler accepts -Wlocal-type-template-args... " >&6; }
20046 if ${tor_cv_cflags__Wlocal_type_template_args+:} false
; then :
20047 $as_echo_n "(cached) " >&6
20050 tor_saved_CFLAGS
="$CFLAGS"
20051 CFLAGS
="$CFLAGS -pedantic -Werror -Wlocal-type-template-args"
20052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20063 if ac_fn_c_try_compile
"$LINENO"; then :
20064 tor_cv_cflags__Wlocal_type_template_args
=yes
20066 tor_cv_cflags__Wlocal_type_template_args
=no
20068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20069 if test x
!= x
; then
20071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20082 if ac_fn_c_try_link
"$LINENO"; then :
20083 tor_can_link__Wlocal_type_template_args
=yes
20085 tor_can_link__Wlocal_type_template_args
=no
20087 rm -f core conftest.err conftest.
$ac_objext \
20088 conftest
$ac_exeext conftest.
$ac_ext
20091 CFLAGS
="$tor_saved_CFLAGS"
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlocal_type_template_args" >&5
20095 $as_echo "$tor_cv_cflags__Wlocal_type_template_args" >&6; }
20096 if test x
$tor_cv_cflags__Wlocal_type_template_args = xyes
; then
20097 CFLAGS
="$CFLAGS -Wlocal-type-template-args"
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlogical-op" >&5
20107 $as_echo_n "checking whether the compiler accepts -Wlogical-op... " >&6; }
20108 if ${tor_cv_cflags__Wlogical_op+:} false
; then :
20109 $as_echo_n "(cached) " >&6
20112 tor_saved_CFLAGS
="$CFLAGS"
20113 CFLAGS
="$CFLAGS -pedantic -Werror -Wlogical-op"
20114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20115 /* end confdefs.h. */
20125 if ac_fn_c_try_compile
"$LINENO"; then :
20126 tor_cv_cflags__Wlogical_op
=yes
20128 tor_cv_cflags__Wlogical_op
=no
20130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20131 if test x
!= x
; then
20133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20144 if ac_fn_c_try_link
"$LINENO"; then :
20145 tor_can_link__Wlogical_op
=yes
20147 tor_can_link__Wlogical_op
=no
20149 rm -f core conftest.err conftest.
$ac_objext \
20150 conftest
$ac_exeext conftest.
$ac_ext
20153 CFLAGS
="$tor_saved_CFLAGS"
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlogical_op" >&5
20157 $as_echo "$tor_cv_cflags__Wlogical_op" >&6; }
20158 if test x
$tor_cv_cflags__Wlogical_op = xyes
; then
20159 CFLAGS
="$CFLAGS -Wlogical-op"
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wloop-analysis" >&5
20169 $as_echo_n "checking whether the compiler accepts -Wloop-analysis... " >&6; }
20170 if ${tor_cv_cflags__Wloop_analysis+:} false
; then :
20171 $as_echo_n "(cached) " >&6
20174 tor_saved_CFLAGS
="$CFLAGS"
20175 CFLAGS
="$CFLAGS -pedantic -Werror -Wloop-analysis"
20176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h. */
20187 if ac_fn_c_try_compile
"$LINENO"; then :
20188 tor_cv_cflags__Wloop_analysis
=yes
20190 tor_cv_cflags__Wloop_analysis
=no
20192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20193 if test x
!= x
; then
20195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h. */
20206 if ac_fn_c_try_link
"$LINENO"; then :
20207 tor_can_link__Wloop_analysis
=yes
20209 tor_can_link__Wloop_analysis
=no
20211 rm -f core conftest.err conftest.
$ac_objext \
20212 conftest
$ac_exeext conftest.
$ac_ext
20215 CFLAGS
="$tor_saved_CFLAGS"
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wloop_analysis" >&5
20219 $as_echo "$tor_cv_cflags__Wloop_analysis" >&6; }
20220 if test x
$tor_cv_cflags__Wloop_analysis = xyes
; then
20221 CFLAGS
="$CFLAGS -Wloop-analysis"
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmain-return-type" >&5
20231 $as_echo_n "checking whether the compiler accepts -Wmain-return-type... " >&6; }
20232 if ${tor_cv_cflags__Wmain_return_type+:} false
; then :
20233 $as_echo_n "(cached) " >&6
20236 tor_saved_CFLAGS
="$CFLAGS"
20237 CFLAGS
="$CFLAGS -pedantic -Werror -Wmain-return-type"
20238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20249 if ac_fn_c_try_compile
"$LINENO"; then :
20250 tor_cv_cflags__Wmain_return_type
=yes
20252 tor_cv_cflags__Wmain_return_type
=no
20254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20255 if test x
!= x
; then
20257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20258 /* end confdefs.h. */
20268 if ac_fn_c_try_link
"$LINENO"; then :
20269 tor_can_link__Wmain_return_type
=yes
20271 tor_can_link__Wmain_return_type
=no
20273 rm -f core conftest.err conftest.
$ac_objext \
20274 conftest
$ac_exeext conftest.
$ac_ext
20277 CFLAGS
="$tor_saved_CFLAGS"
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmain_return_type" >&5
20281 $as_echo "$tor_cv_cflags__Wmain_return_type" >&6; }
20282 if test x
$tor_cv_cflags__Wmain_return_type = xyes
; then
20283 CFLAGS
="$CFLAGS -Wmain-return-type"
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmalformed-warning-check" >&5
20293 $as_echo_n "checking whether the compiler accepts -Wmalformed-warning-check... " >&6; }
20294 if ${tor_cv_cflags__Wmalformed_warning_check+:} false
; then :
20295 $as_echo_n "(cached) " >&6
20298 tor_saved_CFLAGS
="$CFLAGS"
20299 CFLAGS
="$CFLAGS -pedantic -Werror -Wmalformed-warning-check"
20300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20311 if ac_fn_c_try_compile
"$LINENO"; then :
20312 tor_cv_cflags__Wmalformed_warning_check
=yes
20314 tor_cv_cflags__Wmalformed_warning_check
=no
20316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20317 if test x
!= x
; then
20319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h. */
20330 if ac_fn_c_try_link
"$LINENO"; then :
20331 tor_can_link__Wmalformed_warning_check
=yes
20333 tor_can_link__Wmalformed_warning_check
=no
20335 rm -f core conftest.err conftest.
$ac_objext \
20336 conftest
$ac_exeext conftest.
$ac_ext
20339 CFLAGS
="$tor_saved_CFLAGS"
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmalformed_warning_check" >&5
20343 $as_echo "$tor_cv_cflags__Wmalformed_warning_check" >&6; }
20344 if test x
$tor_cv_cflags__Wmalformed_warning_check = xyes
; then
20345 CFLAGS
="$CFLAGS -Wmalformed-warning-check"
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmethod-signatures" >&5
20355 $as_echo_n "checking whether the compiler accepts -Wmethod-signatures... " >&6; }
20356 if ${tor_cv_cflags__Wmethod_signatures+:} false
; then :
20357 $as_echo_n "(cached) " >&6
20360 tor_saved_CFLAGS
="$CFLAGS"
20361 CFLAGS
="$CFLAGS -pedantic -Werror -Wmethod-signatures"
20362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20373 if ac_fn_c_try_compile
"$LINENO"; then :
20374 tor_cv_cflags__Wmethod_signatures
=yes
20376 tor_cv_cflags__Wmethod_signatures
=no
20378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20379 if test x
!= x
; then
20381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20382 /* end confdefs.h. */
20392 if ac_fn_c_try_link
"$LINENO"; then :
20393 tor_can_link__Wmethod_signatures
=yes
20395 tor_can_link__Wmethod_signatures
=no
20397 rm -f core conftest.err conftest.
$ac_objext \
20398 conftest
$ac_exeext conftest.
$ac_ext
20401 CFLAGS
="$tor_saved_CFLAGS"
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmethod_signatures" >&5
20405 $as_echo "$tor_cv_cflags__Wmethod_signatures" >&6; }
20406 if test x
$tor_cv_cflags__Wmethod_signatures = xyes
; then
20407 CFLAGS
="$CFLAGS -Wmethod-signatures"
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft" >&5
20417 $as_echo_n "checking whether the compiler accepts -Wmicrosoft... " >&6; }
20418 if ${tor_cv_cflags__Wmicrosoft+:} false
; then :
20419 $as_echo_n "(cached) " >&6
20422 tor_saved_CFLAGS
="$CFLAGS"
20423 CFLAGS
="$CFLAGS -pedantic -Werror -Wmicrosoft"
20424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h. */
20435 if ac_fn_c_try_compile
"$LINENO"; then :
20436 tor_cv_cflags__Wmicrosoft
=yes
20438 tor_cv_cflags__Wmicrosoft
=no
20440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20441 if test x
!= x
; then
20443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20454 if ac_fn_c_try_link
"$LINENO"; then :
20455 tor_can_link__Wmicrosoft
=yes
20457 tor_can_link__Wmicrosoft
=no
20459 rm -f core conftest.err conftest.
$ac_objext \
20460 conftest
$ac_exeext conftest.
$ac_ext
20463 CFLAGS
="$tor_saved_CFLAGS"
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft" >&5
20467 $as_echo "$tor_cv_cflags__Wmicrosoft" >&6; }
20468 if test x
$tor_cv_cflags__Wmicrosoft = xyes
; then
20469 CFLAGS
="$CFLAGS -Wmicrosoft"
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft-exists" >&5
20479 $as_echo_n "checking whether the compiler accepts -Wmicrosoft-exists... " >&6; }
20480 if ${tor_cv_cflags__Wmicrosoft_exists+:} false
; then :
20481 $as_echo_n "(cached) " >&6
20484 tor_saved_CFLAGS
="$CFLAGS"
20485 CFLAGS
="$CFLAGS -pedantic -Werror -Wmicrosoft-exists"
20486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h. */
20497 if ac_fn_c_try_compile
"$LINENO"; then :
20498 tor_cv_cflags__Wmicrosoft_exists
=yes
20500 tor_cv_cflags__Wmicrosoft_exists
=no
20502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20503 if test x
!= x
; then
20505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h. */
20516 if ac_fn_c_try_link
"$LINENO"; then :
20517 tor_can_link__Wmicrosoft_exists
=yes
20519 tor_can_link__Wmicrosoft_exists
=no
20521 rm -f core conftest.err conftest.
$ac_objext \
20522 conftest
$ac_exeext conftest.
$ac_ext
20525 CFLAGS
="$tor_saved_CFLAGS"
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft_exists" >&5
20529 $as_echo "$tor_cv_cflags__Wmicrosoft_exists" >&6; }
20530 if test x
$tor_cv_cflags__Wmicrosoft_exists = xyes
; then
20531 CFLAGS
="$CFLAGS -Wmicrosoft-exists"
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-parameter-types" >&5
20541 $as_echo_n "checking whether the compiler accepts -Wmismatched-parameter-types... " >&6; }
20542 if ${tor_cv_cflags__Wmismatched_parameter_types+:} false
; then :
20543 $as_echo_n "(cached) " >&6
20546 tor_saved_CFLAGS
="$CFLAGS"
20547 CFLAGS
="$CFLAGS -pedantic -Werror -Wmismatched-parameter-types"
20548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20549 /* end confdefs.h. */
20559 if ac_fn_c_try_compile
"$LINENO"; then :
20560 tor_cv_cflags__Wmismatched_parameter_types
=yes
20562 tor_cv_cflags__Wmismatched_parameter_types
=no
20564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20565 if test x
!= x
; then
20567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20568 /* end confdefs.h. */
20578 if ac_fn_c_try_link
"$LINENO"; then :
20579 tor_can_link__Wmismatched_parameter_types
=yes
20581 tor_can_link__Wmismatched_parameter_types
=no
20583 rm -f core conftest.err conftest.
$ac_objext \
20584 conftest
$ac_exeext conftest.
$ac_ext
20587 CFLAGS
="$tor_saved_CFLAGS"
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_parameter_types" >&5
20591 $as_echo "$tor_cv_cflags__Wmismatched_parameter_types" >&6; }
20592 if test x
$tor_cv_cflags__Wmismatched_parameter_types = xyes
; then
20593 CFLAGS
="$CFLAGS -Wmismatched-parameter-types"
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-return-types" >&5
20603 $as_echo_n "checking whether the compiler accepts -Wmismatched-return-types... " >&6; }
20604 if ${tor_cv_cflags__Wmismatched_return_types+:} false
; then :
20605 $as_echo_n "(cached) " >&6
20608 tor_saved_CFLAGS
="$CFLAGS"
20609 CFLAGS
="$CFLAGS -pedantic -Werror -Wmismatched-return-types"
20610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20621 if ac_fn_c_try_compile
"$LINENO"; then :
20622 tor_cv_cflags__Wmismatched_return_types
=yes
20624 tor_cv_cflags__Wmismatched_return_types
=no
20626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20627 if test x
!= x
; then
20629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20630 /* end confdefs.h. */
20640 if ac_fn_c_try_link
"$LINENO"; then :
20641 tor_can_link__Wmismatched_return_types
=yes
20643 tor_can_link__Wmismatched_return_types
=no
20645 rm -f core conftest.err conftest.
$ac_objext \
20646 conftest
$ac_exeext conftest.
$ac_ext
20649 CFLAGS
="$tor_saved_CFLAGS"
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_return_types" >&5
20653 $as_echo "$tor_cv_cflags__Wmismatched_return_types" >&6; }
20654 if test x
$tor_cv_cflags__Wmismatched_return_types = xyes
; then
20655 CFLAGS
="$CFLAGS -Wmismatched-return-types"
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-field-initializers" >&5
20665 $as_echo_n "checking whether the compiler accepts -Wmissing-field-initializers... " >&6; }
20666 if ${tor_cv_cflags__Wmissing_field_initializers+:} false
; then :
20667 $as_echo_n "(cached) " >&6
20670 tor_saved_CFLAGS
="$CFLAGS"
20671 CFLAGS
="$CFLAGS -pedantic -Werror -Wmissing-field-initializers"
20672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20683 if ac_fn_c_try_compile
"$LINENO"; then :
20684 tor_cv_cflags__Wmissing_field_initializers
=yes
20686 tor_cv_cflags__Wmissing_field_initializers
=no
20688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20689 if test x
!= x
; then
20691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20692 /* end confdefs.h. */
20702 if ac_fn_c_try_link
"$LINENO"; then :
20703 tor_can_link__Wmissing_field_initializers
=yes
20705 tor_can_link__Wmissing_field_initializers
=no
20707 rm -f core conftest.err conftest.
$ac_objext \
20708 conftest
$ac_exeext conftest.
$ac_ext
20711 CFLAGS
="$tor_saved_CFLAGS"
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_field_initializers" >&5
20715 $as_echo "$tor_cv_cflags__Wmissing_field_initializers" >&6; }
20716 if test x
$tor_cv_cflags__Wmissing_field_initializers = xyes
; then
20717 CFLAGS
="$CFLAGS -Wmissing-field-initializers"
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-format-attribute" >&5
20727 $as_echo_n "checking whether the compiler accepts -Wmissing-format-attribute... " >&6; }
20728 if ${tor_cv_cflags__Wmissing_format_attribute+:} false
; then :
20729 $as_echo_n "(cached) " >&6
20732 tor_saved_CFLAGS
="$CFLAGS"
20733 CFLAGS
="$CFLAGS -pedantic -Werror -Wmissing-format-attribute"
20734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20735 /* end confdefs.h. */
20745 if ac_fn_c_try_compile
"$LINENO"; then :
20746 tor_cv_cflags__Wmissing_format_attribute
=yes
20748 tor_cv_cflags__Wmissing_format_attribute
=no
20750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20751 if test x
!= x
; then
20753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20764 if ac_fn_c_try_link
"$LINENO"; then :
20765 tor_can_link__Wmissing_format_attribute
=yes
20767 tor_can_link__Wmissing_format_attribute
=no
20769 rm -f core conftest.err conftest.
$ac_objext \
20770 conftest
$ac_exeext conftest.
$ac_ext
20773 CFLAGS
="$tor_saved_CFLAGS"
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_format_attribute" >&5
20777 $as_echo "$tor_cv_cflags__Wmissing_format_attribute" >&6; }
20778 if test x
$tor_cv_cflags__Wmissing_format_attribute = xyes
; then
20779 CFLAGS
="$CFLAGS -Wmissing-format-attribute"
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-noreturn" >&5
20789 $as_echo_n "checking whether the compiler accepts -Wmissing-noreturn... " >&6; }
20790 if ${tor_cv_cflags__Wmissing_noreturn+:} false
; then :
20791 $as_echo_n "(cached) " >&6
20794 tor_saved_CFLAGS
="$CFLAGS"
20795 CFLAGS
="$CFLAGS -pedantic -Werror -Wmissing-noreturn"
20796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20797 /* end confdefs.h. */
20807 if ac_fn_c_try_compile
"$LINENO"; then :
20808 tor_cv_cflags__Wmissing_noreturn
=yes
20810 tor_cv_cflags__Wmissing_noreturn
=no
20812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20813 if test x
!= x
; then
20815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20826 if ac_fn_c_try_link
"$LINENO"; then :
20827 tor_can_link__Wmissing_noreturn
=yes
20829 tor_can_link__Wmissing_noreturn
=no
20831 rm -f core conftest.err conftest.
$ac_objext \
20832 conftest
$ac_exeext conftest.
$ac_ext
20835 CFLAGS
="$tor_saved_CFLAGS"
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_noreturn" >&5
20839 $as_echo "$tor_cv_cflags__Wmissing_noreturn" >&6; }
20840 if test x
$tor_cv_cflags__Wmissing_noreturn = xyes
; then
20841 CFLAGS
="$CFLAGS -Wmissing-noreturn"
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-selector-name" >&5
20851 $as_echo_n "checking whether the compiler accepts -Wmissing-selector-name... " >&6; }
20852 if ${tor_cv_cflags__Wmissing_selector_name+:} false
; then :
20853 $as_echo_n "(cached) " >&6
20856 tor_saved_CFLAGS
="$CFLAGS"
20857 CFLAGS
="$CFLAGS -pedantic -Werror -Wmissing-selector-name"
20858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20869 if ac_fn_c_try_compile
"$LINENO"; then :
20870 tor_cv_cflags__Wmissing_selector_name
=yes
20872 tor_cv_cflags__Wmissing_selector_name
=no
20874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20875 if test x
!= x
; then
20877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20878 /* end confdefs.h. */
20888 if ac_fn_c_try_link
"$LINENO"; then :
20889 tor_can_link__Wmissing_selector_name
=yes
20891 tor_can_link__Wmissing_selector_name
=no
20893 rm -f core conftest.err conftest.
$ac_objext \
20894 conftest
$ac_exeext conftest.
$ac_ext
20897 CFLAGS
="$tor_saved_CFLAGS"
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_selector_name" >&5
20901 $as_echo "$tor_cv_cflags__Wmissing_selector_name" >&6; }
20902 if test x
$tor_cv_cflags__Wmissing_selector_name = xyes
; then
20903 CFLAGS
="$CFLAGS -Wmissing-selector-name"
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-sysroot" >&5
20913 $as_echo_n "checking whether the compiler accepts -Wmissing-sysroot... " >&6; }
20914 if ${tor_cv_cflags__Wmissing_sysroot+:} false
; then :
20915 $as_echo_n "(cached) " >&6
20918 tor_saved_CFLAGS
="$CFLAGS"
20919 CFLAGS
="$CFLAGS -pedantic -Werror -Wmissing-sysroot"
20920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20931 if ac_fn_c_try_compile
"$LINENO"; then :
20932 tor_cv_cflags__Wmissing_sysroot
=yes
20934 tor_cv_cflags__Wmissing_sysroot
=no
20936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20937 if test x
!= x
; then
20939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20950 if ac_fn_c_try_link
"$LINENO"; then :
20951 tor_can_link__Wmissing_sysroot
=yes
20953 tor_can_link__Wmissing_sysroot
=no
20955 rm -f core conftest.err conftest.
$ac_objext \
20956 conftest
$ac_exeext conftest.
$ac_ext
20959 CFLAGS
="$tor_saved_CFLAGS"
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_sysroot" >&5
20963 $as_echo "$tor_cv_cflags__Wmissing_sysroot" >&6; }
20964 if test x
$tor_cv_cflags__Wmissing_sysroot = xyes
; then
20965 CFLAGS
="$CFLAGS -Wmissing-sysroot"
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-variable-declarations" >&5
20975 $as_echo_n "checking whether the compiler accepts -Wmissing-variable-declarations... " >&6; }
20976 if ${tor_cv_cflags__Wmissing_variable_declarations+:} false
; then :
20977 $as_echo_n "(cached) " >&6
20980 tor_saved_CFLAGS
="$CFLAGS"
20981 CFLAGS
="$CFLAGS -pedantic -Werror -Wmissing-variable-declarations"
20982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h. */
20993 if ac_fn_c_try_compile
"$LINENO"; then :
20994 tor_cv_cflags__Wmissing_variable_declarations
=yes
20996 tor_cv_cflags__Wmissing_variable_declarations
=no
20998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20999 if test x
!= x
; then
21001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21012 if ac_fn_c_try_link
"$LINENO"; then :
21013 tor_can_link__Wmissing_variable_declarations
=yes
21015 tor_can_link__Wmissing_variable_declarations
=no
21017 rm -f core conftest.err conftest.
$ac_objext \
21018 conftest
$ac_exeext conftest.
$ac_ext
21021 CFLAGS
="$tor_saved_CFLAGS"
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_variable_declarations" >&5
21025 $as_echo "$tor_cv_cflags__Wmissing_variable_declarations" >&6; }
21026 if test x
$tor_cv_cflags__Wmissing_variable_declarations = xyes
; then
21027 CFLAGS
="$CFLAGS -Wmissing-variable-declarations"
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmodule-conflict" >&5
21037 $as_echo_n "checking whether the compiler accepts -Wmodule-conflict... " >&6; }
21038 if ${tor_cv_cflags__Wmodule_conflict+:} false
; then :
21039 $as_echo_n "(cached) " >&6
21042 tor_saved_CFLAGS
="$CFLAGS"
21043 CFLAGS
="$CFLAGS -pedantic -Werror -Wmodule-conflict"
21044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21055 if ac_fn_c_try_compile
"$LINENO"; then :
21056 tor_cv_cflags__Wmodule_conflict
=yes
21058 tor_cv_cflags__Wmodule_conflict
=no
21060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21061 if test x
!= x
; then
21063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21074 if ac_fn_c_try_link
"$LINENO"; then :
21075 tor_can_link__Wmodule_conflict
=yes
21077 tor_can_link__Wmodule_conflict
=no
21079 rm -f core conftest.err conftest.
$ac_objext \
21080 conftest
$ac_exeext conftest.
$ac_ext
21083 CFLAGS
="$tor_saved_CFLAGS"
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmodule_conflict" >&5
21087 $as_echo "$tor_cv_cflags__Wmodule_conflict" >&6; }
21088 if test x
$tor_cv_cflags__Wmodule_conflict = xyes
; then
21089 CFLAGS
="$CFLAGS -Wmodule-conflict"
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnested-anon-types" >&5
21099 $as_echo_n "checking whether the compiler accepts -Wnested-anon-types... " >&6; }
21100 if ${tor_cv_cflags__Wnested_anon_types+:} false
; then :
21101 $as_echo_n "(cached) " >&6
21104 tor_saved_CFLAGS
="$CFLAGS"
21105 CFLAGS
="$CFLAGS -pedantic -Werror -Wnested-anon-types"
21106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21107 /* end confdefs.h. */
21117 if ac_fn_c_try_compile
"$LINENO"; then :
21118 tor_cv_cflags__Wnested_anon_types
=yes
21120 tor_cv_cflags__Wnested_anon_types
=no
21122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21123 if test x
!= x
; then
21125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21126 /* end confdefs.h. */
21136 if ac_fn_c_try_link
"$LINENO"; then :
21137 tor_can_link__Wnested_anon_types
=yes
21139 tor_can_link__Wnested_anon_types
=no
21141 rm -f core conftest.err conftest.
$ac_objext \
21142 conftest
$ac_exeext conftest.
$ac_ext
21145 CFLAGS
="$tor_saved_CFLAGS"
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnested_anon_types" >&5
21149 $as_echo "$tor_cv_cflags__Wnested_anon_types" >&6; }
21150 if test x
$tor_cv_cflags__Wnested_anon_types = xyes
; then
21151 CFLAGS
="$CFLAGS -Wnested-anon-types"
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnewline-eof" >&5
21161 $as_echo_n "checking whether the compiler accepts -Wnewline-eof... " >&6; }
21162 if ${tor_cv_cflags__Wnewline_eof+:} false
; then :
21163 $as_echo_n "(cached) " >&6
21166 tor_saved_CFLAGS
="$CFLAGS"
21167 CFLAGS
="$CFLAGS -pedantic -Werror -Wnewline-eof"
21168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h. */
21179 if ac_fn_c_try_compile
"$LINENO"; then :
21180 tor_cv_cflags__Wnewline_eof
=yes
21182 tor_cv_cflags__Wnewline_eof
=no
21184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21185 if test x
!= x
; then
21187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h. */
21198 if ac_fn_c_try_link
"$LINENO"; then :
21199 tor_can_link__Wnewline_eof
=yes
21201 tor_can_link__Wnewline_eof
=no
21203 rm -f core conftest.err conftest.
$ac_objext \
21204 conftest
$ac_exeext conftest.
$ac_ext
21207 CFLAGS
="$tor_saved_CFLAGS"
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnewline_eof" >&5
21211 $as_echo "$tor_cv_cflags__Wnewline_eof" >&6; }
21212 if test x
$tor_cv_cflags__Wnewline_eof = xyes
; then
21213 CFLAGS
="$CFLAGS -Wnewline-eof"
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-literal-null-conversion" >&5
21223 $as_echo_n "checking whether the compiler accepts -Wnon-literal-null-conversion... " >&6; }
21224 if ${tor_cv_cflags__Wnon_literal_null_conversion+:} false
; then :
21225 $as_echo_n "(cached) " >&6
21228 tor_saved_CFLAGS
="$CFLAGS"
21229 CFLAGS
="$CFLAGS -pedantic -Werror -Wnon-literal-null-conversion"
21230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21241 if ac_fn_c_try_compile
"$LINENO"; then :
21242 tor_cv_cflags__Wnon_literal_null_conversion
=yes
21244 tor_cv_cflags__Wnon_literal_null_conversion
=no
21246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21247 if test x
!= x
; then
21249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21260 if ac_fn_c_try_link
"$LINENO"; then :
21261 tor_can_link__Wnon_literal_null_conversion
=yes
21263 tor_can_link__Wnon_literal_null_conversion
=no
21265 rm -f core conftest.err conftest.
$ac_objext \
21266 conftest
$ac_exeext conftest.
$ac_ext
21269 CFLAGS
="$tor_saved_CFLAGS"
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_literal_null_conversion" >&5
21273 $as_echo "$tor_cv_cflags__Wnon_literal_null_conversion" >&6; }
21274 if test x
$tor_cv_cflags__Wnon_literal_null_conversion = xyes
; then
21275 CFLAGS
="$CFLAGS -Wnon-literal-null-conversion"
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-pod-varargs" >&5
21285 $as_echo_n "checking whether the compiler accepts -Wnon-pod-varargs... " >&6; }
21286 if ${tor_cv_cflags__Wnon_pod_varargs+:} false
; then :
21287 $as_echo_n "(cached) " >&6
21290 tor_saved_CFLAGS
="$CFLAGS"
21291 CFLAGS
="$CFLAGS -pedantic -Werror -Wnon-pod-varargs"
21292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21303 if ac_fn_c_try_compile
"$LINENO"; then :
21304 tor_cv_cflags__Wnon_pod_varargs
=yes
21306 tor_cv_cflags__Wnon_pod_varargs
=no
21308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21309 if test x
!= x
; then
21311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h. */
21322 if ac_fn_c_try_link
"$LINENO"; then :
21323 tor_can_link__Wnon_pod_varargs
=yes
21325 tor_can_link__Wnon_pod_varargs
=no
21327 rm -f core conftest.err conftest.
$ac_objext \
21328 conftest
$ac_exeext conftest.
$ac_ext
21331 CFLAGS
="$tor_saved_CFLAGS"
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_pod_varargs" >&5
21335 $as_echo "$tor_cv_cflags__Wnon_pod_varargs" >&6; }
21336 if test x
$tor_cv_cflags__Wnon_pod_varargs = xyes
; then
21337 CFLAGS
="$CFLAGS -Wnon-pod-varargs"
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnonportable-cfstrings" >&5
21347 $as_echo_n "checking whether the compiler accepts -Wnonportable-cfstrings... " >&6; }
21348 if ${tor_cv_cflags__Wnonportable_cfstrings+:} false
; then :
21349 $as_echo_n "(cached) " >&6
21352 tor_saved_CFLAGS
="$CFLAGS"
21353 CFLAGS
="$CFLAGS -pedantic -Werror -Wnonportable-cfstrings"
21354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21355 /* end confdefs.h. */
21365 if ac_fn_c_try_compile
"$LINENO"; then :
21366 tor_cv_cflags__Wnonportable_cfstrings
=yes
21368 tor_cv_cflags__Wnonportable_cfstrings
=no
21370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21371 if test x
!= x
; then
21373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21374 /* end confdefs.h. */
21384 if ac_fn_c_try_link
"$LINENO"; then :
21385 tor_can_link__Wnonportable_cfstrings
=yes
21387 tor_can_link__Wnonportable_cfstrings
=no
21389 rm -f core conftest.err conftest.
$ac_objext \
21390 conftest
$ac_exeext conftest.
$ac_ext
21393 CFLAGS
="$tor_saved_CFLAGS"
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnonportable_cfstrings" >&5
21397 $as_echo "$tor_cv_cflags__Wnonportable_cfstrings" >&6; }
21398 if test x
$tor_cv_cflags__Wnonportable_cfstrings = xyes
; then
21399 CFLAGS
="$CFLAGS -Wnonportable-cfstrings"
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnormalized=id" >&5
21409 $as_echo_n "checking whether the compiler accepts -Wnormalized=id... " >&6; }
21410 if ${tor_cv_cflags__Wnormalized_id+:} false
; then :
21411 $as_echo_n "(cached) " >&6
21414 tor_saved_CFLAGS
="$CFLAGS"
21415 CFLAGS
="$CFLAGS -pedantic -Werror -Wnormalized=id"
21416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21427 if ac_fn_c_try_compile
"$LINENO"; then :
21428 tor_cv_cflags__Wnormalized_id
=yes
21430 tor_cv_cflags__Wnormalized_id
=no
21432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21433 if test x
!= x
; then
21435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21446 if ac_fn_c_try_link
"$LINENO"; then :
21447 tor_can_link__Wnormalized_id
=yes
21449 tor_can_link__Wnormalized_id
=no
21451 rm -f core conftest.err conftest.
$ac_objext \
21452 conftest
$ac_exeext conftest.
$ac_ext
21455 CFLAGS
="$tor_saved_CFLAGS"
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnormalized_id" >&5
21459 $as_echo "$tor_cv_cflags__Wnormalized_id" >&6; }
21460 if test x
$tor_cv_cflags__Wnormalized_id = xyes
; then
21461 CFLAGS
="$CFLAGS -Wnormalized=id"
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-arithmetic" >&5
21471 $as_echo_n "checking whether the compiler accepts -Wnull-arithmetic... " >&6; }
21472 if ${tor_cv_cflags__Wnull_arithmetic+:} false
; then :
21473 $as_echo_n "(cached) " >&6
21476 tor_saved_CFLAGS
="$CFLAGS"
21477 CFLAGS
="$CFLAGS -pedantic -Werror -Wnull-arithmetic"
21478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21489 if ac_fn_c_try_compile
"$LINENO"; then :
21490 tor_cv_cflags__Wnull_arithmetic
=yes
21492 tor_cv_cflags__Wnull_arithmetic
=no
21494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21495 if test x
!= x
; then
21497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21508 if ac_fn_c_try_link
"$LINENO"; then :
21509 tor_can_link__Wnull_arithmetic
=yes
21511 tor_can_link__Wnull_arithmetic
=no
21513 rm -f core conftest.err conftest.
$ac_objext \
21514 conftest
$ac_exeext conftest.
$ac_ext
21517 CFLAGS
="$tor_saved_CFLAGS"
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_arithmetic" >&5
21521 $as_echo "$tor_cv_cflags__Wnull_arithmetic" >&6; }
21522 if test x
$tor_cv_cflags__Wnull_arithmetic = xyes
; then
21523 CFLAGS
="$CFLAGS -Wnull-arithmetic"
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-character" >&5
21533 $as_echo_n "checking whether the compiler accepts -Wnull-character... " >&6; }
21534 if ${tor_cv_cflags__Wnull_character+:} false
; then :
21535 $as_echo_n "(cached) " >&6
21538 tor_saved_CFLAGS
="$CFLAGS"
21539 CFLAGS
="$CFLAGS -pedantic -Werror -Wnull-character"
21540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21541 /* end confdefs.h. */
21551 if ac_fn_c_try_compile
"$LINENO"; then :
21552 tor_cv_cflags__Wnull_character
=yes
21554 tor_cv_cflags__Wnull_character
=no
21556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21557 if test x
!= x
; then
21559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21560 /* end confdefs.h. */
21570 if ac_fn_c_try_link
"$LINENO"; then :
21571 tor_can_link__Wnull_character
=yes
21573 tor_can_link__Wnull_character
=no
21575 rm -f core conftest.err conftest.
$ac_objext \
21576 conftest
$ac_exeext conftest.
$ac_ext
21579 CFLAGS
="$tor_saved_CFLAGS"
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_character" >&5
21583 $as_echo "$tor_cv_cflags__Wnull_character" >&6; }
21584 if test x
$tor_cv_cflags__Wnull_character = xyes
; then
21585 CFLAGS
="$CFLAGS -Wnull-character"
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-conversion" >&5
21595 $as_echo_n "checking whether the compiler accepts -Wnull-conversion... " >&6; }
21596 if ${tor_cv_cflags__Wnull_conversion+:} false
; then :
21597 $as_echo_n "(cached) " >&6
21600 tor_saved_CFLAGS
="$CFLAGS"
21601 CFLAGS
="$CFLAGS -pedantic -Werror -Wnull-conversion"
21602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h. */
21613 if ac_fn_c_try_compile
"$LINENO"; then :
21614 tor_cv_cflags__Wnull_conversion
=yes
21616 tor_cv_cflags__Wnull_conversion
=no
21618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21619 if test x
!= x
; then
21621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21622 /* end confdefs.h. */
21632 if ac_fn_c_try_link
"$LINENO"; then :
21633 tor_can_link__Wnull_conversion
=yes
21635 tor_can_link__Wnull_conversion
=no
21637 rm -f core conftest.err conftest.
$ac_objext \
21638 conftest
$ac_exeext conftest.
$ac_ext
21641 CFLAGS
="$tor_saved_CFLAGS"
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_conversion" >&5
21645 $as_echo "$tor_cv_cflags__Wnull_conversion" >&6; }
21646 if test x
$tor_cv_cflags__Wnull_conversion = xyes
; then
21647 CFLAGS
="$CFLAGS -Wnull-conversion"
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-dereference" >&5
21657 $as_echo_n "checking whether the compiler accepts -Wnull-dereference... " >&6; }
21658 if ${tor_cv_cflags__Wnull_dereference+:} false
; then :
21659 $as_echo_n "(cached) " >&6
21662 tor_saved_CFLAGS
="$CFLAGS"
21663 CFLAGS
="$CFLAGS -pedantic -Werror -Wnull-dereference"
21664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21665 /* end confdefs.h. */
21675 if ac_fn_c_try_compile
"$LINENO"; then :
21676 tor_cv_cflags__Wnull_dereference
=yes
21678 tor_cv_cflags__Wnull_dereference
=no
21680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21681 if test x
!= x
; then
21683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21694 if ac_fn_c_try_link
"$LINENO"; then :
21695 tor_can_link__Wnull_dereference
=yes
21697 tor_can_link__Wnull_dereference
=no
21699 rm -f core conftest.err conftest.
$ac_objext \
21700 conftest
$ac_exeext conftest.
$ac_ext
21703 CFLAGS
="$tor_saved_CFLAGS"
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_dereference" >&5
21707 $as_echo "$tor_cv_cflags__Wnull_dereference" >&6; }
21708 if test x
$tor_cv_cflags__Wnull_dereference = xyes
; then
21709 CFLAGS
="$CFLAGS -Wnull-dereference"
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wout-of-line-declaration" >&5
21719 $as_echo_n "checking whether the compiler accepts -Wout-of-line-declaration... " >&6; }
21720 if ${tor_cv_cflags__Wout_of_line_declaration+:} false
; then :
21721 $as_echo_n "(cached) " >&6
21724 tor_saved_CFLAGS
="$CFLAGS"
21725 CFLAGS
="$CFLAGS -pedantic -Werror -Wout-of-line-declaration"
21726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h. */
21737 if ac_fn_c_try_compile
"$LINENO"; then :
21738 tor_cv_cflags__Wout_of_line_declaration
=yes
21740 tor_cv_cflags__Wout_of_line_declaration
=no
21742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21743 if test x
!= x
; then
21745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21746 /* end confdefs.h. */
21756 if ac_fn_c_try_link
"$LINENO"; then :
21757 tor_can_link__Wout_of_line_declaration
=yes
21759 tor_can_link__Wout_of_line_declaration
=no
21761 rm -f core conftest.err conftest.
$ac_objext \
21762 conftest
$ac_exeext conftest.
$ac_ext
21765 CFLAGS
="$tor_saved_CFLAGS"
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wout_of_line_declaration" >&5
21769 $as_echo "$tor_cv_cflags__Wout_of_line_declaration" >&6; }
21770 if test x
$tor_cv_cflags__Wout_of_line_declaration = xyes
; then
21771 CFLAGS
="$CFLAGS -Wout-of-line-declaration"
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wover-aligned" >&5
21781 $as_echo_n "checking whether the compiler accepts -Wover-aligned... " >&6; }
21782 if ${tor_cv_cflags__Wover_aligned+:} false
; then :
21783 $as_echo_n "(cached) " >&6
21786 tor_saved_CFLAGS
="$CFLAGS"
21787 CFLAGS
="$CFLAGS -pedantic -Werror -Wover-aligned"
21788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21789 /* end confdefs.h. */
21799 if ac_fn_c_try_compile
"$LINENO"; then :
21800 tor_cv_cflags__Wover_aligned
=yes
21802 tor_cv_cflags__Wover_aligned
=no
21804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21805 if test x
!= x
; then
21807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21818 if ac_fn_c_try_link
"$LINENO"; then :
21819 tor_can_link__Wover_aligned
=yes
21821 tor_can_link__Wover_aligned
=no
21823 rm -f core conftest.err conftest.
$ac_objext \
21824 conftest
$ac_exeext conftest.
$ac_ext
21827 CFLAGS
="$tor_saved_CFLAGS"
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wover_aligned" >&5
21831 $as_echo "$tor_cv_cflags__Wover_aligned" >&6; }
21832 if test x
$tor_cv_cflags__Wover_aligned = xyes
; then
21833 CFLAGS
="$CFLAGS -Wover-aligned"
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverlength-strings" >&5
21843 $as_echo_n "checking whether the compiler accepts -Woverlength-strings... " >&6; }
21844 if ${tor_cv_cflags__Woverlength_strings+:} false
; then :
21845 $as_echo_n "(cached) " >&6
21848 tor_saved_CFLAGS
="$CFLAGS"
21849 CFLAGS
="$CFLAGS -pedantic -Werror -Woverlength-strings"
21850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21851 /* end confdefs.h. */
21861 if ac_fn_c_try_compile
"$LINENO"; then :
21862 tor_cv_cflags__Woverlength_strings
=yes
21864 tor_cv_cflags__Woverlength_strings
=no
21866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21867 if test x
!= x
; then
21869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h. */
21880 if ac_fn_c_try_link
"$LINENO"; then :
21881 tor_can_link__Woverlength_strings
=yes
21883 tor_can_link__Woverlength_strings
=no
21885 rm -f core conftest.err conftest.
$ac_objext \
21886 conftest
$ac_exeext conftest.
$ac_ext
21889 CFLAGS
="$tor_saved_CFLAGS"
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverlength_strings" >&5
21893 $as_echo "$tor_cv_cflags__Woverlength_strings" >&6; }
21894 if test x
$tor_cv_cflags__Woverlength_strings = xyes
; then
21895 CFLAGS
="$CFLAGS -Woverlength-strings"
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverride-init" >&5
21905 $as_echo_n "checking whether the compiler accepts -Woverride-init... " >&6; }
21906 if ${tor_cv_cflags__Woverride_init+:} false
; then :
21907 $as_echo_n "(cached) " >&6
21910 tor_saved_CFLAGS
="$CFLAGS"
21911 CFLAGS
="$CFLAGS -pedantic -Werror -Woverride-init"
21912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21923 if ac_fn_c_try_compile
"$LINENO"; then :
21924 tor_cv_cflags__Woverride_init
=yes
21926 tor_cv_cflags__Woverride_init
=no
21928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21929 if test x
!= x
; then
21931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21932 /* end confdefs.h. */
21942 if ac_fn_c_try_link
"$LINENO"; then :
21943 tor_can_link__Woverride_init
=yes
21945 tor_can_link__Woverride_init
=no
21947 rm -f core conftest.err conftest.
$ac_objext \
21948 conftest
$ac_exeext conftest.
$ac_ext
21951 CFLAGS
="$tor_saved_CFLAGS"
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverride_init" >&5
21955 $as_echo "$tor_cv_cflags__Woverride_init" >&6; }
21956 if test x
$tor_cv_cflags__Woverride_init = xyes
; then
21957 CFLAGS
="$CFLAGS -Woverride-init"
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverriding-method-mismatch" >&5
21967 $as_echo_n "checking whether the compiler accepts -Woverriding-method-mismatch... " >&6; }
21968 if ${tor_cv_cflags__Woverriding_method_mismatch+:} false
; then :
21969 $as_echo_n "(cached) " >&6
21972 tor_saved_CFLAGS
="$CFLAGS"
21973 CFLAGS
="$CFLAGS -pedantic -Werror -Woverriding-method-mismatch"
21974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h. */
21985 if ac_fn_c_try_compile
"$LINENO"; then :
21986 tor_cv_cflags__Woverriding_method_mismatch
=yes
21988 tor_cv_cflags__Woverriding_method_mismatch
=no
21990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21991 if test x
!= x
; then
21993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21994 /* end confdefs.h. */
22004 if ac_fn_c_try_link
"$LINENO"; then :
22005 tor_can_link__Woverriding_method_mismatch
=yes
22007 tor_can_link__Woverriding_method_mismatch
=no
22009 rm -f core conftest.err conftest.
$ac_objext \
22010 conftest
$ac_exeext conftest.
$ac_ext
22013 CFLAGS
="$tor_saved_CFLAGS"
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverriding_method_mismatch" >&5
22017 $as_echo "$tor_cv_cflags__Woverriding_method_mismatch" >&6; }
22018 if test x
$tor_cv_cflags__Woverriding_method_mismatch = xyes
; then
22019 CFLAGS
="$CFLAGS -Woverriding-method-mismatch"
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpointer-type-mismatch" >&5
22029 $as_echo_n "checking whether the compiler accepts -Wpointer-type-mismatch... " >&6; }
22030 if ${tor_cv_cflags__Wpointer_type_mismatch+:} false
; then :
22031 $as_echo_n "(cached) " >&6
22034 tor_saved_CFLAGS
="$CFLAGS"
22035 CFLAGS
="$CFLAGS -pedantic -Werror -Wpointer-type-mismatch"
22036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22037 /* end confdefs.h. */
22047 if ac_fn_c_try_compile
"$LINENO"; then :
22048 tor_cv_cflags__Wpointer_type_mismatch
=yes
22050 tor_cv_cflags__Wpointer_type_mismatch
=no
22052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22053 if test x
!= x
; then
22055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22056 /* end confdefs.h. */
22066 if ac_fn_c_try_link
"$LINENO"; then :
22067 tor_can_link__Wpointer_type_mismatch
=yes
22069 tor_can_link__Wpointer_type_mismatch
=no
22071 rm -f core conftest.err conftest.
$ac_objext \
22072 conftest
$ac_exeext conftest.
$ac_ext
22075 CFLAGS
="$tor_saved_CFLAGS"
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpointer_type_mismatch" >&5
22079 $as_echo "$tor_cv_cflags__Wpointer_type_mismatch" >&6; }
22080 if test x
$tor_cv_cflags__Wpointer_type_mismatch = xyes
; then
22081 CFLAGS
="$CFLAGS -Wpointer-type-mismatch"
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpredefined-identifier-outside-function" >&5
22091 $as_echo_n "checking whether the compiler accepts -Wpredefined-identifier-outside-function... " >&6; }
22092 if ${tor_cv_cflags__Wpredefined_identifier_outside_function+:} false
; then :
22093 $as_echo_n "(cached) " >&6
22096 tor_saved_CFLAGS
="$CFLAGS"
22097 CFLAGS
="$CFLAGS -pedantic -Werror -Wpredefined-identifier-outside-function"
22098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22109 if ac_fn_c_try_compile
"$LINENO"; then :
22110 tor_cv_cflags__Wpredefined_identifier_outside_function
=yes
22112 tor_cv_cflags__Wpredefined_identifier_outside_function
=no
22114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22115 if test x
!= x
; then
22117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h. */
22128 if ac_fn_c_try_link
"$LINENO"; then :
22129 tor_can_link__Wpredefined_identifier_outside_function
=yes
22131 tor_can_link__Wpredefined_identifier_outside_function
=no
22133 rm -f core conftest.err conftest.
$ac_objext \
22134 conftest
$ac_exeext conftest.
$ac_ext
22137 CFLAGS
="$tor_saved_CFLAGS"
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpredefined_identifier_outside_function" >&5
22141 $as_echo "$tor_cv_cflags__Wpredefined_identifier_outside_function" >&6; }
22142 if test x
$tor_cv_cflags__Wpredefined_identifier_outside_function = xyes
; then
22143 CFLAGS
="$CFLAGS -Wpredefined-identifier-outside-function"
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity" >&5
22153 $as_echo_n "checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity... " >&6; }
22154 if ${tor_cv_cflags__Wprotocol_property_synthesis_ambiguity+:} false
; then :
22155 $as_echo_n "(cached) " >&6
22158 tor_saved_CFLAGS
="$CFLAGS"
22159 CFLAGS
="$CFLAGS -pedantic -Werror -Wprotocol-property-synthesis-ambiguity"
22160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22171 if ac_fn_c_try_compile
"$LINENO"; then :
22172 tor_cv_cflags__Wprotocol_property_synthesis_ambiguity
=yes
22174 tor_cv_cflags__Wprotocol_property_synthesis_ambiguity
=no
22176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22177 if test x
!= x
; then
22179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22190 if ac_fn_c_try_link
"$LINENO"; then :
22191 tor_can_link__Wprotocol_property_synthesis_ambiguity
=yes
22193 tor_can_link__Wprotocol_property_synthesis_ambiguity
=no
22195 rm -f core conftest.err conftest.
$ac_objext \
22196 conftest
$ac_exeext conftest.
$ac_ext
22199 CFLAGS
="$tor_saved_CFLAGS"
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wprotocol_property_synthesis_ambiguity" >&5
22203 $as_echo "$tor_cv_cflags__Wprotocol_property_synthesis_ambiguity" >&6; }
22204 if test x
$tor_cv_cflags__Wprotocol_property_synthesis_ambiguity = xyes
; then
22205 CFLAGS
="$CFLAGS -Wprotocol-property-synthesis-ambiguity"
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-iboutlet-property" >&5
22215 $as_echo_n "checking whether the compiler accepts -Wreadonly-iboutlet-property... " >&6; }
22216 if ${tor_cv_cflags__Wreadonly_iboutlet_property+:} false
; then :
22217 $as_echo_n "(cached) " >&6
22220 tor_saved_CFLAGS
="$CFLAGS"
22221 CFLAGS
="$CFLAGS -pedantic -Werror -Wreadonly-iboutlet-property"
22222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22233 if ac_fn_c_try_compile
"$LINENO"; then :
22234 tor_cv_cflags__Wreadonly_iboutlet_property
=yes
22236 tor_cv_cflags__Wreadonly_iboutlet_property
=no
22238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22239 if test x
!= x
; then
22241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22252 if ac_fn_c_try_link
"$LINENO"; then :
22253 tor_can_link__Wreadonly_iboutlet_property
=yes
22255 tor_can_link__Wreadonly_iboutlet_property
=no
22257 rm -f core conftest.err conftest.
$ac_objext \
22258 conftest
$ac_exeext conftest.
$ac_ext
22261 CFLAGS
="$tor_saved_CFLAGS"
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_iboutlet_property" >&5
22265 $as_echo "$tor_cv_cflags__Wreadonly_iboutlet_property" >&6; }
22266 if test x
$tor_cv_cflags__Wreadonly_iboutlet_property = xyes
; then
22267 CFLAGS
="$CFLAGS -Wreadonly-iboutlet-property"
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-setter-attrs" >&5
22277 $as_echo_n "checking whether the compiler accepts -Wreadonly-setter-attrs... " >&6; }
22278 if ${tor_cv_cflags__Wreadonly_setter_attrs+:} false
; then :
22279 $as_echo_n "(cached) " >&6
22282 tor_saved_CFLAGS
="$CFLAGS"
22283 CFLAGS
="$CFLAGS -pedantic -Werror -Wreadonly-setter-attrs"
22284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22285 /* end confdefs.h. */
22295 if ac_fn_c_try_compile
"$LINENO"; then :
22296 tor_cv_cflags__Wreadonly_setter_attrs
=yes
22298 tor_cv_cflags__Wreadonly_setter_attrs
=no
22300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22301 if test x
!= x
; then
22303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22314 if ac_fn_c_try_link
"$LINENO"; then :
22315 tor_can_link__Wreadonly_setter_attrs
=yes
22317 tor_can_link__Wreadonly_setter_attrs
=no
22319 rm -f core conftest.err conftest.
$ac_objext \
22320 conftest
$ac_exeext conftest.
$ac_ext
22323 CFLAGS
="$tor_saved_CFLAGS"
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_setter_attrs" >&5
22327 $as_echo "$tor_cv_cflags__Wreadonly_setter_attrs" >&6; }
22328 if test x
$tor_cv_cflags__Wreadonly_setter_attrs = xyes
; then
22329 CFLAGS
="$CFLAGS -Wreadonly-setter-attrs"
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-expr" >&5
22339 $as_echo_n "checking whether the compiler accepts -Wreceiver-expr... " >&6; }
22340 if ${tor_cv_cflags__Wreceiver_expr+:} false
; then :
22341 $as_echo_n "(cached) " >&6
22344 tor_saved_CFLAGS
="$CFLAGS"
22345 CFLAGS
="$CFLAGS -pedantic -Werror -Wreceiver-expr"
22346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22347 /* end confdefs.h. */
22357 if ac_fn_c_try_compile
"$LINENO"; then :
22358 tor_cv_cflags__Wreceiver_expr
=yes
22360 tor_cv_cflags__Wreceiver_expr
=no
22362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22363 if test x
!= x
; then
22365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22376 if ac_fn_c_try_link
"$LINENO"; then :
22377 tor_can_link__Wreceiver_expr
=yes
22379 tor_can_link__Wreceiver_expr
=no
22381 rm -f core conftest.err conftest.
$ac_objext \
22382 conftest
$ac_exeext conftest.
$ac_ext
22385 CFLAGS
="$tor_saved_CFLAGS"
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_expr" >&5
22389 $as_echo "$tor_cv_cflags__Wreceiver_expr" >&6; }
22390 if test x
$tor_cv_cflags__Wreceiver_expr = xyes
; then
22391 CFLAGS
="$CFLAGS -Wreceiver-expr"
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-forward-class" >&5
22401 $as_echo_n "checking whether the compiler accepts -Wreceiver-forward-class... " >&6; }
22402 if ${tor_cv_cflags__Wreceiver_forward_class+:} false
; then :
22403 $as_echo_n "(cached) " >&6
22406 tor_saved_CFLAGS
="$CFLAGS"
22407 CFLAGS
="$CFLAGS -pedantic -Werror -Wreceiver-forward-class"
22408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h. */
22419 if ac_fn_c_try_compile
"$LINENO"; then :
22420 tor_cv_cflags__Wreceiver_forward_class
=yes
22422 tor_cv_cflags__Wreceiver_forward_class
=no
22424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22425 if test x
!= x
; then
22427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22438 if ac_fn_c_try_link
"$LINENO"; then :
22439 tor_can_link__Wreceiver_forward_class
=yes
22441 tor_can_link__Wreceiver_forward_class
=no
22443 rm -f core conftest.err conftest.
$ac_objext \
22444 conftest
$ac_exeext conftest.
$ac_ext
22447 CFLAGS
="$tor_saved_CFLAGS"
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_forward_class" >&5
22451 $as_echo "$tor_cv_cflags__Wreceiver_forward_class" >&6; }
22452 if test x
$tor_cv_cflags__Wreceiver_forward_class = xyes
; then
22453 CFLAGS
="$CFLAGS -Wreceiver-forward-class"
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-is-weak" >&5
22463 $as_echo_n "checking whether the compiler accepts -Wreceiver-is-weak... " >&6; }
22464 if ${tor_cv_cflags__Wreceiver_is_weak+:} false
; then :
22465 $as_echo_n "(cached) " >&6
22468 tor_saved_CFLAGS
="$CFLAGS"
22469 CFLAGS
="$CFLAGS -pedantic -Werror -Wreceiver-is-weak"
22470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22471 /* end confdefs.h. */
22481 if ac_fn_c_try_compile
"$LINENO"; then :
22482 tor_cv_cflags__Wreceiver_is_weak
=yes
22484 tor_cv_cflags__Wreceiver_is_weak
=no
22486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22487 if test x
!= x
; then
22489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22490 /* end confdefs.h. */
22500 if ac_fn_c_try_link
"$LINENO"; then :
22501 tor_can_link__Wreceiver_is_weak
=yes
22503 tor_can_link__Wreceiver_is_weak
=no
22505 rm -f core conftest.err conftest.
$ac_objext \
22506 conftest
$ac_exeext conftest.
$ac_ext
22509 CFLAGS
="$tor_saved_CFLAGS"
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_is_weak" >&5
22513 $as_echo "$tor_cv_cflags__Wreceiver_is_weak" >&6; }
22514 if test x
$tor_cv_cflags__Wreceiver_is_weak = xyes
; then
22515 CFLAGS
="$CFLAGS -Wreceiver-is-weak"
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreinterpret-base-class" >&5
22525 $as_echo_n "checking whether the compiler accepts -Wreinterpret-base-class... " >&6; }
22526 if ${tor_cv_cflags__Wreinterpret_base_class+:} false
; then :
22527 $as_echo_n "(cached) " >&6
22530 tor_saved_CFLAGS
="$CFLAGS"
22531 CFLAGS
="$CFLAGS -pedantic -Werror -Wreinterpret-base-class"
22532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22533 /* end confdefs.h. */
22543 if ac_fn_c_try_compile
"$LINENO"; then :
22544 tor_cv_cflags__Wreinterpret_base_class
=yes
22546 tor_cv_cflags__Wreinterpret_base_class
=no
22548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22549 if test x
!= x
; then
22551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22562 if ac_fn_c_try_link
"$LINENO"; then :
22563 tor_can_link__Wreinterpret_base_class
=yes
22565 tor_can_link__Wreinterpret_base_class
=no
22567 rm -f core conftest.err conftest.
$ac_objext \
22568 conftest
$ac_exeext conftest.
$ac_ext
22571 CFLAGS
="$tor_saved_CFLAGS"
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreinterpret_base_class" >&5
22575 $as_echo "$tor_cv_cflags__Wreinterpret_base_class" >&6; }
22576 if test x
$tor_cv_cflags__Wreinterpret_base_class = xyes
; then
22577 CFLAGS
="$CFLAGS -Wreinterpret-base-class"
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wrequires-super-attribute" >&5
22587 $as_echo_n "checking whether the compiler accepts -Wrequires-super-attribute... " >&6; }
22588 if ${tor_cv_cflags__Wrequires_super_attribute+:} false
; then :
22589 $as_echo_n "(cached) " >&6
22592 tor_saved_CFLAGS
="$CFLAGS"
22593 CFLAGS
="$CFLAGS -pedantic -Werror -Wrequires-super-attribute"
22594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22595 /* end confdefs.h. */
22605 if ac_fn_c_try_compile
"$LINENO"; then :
22606 tor_cv_cflags__Wrequires_super_attribute
=yes
22608 tor_cv_cflags__Wrequires_super_attribute
=no
22610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22611 if test x
!= x
; then
22613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22614 /* end confdefs.h. */
22624 if ac_fn_c_try_link
"$LINENO"; then :
22625 tor_can_link__Wrequires_super_attribute
=yes
22627 tor_can_link__Wrequires_super_attribute
=no
22629 rm -f core conftest.err conftest.
$ac_objext \
22630 conftest
$ac_exeext conftest.
$ac_ext
22633 CFLAGS
="$tor_saved_CFLAGS"
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wrequires_super_attribute" >&5
22637 $as_echo "$tor_cv_cflags__Wrequires_super_attribute" >&6; }
22638 if test x
$tor_cv_cflags__Wrequires_super_attribute = xyes
; then
22639 CFLAGS
="$CFLAGS -Wrequires-super-attribute"
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreserved-user-defined-literal" >&5
22649 $as_echo_n "checking whether the compiler accepts -Wreserved-user-defined-literal... " >&6; }
22650 if ${tor_cv_cflags__Wreserved_user_defined_literal+:} false
; then :
22651 $as_echo_n "(cached) " >&6
22654 tor_saved_CFLAGS
="$CFLAGS"
22655 CFLAGS
="$CFLAGS -pedantic -Werror -Wreserved-user-defined-literal"
22656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22657 /* end confdefs.h. */
22667 if ac_fn_c_try_compile
"$LINENO"; then :
22668 tor_cv_cflags__Wreserved_user_defined_literal
=yes
22670 tor_cv_cflags__Wreserved_user_defined_literal
=no
22672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22673 if test x
!= x
; then
22675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22686 if ac_fn_c_try_link
"$LINENO"; then :
22687 tor_can_link__Wreserved_user_defined_literal
=yes
22689 tor_can_link__Wreserved_user_defined_literal
=no
22691 rm -f core conftest.err conftest.
$ac_objext \
22692 conftest
$ac_exeext conftest.
$ac_ext
22695 CFLAGS
="$tor_saved_CFLAGS"
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreserved_user_defined_literal" >&5
22699 $as_echo "$tor_cv_cflags__Wreserved_user_defined_literal" >&6; }
22700 if test x
$tor_cv_cflags__Wreserved_user_defined_literal = xyes
; then
22701 CFLAGS
="$CFLAGS -Wreserved-user-defined-literal"
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreturn-stack-address" >&5
22711 $as_echo_n "checking whether the compiler accepts -Wreturn-stack-address... " >&6; }
22712 if ${tor_cv_cflags__Wreturn_stack_address+:} false
; then :
22713 $as_echo_n "(cached) " >&6
22716 tor_saved_CFLAGS
="$CFLAGS"
22717 CFLAGS
="$CFLAGS -pedantic -Werror -Wreturn-stack-address"
22718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22719 /* end confdefs.h. */
22729 if ac_fn_c_try_compile
"$LINENO"; then :
22730 tor_cv_cflags__Wreturn_stack_address
=yes
22732 tor_cv_cflags__Wreturn_stack_address
=no
22734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22735 if test x
!= x
; then
22737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22738 /* end confdefs.h. */
22748 if ac_fn_c_try_link
"$LINENO"; then :
22749 tor_can_link__Wreturn_stack_address
=yes
22751 tor_can_link__Wreturn_stack_address
=no
22753 rm -f core conftest.err conftest.
$ac_objext \
22754 conftest
$ac_exeext conftest.
$ac_ext
22757 CFLAGS
="$tor_saved_CFLAGS"
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreturn_stack_address" >&5
22761 $as_echo "$tor_cv_cflags__Wreturn_stack_address" >&6; }
22762 if test x
$tor_cv_cflags__Wreturn_stack_address = xyes
; then
22763 CFLAGS
="$CFLAGS -Wreturn-stack-address"
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsection" >&5
22773 $as_echo_n "checking whether the compiler accepts -Wsection... " >&6; }
22774 if ${tor_cv_cflags__Wsection+:} false
; then :
22775 $as_echo_n "(cached) " >&6
22778 tor_saved_CFLAGS
="$CFLAGS"
22779 CFLAGS
="$CFLAGS -pedantic -Werror -Wsection"
22780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22781 /* end confdefs.h. */
22791 if ac_fn_c_try_compile
"$LINENO"; then :
22792 tor_cv_cflags__Wsection
=yes
22794 tor_cv_cflags__Wsection
=no
22796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22797 if test x
!= x
; then
22799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22800 /* end confdefs.h. */
22810 if ac_fn_c_try_link
"$LINENO"; then :
22811 tor_can_link__Wsection
=yes
22813 tor_can_link__Wsection
=no
22815 rm -f core conftest.err conftest.
$ac_objext \
22816 conftest
$ac_exeext conftest.
$ac_ext
22819 CFLAGS
="$tor_saved_CFLAGS"
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsection" >&5
22823 $as_echo "$tor_cv_cflags__Wsection" >&6; }
22824 if test x
$tor_cv_cflags__Wsection = xyes
; then
22825 CFLAGS
="$CFLAGS -Wsection"
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wselector-type-mismatch" >&5
22835 $as_echo_n "checking whether the compiler accepts -Wselector-type-mismatch... " >&6; }
22836 if ${tor_cv_cflags__Wselector_type_mismatch+:} false
; then :
22837 $as_echo_n "(cached) " >&6
22840 tor_saved_CFLAGS
="$CFLAGS"
22841 CFLAGS
="$CFLAGS -pedantic -Werror -Wselector-type-mismatch"
22842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22853 if ac_fn_c_try_compile
"$LINENO"; then :
22854 tor_cv_cflags__Wselector_type_mismatch
=yes
22856 tor_cv_cflags__Wselector_type_mismatch
=no
22858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22859 if test x
!= x
; then
22861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h. */
22872 if ac_fn_c_try_link
"$LINENO"; then :
22873 tor_can_link__Wselector_type_mismatch
=yes
22875 tor_can_link__Wselector_type_mismatch
=no
22877 rm -f core conftest.err conftest.
$ac_objext \
22878 conftest
$ac_exeext conftest.
$ac_ext
22881 CFLAGS
="$tor_saved_CFLAGS"
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wselector_type_mismatch" >&5
22885 $as_echo "$tor_cv_cflags__Wselector_type_mismatch" >&6; }
22886 if test x
$tor_cv_cflags__Wselector_type_mismatch = xyes
; then
22887 CFLAGS
="$CFLAGS -Wselector-type-mismatch"
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsentinel" >&5
22897 $as_echo_n "checking whether the compiler accepts -Wsentinel... " >&6; }
22898 if ${tor_cv_cflags__Wsentinel+:} false
; then :
22899 $as_echo_n "(cached) " >&6
22902 tor_saved_CFLAGS
="$CFLAGS"
22903 CFLAGS
="$CFLAGS -pedantic -Werror -Wsentinel"
22904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h. */
22915 if ac_fn_c_try_compile
"$LINENO"; then :
22916 tor_cv_cflags__Wsentinel
=yes
22918 tor_cv_cflags__Wsentinel
=no
22920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22921 if test x
!= x
; then
22923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22934 if ac_fn_c_try_link
"$LINENO"; then :
22935 tor_can_link__Wsentinel
=yes
22937 tor_can_link__Wsentinel
=no
22939 rm -f core conftest.err conftest.
$ac_objext \
22940 conftest
$ac_exeext conftest.
$ac_ext
22943 CFLAGS
="$tor_saved_CFLAGS"
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsentinel" >&5
22947 $as_echo "$tor_cv_cflags__Wsentinel" >&6; }
22948 if test x
$tor_cv_cflags__Wsentinel = xyes
; then
22949 CFLAGS
="$CFLAGS -Wsentinel"
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wserialized-diagnostics" >&5
22959 $as_echo_n "checking whether the compiler accepts -Wserialized-diagnostics... " >&6; }
22960 if ${tor_cv_cflags__Wserialized_diagnostics+:} false
; then :
22961 $as_echo_n "(cached) " >&6
22964 tor_saved_CFLAGS
="$CFLAGS"
22965 CFLAGS
="$CFLAGS -pedantic -Werror -Wserialized-diagnostics"
22966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22967 /* end confdefs.h. */
22977 if ac_fn_c_try_compile
"$LINENO"; then :
22978 tor_cv_cflags__Wserialized_diagnostics
=yes
22980 tor_cv_cflags__Wserialized_diagnostics
=no
22982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22983 if test x
!= x
; then
22985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22986 /* end confdefs.h. */
22996 if ac_fn_c_try_link
"$LINENO"; then :
22997 tor_can_link__Wserialized_diagnostics
=yes
22999 tor_can_link__Wserialized_diagnostics
=no
23001 rm -f core conftest.err conftest.
$ac_objext \
23002 conftest
$ac_exeext conftest.
$ac_ext
23005 CFLAGS
="$tor_saved_CFLAGS"
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wserialized_diagnostics" >&5
23009 $as_echo "$tor_cv_cflags__Wserialized_diagnostics" >&6; }
23010 if test x
$tor_cv_cflags__Wserialized_diagnostics = xyes
; then
23011 CFLAGS
="$CFLAGS -Wserialized-diagnostics"
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshadow" >&5
23021 $as_echo_n "checking whether the compiler accepts -Wshadow... " >&6; }
23022 if ${tor_cv_cflags__Wshadow+:} false
; then :
23023 $as_echo_n "(cached) " >&6
23026 tor_saved_CFLAGS
="$CFLAGS"
23027 CFLAGS
="$CFLAGS -pedantic -Werror -Wshadow"
23028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23039 if ac_fn_c_try_compile
"$LINENO"; then :
23040 tor_cv_cflags__Wshadow
=yes
23042 tor_cv_cflags__Wshadow
=no
23044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23045 if test x
!= x
; then
23047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23048 /* end confdefs.h. */
23058 if ac_fn_c_try_link
"$LINENO"; then :
23059 tor_can_link__Wshadow
=yes
23061 tor_can_link__Wshadow
=no
23063 rm -f core conftest.err conftest.
$ac_objext \
23064 conftest
$ac_exeext conftest.
$ac_ext
23067 CFLAGS
="$tor_saved_CFLAGS"
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshadow" >&5
23071 $as_echo "$tor_cv_cflags__Wshadow" >&6; }
23072 if test x
$tor_cv_cflags__Wshadow = xyes
; then
23073 CFLAGS
="$CFLAGS -Wshadow"
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-negative" >&5
23083 $as_echo_n "checking whether the compiler accepts -Wshift-count-negative... " >&6; }
23084 if ${tor_cv_cflags__Wshift_count_negative+:} false
; then :
23085 $as_echo_n "(cached) " >&6
23088 tor_saved_CFLAGS
="$CFLAGS"
23089 CFLAGS
="$CFLAGS -pedantic -Werror -Wshift-count-negative"
23090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23101 if ac_fn_c_try_compile
"$LINENO"; then :
23102 tor_cv_cflags__Wshift_count_negative
=yes
23104 tor_cv_cflags__Wshift_count_negative
=no
23106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23107 if test x
!= x
; then
23109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23110 /* end confdefs.h. */
23120 if ac_fn_c_try_link
"$LINENO"; then :
23121 tor_can_link__Wshift_count_negative
=yes
23123 tor_can_link__Wshift_count_negative
=no
23125 rm -f core conftest.err conftest.
$ac_objext \
23126 conftest
$ac_exeext conftest.
$ac_ext
23129 CFLAGS
="$tor_saved_CFLAGS"
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_negative" >&5
23133 $as_echo "$tor_cv_cflags__Wshift_count_negative" >&6; }
23134 if test x
$tor_cv_cflags__Wshift_count_negative = xyes
; then
23135 CFLAGS
="$CFLAGS -Wshift-count-negative"
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-overflow" >&5
23145 $as_echo_n "checking whether the compiler accepts -Wshift-count-overflow... " >&6; }
23146 if ${tor_cv_cflags__Wshift_count_overflow+:} false
; then :
23147 $as_echo_n "(cached) " >&6
23150 tor_saved_CFLAGS
="$CFLAGS"
23151 CFLAGS
="$CFLAGS -pedantic -Werror -Wshift-count-overflow"
23152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h. */
23163 if ac_fn_c_try_compile
"$LINENO"; then :
23164 tor_cv_cflags__Wshift_count_overflow
=yes
23166 tor_cv_cflags__Wshift_count_overflow
=no
23168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23169 if test x
!= x
; then
23171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23172 /* end confdefs.h. */
23182 if ac_fn_c_try_link
"$LINENO"; then :
23183 tor_can_link__Wshift_count_overflow
=yes
23185 tor_can_link__Wshift_count_overflow
=no
23187 rm -f core conftest.err conftest.
$ac_objext \
23188 conftest
$ac_exeext conftest.
$ac_ext
23191 CFLAGS
="$tor_saved_CFLAGS"
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_overflow" >&5
23195 $as_echo "$tor_cv_cflags__Wshift_count_overflow" >&6; }
23196 if test x
$tor_cv_cflags__Wshift_count_overflow = xyes
; then
23197 CFLAGS
="$CFLAGS -Wshift-count-overflow"
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-negative-value" >&5
23207 $as_echo_n "checking whether the compiler accepts -Wshift-negative-value... " >&6; }
23208 if ${tor_cv_cflags__Wshift_negative_value+:} false
; then :
23209 $as_echo_n "(cached) " >&6
23212 tor_saved_CFLAGS
="$CFLAGS"
23213 CFLAGS
="$CFLAGS -pedantic -Werror -Wshift-negative-value"
23214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23215 /* end confdefs.h. */
23225 if ac_fn_c_try_compile
"$LINENO"; then :
23226 tor_cv_cflags__Wshift_negative_value
=yes
23228 tor_cv_cflags__Wshift_negative_value
=no
23230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23231 if test x
!= x
; then
23233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23234 /* end confdefs.h. */
23244 if ac_fn_c_try_link
"$LINENO"; then :
23245 tor_can_link__Wshift_negative_value
=yes
23247 tor_can_link__Wshift_negative_value
=no
23249 rm -f core conftest.err conftest.
$ac_objext \
23250 conftest
$ac_exeext conftest.
$ac_ext
23253 CFLAGS
="$tor_saved_CFLAGS"
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_negative_value" >&5
23257 $as_echo "$tor_cv_cflags__Wshift_negative_value" >&6; }
23258 if test x
$tor_cv_cflags__Wshift_negative_value = xyes
; then
23259 CFLAGS
="$CFLAGS -Wshift-negative-value"
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-overflow=2" >&5
23269 $as_echo_n "checking whether the compiler accepts -Wshift-overflow=2... " >&6; }
23270 if ${tor_cv_cflags__Wshift_overflow_2+:} false
; then :
23271 $as_echo_n "(cached) " >&6
23274 tor_saved_CFLAGS
="$CFLAGS"
23275 CFLAGS
="$CFLAGS -pedantic -Werror -Wshift-overflow=2"
23276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23277 /* end confdefs.h. */
23287 if ac_fn_c_try_compile
"$LINENO"; then :
23288 tor_cv_cflags__Wshift_overflow_2
=yes
23290 tor_cv_cflags__Wshift_overflow_2
=no
23292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23293 if test x
!= x
; then
23295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h. */
23306 if ac_fn_c_try_link
"$LINENO"; then :
23307 tor_can_link__Wshift_overflow_2
=yes
23309 tor_can_link__Wshift_overflow_2
=no
23311 rm -f core conftest.err conftest.
$ac_objext \
23312 conftest
$ac_exeext conftest.
$ac_ext
23315 CFLAGS
="$tor_saved_CFLAGS"
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_overflow_2" >&5
23319 $as_echo "$tor_cv_cflags__Wshift_overflow_2" >&6; }
23320 if test x
$tor_cv_cflags__Wshift_overflow_2 = xyes
; then
23321 CFLAGS
="$CFLAGS -Wshift-overflow=2"
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-sign-overflow" >&5
23331 $as_echo_n "checking whether the compiler accepts -Wshift-sign-overflow... " >&6; }
23332 if ${tor_cv_cflags__Wshift_sign_overflow+:} false
; then :
23333 $as_echo_n "(cached) " >&6
23336 tor_saved_CFLAGS
="$CFLAGS"
23337 CFLAGS
="$CFLAGS -pedantic -Werror -Wshift-sign-overflow"
23338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h. */
23349 if ac_fn_c_try_compile
"$LINENO"; then :
23350 tor_cv_cflags__Wshift_sign_overflow
=yes
23352 tor_cv_cflags__Wshift_sign_overflow
=no
23354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23355 if test x
!= x
; then
23357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23358 /* end confdefs.h. */
23368 if ac_fn_c_try_link
"$LINENO"; then :
23369 tor_can_link__Wshift_sign_overflow
=yes
23371 tor_can_link__Wshift_sign_overflow
=no
23373 rm -f core conftest.err conftest.
$ac_objext \
23374 conftest
$ac_exeext conftest.
$ac_ext
23377 CFLAGS
="$tor_saved_CFLAGS"
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_sign_overflow" >&5
23381 $as_echo "$tor_cv_cflags__Wshift_sign_overflow" >&6; }
23382 if test x
$tor_cv_cflags__Wshift_sign_overflow = xyes
; then
23383 CFLAGS
="$CFLAGS -Wshift-sign-overflow"
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshorten-64-to-32" >&5
23393 $as_echo_n "checking whether the compiler accepts -Wshorten-64-to-32... " >&6; }
23394 if ${tor_cv_cflags__Wshorten_64_to_32+:} false
; then :
23395 $as_echo_n "(cached) " >&6
23398 tor_saved_CFLAGS
="$CFLAGS"
23399 CFLAGS
="$CFLAGS -pedantic -Werror -Wshorten-64-to-32"
23400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23401 /* end confdefs.h. */
23411 if ac_fn_c_try_compile
"$LINENO"; then :
23412 tor_cv_cflags__Wshorten_64_to_32
=yes
23414 tor_cv_cflags__Wshorten_64_to_32
=no
23416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23417 if test x
!= x
; then
23419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23420 /* end confdefs.h. */
23430 if ac_fn_c_try_link
"$LINENO"; then :
23431 tor_can_link__Wshorten_64_to_32
=yes
23433 tor_can_link__Wshorten_64_to_32
=no
23435 rm -f core conftest.err conftest.
$ac_objext \
23436 conftest
$ac_exeext conftest.
$ac_ext
23439 CFLAGS
="$tor_saved_CFLAGS"
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshorten_64_to_32" >&5
23443 $as_echo "$tor_cv_cflags__Wshorten_64_to_32" >&6; }
23444 if test x
$tor_cv_cflags__Wshorten_64_to_32 = xyes
; then
23445 CFLAGS
="$CFLAGS -Wshorten-64-to-32"
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsizeof-array-argument" >&5
23455 $as_echo_n "checking whether the compiler accepts -Wsizeof-array-argument... " >&6; }
23456 if ${tor_cv_cflags__Wsizeof_array_argument+:} false
; then :
23457 $as_echo_n "(cached) " >&6
23460 tor_saved_CFLAGS
="$CFLAGS"
23461 CFLAGS
="$CFLAGS -pedantic -Werror -Wsizeof-array-argument"
23462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23473 if ac_fn_c_try_compile
"$LINENO"; then :
23474 tor_cv_cflags__Wsizeof_array_argument
=yes
23476 tor_cv_cflags__Wsizeof_array_argument
=no
23478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23479 if test x
!= x
; then
23481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23482 /* end confdefs.h. */
23492 if ac_fn_c_try_link
"$LINENO"; then :
23493 tor_can_link__Wsizeof_array_argument
=yes
23495 tor_can_link__Wsizeof_array_argument
=no
23497 rm -f core conftest.err conftest.
$ac_objext \
23498 conftest
$ac_exeext conftest.
$ac_ext
23501 CFLAGS
="$tor_saved_CFLAGS"
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsizeof_array_argument" >&5
23505 $as_echo "$tor_cv_cflags__Wsizeof_array_argument" >&6; }
23506 if test x
$tor_cv_cflags__Wsizeof_array_argument = xyes
; then
23507 CFLAGS
="$CFLAGS -Wsizeof-array-argument"
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsource-uses-openmp" >&5
23517 $as_echo_n "checking whether the compiler accepts -Wsource-uses-openmp... " >&6; }
23518 if ${tor_cv_cflags__Wsource_uses_openmp+:} false
; then :
23519 $as_echo_n "(cached) " >&6
23522 tor_saved_CFLAGS
="$CFLAGS"
23523 CFLAGS
="$CFLAGS -pedantic -Werror -Wsource-uses-openmp"
23524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h. */
23535 if ac_fn_c_try_compile
"$LINENO"; then :
23536 tor_cv_cflags__Wsource_uses_openmp
=yes
23538 tor_cv_cflags__Wsource_uses_openmp
=no
23540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23541 if test x
!= x
; then
23543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23544 /* end confdefs.h. */
23554 if ac_fn_c_try_link
"$LINENO"; then :
23555 tor_can_link__Wsource_uses_openmp
=yes
23557 tor_can_link__Wsource_uses_openmp
=no
23559 rm -f core conftest.err conftest.
$ac_objext \
23560 conftest
$ac_exeext conftest.
$ac_ext
23563 CFLAGS
="$tor_saved_CFLAGS"
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsource_uses_openmp" >&5
23567 $as_echo "$tor_cv_cflags__Wsource_uses_openmp" >&6; }
23568 if test x
$tor_cv_cflags__Wsource_uses_openmp = xyes
; then
23569 CFLAGS
="$CFLAGS -Wsource-uses-openmp"
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-float-init" >&5
23579 $as_echo_n "checking whether the compiler accepts -Wstatic-float-init... " >&6; }
23580 if ${tor_cv_cflags__Wstatic_float_init+:} false
; then :
23581 $as_echo_n "(cached) " >&6
23584 tor_saved_CFLAGS
="$CFLAGS"
23585 CFLAGS
="$CFLAGS -pedantic -Werror -Wstatic-float-init"
23586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23587 /* end confdefs.h. */
23597 if ac_fn_c_try_compile
"$LINENO"; then :
23598 tor_cv_cflags__Wstatic_float_init
=yes
23600 tor_cv_cflags__Wstatic_float_init
=no
23602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23603 if test x
!= x
; then
23605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h. */
23616 if ac_fn_c_try_link
"$LINENO"; then :
23617 tor_can_link__Wstatic_float_init
=yes
23619 tor_can_link__Wstatic_float_init
=no
23621 rm -f core conftest.err conftest.
$ac_objext \
23622 conftest
$ac_exeext conftest.
$ac_ext
23625 CFLAGS
="$tor_saved_CFLAGS"
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_float_init" >&5
23629 $as_echo "$tor_cv_cflags__Wstatic_float_init" >&6; }
23630 if test x
$tor_cv_cflags__Wstatic_float_init = xyes
; then
23631 CFLAGS
="$CFLAGS -Wstatic-float-init"
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-in-inline" >&5
23641 $as_echo_n "checking whether the compiler accepts -Wstatic-in-inline... " >&6; }
23642 if ${tor_cv_cflags__Wstatic_in_inline+:} false
; then :
23643 $as_echo_n "(cached) " >&6
23646 tor_saved_CFLAGS
="$CFLAGS"
23647 CFLAGS
="$CFLAGS -pedantic -Werror -Wstatic-in-inline"
23648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23649 /* end confdefs.h. */
23659 if ac_fn_c_try_compile
"$LINENO"; then :
23660 tor_cv_cflags__Wstatic_in_inline
=yes
23662 tor_cv_cflags__Wstatic_in_inline
=no
23664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23665 if test x
!= x
; then
23667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23678 if ac_fn_c_try_link
"$LINENO"; then :
23679 tor_can_link__Wstatic_in_inline
=yes
23681 tor_can_link__Wstatic_in_inline
=no
23683 rm -f core conftest.err conftest.
$ac_objext \
23684 conftest
$ac_exeext conftest.
$ac_ext
23687 CFLAGS
="$tor_saved_CFLAGS"
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_in_inline" >&5
23691 $as_echo "$tor_cv_cflags__Wstatic_in_inline" >&6; }
23692 if test x
$tor_cv_cflags__Wstatic_in_inline = xyes
; then
23693 CFLAGS
="$CFLAGS -Wstatic-in-inline"
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-local-in-inline" >&5
23703 $as_echo_n "checking whether the compiler accepts -Wstatic-local-in-inline... " >&6; }
23704 if ${tor_cv_cflags__Wstatic_local_in_inline+:} false
; then :
23705 $as_echo_n "(cached) " >&6
23708 tor_saved_CFLAGS
="$CFLAGS"
23709 CFLAGS
="$CFLAGS -pedantic -Werror -Wstatic-local-in-inline"
23710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23711 /* end confdefs.h. */
23721 if ac_fn_c_try_compile
"$LINENO"; then :
23722 tor_cv_cflags__Wstatic_local_in_inline
=yes
23724 tor_cv_cflags__Wstatic_local_in_inline
=no
23726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23727 if test x
!= x
; then
23729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23730 /* end confdefs.h. */
23740 if ac_fn_c_try_link
"$LINENO"; then :
23741 tor_can_link__Wstatic_local_in_inline
=yes
23743 tor_can_link__Wstatic_local_in_inline
=no
23745 rm -f core conftest.err conftest.
$ac_objext \
23746 conftest
$ac_exeext conftest.
$ac_ext
23749 CFLAGS
="$tor_saved_CFLAGS"
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_local_in_inline" >&5
23753 $as_echo "$tor_cv_cflags__Wstatic_local_in_inline" >&6; }
23754 if test x
$tor_cv_cflags__Wstatic_local_in_inline = xyes
; then
23755 CFLAGS
="$CFLAGS -Wstatic-local-in-inline"
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrict-overflow=1" >&5
23765 $as_echo_n "checking whether the compiler accepts -Wstrict-overflow=1... " >&6; }
23766 if ${tor_cv_cflags__Wstrict_overflow_1+:} false
; then :
23767 $as_echo_n "(cached) " >&6
23770 tor_saved_CFLAGS
="$CFLAGS"
23771 CFLAGS
="$CFLAGS -pedantic -Werror -Wstrict-overflow=1"
23772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23773 /* end confdefs.h. */
23783 if ac_fn_c_try_compile
"$LINENO"; then :
23784 tor_cv_cflags__Wstrict_overflow_1
=yes
23786 tor_cv_cflags__Wstrict_overflow_1
=no
23788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23789 if test x
!= x
; then
23791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23792 /* end confdefs.h. */
23802 if ac_fn_c_try_link
"$LINENO"; then :
23803 tor_can_link__Wstrict_overflow_1
=yes
23805 tor_can_link__Wstrict_overflow_1
=no
23807 rm -f core conftest.err conftest.
$ac_objext \
23808 conftest
$ac_exeext conftest.
$ac_ext
23811 CFLAGS
="$tor_saved_CFLAGS"
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrict_overflow_1" >&5
23815 $as_echo "$tor_cv_cflags__Wstrict_overflow_1" >&6; }
23816 if test x
$tor_cv_cflags__Wstrict_overflow_1 = xyes
; then
23817 CFLAGS
="$CFLAGS -Wstrict-overflow=1"
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-compare" >&5
23827 $as_echo_n "checking whether the compiler accepts -Wstring-compare... " >&6; }
23828 if ${tor_cv_cflags__Wstring_compare+:} false
; then :
23829 $as_echo_n "(cached) " >&6
23832 tor_saved_CFLAGS
="$CFLAGS"
23833 CFLAGS
="$CFLAGS -pedantic -Werror -Wstring-compare"
23834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23835 /* end confdefs.h. */
23845 if ac_fn_c_try_compile
"$LINENO"; then :
23846 tor_cv_cflags__Wstring_compare
=yes
23848 tor_cv_cflags__Wstring_compare
=no
23850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23851 if test x
!= x
; then
23853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23854 /* end confdefs.h. */
23864 if ac_fn_c_try_link
"$LINENO"; then :
23865 tor_can_link__Wstring_compare
=yes
23867 tor_can_link__Wstring_compare
=no
23869 rm -f core conftest.err conftest.
$ac_objext \
23870 conftest
$ac_exeext conftest.
$ac_ext
23873 CFLAGS
="$tor_saved_CFLAGS"
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_compare" >&5
23877 $as_echo "$tor_cv_cflags__Wstring_compare" >&6; }
23878 if test x
$tor_cv_cflags__Wstring_compare = xyes
; then
23879 CFLAGS
="$CFLAGS -Wstring-compare"
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-conversion" >&5
23889 $as_echo_n "checking whether the compiler accepts -Wstring-conversion... " >&6; }
23890 if ${tor_cv_cflags__Wstring_conversion+:} false
; then :
23891 $as_echo_n "(cached) " >&6
23894 tor_saved_CFLAGS
="$CFLAGS"
23895 CFLAGS
="$CFLAGS -pedantic -Werror -Wstring-conversion"
23896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23907 if ac_fn_c_try_compile
"$LINENO"; then :
23908 tor_cv_cflags__Wstring_conversion
=yes
23910 tor_cv_cflags__Wstring_conversion
=no
23912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23913 if test x
!= x
; then
23915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h. */
23926 if ac_fn_c_try_link
"$LINENO"; then :
23927 tor_can_link__Wstring_conversion
=yes
23929 tor_can_link__Wstring_conversion
=no
23931 rm -f core conftest.err conftest.
$ac_objext \
23932 conftest
$ac_exeext conftest.
$ac_ext
23935 CFLAGS
="$tor_saved_CFLAGS"
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_conversion" >&5
23939 $as_echo "$tor_cv_cflags__Wstring_conversion" >&6; }
23940 if test x
$tor_cv_cflags__Wstring_conversion = xyes
; then
23941 CFLAGS
="$CFLAGS -Wstring-conversion"
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrlcpy-strlcat-size" >&5
23951 $as_echo_n "checking whether the compiler accepts -Wstrlcpy-strlcat-size... " >&6; }
23952 if ${tor_cv_cflags__Wstrlcpy_strlcat_size+:} false
; then :
23953 $as_echo_n "(cached) " >&6
23956 tor_saved_CFLAGS
="$CFLAGS"
23957 CFLAGS
="$CFLAGS -pedantic -Werror -Wstrlcpy-strlcat-size"
23958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h. */
23969 if ac_fn_c_try_compile
"$LINENO"; then :
23970 tor_cv_cflags__Wstrlcpy_strlcat_size
=yes
23972 tor_cv_cflags__Wstrlcpy_strlcat_size
=no
23974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23975 if test x
!= x
; then
23977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h. */
23988 if ac_fn_c_try_link
"$LINENO"; then :
23989 tor_can_link__Wstrlcpy_strlcat_size
=yes
23991 tor_can_link__Wstrlcpy_strlcat_size
=no
23993 rm -f core conftest.err conftest.
$ac_objext \
23994 conftest
$ac_exeext conftest.
$ac_ext
23997 CFLAGS
="$tor_saved_CFLAGS"
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrlcpy_strlcat_size" >&5
24001 $as_echo "$tor_cv_cflags__Wstrlcpy_strlcat_size" >&6; }
24002 if test x
$tor_cv_cflags__Wstrlcpy_strlcat_size = xyes
; then
24003 CFLAGS
="$CFLAGS -Wstrlcpy-strlcat-size"
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrncat-size" >&5
24013 $as_echo_n "checking whether the compiler accepts -Wstrncat-size... " >&6; }
24014 if ${tor_cv_cflags__Wstrncat_size+:} false
; then :
24015 $as_echo_n "(cached) " >&6
24018 tor_saved_CFLAGS
="$CFLAGS"
24019 CFLAGS
="$CFLAGS -pedantic -Werror -Wstrncat-size"
24020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24031 if ac_fn_c_try_compile
"$LINENO"; then :
24032 tor_cv_cflags__Wstrncat_size
=yes
24034 tor_cv_cflags__Wstrncat_size
=no
24036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24037 if test x
!= x
; then
24039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24040 /* end confdefs.h. */
24050 if ac_fn_c_try_link
"$LINENO"; then :
24051 tor_can_link__Wstrncat_size
=yes
24053 tor_can_link__Wstrncat_size
=no
24055 rm -f core conftest.err conftest.
$ac_objext \
24056 conftest
$ac_exeext conftest.
$ac_ext
24059 CFLAGS
="$tor_saved_CFLAGS"
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrncat_size" >&5
24063 $as_echo "$tor_cv_cflags__Wstrncat_size" >&6; }
24064 if test x
$tor_cv_cflags__Wstrncat_size = xyes
; then
24065 CFLAGS
="$CFLAGS -Wstrncat-size"
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=format" >&5
24075 $as_echo_n "checking whether the compiler accepts -Wsuggest-attribute=format... " >&6; }
24076 if ${tor_cv_cflags__Wsuggest_attribute_format+:} false
; then :
24077 $as_echo_n "(cached) " >&6
24080 tor_saved_CFLAGS
="$CFLAGS"
24081 CFLAGS
="$CFLAGS -pedantic -Werror -Wsuggest-attribute=format"
24082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24083 /* end confdefs.h. */
24093 if ac_fn_c_try_compile
"$LINENO"; then :
24094 tor_cv_cflags__Wsuggest_attribute_format
=yes
24096 tor_cv_cflags__Wsuggest_attribute_format
=no
24098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24099 if test x
!= x
; then
24101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24102 /* end confdefs.h. */
24112 if ac_fn_c_try_link
"$LINENO"; then :
24113 tor_can_link__Wsuggest_attribute_format
=yes
24115 tor_can_link__Wsuggest_attribute_format
=no
24117 rm -f core conftest.err conftest.
$ac_objext \
24118 conftest
$ac_exeext conftest.
$ac_ext
24121 CFLAGS
="$tor_saved_CFLAGS"
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_format" >&5
24125 $as_echo "$tor_cv_cflags__Wsuggest_attribute_format" >&6; }
24126 if test x
$tor_cv_cflags__Wsuggest_attribute_format = xyes
; then
24127 CFLAGS
="$CFLAGS -Wsuggest-attribute=format"
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=noreturn" >&5
24137 $as_echo_n "checking whether the compiler accepts -Wsuggest-attribute=noreturn... " >&6; }
24138 if ${tor_cv_cflags__Wsuggest_attribute_noreturn+:} false
; then :
24139 $as_echo_n "(cached) " >&6
24142 tor_saved_CFLAGS
="$CFLAGS"
24143 CFLAGS
="$CFLAGS -pedantic -Werror -Wsuggest-attribute=noreturn"
24144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24145 /* end confdefs.h. */
24155 if ac_fn_c_try_compile
"$LINENO"; then :
24156 tor_cv_cflags__Wsuggest_attribute_noreturn
=yes
24158 tor_cv_cflags__Wsuggest_attribute_noreturn
=no
24160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24161 if test x
!= x
; then
24163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24164 /* end confdefs.h. */
24174 if ac_fn_c_try_link
"$LINENO"; then :
24175 tor_can_link__Wsuggest_attribute_noreturn
=yes
24177 tor_can_link__Wsuggest_attribute_noreturn
=no
24179 rm -f core conftest.err conftest.
$ac_objext \
24180 conftest
$ac_exeext conftest.
$ac_ext
24183 CFLAGS
="$tor_saved_CFLAGS"
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_noreturn" >&5
24187 $as_echo "$tor_cv_cflags__Wsuggest_attribute_noreturn" >&6; }
24188 if test x
$tor_cv_cflags__Wsuggest_attribute_noreturn = xyes
; then
24189 CFLAGS
="$CFLAGS -Wsuggest-attribute=noreturn"
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuper-class-method-mismatch" >&5
24199 $as_echo_n "checking whether the compiler accepts -Wsuper-class-method-mismatch... " >&6; }
24200 if ${tor_cv_cflags__Wsuper_class_method_mismatch+:} false
; then :
24201 $as_echo_n "(cached) " >&6
24204 tor_saved_CFLAGS
="$CFLAGS"
24205 CFLAGS
="$CFLAGS -pedantic -Werror -Wsuper-class-method-mismatch"
24206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24217 if ac_fn_c_try_compile
"$LINENO"; then :
24218 tor_cv_cflags__Wsuper_class_method_mismatch
=yes
24220 tor_cv_cflags__Wsuper_class_method_mismatch
=no
24222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24223 if test x
!= x
; then
24225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24226 /* end confdefs.h. */
24236 if ac_fn_c_try_link
"$LINENO"; then :
24237 tor_can_link__Wsuper_class_method_mismatch
=yes
24239 tor_can_link__Wsuper_class_method_mismatch
=no
24241 rm -f core conftest.err conftest.
$ac_objext \
24242 conftest
$ac_exeext conftest.
$ac_ext
24245 CFLAGS
="$tor_saved_CFLAGS"
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuper_class_method_mismatch" >&5
24249 $as_echo "$tor_cv_cflags__Wsuper_class_method_mismatch" >&6; }
24250 if test x
$tor_cv_cflags__Wsuper_class_method_mismatch = xyes
; then
24251 CFLAGS
="$CFLAGS -Wsuper-class-method-mismatch"
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wswitch-bool" >&5
24261 $as_echo_n "checking whether the compiler accepts -Wswitch-bool... " >&6; }
24262 if ${tor_cv_cflags__Wswitch_bool+:} false
; then :
24263 $as_echo_n "(cached) " >&6
24266 tor_saved_CFLAGS
="$CFLAGS"
24267 CFLAGS
="$CFLAGS -pedantic -Werror -Wswitch-bool"
24268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24279 if ac_fn_c_try_compile
"$LINENO"; then :
24280 tor_cv_cflags__Wswitch_bool
=yes
24282 tor_cv_cflags__Wswitch_bool
=no
24284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24285 if test x
!= x
; then
24287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24288 /* end confdefs.h. */
24298 if ac_fn_c_try_link
"$LINENO"; then :
24299 tor_can_link__Wswitch_bool
=yes
24301 tor_can_link__Wswitch_bool
=no
24303 rm -f core conftest.err conftest.
$ac_objext \
24304 conftest
$ac_exeext conftest.
$ac_ext
24307 CFLAGS
="$tor_saved_CFLAGS"
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wswitch_bool" >&5
24311 $as_echo "$tor_cv_cflags__Wswitch_bool" >&6; }
24312 if test x
$tor_cv_cflags__Wswitch_bool = xyes
; then
24313 CFLAGS
="$CFLAGS -Wswitch-bool"
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsync-nand" >&5
24323 $as_echo_n "checking whether the compiler accepts -Wsync-nand... " >&6; }
24324 if ${tor_cv_cflags__Wsync_nand+:} false
; then :
24325 $as_echo_n "(cached) " >&6
24328 tor_saved_CFLAGS
="$CFLAGS"
24329 CFLAGS
="$CFLAGS -pedantic -Werror -Wsync-nand"
24330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24341 if ac_fn_c_try_compile
"$LINENO"; then :
24342 tor_cv_cflags__Wsync_nand
=yes
24344 tor_cv_cflags__Wsync_nand
=no
24346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24347 if test x
!= x
; then
24349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h. */
24360 if ac_fn_c_try_link
"$LINENO"; then :
24361 tor_can_link__Wsync_nand
=yes
24363 tor_can_link__Wsync_nand
=no
24365 rm -f core conftest.err conftest.
$ac_objext \
24366 conftest
$ac_exeext conftest.
$ac_ext
24369 CFLAGS
="$tor_saved_CFLAGS"
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsync_nand" >&5
24373 $as_echo "$tor_cv_cflags__Wsync_nand" >&6; }
24374 if test x
$tor_cv_cflags__Wsync_nand = xyes
; then
24375 CFLAGS
="$CFLAGS -Wsync-nand"
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtautological-constant-out-of-range-compare" >&5
24385 $as_echo_n "checking whether the compiler accepts -Wtautological-constant-out-of-range-compare... " >&6; }
24386 if ${tor_cv_cflags__Wtautological_constant_out_of_range_compare+:} false
; then :
24387 $as_echo_n "(cached) " >&6
24390 tor_saved_CFLAGS
="$CFLAGS"
24391 CFLAGS
="$CFLAGS -pedantic -Werror -Wtautological-constant-out-of-range-compare"
24392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24393 /* end confdefs.h. */
24403 if ac_fn_c_try_compile
"$LINENO"; then :
24404 tor_cv_cflags__Wtautological_constant_out_of_range_compare
=yes
24406 tor_cv_cflags__Wtautological_constant_out_of_range_compare
=no
24408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24409 if test x
!= x
; then
24411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24412 /* end confdefs.h. */
24422 if ac_fn_c_try_link
"$LINENO"; then :
24423 tor_can_link__Wtautological_constant_out_of_range_compare
=yes
24425 tor_can_link__Wtautological_constant_out_of_range_compare
=no
24427 rm -f core conftest.err conftest.
$ac_objext \
24428 conftest
$ac_exeext conftest.
$ac_ext
24431 CFLAGS
="$tor_saved_CFLAGS"
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtautological_constant_out_of_range_compare" >&5
24435 $as_echo "$tor_cv_cflags__Wtautological_constant_out_of_range_compare" >&6; }
24436 if test x
$tor_cv_cflags__Wtautological_constant_out_of_range_compare = xyes
; then
24437 CFLAGS
="$CFLAGS -Wtautological-constant-out-of-range-compare"
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtentative-definition-incomplete-type" >&5
24447 $as_echo_n "checking whether the compiler accepts -Wtentative-definition-incomplete-type... " >&6; }
24448 if ${tor_cv_cflags__Wtentative_definition_incomplete_type+:} false
; then :
24449 $as_echo_n "(cached) " >&6
24452 tor_saved_CFLAGS
="$CFLAGS"
24453 CFLAGS
="$CFLAGS -pedantic -Werror -Wtentative-definition-incomplete-type"
24454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24455 /* end confdefs.h. */
24465 if ac_fn_c_try_compile
"$LINENO"; then :
24466 tor_cv_cflags__Wtentative_definition_incomplete_type
=yes
24468 tor_cv_cflags__Wtentative_definition_incomplete_type
=no
24470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24471 if test x
!= x
; then
24473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h. */
24484 if ac_fn_c_try_link
"$LINENO"; then :
24485 tor_can_link__Wtentative_definition_incomplete_type
=yes
24487 tor_can_link__Wtentative_definition_incomplete_type
=no
24489 rm -f core conftest.err conftest.
$ac_objext \
24490 conftest
$ac_exeext conftest.
$ac_ext
24493 CFLAGS
="$tor_saved_CFLAGS"
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtentative_definition_incomplete_type" >&5
24497 $as_echo "$tor_cv_cflags__Wtentative_definition_incomplete_type" >&6; }
24498 if test x
$tor_cv_cflags__Wtentative_definition_incomplete_type = xyes
; then
24499 CFLAGS
="$CFLAGS -Wtentative-definition-incomplete-type"
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtrampolines" >&5
24509 $as_echo_n "checking whether the compiler accepts -Wtrampolines... " >&6; }
24510 if ${tor_cv_cflags__Wtrampolines+:} false
; then :
24511 $as_echo_n "(cached) " >&6
24514 tor_saved_CFLAGS
="$CFLAGS"
24515 CFLAGS
="$CFLAGS -pedantic -Werror -Wtrampolines"
24516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24527 if ac_fn_c_try_compile
"$LINENO"; then :
24528 tor_cv_cflags__Wtrampolines
=yes
24530 tor_cv_cflags__Wtrampolines
=no
24532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24533 if test x
!= x
; then
24535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h. */
24546 if ac_fn_c_try_link
"$LINENO"; then :
24547 tor_can_link__Wtrampolines
=yes
24549 tor_can_link__Wtrampolines
=no
24551 rm -f core conftest.err conftest.
$ac_objext \
24552 conftest
$ac_exeext conftest.
$ac_ext
24555 CFLAGS
="$tor_saved_CFLAGS"
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtrampolines" >&5
24559 $as_echo "$tor_cv_cflags__Wtrampolines" >&6; }
24560 if test x
$tor_cv_cflags__Wtrampolines = xyes
; then
24561 CFLAGS
="$CFLAGS -Wtrampolines"
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtype-safety" >&5
24571 $as_echo_n "checking whether the compiler accepts -Wtype-safety... " >&6; }
24572 if ${tor_cv_cflags__Wtype_safety+:} false
; then :
24573 $as_echo_n "(cached) " >&6
24576 tor_saved_CFLAGS
="$CFLAGS"
24577 CFLAGS
="$CFLAGS -pedantic -Werror -Wtype-safety"
24578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24589 if ac_fn_c_try_compile
"$LINENO"; then :
24590 tor_cv_cflags__Wtype_safety
=yes
24592 tor_cv_cflags__Wtype_safety
=no
24594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24595 if test x
!= x
; then
24597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h. */
24608 if ac_fn_c_try_link
"$LINENO"; then :
24609 tor_can_link__Wtype_safety
=yes
24611 tor_can_link__Wtype_safety
=no
24613 rm -f core conftest.err conftest.
$ac_objext \
24614 conftest
$ac_exeext conftest.
$ac_ext
24617 CFLAGS
="$tor_saved_CFLAGS"
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtype_safety" >&5
24621 $as_echo "$tor_cv_cflags__Wtype_safety" >&6; }
24622 if test x
$tor_cv_cflags__Wtype_safety = xyes
; then
24623 CFLAGS
="$CFLAGS -Wtype-safety"
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypedef-redefinition" >&5
24633 $as_echo_n "checking whether the compiler accepts -Wtypedef-redefinition... " >&6; }
24634 if ${tor_cv_cflags__Wtypedef_redefinition+:} false
; then :
24635 $as_echo_n "(cached) " >&6
24638 tor_saved_CFLAGS
="$CFLAGS"
24639 CFLAGS
="$CFLAGS -pedantic -Werror -Wtypedef-redefinition"
24640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24641 /* end confdefs.h. */
24651 if ac_fn_c_try_compile
"$LINENO"; then :
24652 tor_cv_cflags__Wtypedef_redefinition
=yes
24654 tor_cv_cflags__Wtypedef_redefinition
=no
24656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24657 if test x
!= x
; then
24659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24660 /* end confdefs.h. */
24670 if ac_fn_c_try_link
"$LINENO"; then :
24671 tor_can_link__Wtypedef_redefinition
=yes
24673 tor_can_link__Wtypedef_redefinition
=no
24675 rm -f core conftest.err conftest.
$ac_objext \
24676 conftest
$ac_exeext conftest.
$ac_ext
24679 CFLAGS
="$tor_saved_CFLAGS"
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypedef_redefinition" >&5
24683 $as_echo "$tor_cv_cflags__Wtypedef_redefinition" >&6; }
24684 if test x
$tor_cv_cflags__Wtypedef_redefinition = xyes
; then
24685 CFLAGS
="$CFLAGS -Wtypedef-redefinition"
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypename-missing" >&5
24695 $as_echo_n "checking whether the compiler accepts -Wtypename-missing... " >&6; }
24696 if ${tor_cv_cflags__Wtypename_missing+:} false
; then :
24697 $as_echo_n "(cached) " >&6
24700 tor_saved_CFLAGS
="$CFLAGS"
24701 CFLAGS
="$CFLAGS -pedantic -Werror -Wtypename-missing"
24702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24703 /* end confdefs.h. */
24713 if ac_fn_c_try_compile
"$LINENO"; then :
24714 tor_cv_cflags__Wtypename_missing
=yes
24716 tor_cv_cflags__Wtypename_missing
=no
24718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24719 if test x
!= x
; then
24721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24722 /* end confdefs.h. */
24732 if ac_fn_c_try_link
"$LINENO"; then :
24733 tor_can_link__Wtypename_missing
=yes
24735 tor_can_link__Wtypename_missing
=no
24737 rm -f core conftest.err conftest.
$ac_objext \
24738 conftest
$ac_exeext conftest.
$ac_ext
24741 CFLAGS
="$tor_saved_CFLAGS"
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypename_missing" >&5
24745 $as_echo "$tor_cv_cflags__Wtypename_missing" >&6; }
24746 if test x
$tor_cv_cflags__Wtypename_missing = xyes
; then
24747 CFLAGS
="$CFLAGS -Wtypename-missing"
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-inline" >&5
24757 $as_echo_n "checking whether the compiler accepts -Wundefined-inline... " >&6; }
24758 if ${tor_cv_cflags__Wundefined_inline+:} false
; then :
24759 $as_echo_n "(cached) " >&6
24762 tor_saved_CFLAGS
="$CFLAGS"
24763 CFLAGS
="$CFLAGS -pedantic -Werror -Wundefined-inline"
24764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h. */
24775 if ac_fn_c_try_compile
"$LINENO"; then :
24776 tor_cv_cflags__Wundefined_inline
=yes
24778 tor_cv_cflags__Wundefined_inline
=no
24780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24781 if test x
!= x
; then
24783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24784 /* end confdefs.h. */
24794 if ac_fn_c_try_link
"$LINENO"; then :
24795 tor_can_link__Wundefined_inline
=yes
24797 tor_can_link__Wundefined_inline
=no
24799 rm -f core conftest.err conftest.
$ac_objext \
24800 conftest
$ac_exeext conftest.
$ac_ext
24803 CFLAGS
="$tor_saved_CFLAGS"
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_inline" >&5
24807 $as_echo "$tor_cv_cflags__Wundefined_inline" >&6; }
24808 if test x
$tor_cv_cflags__Wundefined_inline = xyes
; then
24809 CFLAGS
="$CFLAGS -Wundefined-inline"
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-internal" >&5
24819 $as_echo_n "checking whether the compiler accepts -Wundefined-internal... " >&6; }
24820 if ${tor_cv_cflags__Wundefined_internal+:} false
; then :
24821 $as_echo_n "(cached) " >&6
24824 tor_saved_CFLAGS
="$CFLAGS"
24825 CFLAGS
="$CFLAGS -pedantic -Werror -Wundefined-internal"
24826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24827 /* end confdefs.h. */
24837 if ac_fn_c_try_compile
"$LINENO"; then :
24838 tor_cv_cflags__Wundefined_internal
=yes
24840 tor_cv_cflags__Wundefined_internal
=no
24842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24843 if test x
!= x
; then
24845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24846 /* end confdefs.h. */
24856 if ac_fn_c_try_link
"$LINENO"; then :
24857 tor_can_link__Wundefined_internal
=yes
24859 tor_can_link__Wundefined_internal
=no
24861 rm -f core conftest.err conftest.
$ac_objext \
24862 conftest
$ac_exeext conftest.
$ac_ext
24865 CFLAGS
="$tor_saved_CFLAGS"
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_internal" >&5
24869 $as_echo "$tor_cv_cflags__Wundefined_internal" >&6; }
24870 if test x
$tor_cv_cflags__Wundefined_internal = xyes
; then
24871 CFLAGS
="$CFLAGS -Wundefined-internal"
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-reinterpret-cast" >&5
24881 $as_echo_n "checking whether the compiler accepts -Wundefined-reinterpret-cast... " >&6; }
24882 if ${tor_cv_cflags__Wundefined_reinterpret_cast+:} false
; then :
24883 $as_echo_n "(cached) " >&6
24886 tor_saved_CFLAGS
="$CFLAGS"
24887 CFLAGS
="$CFLAGS -pedantic -Werror -Wundefined-reinterpret-cast"
24888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24889 /* end confdefs.h. */
24899 if ac_fn_c_try_compile
"$LINENO"; then :
24900 tor_cv_cflags__Wundefined_reinterpret_cast
=yes
24902 tor_cv_cflags__Wundefined_reinterpret_cast
=no
24904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24905 if test x
!= x
; then
24907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h. */
24918 if ac_fn_c_try_link
"$LINENO"; then :
24919 tor_can_link__Wundefined_reinterpret_cast
=yes
24921 tor_can_link__Wundefined_reinterpret_cast
=no
24923 rm -f core conftest.err conftest.
$ac_objext \
24924 conftest
$ac_exeext conftest.
$ac_ext
24927 CFLAGS
="$tor_saved_CFLAGS"
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_reinterpret_cast" >&5
24931 $as_echo "$tor_cv_cflags__Wundefined_reinterpret_cast" >&6; }
24932 if test x
$tor_cv_cflags__Wundefined_reinterpret_cast = xyes
; then
24933 CFLAGS
="$CFLAGS -Wundefined-reinterpret-cast"
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode" >&5
24943 $as_echo_n "checking whether the compiler accepts -Wunicode... " >&6; }
24944 if ${tor_cv_cflags__Wunicode+:} false
; then :
24945 $as_echo_n "(cached) " >&6
24948 tor_saved_CFLAGS
="$CFLAGS"
24949 CFLAGS
="$CFLAGS -pedantic -Werror -Wunicode"
24950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24951 /* end confdefs.h. */
24961 if ac_fn_c_try_compile
"$LINENO"; then :
24962 tor_cv_cflags__Wunicode
=yes
24964 tor_cv_cflags__Wunicode
=no
24966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24967 if test x
!= x
; then
24969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h. */
24980 if ac_fn_c_try_link
"$LINENO"; then :
24981 tor_can_link__Wunicode
=yes
24983 tor_can_link__Wunicode
=no
24985 rm -f core conftest.err conftest.
$ac_objext \
24986 conftest
$ac_exeext conftest.
$ac_ext
24989 CFLAGS
="$tor_saved_CFLAGS"
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode" >&5
24993 $as_echo "$tor_cv_cflags__Wunicode" >&6; }
24994 if test x
$tor_cv_cflags__Wunicode = xyes
; then
24995 CFLAGS
="$CFLAGS -Wunicode"
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode-whitespace" >&5
25005 $as_echo_n "checking whether the compiler accepts -Wunicode-whitespace... " >&6; }
25006 if ${tor_cv_cflags__Wunicode_whitespace+:} false
; then :
25007 $as_echo_n "(cached) " >&6
25010 tor_saved_CFLAGS
="$CFLAGS"
25011 CFLAGS
="$CFLAGS -pedantic -Werror -Wunicode-whitespace"
25012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h. */
25023 if ac_fn_c_try_compile
"$LINENO"; then :
25024 tor_cv_cflags__Wunicode_whitespace
=yes
25026 tor_cv_cflags__Wunicode_whitespace
=no
25028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25029 if test x
!= x
; then
25031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25032 /* end confdefs.h. */
25042 if ac_fn_c_try_link
"$LINENO"; then :
25043 tor_can_link__Wunicode_whitespace
=yes
25045 tor_can_link__Wunicode_whitespace
=no
25047 rm -f core conftest.err conftest.
$ac_objext \
25048 conftest
$ac_exeext conftest.
$ac_ext
25051 CFLAGS
="$tor_saved_CFLAGS"
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode_whitespace" >&5
25055 $as_echo "$tor_cv_cflags__Wunicode_whitespace" >&6; }
25056 if test x
$tor_cv_cflags__Wunicode_whitespace = xyes
; then
25057 CFLAGS
="$CFLAGS -Wunicode-whitespace"
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunknown-warning-option" >&5
25067 $as_echo_n "checking whether the compiler accepts -Wunknown-warning-option... " >&6; }
25068 if ${tor_cv_cflags__Wunknown_warning_option+:} false
; then :
25069 $as_echo_n "(cached) " >&6
25072 tor_saved_CFLAGS
="$CFLAGS"
25073 CFLAGS
="$CFLAGS -pedantic -Werror -Wunknown-warning-option"
25074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h. */
25085 if ac_fn_c_try_compile
"$LINENO"; then :
25086 tor_cv_cflags__Wunknown_warning_option
=yes
25088 tor_cv_cflags__Wunknown_warning_option
=no
25090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25091 if test x
!= x
; then
25093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25094 /* end confdefs.h. */
25104 if ac_fn_c_try_link
"$LINENO"; then :
25105 tor_can_link__Wunknown_warning_option
=yes
25107 tor_can_link__Wunknown_warning_option
=no
25109 rm -f core conftest.err conftest.
$ac_objext \
25110 conftest
$ac_exeext conftest.
$ac_ext
25113 CFLAGS
="$tor_saved_CFLAGS"
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunknown_warning_option" >&5
25117 $as_echo "$tor_cv_cflags__Wunknown_warning_option" >&6; }
25118 if test x
$tor_cv_cflags__Wunknown_warning_option = xyes
; then
25119 CFLAGS
="$CFLAGS -Wunknown-warning-option"
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunnamed-type-template-args" >&5
25129 $as_echo_n "checking whether the compiler accepts -Wunnamed-type-template-args... " >&6; }
25130 if ${tor_cv_cflags__Wunnamed_type_template_args+:} false
; then :
25131 $as_echo_n "(cached) " >&6
25134 tor_saved_CFLAGS
="$CFLAGS"
25135 CFLAGS
="$CFLAGS -pedantic -Werror -Wunnamed-type-template-args"
25136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25137 /* end confdefs.h. */
25147 if ac_fn_c_try_compile
"$LINENO"; then :
25148 tor_cv_cflags__Wunnamed_type_template_args
=yes
25150 tor_cv_cflags__Wunnamed_type_template_args
=no
25152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25153 if test x
!= x
; then
25155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25156 /* end confdefs.h. */
25166 if ac_fn_c_try_link
"$LINENO"; then :
25167 tor_can_link__Wunnamed_type_template_args
=yes
25169 tor_can_link__Wunnamed_type_template_args
=no
25171 rm -f core conftest.err conftest.
$ac_objext \
25172 conftest
$ac_exeext conftest.
$ac_ext
25175 CFLAGS
="$tor_saved_CFLAGS"
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunnamed_type_template_args" >&5
25179 $as_echo "$tor_cv_cflags__Wunnamed_type_template_args" >&6; }
25180 if test x
$tor_cv_cflags__Wunnamed_type_template_args = xyes
; then
25181 CFLAGS
="$CFLAGS -Wunnamed-type-template-args"
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunneeded-member-function" >&5
25191 $as_echo_n "checking whether the compiler accepts -Wunneeded-member-function... " >&6; }
25192 if ${tor_cv_cflags__Wunneeded_member_function+:} false
; then :
25193 $as_echo_n "(cached) " >&6
25196 tor_saved_CFLAGS
="$CFLAGS"
25197 CFLAGS
="$CFLAGS -pedantic -Werror -Wunneeded-member-function"
25198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25199 /* end confdefs.h. */
25209 if ac_fn_c_try_compile
"$LINENO"; then :
25210 tor_cv_cflags__Wunneeded_member_function
=yes
25212 tor_cv_cflags__Wunneeded_member_function
=no
25214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25215 if test x
!= x
; then
25217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25218 /* end confdefs.h. */
25228 if ac_fn_c_try_link
"$LINENO"; then :
25229 tor_can_link__Wunneeded_member_function
=yes
25231 tor_can_link__Wunneeded_member_function
=no
25233 rm -f core conftest.err conftest.
$ac_objext \
25234 conftest
$ac_exeext conftest.
$ac_ext
25237 CFLAGS
="$tor_saved_CFLAGS"
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunneeded_member_function" >&5
25241 $as_echo "$tor_cv_cflags__Wunneeded_member_function" >&6; }
25242 if test x
$tor_cv_cflags__Wunneeded_member_function = xyes
; then
25243 CFLAGS
="$CFLAGS -Wunneeded-member-function"
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsequenced" >&5
25253 $as_echo_n "checking whether the compiler accepts -Wunsequenced... " >&6; }
25254 if ${tor_cv_cflags__Wunsequenced+:} false
; then :
25255 $as_echo_n "(cached) " >&6
25258 tor_saved_CFLAGS
="$CFLAGS"
25259 CFLAGS
="$CFLAGS -pedantic -Werror -Wunsequenced"
25260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h. */
25271 if ac_fn_c_try_compile
"$LINENO"; then :
25272 tor_cv_cflags__Wunsequenced
=yes
25274 tor_cv_cflags__Wunsequenced
=no
25276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25277 if test x
!= x
; then
25279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25280 /* end confdefs.h. */
25290 if ac_fn_c_try_link
"$LINENO"; then :
25291 tor_can_link__Wunsequenced
=yes
25293 tor_can_link__Wunsequenced
=no
25295 rm -f core conftest.err conftest.
$ac_objext \
25296 conftest
$ac_exeext conftest.
$ac_ext
25299 CFLAGS
="$tor_saved_CFLAGS"
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsequenced" >&5
25303 $as_echo "$tor_cv_cflags__Wunsequenced" >&6; }
25304 if test x
$tor_cv_cflags__Wunsequenced = xyes
; then
25305 CFLAGS
="$CFLAGS -Wunsequenced"
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsupported-visibility" >&5
25315 $as_echo_n "checking whether the compiler accepts -Wunsupported-visibility... " >&6; }
25316 if ${tor_cv_cflags__Wunsupported_visibility+:} false
; then :
25317 $as_echo_n "(cached) " >&6
25320 tor_saved_CFLAGS
="$CFLAGS"
25321 CFLAGS
="$CFLAGS -pedantic -Werror -Wunsupported-visibility"
25322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25323 /* end confdefs.h. */
25333 if ac_fn_c_try_compile
"$LINENO"; then :
25334 tor_cv_cflags__Wunsupported_visibility
=yes
25336 tor_cv_cflags__Wunsupported_visibility
=no
25338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25339 if test x
!= x
; then
25341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25342 /* end confdefs.h. */
25352 if ac_fn_c_try_link
"$LINENO"; then :
25353 tor_can_link__Wunsupported_visibility
=yes
25355 tor_can_link__Wunsupported_visibility
=no
25357 rm -f core conftest.err conftest.
$ac_objext \
25358 conftest
$ac_exeext conftest.
$ac_ext
25361 CFLAGS
="$tor_saved_CFLAGS"
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsupported_visibility" >&5
25365 $as_echo "$tor_cv_cflags__Wunsupported_visibility" >&6; }
25366 if test x
$tor_cv_cflags__Wunsupported_visibility = xyes
; then
25367 CFLAGS
="$CFLAGS -Wunsupported-visibility"
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-parameter" >&5
25377 $as_echo_n "checking whether the compiler accepts -Wunused-but-set-parameter... " >&6; }
25378 if ${tor_cv_cflags__Wunused_but_set_parameter+:} false
; then :
25379 $as_echo_n "(cached) " >&6
25382 tor_saved_CFLAGS
="$CFLAGS"
25383 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-but-set-parameter"
25384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25385 /* end confdefs.h. */
25395 if ac_fn_c_try_compile
"$LINENO"; then :
25396 tor_cv_cflags__Wunused_but_set_parameter
=yes
25398 tor_cv_cflags__Wunused_but_set_parameter
=no
25400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25401 if test x
!= x
; then
25403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25404 /* end confdefs.h. */
25414 if ac_fn_c_try_link
"$LINENO"; then :
25415 tor_can_link__Wunused_but_set_parameter
=yes
25417 tor_can_link__Wunused_but_set_parameter
=no
25419 rm -f core conftest.err conftest.
$ac_objext \
25420 conftest
$ac_exeext conftest.
$ac_ext
25423 CFLAGS
="$tor_saved_CFLAGS"
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_parameter" >&5
25427 $as_echo "$tor_cv_cflags__Wunused_but_set_parameter" >&6; }
25428 if test x
$tor_cv_cflags__Wunused_but_set_parameter = xyes
; then
25429 CFLAGS
="$CFLAGS -Wunused-but-set-parameter"
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-variable" >&5
25439 $as_echo_n "checking whether the compiler accepts -Wunused-but-set-variable... " >&6; }
25440 if ${tor_cv_cflags__Wunused_but_set_variable+:} false
; then :
25441 $as_echo_n "(cached) " >&6
25444 tor_saved_CFLAGS
="$CFLAGS"
25445 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-but-set-variable"
25446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25447 /* end confdefs.h. */
25457 if ac_fn_c_try_compile
"$LINENO"; then :
25458 tor_cv_cflags__Wunused_but_set_variable
=yes
25460 tor_cv_cflags__Wunused_but_set_variable
=no
25462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25463 if test x
!= x
; then
25465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25476 if ac_fn_c_try_link
"$LINENO"; then :
25477 tor_can_link__Wunused_but_set_variable
=yes
25479 tor_can_link__Wunused_but_set_variable
=no
25481 rm -f core conftest.err conftest.
$ac_objext \
25482 conftest
$ac_exeext conftest.
$ac_ext
25485 CFLAGS
="$tor_saved_CFLAGS"
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_variable" >&5
25489 $as_echo "$tor_cv_cflags__Wunused_but_set_variable" >&6; }
25490 if test x
$tor_cv_cflags__Wunused_but_set_variable = xyes
; then
25491 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-command-line-argument" >&5
25501 $as_echo_n "checking whether the compiler accepts -Wunused-command-line-argument... " >&6; }
25502 if ${tor_cv_cflags__Wunused_command_line_argument+:} false
; then :
25503 $as_echo_n "(cached) " >&6
25506 tor_saved_CFLAGS
="$CFLAGS"
25507 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-command-line-argument"
25508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h. */
25519 if ac_fn_c_try_compile
"$LINENO"; then :
25520 tor_cv_cflags__Wunused_command_line_argument
=yes
25522 tor_cv_cflags__Wunused_command_line_argument
=no
25524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25525 if test x
!= x
; then
25527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25528 /* end confdefs.h. */
25538 if ac_fn_c_try_link
"$LINENO"; then :
25539 tor_can_link__Wunused_command_line_argument
=yes
25541 tor_can_link__Wunused_command_line_argument
=no
25543 rm -f core conftest.err conftest.
$ac_objext \
25544 conftest
$ac_exeext conftest.
$ac_ext
25547 CFLAGS
="$tor_saved_CFLAGS"
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_command_line_argument" >&5
25551 $as_echo "$tor_cv_cflags__Wunused_command_line_argument" >&6; }
25552 if test x
$tor_cv_cflags__Wunused_command_line_argument = xyes
; then
25553 CFLAGS
="$CFLAGS -Wunused-command-line-argument"
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-const-variable=2" >&5
25563 $as_echo_n "checking whether the compiler accepts -Wunused-const-variable=2... " >&6; }
25564 if ${tor_cv_cflags__Wunused_const_variable_2+:} false
; then :
25565 $as_echo_n "(cached) " >&6
25568 tor_saved_CFLAGS
="$CFLAGS"
25569 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-const-variable=2"
25570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25571 /* end confdefs.h. */
25581 if ac_fn_c_try_compile
"$LINENO"; then :
25582 tor_cv_cflags__Wunused_const_variable_2
=yes
25584 tor_cv_cflags__Wunused_const_variable_2
=no
25586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25587 if test x
!= x
; then
25589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h. */
25600 if ac_fn_c_try_link
"$LINENO"; then :
25601 tor_can_link__Wunused_const_variable_2
=yes
25603 tor_can_link__Wunused_const_variable_2
=no
25605 rm -f core conftest.err conftest.
$ac_objext \
25606 conftest
$ac_exeext conftest.
$ac_ext
25609 CFLAGS
="$tor_saved_CFLAGS"
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_const_variable_2" >&5
25613 $as_echo "$tor_cv_cflags__Wunused_const_variable_2" >&6; }
25614 if test x
$tor_cv_cflags__Wunused_const_variable_2 = xyes
; then
25615 CFLAGS
="$CFLAGS -Wunused-const-variable=2"
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-exception-parameter" >&5
25625 $as_echo_n "checking whether the compiler accepts -Wunused-exception-parameter... " >&6; }
25626 if ${tor_cv_cflags__Wunused_exception_parameter+:} false
; then :
25627 $as_echo_n "(cached) " >&6
25630 tor_saved_CFLAGS
="$CFLAGS"
25631 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-exception-parameter"
25632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25633 /* end confdefs.h. */
25643 if ac_fn_c_try_compile
"$LINENO"; then :
25644 tor_cv_cflags__Wunused_exception_parameter
=yes
25646 tor_cv_cflags__Wunused_exception_parameter
=no
25648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25649 if test x
!= x
; then
25651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25652 /* end confdefs.h. */
25662 if ac_fn_c_try_link
"$LINENO"; then :
25663 tor_can_link__Wunused_exception_parameter
=yes
25665 tor_can_link__Wunused_exception_parameter
=no
25667 rm -f core conftest.err conftest.
$ac_objext \
25668 conftest
$ac_exeext conftest.
$ac_ext
25671 CFLAGS
="$tor_saved_CFLAGS"
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_exception_parameter" >&5
25675 $as_echo "$tor_cv_cflags__Wunused_exception_parameter" >&6; }
25676 if test x
$tor_cv_cflags__Wunused_exception_parameter = xyes
; then
25677 CFLAGS
="$CFLAGS -Wunused-exception-parameter"
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-local-typedefs" >&5
25687 $as_echo_n "checking whether the compiler accepts -Wunused-local-typedefs... " >&6; }
25688 if ${tor_cv_cflags__Wunused_local_typedefs+:} false
; then :
25689 $as_echo_n "(cached) " >&6
25692 tor_saved_CFLAGS
="$CFLAGS"
25693 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-local-typedefs"
25694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25695 /* end confdefs.h. */
25705 if ac_fn_c_try_compile
"$LINENO"; then :
25706 tor_cv_cflags__Wunused_local_typedefs
=yes
25708 tor_cv_cflags__Wunused_local_typedefs
=no
25710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25711 if test x
!= x
; then
25713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25714 /* end confdefs.h. */
25724 if ac_fn_c_try_link
"$LINENO"; then :
25725 tor_can_link__Wunused_local_typedefs
=yes
25727 tor_can_link__Wunused_local_typedefs
=no
25729 rm -f core conftest.err conftest.
$ac_objext \
25730 conftest
$ac_exeext conftest.
$ac_ext
25733 CFLAGS
="$tor_saved_CFLAGS"
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_local_typedefs" >&5
25737 $as_echo "$tor_cv_cflags__Wunused_local_typedefs" >&6; }
25738 if test x
$tor_cv_cflags__Wunused_local_typedefs = xyes
; then
25739 CFLAGS
="$CFLAGS -Wunused-local-typedefs"
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-member-function" >&5
25749 $as_echo_n "checking whether the compiler accepts -Wunused-member-function... " >&6; }
25750 if ${tor_cv_cflags__Wunused_member_function+:} false
; then :
25751 $as_echo_n "(cached) " >&6
25754 tor_saved_CFLAGS
="$CFLAGS"
25755 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-member-function"
25756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25757 /* end confdefs.h. */
25767 if ac_fn_c_try_compile
"$LINENO"; then :
25768 tor_cv_cflags__Wunused_member_function
=yes
25770 tor_cv_cflags__Wunused_member_function
=no
25772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25773 if test x
!= x
; then
25775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25776 /* end confdefs.h. */
25786 if ac_fn_c_try_link
"$LINENO"; then :
25787 tor_can_link__Wunused_member_function
=yes
25789 tor_can_link__Wunused_member_function
=no
25791 rm -f core conftest.err conftest.
$ac_objext \
25792 conftest
$ac_exeext conftest.
$ac_ext
25795 CFLAGS
="$tor_saved_CFLAGS"
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_member_function" >&5
25799 $as_echo "$tor_cv_cflags__Wunused_member_function" >&6; }
25800 if test x
$tor_cv_cflags__Wunused_member_function = xyes
; then
25801 CFLAGS
="$CFLAGS -Wunused-member-function"
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-sanitize-argument" >&5
25811 $as_echo_n "checking whether the compiler accepts -Wunused-sanitize-argument... " >&6; }
25812 if ${tor_cv_cflags__Wunused_sanitize_argument+:} false
; then :
25813 $as_echo_n "(cached) " >&6
25816 tor_saved_CFLAGS
="$CFLAGS"
25817 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-sanitize-argument"
25818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25819 /* end confdefs.h. */
25829 if ac_fn_c_try_compile
"$LINENO"; then :
25830 tor_cv_cflags__Wunused_sanitize_argument
=yes
25832 tor_cv_cflags__Wunused_sanitize_argument
=no
25834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25835 if test x
!= x
; then
25837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h. */
25848 if ac_fn_c_try_link
"$LINENO"; then :
25849 tor_can_link__Wunused_sanitize_argument
=yes
25851 tor_can_link__Wunused_sanitize_argument
=no
25853 rm -f core conftest.err conftest.
$ac_objext \
25854 conftest
$ac_exeext conftest.
$ac_ext
25857 CFLAGS
="$tor_saved_CFLAGS"
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_sanitize_argument" >&5
25861 $as_echo "$tor_cv_cflags__Wunused_sanitize_argument" >&6; }
25862 if test x
$tor_cv_cflags__Wunused_sanitize_argument = xyes
; then
25863 CFLAGS
="$CFLAGS -Wunused-sanitize-argument"
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-volatile-lvalue" >&5
25873 $as_echo_n "checking whether the compiler accepts -Wunused-volatile-lvalue... " >&6; }
25874 if ${tor_cv_cflags__Wunused_volatile_lvalue+:} false
; then :
25875 $as_echo_n "(cached) " >&6
25878 tor_saved_CFLAGS
="$CFLAGS"
25879 CFLAGS
="$CFLAGS -pedantic -Werror -Wunused-volatile-lvalue"
25880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25881 /* end confdefs.h. */
25891 if ac_fn_c_try_compile
"$LINENO"; then :
25892 tor_cv_cflags__Wunused_volatile_lvalue
=yes
25894 tor_cv_cflags__Wunused_volatile_lvalue
=no
25896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25897 if test x
!= x
; then
25899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25900 /* end confdefs.h. */
25910 if ac_fn_c_try_link
"$LINENO"; then :
25911 tor_can_link__Wunused_volatile_lvalue
=yes
25913 tor_can_link__Wunused_volatile_lvalue
=no
25915 rm -f core conftest.err conftest.
$ac_objext \
25916 conftest
$ac_exeext conftest.
$ac_ext
25919 CFLAGS
="$tor_saved_CFLAGS"
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_volatile_lvalue" >&5
25923 $as_echo "$tor_cv_cflags__Wunused_volatile_lvalue" >&6; }
25924 if test x
$tor_cv_cflags__Wunused_volatile_lvalue = xyes
; then
25925 CFLAGS
="$CFLAGS -Wunused-volatile-lvalue"
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wuser-defined-literals" >&5
25935 $as_echo_n "checking whether the compiler accepts -Wuser-defined-literals... " >&6; }
25936 if ${tor_cv_cflags__Wuser_defined_literals+:} false
; then :
25937 $as_echo_n "(cached) " >&6
25940 tor_saved_CFLAGS
="$CFLAGS"
25941 CFLAGS
="$CFLAGS -pedantic -Werror -Wuser-defined-literals"
25942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25943 /* end confdefs.h. */
25953 if ac_fn_c_try_compile
"$LINENO"; then :
25954 tor_cv_cflags__Wuser_defined_literals
=yes
25956 tor_cv_cflags__Wuser_defined_literals
=no
25958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25959 if test x
!= x
; then
25961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25962 /* end confdefs.h. */
25972 if ac_fn_c_try_link
"$LINENO"; then :
25973 tor_can_link__Wuser_defined_literals
=yes
25975 tor_can_link__Wuser_defined_literals
=no
25977 rm -f core conftest.err conftest.
$ac_objext \
25978 conftest
$ac_exeext conftest.
$ac_ext
25981 CFLAGS
="$tor_saved_CFLAGS"
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wuser_defined_literals" >&5
25985 $as_echo "$tor_cv_cflags__Wuser_defined_literals" >&6; }
25986 if test x
$tor_cv_cflags__Wuser_defined_literals = xyes
; then
25987 CFLAGS
="$CFLAGS -Wuser-defined-literals"
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvariadic-macros" >&5
25997 $as_echo_n "checking whether the compiler accepts -Wvariadic-macros... " >&6; }
25998 if ${tor_cv_cflags__Wvariadic_macros+:} false
; then :
25999 $as_echo_n "(cached) " >&6
26002 tor_saved_CFLAGS
="$CFLAGS"
26003 CFLAGS
="$CFLAGS -pedantic -Werror -Wvariadic-macros"
26004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h. */
26015 if ac_fn_c_try_compile
"$LINENO"; then :
26016 tor_cv_cflags__Wvariadic_macros
=yes
26018 tor_cv_cflags__Wvariadic_macros
=no
26020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26021 if test x
!= x
; then
26023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h. */
26034 if ac_fn_c_try_link
"$LINENO"; then :
26035 tor_can_link__Wvariadic_macros
=yes
26037 tor_can_link__Wvariadic_macros
=no
26039 rm -f core conftest.err conftest.
$ac_objext \
26040 conftest
$ac_exeext conftest.
$ac_ext
26043 CFLAGS
="$tor_saved_CFLAGS"
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvariadic_macros" >&5
26047 $as_echo "$tor_cv_cflags__Wvariadic_macros" >&6; }
26048 if test x
$tor_cv_cflags__Wvariadic_macros = xyes
; then
26049 CFLAGS
="$CFLAGS -Wvariadic-macros"
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversion" >&5
26059 $as_echo_n "checking whether the compiler accepts -Wvector-conversion... " >&6; }
26060 if ${tor_cv_cflags__Wvector_conversion+:} false
; then :
26061 $as_echo_n "(cached) " >&6
26064 tor_saved_CFLAGS
="$CFLAGS"
26065 CFLAGS
="$CFLAGS -pedantic -Werror -Wvector-conversion"
26066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26067 /* end confdefs.h. */
26077 if ac_fn_c_try_compile
"$LINENO"; then :
26078 tor_cv_cflags__Wvector_conversion
=yes
26080 tor_cv_cflags__Wvector_conversion
=no
26082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26083 if test x
!= x
; then
26085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26086 /* end confdefs.h. */
26096 if ac_fn_c_try_link
"$LINENO"; then :
26097 tor_can_link__Wvector_conversion
=yes
26099 tor_can_link__Wvector_conversion
=no
26101 rm -f core conftest.err conftest.
$ac_objext \
26102 conftest
$ac_exeext conftest.
$ac_ext
26105 CFLAGS
="$tor_saved_CFLAGS"
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversion" >&5
26109 $as_echo "$tor_cv_cflags__Wvector_conversion" >&6; }
26110 if test x
$tor_cv_cflags__Wvector_conversion = xyes
; then
26111 CFLAGS
="$CFLAGS -Wvector-conversion"
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversions" >&5
26121 $as_echo_n "checking whether the compiler accepts -Wvector-conversions... " >&6; }
26122 if ${tor_cv_cflags__Wvector_conversions+:} false
; then :
26123 $as_echo_n "(cached) " >&6
26126 tor_saved_CFLAGS
="$CFLAGS"
26127 CFLAGS
="$CFLAGS -pedantic -Werror -Wvector-conversions"
26128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h. */
26139 if ac_fn_c_try_compile
"$LINENO"; then :
26140 tor_cv_cflags__Wvector_conversions
=yes
26142 tor_cv_cflags__Wvector_conversions
=no
26144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26145 if test x
!= x
; then
26147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26148 /* end confdefs.h. */
26158 if ac_fn_c_try_link
"$LINENO"; then :
26159 tor_can_link__Wvector_conversions
=yes
26161 tor_can_link__Wvector_conversions
=no
26163 rm -f core conftest.err conftest.
$ac_objext \
26164 conftest
$ac_exeext conftest.
$ac_ext
26167 CFLAGS
="$tor_saved_CFLAGS"
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversions" >&5
26171 $as_echo "$tor_cv_cflags__Wvector_conversions" >&6; }
26172 if test x
$tor_cv_cflags__Wvector_conversions = xyes
; then
26173 CFLAGS
="$CFLAGS -Wvector-conversions"
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvexing-parse" >&5
26183 $as_echo_n "checking whether the compiler accepts -Wvexing-parse... " >&6; }
26184 if ${tor_cv_cflags__Wvexing_parse+:} false
; then :
26185 $as_echo_n "(cached) " >&6
26188 tor_saved_CFLAGS
="$CFLAGS"
26189 CFLAGS
="$CFLAGS -pedantic -Werror -Wvexing-parse"
26190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26191 /* end confdefs.h. */
26201 if ac_fn_c_try_compile
"$LINENO"; then :
26202 tor_cv_cflags__Wvexing_parse
=yes
26204 tor_cv_cflags__Wvexing_parse
=no
26206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26207 if test x
!= x
; then
26209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26210 /* end confdefs.h. */
26220 if ac_fn_c_try_link
"$LINENO"; then :
26221 tor_can_link__Wvexing_parse
=yes
26223 tor_can_link__Wvexing_parse
=no
26225 rm -f core conftest.err conftest.
$ac_objext \
26226 conftest
$ac_exeext conftest.
$ac_ext
26229 CFLAGS
="$tor_saved_CFLAGS"
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvexing_parse" >&5
26233 $as_echo "$tor_cv_cflags__Wvexing_parse" >&6; }
26234 if test x
$tor_cv_cflags__Wvexing_parse = xyes
; then
26235 CFLAGS
="$CFLAGS -Wvexing-parse"
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvisibility" >&5
26245 $as_echo_n "checking whether the compiler accepts -Wvisibility... " >&6; }
26246 if ${tor_cv_cflags__Wvisibility+:} false
; then :
26247 $as_echo_n "(cached) " >&6
26250 tor_saved_CFLAGS
="$CFLAGS"
26251 CFLAGS
="$CFLAGS -pedantic -Werror -Wvisibility"
26252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26263 if ac_fn_c_try_compile
"$LINENO"; then :
26264 tor_cv_cflags__Wvisibility
=yes
26266 tor_cv_cflags__Wvisibility
=no
26268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26269 if test x
!= x
; then
26271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26272 /* end confdefs.h. */
26282 if ac_fn_c_try_link
"$LINENO"; then :
26283 tor_can_link__Wvisibility
=yes
26285 tor_can_link__Wvisibility
=no
26287 rm -f core conftest.err conftest.
$ac_objext \
26288 conftest
$ac_exeext conftest.
$ac_ext
26291 CFLAGS
="$tor_saved_CFLAGS"
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvisibility" >&5
26295 $as_echo "$tor_cv_cflags__Wvisibility" >&6; }
26296 if test x
$tor_cv_cflags__Wvisibility = xyes
; then
26297 CFLAGS
="$CFLAGS -Wvisibility"
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvla-extension" >&5
26307 $as_echo_n "checking whether the compiler accepts -Wvla-extension... " >&6; }
26308 if ${tor_cv_cflags__Wvla_extension+:} false
; then :
26309 $as_echo_n "(cached) " >&6
26312 tor_saved_CFLAGS
="$CFLAGS"
26313 CFLAGS
="$CFLAGS -pedantic -Werror -Wvla-extension"
26314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h. */
26325 if ac_fn_c_try_compile
"$LINENO"; then :
26326 tor_cv_cflags__Wvla_extension
=yes
26328 tor_cv_cflags__Wvla_extension
=no
26330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26331 if test x
!= x
; then
26333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26334 /* end confdefs.h. */
26344 if ac_fn_c_try_link
"$LINENO"; then :
26345 tor_can_link__Wvla_extension
=yes
26347 tor_can_link__Wvla_extension
=no
26349 rm -f core conftest.err conftest.
$ac_objext \
26350 conftest
$ac_exeext conftest.
$ac_ext
26353 CFLAGS
="$tor_saved_CFLAGS"
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvla_extension" >&5
26357 $as_echo "$tor_cv_cflags__Wvla_extension" >&6; }
26358 if test x
$tor_cv_cflags__Wvla_extension = xyes
; then
26359 CFLAGS
="$CFLAGS -Wvla-extension"
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wzero-length-array" >&5
26369 $as_echo_n "checking whether the compiler accepts -Wzero-length-array... " >&6; }
26370 if ${tor_cv_cflags__Wzero_length_array+:} false
; then :
26371 $as_echo_n "(cached) " >&6
26374 tor_saved_CFLAGS
="$CFLAGS"
26375 CFLAGS
="$CFLAGS -pedantic -Werror -Wzero-length-array"
26376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26377 /* end confdefs.h. */
26387 if ac_fn_c_try_compile
"$LINENO"; then :
26388 tor_cv_cflags__Wzero_length_array
=yes
26390 tor_cv_cflags__Wzero_length_array
=no
26392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26393 if test x
!= x
; then
26395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26396 /* end confdefs.h. */
26406 if ac_fn_c_try_link
"$LINENO"; then :
26407 tor_can_link__Wzero_length_array
=yes
26409 tor_can_link__Wzero_length_array
=no
26411 rm -f core conftest.err conftest.
$ac_objext \
26412 conftest
$ac_exeext conftest.
$ac_ext
26415 CFLAGS
="$tor_saved_CFLAGS"
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wzero_length_array" >&5
26419 $as_echo "$tor_cv_cflags__Wzero_length_array" >&6; }
26420 if test x
$tor_cv_cflags__Wzero_length_array = xyes
; then
26421 CFLAGS
="$CFLAGS -Wzero-length-array"
26431 CFLAGS
="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith"
26432 CFLAGS
="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings"
26433 CFLAGS
="$CFLAGS -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2"
26434 CFLAGS
="$CFLAGS -Wwrite-strings"
26435 CFLAGS
="$CFLAGS -Wnested-externs -Wbad-function-cast -Wswitch-enum"
26436 CFLAGS
="$CFLAGS -Waggregate-return -Wpacked -Wunused"
26437 CFLAGS
="$CFLAGS -Wunused-parameter "
26438 # These interfere with building main() { return 0; }, which autoconf
26439 # likes to use as its default program.
26440 CFLAGS
="$CFLAGS -Wold-style-definition -Wmissing-declarations"
26442 if test "$tor_cv_cflags__Wnull_dereference" = "yes"; then
26444 $as_echo "#define HAVE_CFLAG_WNULL_DEREFERENCE 1" >>confdefs.h
26447 if test "$tor_cv_cflags__Woverlength_strings" = "yes"; then
26449 $as_echo "#define HAVE_CFLAG_WOVERLENGTH_STRINGS 1" >>confdefs.h
26453 if test "x$enable_fatal_warnings" = "xyes"; then
26454 # I'd like to use TOR_CHECK_CFLAGS here, but I can't, since the
26455 # default autoconf programs are full of errors.
26456 CFLAGS
="$CFLAGS -Werror"
26461 if test "$enable_coverage" = "yes" && test "$have_clang" = "no"; then
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tried to enable coverage on OSX without using the clang compiler. This might not work! If coverage fails, use CC=clang when configuring with --enable-coverage." >&5
26465 $as_echo "$as_me: WARNING: Tried to enable coverage on OSX without using the clang compiler. This might not work! If coverage fails, use CC=clang when configuring with --enable-coverage." >&2;}
26469 CPPFLAGS
="$CPPFLAGS $TOR_CPPFLAGS_libevent $TOR_CPPFLAGS_openssl $TOR_CPPFLAGS_zlib"
26471 ac_config_files
="$ac_config_files Doxyfile Makefile contrib/dist/suse/tor.sh contrib/operator-tools/tor.logrotate contrib/dist/tor.sh contrib/dist/torctl contrib/dist/tor.service src/config/torrc.sample src/config/torrc.minimal scripts/maint/checkOptionDocs.pl scripts/maint/updateVersions.pl"
26474 if test "x$asciidoc" = "xtrue" && test "$ASCIIDOC" = "none"; then
26475 regular_mans
="doc/tor doc/tor-gencert doc/tor-resolve doc/torify"
26476 for file in $regular_mans ; do
26477 if ! [ -f "$srcdir/$file.1.in" ] ||
! [ -f "$srcdir/$file.html.in" ] ; then
26478 echo "==================================";
26480 echo "Building Tor has failed since manpages cannot be built.";
26482 echo "You need asciidoc installed to be able to build the manpages.";
26483 echo "To build without manpages, use the --disable-asciidoc argument";
26484 echo "when calling configure.";
26486 echo "==================================";
26492 cat >confcache
<<\_ACEOF
26493 # This file is a shell script that caches the results of configure
26494 # tests run on this system so they can be shared between configure
26495 # scripts and configure runs, see configure's option --config-cache.
26496 # It is not useful on other systems. If it contains results you don't
26497 # want to keep, you may remove or edit it.
26499 # config.status only pays attention to the cache file if you give it
26500 # the --recheck option to rerun configure.
26502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26504 # following values.
26508 # The following way of writing the cache mishandles newlines in values,
26509 # but we know of no workaround that is simple, portable, and efficient.
26510 # So, we kill variables containing newlines.
26511 # Ultrix sh set writes to stderr and can't be redirected directly,
26512 # and sets the high bit in the cache file unless we assign to the vars.
26514 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26515 eval ac_val
=\$
$ac_var
26519 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26523 _ | IFS | as_nl
) ;; #(
26524 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26525 *) { eval $ac_var=; unset $ac_var;} ;;
26531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26532 *${as_nl}ac_space
=\
*)
26533 # `set' does not quote correctly, so add quotes: double-quote
26534 # substitution turns \\\\ into \\, and sed turns \\ into \.
26537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26540 # `set' quotes correctly as required by POSIX, so do not add quotes.
26541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26554 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26555 if test -w "$cache_file"; then
26556 if test "x$cache_file" != "x/dev/null"; then
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26558 $as_echo "$as_me: updating cache $cache_file" >&6;}
26559 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
26560 cat confcache
>"$cache_file"
26562 case $cache_file in #(
26564 mv -f confcache
"$cache_file"$$
&&
26565 mv -f "$cache_file"$$
"$cache_file" ;; #(
26567 mv -f confcache
"$cache_file" ;;
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26573 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26578 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26579 # Let make expand exec_prefix.
26580 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26582 DEFS
=-DHAVE_CONFIG_H
26587 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26588 # 1. Remove the extension, and $U if already installed.
26589 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26590 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26591 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26592 # will be set to the directory where LIBOBJS objects are built.
26593 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26594 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26596 LIBOBJS
=$ac_libobjs
26598 LTLIBOBJS
=$ac_ltlibobjs
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26602 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26603 if test -n "$am_sleep_pid"; then
26604 # Hide warnings about reused PIDs.
26605 wait $am_sleep_pid 2>/dev
/null
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26608 $as_echo "done" >&6; }
26609 if test -n "$EXEEXT"; then
26611 am__EXEEXT_FALSE
='#'
26613 am__EXEEXT_TRUE
='#'
26617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26618 as_fn_error $?
"conditional \"AMDEP\" was never defined.
26619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26622 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
26623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26625 if test -z "${UNITTESTS_ENABLED_TRUE}" && test -z "${UNITTESTS_ENABLED_FALSE}"; then
26626 as_fn_error $?
"conditional \"UNITTESTS_ENABLED\" was never defined.
26627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26629 if test -z "${COVERAGE_ENABLED_TRUE}" && test -z "${COVERAGE_ENABLED_FALSE}"; then
26630 as_fn_error $?
"conditional \"COVERAGE_ENABLED\" was never defined.
26631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26633 if test -z "${DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE}" && test -z "${DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE}"; then
26634 as_fn_error $?
"conditional \"DISABLE_ASSERTS_IN_UNIT_TESTS\" was never defined.
26635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26637 if test -z "${USE_OPENBSD_MALLOC_TRUE}" && test -z "${USE_OPENBSD_MALLOC_FALSE}"; then
26638 as_fn_error $?
"conditional \"USE_OPENBSD_MALLOC\" was never defined.
26639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26642 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
26643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26645 if test -z "${USE_ASCIIDOC_TRUE}" && test -z "${USE_ASCIIDOC_FALSE}"; then
26646 as_fn_error $?
"conditional \"USE_ASCIIDOC\" was never defined.
26647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26649 if test -z "${USE_FW_HELPER_TRUE}" && test -z "${USE_FW_HELPER_FALSE}"; then
26650 as_fn_error $?
"conditional \"USE_FW_HELPER\" was never defined.
26651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26653 if test -z "${NAT_PMP_TRUE}" && test -z "${NAT_PMP_FALSE}"; then
26654 as_fn_error $?
"conditional \"NAT_PMP\" was never defined.
26655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26657 if test -z "${MINIUPNPC_TRUE}" && test -z "${MINIUPNPC_FALSE}"; then
26658 as_fn_error $?
"conditional \"MINIUPNPC\" was never defined.
26659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26661 if test -z "${USEPYTHON_TRUE}" && test -z "${USEPYTHON_FALSE}"; then
26662 as_fn_error $?
"conditional \"USEPYTHON\" was never defined.
26663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26665 if test -z "${BUILD_NT_SERVICES_TRUE}" && test -z "${BUILD_NT_SERVICES_FALSE}"; then
26666 as_fn_error $?
"conditional \"BUILD_NT_SERVICES\" was never defined.
26667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26670 if test -z "${THREADS_WIN32_TRUE}" && test -z "${THREADS_WIN32_FALSE}"; then
26671 as_fn_error $?
"conditional \"THREADS_WIN32\" was never defined.
26672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26674 if test -z "${THREADS_PTHREADS_TRUE}" && test -z "${THREADS_PTHREADS_FALSE}"; then
26675 as_fn_error $?
"conditional \"THREADS_PTHREADS\" was never defined.
26676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26678 if test -z "${BUILD_READPASSPHRASE_C_TRUE}" && test -z "${BUILD_READPASSPHRASE_C_FALSE}"; then
26679 as_fn_error $?
"conditional \"BUILD_READPASSPHRASE_C\" was never defined.
26680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26682 if test -z "${ADD_MULODI4_TRUE}" && test -z "${ADD_MULODI4_FALSE}"; then
26683 as_fn_error $?
"conditional \"ADD_MULODI4\" was never defined.
26684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26686 if test -z "${BUILD_CURVE25519_DONNA_TRUE}" && test -z "${BUILD_CURVE25519_DONNA_FALSE}"; then
26687 as_fn_error $?
"conditional \"BUILD_CURVE25519_DONNA\" was never defined.
26688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26690 if test -z "${BUILD_CURVE25519_DONNA_C64_TRUE}" && test -z "${BUILD_CURVE25519_DONNA_C64_FALSE}"; then
26691 as_fn_error $?
"conditional \"BUILD_CURVE25519_DONNA_C64\" was never defined.
26692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26695 : "${CONFIG_STATUS=./config.status}"
26697 ac_clean_files_save
=$ac_clean_files
26698 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26700 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26702 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26704 # Generated by $as_me.
26705 # Run this file to recreate the current configuration.
26706 # Compiler output produced by configure, useful for debugging
26707 # configure, is in config.log if it exists.
26710 ac_cs_recheck=false
26713 SHELL=\${CONFIG_SHELL-$SHELL}
26716 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26717 ## -------------------- ##
26718 ## M4sh Initialization. ##
26719 ## -------------------- ##
26721 # Be more Bourne compatible
26722 DUALCASE
=1; export DUALCASE
# for MKS sh
26723 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26726 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26727 # is contrary to our usage. Disable this feature.
26728 alias -g '${1+"$@"}'='"$@"'
26729 setopt NO_GLOB_SUBST
26731 case `(set -o) 2>/dev/null` in #(
26743 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26744 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26747 # Prefer a ksh shell builtin over an external printf program on Solaris,
26748 # but without wasting forks for bash or zsh.
26749 if test -z "$BASH_VERSION$ZSH_VERSION" \
26750 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26751 as_echo='print
-r --'
26752 as_echo_n='print
-rn --'
26753 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26754 as_echo='printf %s
\n'
26755 as_echo_n='printf %s
'
26757 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26758 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26759 as_echo_n='/usr
/ucb
/echo -n'
26761 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26762 as_echo_n_body='eval
26766 expr "X$arg" : "X\\(.*\\)$as_nl";
26767 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26769 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26771 export as_echo_n_body
26772 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26774 export as_echo_body
26775 as_echo='sh
-c $as_echo_body as_echo
'
26778 # The user is always right.
26779 if test "${PATH_SEPARATOR+set}" != set; then
26781 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26782 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26789 # We need space, tab and new line, in precisely that order. Quoting is
26790 # there to prevent editors from complaining about space-tab.
26791 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26792 # splitting by setting IFS to empty value.)
26795 # Find who we are. Look in the path if we contain no directory separator.
26798 *[\\/]* ) as_myself=$0 ;;
26799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26800 for as_dir in $PATH
26803 test -z "$as_dir" && as_dir=.
26804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26810 # We did not find ourselves, most probably we were run as `sh COMMAND'
26811 # in which case we are not to be found in the path.
26812 if test "x$as_myself" = x
; then
26815 if test ! -f "$as_myself"; then
26816 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26820 # Unset variables that we do not need and which cause bugs (e.g. in
26821 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26822 # suppresses any "Segmentation fault" message there. '((' could
26823 # trigger a bug in pdksh 5.2.14.
26824 for as_var
in BASH_ENV ENV MAIL MAILPATH
26825 do eval test x\
${$as_var+set} = xset \
26826 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26839 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26842 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26843 # ----------------------------------------
26844 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26845 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26846 # script with STATUS, using 1 if that was 0.
26849 as_status
=$1; test $as_status -eq 0 && as_status
=1
26851 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26852 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26854 $as_echo "$as_me: error: $2" >&2
26855 as_fn_exit
$as_status
26859 # as_fn_set_status STATUS
26860 # -----------------------
26861 # Set $? to STATUS, without forking.
26862 as_fn_set_status
()
26865 } # as_fn_set_status
26867 # as_fn_exit STATUS
26868 # -----------------
26869 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26873 as_fn_set_status
$1
26879 # Portably unset VAR.
26882 { eval $1=; unset $1;}
26884 as_unset
=as_fn_unset
26885 # as_fn_append VAR VALUE
26886 # ----------------------
26887 # Append the text in VALUE to the end of the definition contained in VAR. Take
26888 # advantage of any shell optimizations that allow amortized linear growth over
26889 # repeated appends, instead of the typical quadratic growth present in naive
26891 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26892 eval 'as_fn_append ()
26903 # as_fn_arith ARG...
26904 # ------------------
26905 # Perform arithmetic evaluation on the ARGs, and store the result in the
26906 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26907 # must be portable across $(()) and expr.
26908 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26909 eval 'as_fn_arith ()
26916 as_val
=`expr "$@" || test $? -eq 1`
26921 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26922 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26928 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26929 as_basename
=basename
26934 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26940 as_me
=`$as_basename -- "$0" ||
26941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26942 X"$0" : 'X\(//\)$' \| \
26943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26945 sed '/^.*\/\([^/][^/]*\)\/*$/{
26959 # Avoid depending upon Character Ranges.
26960 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26961 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26962 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26963 as_cr_digits
='0123456789'
26964 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26966 ECHO_C
= ECHO_N
= ECHO_T
=
26967 case `echo -n x` in #(((((
26969 case `echo 'xy\c'` in
26970 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26972 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26979 rm -f conf$$ conf$$.exe conf$$.
file
26980 if test -d conf$$.dir
; then
26981 rm -f conf$$.dir
/conf$$.
file
26984 mkdir conf$$.dir
2>/dev
/null
26986 if (echo >conf$$.
file) 2>/dev
/null
; then
26987 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26989 # ... but there are two gotchas:
26990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26992 # In both cases, we have to default to `cp -pR'.
26993 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26995 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27003 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27004 rmdir conf$$.dir
2>/dev
/null
27009 # Create "$as_dir" as a directory, including parents if necessary.
27014 -*) as_dir
=.
/$as_dir;;
27016 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27020 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27021 *) as_qdir
=$as_dir;;
27023 as_dirs
="'$as_qdir' $as_dirs"
27024 as_dir
=`$as_dirname -- "$as_dir" ||
27025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27026 X"$as_dir" : 'X\(//\)[^/]' \| \
27027 X"$as_dir" : 'X\(//\)$' \| \
27028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27029 $as_echo X"$as_dir" |
27030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27034 /^X\(\/\/\)[^/].*/{
27047 test -d "$as_dir" && break
27049 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27050 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
27054 if mkdir
-p .
2>/dev
/null
; then
27055 as_mkdir_p
='mkdir -p "$as_dir"'
27057 test -d .
/-p && rmdir .
/-p
27062 # as_fn_executable_p FILE
27063 # -----------------------
27064 # Test if FILE is an executable regular file.
27065 as_fn_executable_p
()
27067 test -f "$1" && test -x "$1"
27068 } # as_fn_executable_p
27069 as_test_x
='test -x'
27070 as_executable_p
=as_fn_executable_p
27072 # Sed expression to map a string onto a valid CPP name.
27073 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27075 # Sed expression to map a string onto a valid variable name.
27076 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27080 ## ----------------------------------- ##
27081 ## Main body of $CONFIG_STATUS script. ##
27082 ## ----------------------------------- ##
27084 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27087 # Save the log message, to keep $0 and so on meaningful, and to
27088 # report actual input values of CONFIG_FILES etc. instead of their
27089 # values after options handling.
27091 This file was extended by tor $as_me 0.2.9.10, which was
27092 generated by GNU Autoconf 2.69. Invocation command line was
27094 CONFIG_FILES = $CONFIG_FILES
27095 CONFIG_HEADERS = $CONFIG_HEADERS
27096 CONFIG_LINKS = $CONFIG_LINKS
27097 CONFIG_COMMANDS = $CONFIG_COMMANDS
27100 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27105 case $ac_config_files in *"
27106 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27109 case $ac_config_headers in *"
27110 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27115 # Files that config.status was made for.
27116 config_files="$ac_config_files"
27117 config_headers="$ac_config_headers"
27118 config_commands="$ac_config_commands"
27122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27124 \`$as_me' instantiates files and other configuration actions
27125 from templates according to the current configuration. Unless the files
27126 and actions are specified as TAGs, all are instantiated by default.
27128 Usage: $0 [OPTION]... [TAG]...
27130 -h, --help print this help, then exit
27131 -V, --version print version number and configuration settings, then exit
27132 --config print configuration, then exit
27133 -q, --quiet, --silent
27134 do not print progress messages
27135 -d, --debug don't remove temporary files
27136 --recheck update $as_me by reconfiguring in the same conditions
27137 --file=FILE[:TEMPLATE]
27138 instantiate the configuration file FILE
27139 --header=FILE[:TEMPLATE]
27140 instantiate the configuration header FILE
27142 Configuration files:
27145 Configuration headers:
27148 Configuration commands:
27151 Report bugs to the package provider."
27154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27155 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27157 tor config.status 0.2.9.10
27158 configured by $0, generated by GNU Autoconf 2.69,
27159 with options \\"\$ac_cs_config\\"
27161 Copyright (C) 2012 Free Software Foundation, Inc.
27162 This config.status script is free software; the Free Software Foundation
27163 gives unlimited permission to copy, distribute and modify it."
27170 test -n "\$AWK" || AWK=awk
27173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27174 # The default lists apply if the user does not specify any file.
27180 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27181 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27185 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27197 # Handling of the options.
27198 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27200 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27201 $as_echo "$ac_cs_version"; exit ;;
27202 --config |
--confi |
--conf |
--con |
--co |
--c )
27203 $as_echo "$ac_cs_config"; exit ;;
27204 --debug |
--debu |
--deb |
--de |
--d |
-d )
27206 --file |
--fil |
--fi |
--f )
27209 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27210 '') as_fn_error $?
"missing file argument" ;;
27212 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27213 ac_need_defaults
=false
;;
27214 --header |
--heade |
--head |
--hea )
27217 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27219 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27220 ac_need_defaults
=false
;;
27222 # Conflict between --help and --header
27223 as_fn_error $?
"ambiguous option: \`$1'
27224 Try \`$0 --help' for more information.";;
27225 --help |
--hel |
-h )
27226 $as_echo "$ac_cs_usage"; exit ;;
27227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27228 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27231 # This is an error.
27232 -*) as_fn_error $?
"unrecognized option: \`$1'
27233 Try \`$0 --help' for more information." ;;
27235 *) as_fn_append ac_config_targets
" $1"
27236 ac_need_defaults
=false
;;
27242 ac_configure_extra_args
=
27244 if $ac_cs_silent; then
27246 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27251 if \$ac_cs_recheck; then
27252 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27254 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27255 CONFIG_SHELL='$SHELL'
27256 export CONFIG_SHELL
27261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27266 ## Running $as_me. ##
27272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27276 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27282 # Handling of arguments.
27283 for ac_config_target
in $ac_config_targets
27285 case $ac_config_target in
27286 "orconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS orconfig.h" ;;
27287 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27288 "Doxyfile") CONFIG_FILES
="$CONFIG_FILES Doxyfile" ;;
27289 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27290 "contrib/dist/suse/tor.sh") CONFIG_FILES
="$CONFIG_FILES contrib/dist/suse/tor.sh" ;;
27291 "contrib/operator-tools/tor.logrotate") CONFIG_FILES
="$CONFIG_FILES contrib/operator-tools/tor.logrotate" ;;
27292 "contrib/dist/tor.sh") CONFIG_FILES
="$CONFIG_FILES contrib/dist/tor.sh" ;;
27293 "contrib/dist/torctl") CONFIG_FILES
="$CONFIG_FILES contrib/dist/torctl" ;;
27294 "contrib/dist/tor.service") CONFIG_FILES
="$CONFIG_FILES contrib/dist/tor.service" ;;
27295 "src/config/torrc.sample") CONFIG_FILES
="$CONFIG_FILES src/config/torrc.sample" ;;
27296 "src/config/torrc.minimal") CONFIG_FILES
="$CONFIG_FILES src/config/torrc.minimal" ;;
27297 "scripts/maint/checkOptionDocs.pl") CONFIG_FILES
="$CONFIG_FILES scripts/maint/checkOptionDocs.pl" ;;
27298 "scripts/maint/updateVersions.pl") CONFIG_FILES
="$CONFIG_FILES scripts/maint/updateVersions.pl" ;;
27300 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27305 # If the user did not use the arguments to specify the items to instantiate,
27306 # then the envvar interface is used. Set only those that are not.
27307 # We use the long form for the default assignment because of an extremely
27308 # bizarre bug on SunOS 4.1.3.
27309 if $ac_need_defaults; then
27310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27315 # Have a temporary directory for convenience. Make it in the build tree
27316 # simply because there is no reason against having it here, and in addition,
27317 # creating and moving files from /tmp can sometimes cause problems.
27318 # Hook for its removal unless debugging.
27319 # Note that there is a small window in which the directory will not be cleaned:
27320 # after its creation but before its name has been assigned to `$tmp'.
27324 trap 'exit_status=$?
27325 : "${ac_tmp:=$tmp}"
27326 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27328 trap 'as_fn_exit 1' 1 2 13 15
27330 # Create a (secure) tmp directory for tmp files.
27333 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27337 tmp
=.
/conf$$
-$RANDOM
27338 (umask 077 && mkdir
"$tmp")
27339 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
27342 # Set up the scripts for CONFIG_FILES section.
27343 # No need to generate them if there are no CONFIG_FILES.
27344 # This happens for instance with `./config.status config.h'.
27345 if test -n "$CONFIG_FILES"; then
27348 ac_cr
=`echo X | tr X '\015'`
27349 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27350 # But we know of no other shell where ac_cr would be empty at this
27351 # point, so we can use a bashism as a fallback.
27352 if test "x$ac_cr" = x
; then
27353 eval ac_cr
=\$
\'\\r
\'
27355 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27356 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27359 ac_cs_awk_cr
=$ac_cr
27362 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27367 echo "cat >conf$$subs.awk <<_ACEOF" &&
27368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27370 } >conf$$subs.sh ||
27371 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27372 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27374 for ac_last_try in false false false false false :; do
27375 . ./conf$$subs.sh ||
27376 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27378 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27379 if test $ac_delim_n = $ac_delim_num; then
27381 elif $ac_last_try; then
27382 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27384 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27387 rm -f conf$$subs.sh
27389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27390 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
27394 s/^/S["/; s
/!.
*/"]=/
27404 s/\(.\{148\}\)..*/\1/
27406 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27411 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27418 s/\(.\{148\}\)..*/\1/
27420 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27424 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27429 ' <conf$$subs.awk | sed '
27434 ' >>$CONFIG_STATUS || ac_write_fail=1
27435 rm -f conf$$subs.awk
27436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27438 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
27439 for (key in S) S_is_set[key] = 1
27445 nfields = split(line, field, "@
")
27447 len = length(field[1])
27448 for (i = 2; i < nfields; i++) {
27450 keylen = length(key)
27451 if (S_is_set[key]) {
27453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27454 len += length(value) + length(field[++i])
27465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27466 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27467 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27470 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
27471 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
27474 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27475 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
27476 # trailing colons and then remove the whole line if VPATH becomes empty
27477 # (actually we leave an empty line to preserve line numbers).
27478 if test "x
$srcdir" = x.; then
27479 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27498 fi # test -n "$CONFIG_FILES"
27500 # Set up the scripts for CONFIG_HEADERS section.
27501 # No need to generate them if there are no CONFIG_HEADERS.
27502 # This happens for instance with `./config.status Makefile'.
27503 if test -n "$CONFIG_HEADERS"; then
27504 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
27508 # Transform confdefs.h into an awk script `defines.awk', embedded as
27509 # here-document in config.status, that substitutes the proper values into
27510 # config.h.in to produce config.h.
27512 # Create a delimiter string that does not exist in confdefs.h, to ease
27513 # handling of long lines.
27515 for ac_last_try in false false :; do
27516 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
27517 if test -z "$ac_tt"; then
27519 elif $ac_last_try; then
27520 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
27522 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27526 # For the awk script, D is an array of macro values keyed by name,
27527 # likewise P contains macro parameters if any. Preserve backslash
27528 # newline sequences.
27530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27532 s/.\{148\}/&'"$ac_delim"'/g
27535 s/^[ ]*#[ ]*define[ ][ ]*/ /
27542 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27544 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27549 D["\
1"]=" \
3\\\\\\n
"\\/p
27551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27556 s/.\{148\}/&'"$ac_delim"'/g
27561 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27564 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27566 ' <confdefs.h | sed '
27567 s/'"$ac_delim"'/"\\\
27568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27571 for (key in D) D_is_set[key] = 1
27574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27576 split(line, arg, " ")
27577 if (arg[1] == "#") {
27581 defundef
= substr
(arg
[1], 2)
27584 split(mac1
, mac2
, "(") #)
27586 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27587 if (D_is_set
[macro
]) {
27588 # Preserve the white space surrounding the "#".
27589 print prefix
"define", macro P
[macro
] D
[macro
]
27592 # Replace #undef with comments. This is necessary, for example,
27593 # in the case of _POSIX_SOURCE, which is predefined and required
27594 # on some systems where configure will not decide to define it.
27595 if (defundef
== "undef") {
27596 print
"/*", prefix defundef
, macro
, "*/"
27604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27605 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
27606 fi # test -n "$CONFIG_HEADERS"
27609 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27614 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27616 case $ac_mode$ac_tag in
27618 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27619 :[FH
]-) ac_tag
=-:-;;
27620 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27637 -) ac_f
="$ac_tmp/stdin";;
27638 *) # Look for the file first in the build tree, then in the source tree
27639 # (if the path is not absolute). The absolute path cannot be DOS-style,
27640 # because $ac_f cannot contain `:'.
27644 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27646 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27648 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27649 as_fn_append ac_file_inputs
" '$ac_f'"
27652 # Let's still pretend it is `configure' which instantiates (i.e., don't
27653 # use $as_me), people would be surprised to read:
27654 # /* config.h. Generated by config.status. */
27655 configure_input
='Generated from '`
27656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27658 if test x
"$ac_file" != x-
; then
27659 configure_input
="$ac_file. $configure_input"
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27661 $as_echo "$as_me: creating $ac_file" >&6;}
27663 # Neutralize special characters interpreted by sed in replacement strings.
27664 case $configure_input in #(
27665 *\
&* |
*\|
* |
*\\* )
27666 ac_sed_conf_input
=`$as_echo "$configure_input" |
27667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27668 *) ac_sed_conf_input
=$configure_input;;
27672 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
27673 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
27678 ac_dir
=`$as_dirname -- "$ac_file" ||
27679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27680 X"$ac_file" : 'X\(//\)[^/]' \| \
27681 X"$ac_file" : 'X\(//\)$' \| \
27682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27683 $as_echo X"$ac_file" |
27684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27688 /^X\(\/\/\)[^/].*/{
27701 as_dir
="$ac_dir"; as_fn_mkdir_p
27705 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27707 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27708 # A ".." for each directory in $ac_dir_suffix.
27709 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27710 case $ac_top_builddir_sub in
27711 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27712 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27715 ac_abs_top_builddir
=$ac_pwd
27716 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27717 # for backward compatibility:
27718 ac_top_builddir
=$ac_top_build_prefix
27721 .
) # We are building in place.
27723 ac_top_srcdir
=$ac_top_builddir_sub
27724 ac_abs_top_srcdir
=$ac_pwd ;;
27725 [\\/]* | ?
:[\\/]* ) # Absolute name.
27726 ac_srcdir
=$srcdir$ac_dir_suffix;
27727 ac_top_srcdir
=$srcdir
27728 ac_abs_top_srcdir
=$srcdir ;;
27729 *) # Relative name.
27730 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27731 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27732 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27734 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27744 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27745 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27747 ac_MKDIR_P
=$MKDIR_P
27749 [\\/$
]* | ?
:[\\/]* ) ;;
27750 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
27754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27755 # If the template does not know about datarootdir, expand it.
27756 # FIXME: This hack should be removed a few years after 2.60.
27757 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27768 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27769 *datarootdir
*) ac_datarootdir_seen
=yes;;
27770 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27772 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27775 ac_datarootdir_hack='
27776 s&@datadir@&$datadir&g
27777 s&@docdir@&$docdir&g
27778 s&@infodir@&$infodir&g
27779 s&@localedir@&$localedir&g
27780 s&@mandir@&$mandir&g
27781 s&\\\${datarootdir}&$datarootdir&g' ;;
27785 # Neutralize VPATH when `$srcdir' = `.'.
27786 # Shell code in configure.ac might set extrasub.
27787 # FIXME: do we really want to maintain this feature?
27788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27789 ac_sed_extra="$ac_vpsub
27792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27794 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27795 s|@configure_input@|
$ac_sed_conf_input|
;t t
27796 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27797 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27798 s
&@srcdir@
&$ac_srcdir&;t t
27799 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27800 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27801 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27802 s
&@builddir@
&$ac_builddir&;t t
27803 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27804 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27805 s
&@INSTALL@
&$ac_INSTALL&;t t
27806 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27807 $ac_datarootdir_hack
27809 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
27810 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
27812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27813 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
27814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27815 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27817 which seems to be undefined. Please make sure it is defined" >&5
27818 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27819 which seems to be undefined. Please make sure it is defined" >&2;}
27821 rm -f "$ac_tmp/stdin"
27823 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27824 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27832 if test x"$ac_file" != x-; then
27834 $as_echo "/* $configure_input */" \
27835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27836 } >"$ac_tmp/config.h" \
27837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27838 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27840 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27843 mv "$ac_tmp/config.h" "$ac_file" \
27844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27847 $as_echo "/* $configure_input */" \
27848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27849 || as_fn_error $? "could not create -" "$LINENO" 5
27851 # Compute "$ac_file"'s index
in $config_headers.
27854 for _am_header
in $config_headers :; do
27855 case $_am_header in
27856 $_am_arg |
$_am_arg:* )
27859 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27862 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27863 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27864 X"$_am_arg" : 'X\(//\)[^/]' \| \
27865 X"$_am_arg" : 'X\(//\)$' \| \
27866 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27867 $as_echo X"$_am_arg" |
27868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27872 /^X\(\/\/\)[^/].*/{
27884 s/.*/./; q'`/stamp-h
$_am_stamp_count
27887 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27888 $as_echo "$as_me: executing $ac_file commands" >&6;}
27893 case $ac_file$ac_mode in
27894 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27895 # Older Autoconf quotes --file arguments for eval, but not when files
27896 # are listed without --file. Let's play safe and only enable the eval
27897 # if we detect the quoting.
27898 case $CONFIG_FILES in
27899 *\'*) eval set x
"$CONFIG_FILES" ;;
27900 *) set x
$CONFIG_FILES ;;
27905 # Strip MF so we end up with the name of the file.
27906 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27907 # Check whether this is an Automake generated Makefile or not.
27908 # We used to match only the files named 'Makefile.in', but
27909 # some people rename them; so instead we look at the file content.
27910 # Grep'ing the first line is not enough: some people post-process
27911 # each Makefile.in and add a new line on top of each file to say so.
27912 # Grep'ing the whole file is not good either: AIX grep has a line
27913 # limit of 2048, but all sed's we know have understand at least 4000.
27914 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27915 dirpart
=`$as_dirname -- "$mf" ||
27916 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27917 X"$mf" : 'X\(//\)[^/]' \| \
27918 X"$mf" : 'X\(//\)$' \| \
27919 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27925 /^X\(\/\/\)[^/].*/{
27941 # Extract the definition of DEPDIR, am__include, and am__quote
27942 # from the Makefile without running 'make'.
27943 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27944 test -z "$DEPDIR" && continue
27945 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27946 test -z "$am__include" && continue
27947 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27948 # Find all dependency output files, they are included files with
27949 # $(DEPDIR) in their names. We invoke sed twice because it is the
27950 # simplest approach to changing $(DEPDIR) to its actual value in the
27952 for file in `sed -n "
27953 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27954 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27955 # Make sure the directory exists.
27956 test -f "$dirpart/$file" && continue
27957 fdir
=`$as_dirname -- "$file" ||
27958 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27959 X"$file" : 'X\(//\)[^/]' \| \
27960 X"$file" : 'X\(//\)$' \| \
27961 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27962 $as_echo X"$file" |
27963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27967 /^X\(\/\/\)[^/].*/{
27980 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27981 # echo "creating $dirpart/$file"
27982 echo '# dummy' > "$dirpart/$file"
27994 ac_clean_files
=$ac_clean_files_save
27996 test $ac_write_fail = 0 ||
27997 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28000 # configure is writing to config.log, and then calls config.status.
28001 # config.status does its own redirection, appending to config.log.
28002 # Unfortunately, on DOS this fails, as config.log is still kept open
28003 # by configure, so config.status won't be able to write to it; its
28004 # output is simply discarded. So we exec the FD to /dev/null,
28005 # effectively closing config.log, so it can be properly (re)opened and
28006 # appended to by config.status. When coming back to configure, we
28007 # need to make the FD available again.
28008 if test "$no_create" != yes; then
28010 ac_config_status_args
=
28011 test "$silent" = yes &&
28012 ac_config_status_args
="$ac_config_status_args --quiet"
28014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28017 # would make configure fail if this is the last instruction.
28018 $ac_cs_success || as_fn_exit
1
28020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28022 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}