TOR: fix compilation
[tomato.git] / release / src / router / tor / configure
blob7822aed32f483b12d342c4221083364d8948483c
1 #! /bin/sh
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 :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
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 :
162 emulate sh
163 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
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; }
183 exitcode=0
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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 :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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 :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
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
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
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
257 exit 255
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."
266 else
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."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
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 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
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
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
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 :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
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
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
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. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
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).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
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
522 as_ln_s='ln -s'
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 ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
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"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
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
558 exec 6>&1
560 # Name of the host.
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`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME='tor'
579 PACKAGE_TARNAME='tor'
580 PACKAGE_VERSION='0.2.9.10'
581 PACKAGE_STRING='tor 0.2.9.10'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
585 ac_unique_file="src/or/main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 LOCALSTATEDIR
627 BINDIR
628 CONFDIR
629 BUILDDIR
630 LOGFACILITY
631 CURVE25519_LIBS
632 BUILD_CURVE25519_DONNA_C64_FALSE
633 BUILD_CURVE25519_DONNA_C64_TRUE
634 BUILD_CURVE25519_DONNA_FALSE
635 BUILD_CURVE25519_DONNA_TRUE
636 F_OMIT_FRAME_POINTER
637 CFLAGS_CONSTTIME
638 CFLAGS_BUGTRAP
639 ADD_MULODI4_FALSE
640 ADD_MULODI4_TRUE
641 TOR_ZLIB_LIBS
642 TOR_LDFLAGS_zlib
643 TOR_CPPFLAGS_zlib
644 TOR_OPENSSL_LIBS
645 TOR_LDFLAGS_openssl
646 TOR_CPPFLAGS_openssl
647 TOR_LIB_MATH
648 TOR_LIBEVENT_LIBS
649 TOR_LDFLAGS_libevent
650 TOR_CPPFLAGS_libevent
651 TOR_LIB_IPHLPAPI
652 TOR_LIB_GDI
653 TOR_LIB_WS32
654 BUILD_READPASSPHRASE_C_FALSE
655 BUILD_READPASSPHRASE_C_TRUE
656 THREADS_PTHREADS_FALSE
657 THREADS_PTHREADS_TRUE
658 THREADS_WIN32_FALSE
659 THREADS_WIN32_TRUE
660 BUILD_NT_SERVICES_FALSE
661 BUILD_NT_SERVICES_TRUE
662 TORGROUP
663 TORUSER
664 USEPYTHON_FALSE
665 USEPYTHON_TRUE
666 PYTHON
667 MINIUPNPC_FALSE
668 MINIUPNPC_TRUE
669 NAT_PMP_FALSE
670 NAT_PMP_TRUE
671 USE_FW_HELPER_FALSE
672 USE_FW_HELPER_TRUE
673 USE_ASCIIDOC_FALSE
674 USE_ASCIIDOC_TRUE
676 ASCIIDOC
678 PERL
679 RANLIB
681 TOR_SYSTEMD_LIBS
682 TOR_SYSTEMD_CFLAGS
683 LIBSYSTEMD209_LIBS
684 LIBSYSTEMD209_CFLAGS
685 SYSTEMD_LIBS
686 SYSTEMD_CFLAGS
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
695 PKG_CONFIG_LIBDIR
696 PKG_CONFIG_PATH
697 PKG_CONFIG
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 EGREP
707 GREP
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_dependency_tracking
796 enable_openbsd_malloc
797 enable_static_openssl
798 enable_static_libevent
799 enable_static_zlib
800 enable_static_tor
801 enable_unittests
802 enable_coverage
803 enable_asserts_in_tests
804 enable_system_torrc
805 enable_asciidoc
806 enable_systemd
807 enable_gcc_warnings
808 enable_fatal_warnings
809 enable_gcc_warnings_advisory
810 enable_gcc_hardening
811 enable_expensive_hardening
812 enable_linker_hardening
813 enable_local_appdata
814 enable_tor2web_mode
815 enable_tool_name_check
816 enable_seccomp
817 enable_libscrypt
818 with_tor_user
819 with_tor_group
820 with_libevent_dir
821 with_ssl_dir
822 with_openssl_dir
823 with_zlib_dir
824 enable_largefile
825 with_dmalloc
826 with_tcmalloc
827 with_syslog_facility
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
838 PKG_CONFIG
839 PKG_CONFIG_PATH
840 PKG_CONFIG_LIBDIR
841 SYSTEMD_CFLAGS
842 SYSTEMD_LIBS
843 LIBSYSTEMD209_CFLAGS
844 LIBSYSTEMD209_LIBS
845 PYTHON'
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
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'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
896 ac_prev=
897 ac_dashdash=
898 for ac_option
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
907 case $ac_option in
908 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *=) ac_optarg= ;;
910 *) ac_optarg=yes ;;
911 esac
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
917 ac_dashdash=yes ;;
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
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 ;;
936 --config-cache | -C)
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
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
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
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
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
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.
1004 with_gas=yes ;;
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)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
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)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
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)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
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)
1087 ac_prev=prefix ;;
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)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
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)
1176 verbose=yes ;;
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1181 -with-* | --with-*)
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
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
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
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
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"
1235 *=*)
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'" ;;
1241 esac
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}"
1253 esac
1254 done
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
1263 no) ;;
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
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.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
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.
1293 build=$build_alias
1294 host=$host_alias
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
1302 cross_compiling=yes
1306 ac_tool_prefix=
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
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"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
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.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
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}
1377 done
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.
1385 cat <<_ACEOF
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.
1395 Configuration:
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
1410 [PREFIX]
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]
1439 _ACEOF
1441 cat <<\_ACEOF
1443 Program names:
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
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
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:";;
1457 esac
1458 cat <<\_ACEOF
1460 Optional Features:
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
1472 --with-openssl-dir
1473 --enable-static-libevent
1474 link against a static libevent library. Requires
1475 --with-libevent-dir
1476 --enable-static-zlib link against a static zlib library. Requires
1477 --with-zlib-dir
1478 --enable-static-tor create an entirely static Tor binary. Requires
1479 --with-openssl-dir and --with-libevent-dir and
1480 --with-zlib-dir
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
1485 branch coverage
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
1496 slower
1497 --disable-linker-hardening
1498 disable linker security fixups
1499 --enable-local-appdata default to host local application data paths on
1500 Windows
1501 --enable-tor2web-mode support tor2web non-anonymous mode
1502 --disable-tool-name-check
1503 check for sanely named toolchain when
1504 cross-compiling
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
1509 Optional Packages:
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>
1532 CPP C preprocessor
1533 PKG_CONFIG path to pkg-config utility
1534 PKG_CONFIG_PATH
1535 directories to add to pkg-config's search path
1536 PKG_CONFIG_LIBDIR
1537 path overriding pkg-config's built-in search path
1538 SYSTEMD_CFLAGS
1539 C compiler flags for SYSTEMD, overriding pkg-config
1540 SYSTEMD_LIBS
1541 linker flags for SYSTEMD, overriding pkg-config
1542 LIBSYSTEMD209_CFLAGS
1543 C compiler flags for LIBSYSTEMD209, overriding pkg-config
1544 LIBSYSTEMD209_LIBS
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.
1552 _ACEOF
1553 ac_status=$?
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"; } ||
1561 continue
1562 ac_builddir=.
1564 case "$ac_dir" in
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/ ;;
1573 esac ;;
1574 esac
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
1580 case $srcdir in
1581 .) # We are building in place.
1582 ac_srcdir=.
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 ;;
1589 *) # Relative name.
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 ;;
1593 esac
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
1599 echo &&
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1604 else
1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 fi || ac_status=$?
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1608 done
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613 cat <<\_ACEOF
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.
1620 _ACEOF
1621 exit
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"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
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
1643 ac_status=$?
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 :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1659 ac_retval=1
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.
1669 ac_fn_c_try_cpp ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
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
1680 ac_status=$?
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
1690 }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1696 ac_retval=1
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_cpp
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
1707 # accordingly.
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
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 else
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. */
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 ac_header_compiler=yes
1731 else
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. */
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_cpp "$LINENO"; then :
1746 ac_header_preproc=yes
1747 else
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 #((
1756 yes:no: )
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;}
1762 no:yes:* )
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;}
1774 esac
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
1779 else
1780 eval "$3=\$ac_header_compiler"
1782 eval ac_res=\$$3
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.
1794 ac_fn_c_try_run ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
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
1805 ac_status=$?
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;;
1811 esac
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
1815 ac_status=$?
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; }; }; then :
1818 ac_retval=0
1819 else
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
1830 } # ac_fn_c_try_run
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
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 eval ac_res=\$$3
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.
1866 ac_fn_c_try_link ()
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"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
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
1878 ac_status=$?
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
1891 }; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=1
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
1919 else
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. */
1931 #ifdef __STDC__
1932 # include <limits.h>
1933 #else
1934 # include <assert.h>
1935 #endif
1937 #undef $2
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. */
1942 #ifdef __cplusplus
1943 extern "C"
1944 #endif
1945 char $2 ();
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
1950 choke me
1951 #endif
1954 main ()
1956 return $2 ();
1958 return 0;
1960 _ACEOF
1961 if ac_fn_c_try_link "$LINENO"; then :
1962 eval "$3=yes"
1963 else
1964 eval "$3=no"
1966 rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1969 eval ac_res=\$$3
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
1979 # accordingly.
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
1989 else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 #ifndef $as_decl_name
1997 #ifdef __cplusplus
1998 (void) $as_decl_use;
1999 #else
2000 (void) $as_decl_name;
2001 #endif
2002 #endif
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 eval "$3=yes"
2010 else
2011 eval "$3=no"
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 eval ac_res=\$$3
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
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static $2 ac_aggr;
2041 if (ac_aggr.$3)
2042 return 0;
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 eval "$4=yes"
2049 else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2054 main ()
2056 static $2 ac_aggr;
2057 if (sizeof ac_aggr.$3)
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$4=yes"
2065 else
2066 eval "$4=no"
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 eval ac_res=\$$4
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
2083 # computed
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. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) >= 0)];
2096 test_array [0] = 0;
2097 return test_array [0];
2100 return 0;
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_lo=0 ac_mid=0
2105 while :; do
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 test_array [0] = 0;
2114 return test_array [0];
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=$ac_mid; break
2122 else
2123 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2124 if test $ac_lo -le $ac_mid; then
2125 ac_lo= ac_hi=
2126 break
2128 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 done
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) < 0)];
2140 test_array [0] = 0;
2141 return test_array [0];
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=-1 ac_mid=-1
2149 while :; do
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2157 test_array [0] = 0;
2158 return test_array [0];
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_lo=$ac_mid; break
2166 else
2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2168 if test $ac_mid -le $ac_hi; then
2169 ac_lo= ac_hi=
2170 break
2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 else
2177 ac_lo= ac_hi=
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. */
2189 main ()
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 test_array [0] = 0;
2193 return test_array [0];
2196 return 0;
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid
2201 else
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 case $ac_lo in #((
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208 '') ac_retval=1 ;;
2209 esac
2210 else
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; }
2216 #include <stdio.h>
2217 #include <stdlib.h>
2219 main ()
2222 FILE *f = fopen ("conftest.val", "w");
2223 if (! f)
2224 return 1;
2225 if (($2) < 0)
2227 long int i = longval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%ld", i);
2232 else
2234 unsigned long int i = ulongval ();
2235 if (i != ($2))
2236 return 1;
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;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249 else
2250 ac_retval=1
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2254 rm -f conftest.val
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
2273 else
2274 eval "$3=no"
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 main ()
2281 if (sizeof ($2))
2282 return 0;
2284 return 0;
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2292 main ()
2294 if (sizeof (($2)))
2295 return 0;
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2302 else
2303 eval "$3=yes"
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 eval ac_res=\$$3
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
2322 $ $0 $@
2324 _ACEOF
2325 exec 5>>config.log
2327 cat <<_ASUNAME
2328 ## --------- ##
2329 ## Platform. ##
2330 ## --------- ##
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`
2349 _ASUNAME
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 $as_echo "PATH: $as_dir"
2357 done
2358 IFS=$as_save_IFS
2360 } >&5
2362 cat >&5 <<_ACEOF
2365 ## ----------- ##
2366 ## Core tests. ##
2367 ## ----------- ##
2369 _ACEOF
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.
2377 ac_configure_args=
2378 ac_configure_args0=
2379 ac_configure_args1=
2380 ac_must_keep_next=false
2381 for ac_pass in 1 2
2383 for ac_arg
2385 case $ac_arg in
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)
2389 continue ;;
2390 *\'*)
2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 esac
2393 case $ac_pass in
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.
2399 else
2400 case $ac_arg in
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 ;;
2407 esac
2409 -* ) ac_must_keep_next=true ;;
2410 esac
2412 as_fn_append ac_configure_args " '$ac_arg'"
2414 esac
2415 done
2416 done
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.
2428 echo
2430 $as_echo "## ---------------- ##
2431 ## Cache variables. ##
2432 ## ---------------- ##"
2433 echo
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
2438 case $ac_val in #(
2439 *${as_nl}*)
2440 case $ac_var in #(
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;} ;;
2443 esac
2444 case $ac_var in #(
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2448 esac ;;
2449 esac
2450 done
2451 (set) 2>&1 |
2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
2454 sed -n \
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 ;; #(
2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2461 esac |
2462 sort
2464 echo
2466 $as_echo "## ----------------- ##
2467 ## Output variables. ##
2468 ## ----------------- ##"
2469 echo
2470 for ac_var in $ac_subst_vars
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2480 if test -n "$ac_subst_files"; then
2481 $as_echo "## ------------------- ##
2482 ## File substitutions. ##
2483 ## ------------------- ##"
2484 echo
2485 for ac_var in $ac_subst_files
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2496 if test -s confdefs.h; then
2497 $as_echo "## ----------- ##
2498 ## confdefs.h. ##
2499 ## ----------- ##"
2500 echo
2501 cat confdefs.h
2502 echo
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2507 } >&5
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 exit $exit_status
2512 for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514 done
2515 ac_signal=0
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"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 _ACEOF
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_URL "$PACKAGE_URL"
2546 _ACEOF
2549 # Let the site file select an alternate cache file if it wants to.
2550 # Prefer an explicitly selected file to automatically selected ones.
2551 ac_site_file1=NONE
2552 ac_site_file2=NONE
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;;
2559 esac
2560 elif test "x$prefix" != xNONE; then
2561 ac_site_file1=$prefix/share/config.site
2562 ac_site_file2=$prefix/etc/config.site
2563 else
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
2574 . "$ac_site_file" \
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; }
2580 done
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;}
2588 case $cache_file in
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
2591 esac
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595 $as_echo "$as_me: creating cache $cache_file" >&6;}
2596 >$cache_file
2599 # Check that the precious variables saved in the cache have kept the same
2600 # value.
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
2608 set,)
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=: ;;
2612 ,set)
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=: ;;
2616 ,);;
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=:
2626 else
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;}
2635 fi;;
2636 esac
2637 # Pass precious variables to config.status.
2638 if test "$ac_new_set" = set; then
2639 case $ac_new_val in
2640 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2641 *) ac_arg=$ac_var=$ac_new_val ;;
2642 esac
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'" ;;
2646 esac
2648 done
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 ## -------------------- ##
2660 ac_ext=c
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'
2675 ac_aux_dir=
2676 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2677 if test -f "$ac_dir/install-sh"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/install-sh -c"
2680 break
2681 elif test -f "$ac_dir/install.sh"; then
2682 ac_aux_dir=$ac_dir
2683 ac_install_sh="$ac_aux_dir/install.sh -c"
2684 break
2685 elif test -f "$ac_dir/shtool"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 break
2690 done
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
2710 # AIX /bin/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
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2727 IFS=$as_save_IFS
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[\\/]* | \
2734 /usr/ucb/* ) ;;
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
2738 # by default.
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.
2750 else
2751 rm -rf conftest.one conftest.two conftest.dir
2752 echo one > conftest.one
2753 echo two > conftest.two
2754 mkdir conftest.dir
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
2759 then
2760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2761 break 3
2765 done
2766 done
2768 esac
2770 done
2771 IFS=$as_save_IFS
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
2778 else
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.
2801 am_lf='
2803 case `pwd` in
2804 *[\\\"\#\$\&\'\`$am_lf]*)
2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2806 esac
2807 case $srcdir in
2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2809 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2810 esac
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
2816 # directory).
2817 if (
2818 am_has_slept=no
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
2823 # -L didn't work.
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
2837 break
2839 # Just in case.
2840 sleep 1
2841 am_has_slept=yes
2842 done
2843 test "$2" = conftest.file
2845 then
2846 # Ok.
2848 else
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.
2856 am_sleep_pid=
2857 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2858 ( sleep 1 ) &
2859 am_sleep_pid=$!
2862 rm -f conftest.file
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
2878 case $am_aux_dir in
2879 *\ * | *\ *)
2880 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2882 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2883 esac
2885 # Use eval to expand $SHELL
2886 if eval "$MISSING --is-lightweight"; then
2887 am_missing_run="$MISSING "
2888 else
2889 am_missing_run=
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
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2899 install_sh="\${SHELL} $am_aux_dir/install-sh"
2900 esac
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
2915 else
2916 if test -n "$STRIP"; then
2917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
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
2928 break 2
2930 done
2931 done
2932 IFS=$as_save_IFS
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; }
2940 else
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
2948 ac_ct_STRIP=$STRIP
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
2955 else
2956 if test -n "$ac_ct_STRIP"; then
2957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
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
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
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; }
2980 else
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
2986 STRIP=":"
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
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 ;;
2993 esac
2994 STRIP=$ac_ct_STRIP
2996 else
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
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3012 IFS=$as_save_IFS
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
3022 break 3;;
3023 esac
3024 done
3025 done
3026 done
3027 IFS=$as_save_IFS
3031 test -d ./--version && rmdir ./--version
3032 if test "${ac_cv_path_mkdir+set}" = set; then
3033 MKDIR_P="$ac_cv_path_mkdir -p"
3034 else
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
3053 else
3054 if test -n "$AWK"; then
3055 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
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
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 AWK=$ac_cv_prog_AWK
3075 if test -n "$AWK"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077 $as_echo "$AWK" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$AWK" && break
3085 done
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; }
3089 set x ${MAKE-make}
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
3093 else
3094 cat >conftest.make <<\_ACEOF
3095 SHELL = /bin/sh
3096 all:
3097 @echo '@@@%%%=$(MAKE)=@@@%%%'
3098 _ACEOF
3099 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3101 *@@@%%%=?*=@@@%%%*)
3102 eval ac_cv_prog_make_${ac_make}_set=yes;;
3104 eval ac_cv_prog_make_${ac_make}_set=no;;
3105 esac
3106 rm -f conftest.make
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; }
3111 SET_MAKE=
3112 else
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
3121 am__leading_dot=.
3122 else
3123 am__leading_dot=_
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;;
3136 esac
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
3142 else
3143 if $as_echo 'TRUE=$(BAR$(V))
3144 BAR0=false
3145 BAR1=true
3147 am__doit:
3148 @$(TRUE)
3149 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3150 am_cv_make_support_nested_variables=yes
3151 else
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
3158 AM_V='$(V)'
3159 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3160 else
3161 AM_V=$AM_DEFAULT_VERBOSITY
3162 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3164 AM_BACKSLASH='\'
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'
3180 else
3181 CYGPATH_W=echo
3186 # Define the identity of the package.
3187 PACKAGE='tor'
3188 VERSION='0.2.9.10'
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE "$PACKAGE"
3193 _ACEOF
3196 cat >>confdefs.h <<_ACEOF
3197 #define VERSION "$VERSION"
3198 _ACEOF
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 ...
3226 AMTAR='$${TAR-tar}'
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
3248 cat >&2 <<'END'
3249 Oops!
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
3264 echo >&2
3265 else
3266 cat >&2 <<'END'
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;;
3291 esac
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
3297 else
3298 if $as_echo 'TRUE=$(BAR$(V))
3299 BAR0=false
3300 BAR1=true
3302 am__doit:
3303 @$(TRUE)
3304 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3305 am_cv_make_support_nested_variables=yes
3306 else
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
3313 AM_V='$(V)'
3314 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3315 else
3316 AM_V=$AM_DEFAULT_VERBOSITY
3317 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3319 AM_BACKSLASH='\'
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'
3331 am__doit:
3332 @echo this is the am__doit target
3333 .PHONY: am__doit
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; }
3338 am__include="#"
3339 am__quote=
3340 _am_result=none
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*)
3346 am__include=include
3347 am__quote=
3348 _am_result=GNU
3350 esac
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
3357 am__quote="\""
3358 _am_result=BSD
3360 esac
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"
3375 AMDEPBACKSLASH='\'
3376 am__nodep='_no'
3378 if test "x$enable_dependency_tracking" != xno; then
3379 AMDEP_TRUE=
3380 AMDEP_FALSE='#'
3381 else
3382 AMDEP_TRUE='#'
3383 AMDEP_FALSE=
3387 ac_ext=c
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
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
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
3412 break 2
3414 done
3415 done
3416 IFS=$as_save_IFS
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
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
3432 ac_ct_CC=$CC
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
3439 else
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
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
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
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; }
3464 else
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
3470 CC=""
3471 else
3472 case $cross_compiling:$ac_tool_warned in
3473 yes:)
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 ;;
3477 esac
3478 CC=$ac_ct_CC
3480 else
3481 CC="$ac_cv_prog_CC"
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
3492 else
3493 if test -n "$CC"; then
3494 ac_cv_prog_CC="$CC" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
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
3505 break 2
3507 done
3508 done
3509 IFS=$as_save_IFS
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 $as_echo "$CC" >&6; }
3517 else
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
3532 else
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 ac_prog_rejected=no
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3540 IFS=$as_save_IFS
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
3546 continue
3548 ac_cv_prog_CC="cc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
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
3559 shift
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.
3564 shift
3565 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
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
3591 else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
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
3604 break 2
3606 done
3607 done
3608 IFS=$as_save_IFS
3612 CC=$ac_cv_prog_CC
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3622 test -n "$CC" && break
3623 done
3625 if test -z "$CC"; then
3626 ac_ct_CC=$CC
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
3635 else
3636 if test -n "$ac_ct_CC"; then
3637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
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
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
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; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3666 test -n "$ac_ct_CC" && break
3667 done
3669 if test "x$ac_ct_CC" = x; then
3670 CC=""
3671 else
3672 case $cross_compiling:$ac_tool_warned in
3673 yes:)
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 ;;
3677 esac
3678 CC=$ac_ct_CC
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
3692 set X $ac_compile
3693 ac_compiler=$2
3694 for ac_option in --version -v -V -qversion; do
3695 { { ac_try="$ac_compiler $ac_option >&5"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
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
3703 ac_status=$?
3704 if test -s conftest.err; then
3705 sed '10a\
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; }
3713 done
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3719 main ()
3723 return 0;
3725 _ACEOF
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
3730 # of exeext.
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.*"
3738 ac_rmfiles=
3739 for ac_file in $ac_files
3741 case $ac_file in
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3744 esac
3745 done
3746 rm -f $ac_rmfiles
3748 if { { ac_try="$ac_link_default"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
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
3756 ac_status=$?
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
3763 # Autoconf.
3764 for ac_file in $ac_files ''
3766 test -f "$ac_file" || continue
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3770 [ab].out )
3771 # We found the default executable, but exeext='' is most
3772 # certainly right.
3773 break;;
3774 *.* )
3775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3776 then :; else
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
3783 # actually working.
3784 break;;
3786 break;;
3787 esac
3788 done
3789 test "$ac_cv_exeext" = no && ac_cv_exeext=
3791 else
3792 ac_file=''
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; }
3804 else
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"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
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
3826 ac_status=$?
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
3832 # `rm'.
3833 for ac_file in conftest.exe conftest conftest.*; do
3834 test -f "$ac_file" || continue
3835 case $ac_file in
3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 break;;
3839 * ) break;;
3840 esac
3841 done
3842 else
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
3854 ac_exeext=$EXEEXT
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <stdio.h>
3859 main ()
3861 FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3865 return 0;
3867 _ACEOF
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"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
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
3882 ac_status=$?
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;;
3889 esac
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
3893 ac_status=$?
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; }; then
3896 cross_compiling=no
3897 else
3898 if test "$cross_compiling" = maybe; then
3899 cross_compiling=yes
3900 else
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
3918 else
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3923 main ()
3927 return 0;
3929 _ACEOF
3930 rm -f conftest.o conftest.obj
3931 if { { ac_try="$ac_compile"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
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
3939 ac_status=$?
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;
3944 case $ac_file in
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3947 break;;
3948 esac
3949 done
3950 else
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
3964 ac_objext=$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
3969 else
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3974 main ()
3976 #ifndef __GNUC__
3977 choke me
3978 #endif
3981 return 0;
3983 _ACEOF
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_compiler_gnu=yes
3986 else
3987 ac_compiler_gnu=no
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
3996 GCC=yes
3997 else
3998 GCC=
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
4006 else
4007 ac_save_c_werror_flag=$ac_c_werror_flag
4008 ac_c_werror_flag=yes
4009 ac_cv_prog_cc_g=no
4010 CFLAGS="-g"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4015 main ()
4019 return 0;
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_g=yes
4024 else
4025 CFLAGS=""
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4030 main ()
4034 return 0;
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4039 else
4040 ac_c_werror_flag=$ac_save_c_werror_flag
4041 CFLAGS="-g"
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4046 main ()
4050 return 0;
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_g=yes
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
4069 CFLAGS="-g -O2"
4070 else
4071 CFLAGS="-g"
4073 else
4074 if test "$GCC" = yes; then
4075 CFLAGS="-O2"
4076 else
4077 CFLAGS=
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
4084 else
4085 ac_cv_prog_cc_c89=no
4086 ac_save_CC=$CC
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 #include <stdarg.h>
4090 #include <stdio.h>
4091 struct stat;
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)
4096 char **p;
4097 int i;
4099 return p[i];
4101 static char *f (char * (*g) (char **, int), char **p, ...)
4103 char *s;
4104 va_list v;
4105 va_start (v,p);
4106 s = g (p, va_arg (v,int));
4107 va_end (v);
4108 return s;
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. */
4122 #define FOO(x) 'x'
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);
4129 int argc;
4130 char **argv;
4132 main ()
4134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4136 return 0;
4138 _ACEOF
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
4148 done
4149 rm -f conftest.$ac_ext
4150 CC=$ac_save_CC
4153 # AC_CACHE_VAL
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; } ;;
4158 xno)
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; } ;;
4165 esac
4166 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170 ac_ext=c
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
4176 ac_ext=c
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
4185 else
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4190 main ()
4194 return 0;
4196 _ACEOF
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
4202 for am_i in 1 2; do
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
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } \
4208 && test -f conftest2.$ac_objext; then
4209 : OK
4210 else
4211 am_cv_prog_cc_c_o=no
4212 break
4214 done
4215 rm -f core conftest*
4216 unset am_i
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"
4228 ac_ext=c
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
4241 else
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
4247 # in D".
4248 rm -rf conftest.dir
4249 mkdir conftest.dir
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
4253 cd 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
4259 # directory.
4260 mkdir sub
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`
4266 am__universal=false
4267 case " $depcc " in #(
4268 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4269 esac
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.
4279 : > sub/conftest.c
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
4285 done
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"
4294 case $depmode in
4295 gcc)
4296 # This depmode causes a compiler race in universal mode.
4297 test "$am__universal" = false || continue
4299 nosideeffect)
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
4303 continue
4304 else
4305 break
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}
4313 am__minus_obj=
4315 none) break ;;
4316 esac
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
4336 break
4339 done
4341 cd ..
4342 rm -rf conftest.dir
4343 else
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
4355 am__fastdepCC_TRUE=
4356 am__fastdepCC_FALSE='#'
4357 else
4358 am__fastdepCC_TRUE='#'
4359 am__fastdepCC_FALSE=
4364 ac_ext=c
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
4373 CPP=
4375 if test -z "$CPP"; then
4376 if ${ac_cv_prog_CPP+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 # Double quotes because CPP needs to be expanded
4380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4382 ac_preproc_ok=false
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. */
4393 #ifdef __STDC__
4394 # include <limits.h>
4395 #else
4396 # include <assert.h>
4397 #endif
4398 Syntax error
4399 _ACEOF
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4402 else
4403 # Broken: fails on valid input.
4404 continue
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>
4413 _ACEOF
4414 if ac_fn_c_try_cpp "$LINENO"; then :
4415 # Broken: success on invalid input.
4416 continue
4417 else
4418 # Passes both tests.
4419 ac_preproc_ok=:
4420 break
4422 rm -f conftest.err conftest.i conftest.$ac_ext
4424 done
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 :
4428 break
4431 done
4432 ac_cv_prog_CPP=$CPP
4435 CPP=$ac_cv_prog_CPP
4436 else
4437 ac_cv_prog_CPP=$CPP
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4440 $as_echo "$CPP" >&6; }
4441 ac_preproc_ok=false
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. */
4452 #ifdef __STDC__
4453 # include <limits.h>
4454 #else
4455 # include <assert.h>
4456 #endif
4457 Syntax error
4458 _ACEOF
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4461 else
4462 # Broken: fails on valid input.
4463 continue
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>
4472 _ACEOF
4473 if ac_fn_c_try_cpp "$LINENO"; then :
4474 # Broken: success on invalid input.
4475 continue
4476 else
4477 # Passes both tests.
4478 ac_preproc_ok=:
4479 break
4481 rm -f conftest.err conftest.i conftest.$ac_ext
4483 done
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 :
4488 else
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; }
4495 ac_ext=c
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
4506 else
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/xpg4/bin
4513 IFS=$as_save_IFS
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
4522 *GNU*)
4523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
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
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 esac
4547 $ac_path_GREP_found && break 3
4548 done
4549 done
4550 done
4551 IFS=$as_save_IFS
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
4555 else
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
4569 else
4570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4571 then ac_cv_path_EGREP="$GREP -E"
4572 else
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/xpg4/bin
4579 IFS=$as_save_IFS
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
4588 *GNU*)
4589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4591 ac_count=0
4592 $as_echo_n 0123456789 >"conftest.in"
4593 while :
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
4609 done
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4613 $ac_path_EGREP_found && break 3
4614 done
4615 done
4616 done
4617 IFS=$as_save_IFS
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
4621 else
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
4636 else
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <stdlib.h>
4640 #include <stdarg.h>
4641 #include <string.h>
4642 #include <float.h>
4645 main ()
4649 return 0;
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_header_stdc=yes
4654 else
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. */
4663 #include <string.h>
4665 _ACEOF
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "memchr" >/dev/null 2>&1; then :
4669 else
4670 ac_cv_header_stdc=no
4672 rm -f conftest*
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. */
4680 #include <stdlib.h>
4682 _ACEOF
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "free" >/dev/null 2>&1; then :
4686 else
4687 ac_cv_header_stdc=no
4689 rm -f conftest*
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 :
4697 else
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <ctype.h>
4701 #include <stdlib.h>
4702 #if ((' ' & 0x0FF) == 0x020)
4703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4705 #else
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))
4711 #endif
4713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4715 main ()
4717 int i;
4718 for (i = 0; i < 256; i++)
4719 if (XOR (islower (i), ISLOWER (i))
4720 || toupper (i) != TOUPPER (i))
4721 return 2;
4722 return 0;
4724 _ACEOF
4725 if ac_fn_c_try_run "$LINENO"; then :
4727 else
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
4747 do :
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
4754 _ACEOF
4758 done
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 :
4764 MINIX=yes
4765 else
4766 MINIX=
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
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4791 # define __EXTENSIONS__ 1
4792 $ac_includes_default
4794 main ()
4798 return 0;
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_safe_to_define___extensions__=yes
4803 else
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
4830 else
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
4843 *-*-*) ;;
4844 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4845 esac
4846 build=$ac_cv_build
4847 ac_save_IFS=$IFS; IFS='-'
4848 set x $ac_cv_build
4849 shift
4850 build_cpu=$1
4851 build_vendor=$2
4852 shift; shift
4853 # Remember, the first character of IFS is used to create $*,
4854 # except with old shells:
4855 build_os=$*
4856 IFS=$ac_save_IFS
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
4864 else
4865 if test "x$host_alias" = x; then
4866 ac_cv_host=$ac_cv_build
4867 else
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; }
4875 case $ac_cv_host in
4876 *-*-*) ;;
4877 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4878 esac
4879 host=$ac_cv_host
4880 ac_save_IFS=$IFS; IFS='-'
4881 set x $ac_cv_host
4882 shift
4883 host_cpu=$1
4884 host_vendor=$2
4885 shift; shift
4886 # Remember, the first character of IFS is used to create $*,
4887 # except with old shells:
4888 host_os=$*
4889 IFS=$ac_save_IFS
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
4909 else
4910 case $PKG_CONFIG in
4911 [\\/]* | ?:[\\/]*)
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
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
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
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4931 esac
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; }
4937 else
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
4952 else
4953 case $ac_pt_PKG_CONFIG in
4954 [\\/]* | ?:[\\/]*)
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
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
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
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4974 esac
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; }
4980 else
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
4986 PKG_CONFIG=""
4987 else
4988 case $cross_compiling:$ac_tool_warned in
4989 yes:)
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 ;;
4993 esac
4994 PKG_CONFIG=$ac_pt_PKG_CONFIG
4996 else
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; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 PKG_CONFIG=""
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='#'
5078 else
5079 UNITTESTS_ENABLED_TRUE='#'
5080 UNITTESTS_ENABLED_FALSE=
5083 if test "x$enable_coverage" = "xyes"; then
5084 COVERAGE_ENABLED_TRUE=
5085 COVERAGE_ENABLED_FALSE='#'
5086 else
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='#'
5094 else
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='#'
5116 else
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 ;;
5128 esac
5129 else
5130 asciidoc=true
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 ;;
5141 esac
5142 else
5143 systemd=auto
5149 # systemd support
5150 if test "x$enable_systemd" = "xno"; then
5151 have_systemd=no;
5152 else
5154 pkg_failed=no
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
5164 ac_status=$?
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
5169 else
5170 pkg_failed=yes
5172 else
5173 pkg_failed=untried
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
5181 ac_status=$?
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
5186 else
5187 pkg_failed=yes
5189 else
5190 pkg_failed=untried
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
5201 else
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`
5206 else
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
5212 have_systemd=no
5213 elif test $pkg_failed = untried; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 have_systemd=no
5217 else
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; }
5222 have_systemd=yes
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;}
5228 pkg_failed=no
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
5238 ac_status=$?
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
5243 else
5244 pkg_failed=yes
5246 else
5247 pkg_failed=untried
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
5255 ac_status=$?
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
5260 else
5261 pkg_failed=yes
5263 else
5264 pkg_failed=untried
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
5275 else
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`
5280 else
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
5286 have_systemd=no
5287 elif test $pkg_failed = untried; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 have_systemd=no
5291 else
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; }
5296 have_systemd=yes
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}"
5308 pkg_failed=no
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
5318 ac_status=$?
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
5323 else
5324 pkg_failed=yes
5326 else
5327 pkg_failed=untried
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
5335 ac_status=$?
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
5340 else
5341 pkg_failed=yes
5343 else
5344 pkg_failed=untried
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
5355 else
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`
5360 else
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
5383 path to pkg-config.
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; }
5391 else
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
5408 case "$host" in
5409 *-*-solaris* )
5411 $as_echo "#define _REENTRANT 1" >>confdefs.h
5414 esac
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
5461 # Tor2web mode flag
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
5498 else
5499 if test -n "$AR"; then
5500 ac_cv_prog_AR="$AR" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5505 IFS=$as_save_IFS
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
5511 break 2
5513 done
5514 done
5515 IFS=$as_save_IFS
5519 AR=$ac_cv_prog_AR
5520 if test -n "$AR"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5522 $as_echo "$AR" >&6; }
5523 else
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
5531 ac_ct_AR=$AR
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
5538 else
5539 if test -n "$ac_ct_AR"; then
5540 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5545 IFS=$as_save_IFS
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
5551 break 2
5553 done
5554 done
5555 IFS=$as_save_IFS
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; }
5563 else
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
5569 AR="ar"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
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 ;;
5576 esac
5577 AR=$ac_ct_AR
5579 else
5580 AR="$ac_cv_prog_AR"
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
5592 ac_ext=c
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
5604 else
5605 if test -n "$CC"; then
5606 ac_cv_prog_CC="$CC" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
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
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 CC=$ac_cv_prog_CC
5626 if test -n "$CC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5628 $as_echo "$CC" >&6; }
5629 else
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
5637 ac_ct_CC=$CC
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
5644 else
5645 if test -n "$ac_ct_CC"; then
5646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
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
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
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; }
5669 else
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
5675 CC=""
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
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 ;;
5682 esac
5683 CC=$ac_ct_CC
5685 else
5686 CC="$ac_cv_prog_CC"
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
5697 else
5698 if test -n "$CC"; then
5699 ac_cv_prog_CC="$CC" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
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
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 CC=$ac_cv_prog_CC
5719 if test -n "$CC"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5721 $as_echo "$CC" >&6; }
5722 else
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
5737 else
5738 if test -n "$CC"; then
5739 ac_cv_prog_CC="$CC" # Let the user override the test.
5740 else
5741 ac_prog_rejected=no
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5745 IFS=$as_save_IFS
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
5751 continue
5753 ac_cv_prog_CC="cc"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5757 done
5758 done
5759 IFS=$as_save_IFS
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
5764 shift
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.
5769 shift
5770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5775 CC=$ac_cv_prog_CC
5776 if test -n "$CC"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5778 $as_echo "$CC" >&6; }
5779 else
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
5796 else
5797 if test -n "$CC"; then
5798 ac_cv_prog_CC="$CC" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5803 IFS=$as_save_IFS
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
5809 break 2
5811 done
5812 done
5813 IFS=$as_save_IFS
5817 CC=$ac_cv_prog_CC
5818 if test -n "$CC"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5820 $as_echo "$CC" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5827 test -n "$CC" && break
5828 done
5830 if test -z "$CC"; then
5831 ac_ct_CC=$CC
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
5840 else
5841 if test -n "$ac_ct_CC"; then
5842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5847 IFS=$as_save_IFS
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
5853 break 2
5855 done
5856 done
5857 IFS=$as_save_IFS
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; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5871 test -n "$ac_ct_CC" && break
5872 done
5874 if test "x$ac_ct_CC" = x; then
5875 CC=""
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878 yes:)
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 ;;
5882 esac
5883 CC=$ac_ct_CC
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
5897 set X $ac_compile
5898 ac_compiler=$2
5899 for ac_option in --version -v -V -qversion; do
5900 { { ac_try="$ac_compiler $ac_option >&5"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
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
5908 ac_status=$?
5909 if test -s conftest.err; then
5910 sed '10a\
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; }
5918 done
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
5924 else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5929 main ()
5931 #ifndef __GNUC__
5932 choke me
5933 #endif
5936 return 0;
5938 _ACEOF
5939 if ac_fn_c_try_compile "$LINENO"; then :
5940 ac_compiler_gnu=yes
5941 else
5942 ac_compiler_gnu=no
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
5951 GCC=yes
5952 else
5953 GCC=
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
5961 else
5962 ac_save_c_werror_flag=$ac_c_werror_flag
5963 ac_c_werror_flag=yes
5964 ac_cv_prog_cc_g=no
5965 CFLAGS="-g"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5970 main ()
5974 return 0;
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978 ac_cv_prog_cc_g=yes
5979 else
5980 CFLAGS=""
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5985 main ()
5989 return 0;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5994 else
5995 ac_c_werror_flag=$ac_save_c_werror_flag
5996 CFLAGS="-g"
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6001 main ()
6005 return 0;
6007 _ACEOF
6008 if ac_fn_c_try_compile "$LINENO"; then :
6009 ac_cv_prog_cc_g=yes
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
6024 CFLAGS="-g -O2"
6025 else
6026 CFLAGS="-g"
6028 else
6029 if test "$GCC" = yes; then
6030 CFLAGS="-O2"
6031 else
6032 CFLAGS=
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
6039 else
6040 ac_cv_prog_cc_c89=no
6041 ac_save_CC=$CC
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #include <stdarg.h>
6045 #include <stdio.h>
6046 struct stat;
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)
6051 char **p;
6052 int i;
6054 return p[i];
6056 static char *f (char * (*g) (char **, int), char **p, ...)
6058 char *s;
6059 va_list v;
6060 va_start (v,p);
6061 s = g (p, va_arg (v,int));
6062 va_end (v);
6063 return s;
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. */
6077 #define FOO(x) 'x'
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);
6084 int argc;
6085 char **argv;
6087 main ()
6089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6091 return 0;
6093 _ACEOF
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
6103 done
6104 rm -f conftest.$ac_ext
6105 CC=$ac_save_CC
6108 # AC_CACHE_VAL
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; } ;;
6113 xno)
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; } ;;
6120 esac
6121 if test "x$ac_cv_prog_cc_c89" != xno; then :
6125 ac_ext=c
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
6131 ac_ext=c
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
6140 else
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6145 main ()
6149 return 0;
6151 _ACEOF
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
6157 for am_i in 1 2; do
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
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } \
6163 && test -f conftest2.$ac_objext; then
6164 : OK
6165 else
6166 am_cv_prog_cc_c_o=no
6167 break
6169 done
6170 rm -f core conftest*
6171 unset am_i
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"
6183 ac_ext=c
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
6196 else
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
6202 # in D".
6203 rm -rf conftest.dir
6204 mkdir conftest.dir
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
6208 cd 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
6214 # directory.
6215 mkdir sub
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`
6221 am__universal=false
6222 case " $depcc " in #(
6223 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6224 esac
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.
6234 : > sub/conftest.c
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
6240 done
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"
6249 case $depmode in
6250 gcc)
6251 # This depmode causes a compiler race in universal mode.
6252 test "$am__universal" = false || continue
6254 nosideeffect)
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
6258 continue
6259 else
6260 break
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}
6268 am__minus_obj=
6270 none) break ;;
6271 esac
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
6291 break
6294 done
6296 cd ..
6297 rm -rf conftest.dir
6298 else
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
6310 am__fastdepCC_TRUE=
6311 am__fastdepCC_FALSE='#'
6312 else
6313 am__fastdepCC_TRUE='#'
6314 am__fastdepCC_FALSE=
6318 ac_ext=c
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
6327 CPP=
6329 if test -z "$CPP"; then
6330 if ${ac_cv_prog_CPP+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 # Double quotes because CPP needs to be expanded
6334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6336 ac_preproc_ok=false
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. */
6347 #ifdef __STDC__
6348 # include <limits.h>
6349 #else
6350 # include <assert.h>
6351 #endif
6352 Syntax error
6353 _ACEOF
6354 if ac_fn_c_try_cpp "$LINENO"; then :
6356 else
6357 # Broken: fails on valid input.
6358 continue
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>
6367 _ACEOF
6368 if ac_fn_c_try_cpp "$LINENO"; then :
6369 # Broken: success on invalid input.
6370 continue
6371 else
6372 # Passes both tests.
6373 ac_preproc_ok=:
6374 break
6376 rm -f conftest.err conftest.i conftest.$ac_ext
6378 done
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 :
6382 break
6385 done
6386 ac_cv_prog_CPP=$CPP
6389 CPP=$ac_cv_prog_CPP
6390 else
6391 ac_cv_prog_CPP=$CPP
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6394 $as_echo "$CPP" >&6; }
6395 ac_preproc_ok=false
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. */
6406 #ifdef __STDC__
6407 # include <limits.h>
6408 #else
6409 # include <assert.h>
6410 #endif
6411 Syntax error
6412 _ACEOF
6413 if ac_fn_c_try_cpp "$LINENO"; then :
6415 else
6416 # Broken: fails on valid input.
6417 continue
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>
6426 _ACEOF
6427 if ac_fn_c_try_cpp "$LINENO"; then :
6428 # Broken: success on invalid input.
6429 continue
6430 else
6431 # Passes both tests.
6432 ac_preproc_ok=:
6433 break
6435 rm -f conftest.err conftest.i conftest.$ac_ext
6437 done
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 :
6442 else
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; }
6449 ac_ext=c
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; }
6457 set x ${MAKE-make}
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
6461 else
6462 cat >conftest.make <<\_ACEOF
6463 SHELL = /bin/sh
6464 all:
6465 @echo '@@@%%%=$(MAKE)=@@@%%%'
6466 _ACEOF
6467 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6468 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6469 *@@@%%%=?*=@@@%%%*)
6470 eval ac_cv_prog_make_${ac_make}_set=yes;;
6472 eval ac_cv_prog_make_${ac_make}_set=no;;
6473 esac
6474 rm -f conftest.make
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; }
6479 SET_MAKE=
6480 else
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
6493 else
6494 if test -n "$RANLIB"; then
6495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6500 IFS=$as_save_IFS
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
6506 break 2
6508 done
6509 done
6510 IFS=$as_save_IFS
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; }
6518 else
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
6533 else
6534 if test -n "$ac_ct_RANLIB"; then
6535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6540 IFS=$as_save_IFS
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
6546 break 2
6548 done
6549 done
6550 IFS=$as_save_IFS
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; }
6558 else
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
6564 RANLIB=":"
6565 else
6566 case $cross_compiling:$ac_tool_warned in
6567 yes:)
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 ;;
6571 esac
6572 RANLIB=$ac_ct_RANLIB
6574 else
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
6585 else
6586 case $PERL in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6594 IFS=$as_save_IFS
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
6600 break 2
6602 done
6603 done
6604 IFS=$as_save_IFS
6607 esac
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; }
6613 else
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
6626 else
6627 if test -n "$SED"; then
6628 ac_cv_prog_SED="$SED" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6633 IFS=$as_save_IFS
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
6639 break 2
6641 done
6642 done
6643 IFS=$as_save_IFS
6645 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="/bin/false"
6648 SED=$ac_cv_prog_SED
6649 if test -n "$SED"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6651 $as_echo "$SED" >&6; }
6652 else
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
6665 else
6666 case $ASCIIDOC in
6667 [\\/]* | ?:[\\/]*)
6668 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6674 IFS=$as_save_IFS
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
6680 break 2
6682 done
6683 done
6684 IFS=$as_save_IFS
6686 test -z "$ac_cv_path_ASCIIDOC" && ac_cv_path_ASCIIDOC="none"
6688 esac
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; }
6694 else
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
6708 else
6709 case $A2X in
6710 [\\/]* | ?:[\\/]*)
6711 ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6717 IFS=$as_save_IFS
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
6723 break 2
6725 done
6726 done
6727 IFS=$as_save_IFS
6730 esac
6732 A2X=$ac_cv_path_A2X
6733 if test -n "$A2X"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
6735 $as_echo "$A2X" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6742 test -n "$A2X" && break
6743 done
6744 test -n "$A2X" || A2X="none"
6747 if test "x$asciidoc" = "xtrue"; then
6748 USE_ASCIIDOC_TRUE=
6749 USE_ASCIIDOC_FALSE='#'
6750 else
6751 USE_ASCIIDOC_TRUE='#'
6752 USE_ASCIIDOC_FALSE=
6756 if test "x$natpmp" = "xtrue" || test "x$upnp" = "xtrue"; then
6757 USE_FW_HELPER_TRUE=
6758 USE_FW_HELPER_FALSE='#'
6759 else
6760 USE_FW_HELPER_TRUE='#'
6761 USE_FW_HELPER_FALSE=
6764 if test "x$natpmp" = "xtrue"; then
6765 NAT_PMP_TRUE=
6766 NAT_PMP_FALSE='#'
6767 else
6768 NAT_PMP_TRUE='#'
6769 NAT_PMP_FALSE=
6772 if test "x$upnp" = "xtrue"; then
6773 MINIUPNPC_TRUE=
6774 MINIUPNPC_FALSE='#'
6775 else
6776 MINIUPNPC_TRUE='#'
6777 MINIUPNPC_FALSE=
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
6785 else
6786 ac_cv_prog_cc_c99=no
6787 ac_save_CC=$CC
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <stdarg.h>
6791 #include <stdbool.h>
6792 #include <stdlib.h>
6793 #include <wchar.h>
6794 #include <stdio.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__))
6800 static void
6801 test_varargs_macros (void)
6803 int x = 1234;
6804 int y = 5678;
6805 debug ("Flag");
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)
6815 #if !BIG_OK
6816 your preprocessor is broken;
6817 #endif
6818 #if BIG_OK
6819 #else
6820 your preprocessor is broken;
6821 #endif
6822 static long long int bignum = -9223372036854775807LL;
6823 static unsigned long long int ubignum = BIG64;
6825 struct incomplete_array
6827 int datasize;
6828 double data[];
6831 struct named_init {
6832 int number;
6833 const wchar_t *name;
6834 double average;
6837 typedef const char *ccp;
6839 static inline int
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)
6846 continue;
6847 return 0;
6850 // Check varargs and va_copy.
6851 static void
6852 test_varargs (const char *format, ...)
6854 va_list args;
6855 va_start (args, format);
6856 va_list args_copy;
6857 va_copy (args_copy, args);
6859 const char *str;
6860 int number;
6861 float fnumber;
6863 while (*format)
6865 switch (*format++)
6867 case 's': // string
6868 str = va_arg (args_copy, const char *);
6869 break;
6870 case 'd': // int
6871 number = va_arg (args_copy, int);
6872 break;
6873 case 'f': // float
6874 fnumber = va_arg (args_copy, double);
6875 break;
6876 default:
6877 break;
6880 va_end (args_copy);
6881 va_end (args);
6885 main ()
6888 // Check bool.
6889 _Bool success = false;
6891 // Check restrict.
6892 if (test_restrict ("String literal") == 0)
6893 success = true;
6894 char *restrict newvar = "Another string";
6896 // Check varargs.
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));
6903 ia->datasize = 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 = {
6909 .number = 34,
6910 .name = L"Test wide string",
6911 .average = 543.34343,
6914 ni.number = 58;
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);
6924 return 0;
6926 _ACEOF
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
6935 done
6936 rm -f conftest.$ac_ext
6937 CC=$ac_save_CC
6940 # AC_CACHE_VAL
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; } ;;
6945 xno)
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; } ;;
6952 esac
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
6968 else
6969 if test -n "$PYTHON"; then
6970 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
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
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
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; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6999 test -n "$PYTHON" && break
7000 done
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
7007 USEPYTHON_TRUE=
7008 USEPYTHON_FALSE='#'
7009 else
7010 USEPYTHON_TRUE='#'
7011 USEPYTHON_FALSE=
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
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <stdlib.h>
7025 #include <stdio.h>
7026 #include <stddef.h>
7027 struct s { int n; double d[]; };
7029 main ()
7031 int m = getchar ();
7032 struct s *p = malloc (offsetof (struct s, d)
7033 + m * sizeof (double));
7034 p->d[0] = 0.0;
7035 return p->d != (double *) NULL;
7037 return 0;
7039 _ACEOF
7040 if ac_fn_c_try_compile "$LINENO"; then :
7041 ac_cv_c_flexmember=yes
7042 else
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
7053 else
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
7064 else
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7069 main ()
7071 int x; x = 3; int y; y = 4 + x;
7073 return 0;
7075 _ACEOF
7076 if ac_fn_c_try_compile "$LINENO"; then :
7077 tor_cv_c_c99_decl=yes
7078 else
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
7093 else
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 struct s { int a; int b; };
7098 main ()
7100 struct s ss = { .b = 5, .a = 6 };
7102 return 0;
7104 _ACEOF
7105 if ac_fn_c_try_compile "$LINENO"; then :
7106 tor_cv_c_c99_designated_init=yes
7107 else
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
7119 TORUSER=_tor
7121 # Check whether --with-tor-user was given.
7122 if test "${with_tor_user+set}" = set; then :
7123 withval=$with_tor_user;
7124 TORUSER=$withval
7131 TORGROUP=_tor
7133 # Check whether --with-tor-group was given.
7134 if test "${with_tor_group+set}" = set; then :
7135 withval=$with_tor_group;
7136 TORGROUP=$withval
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; }
7150 else
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7154 int main(int c, char **v) {
7155 #ifdef _WIN32
7156 #if _WIN32
7157 return 0;
7158 #else
7159 return 1;
7160 #endif
7161 #else
7162 return 2;
7163 #endif
7165 _ACEOF
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; }
7169 else
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. */
7184 #ifdef _WIN32
7185 int main(int c, char **v) {return 0;}
7186 #else
7187 #error
7188 int main(int c, char **v) {return x(y);}
7189 #endif
7191 _ACEOF
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; }
7195 else
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='#'
7208 else
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. */
7220 main ()
7223 #if (defined(__sgi) && defined(_COMPILER_VERSION))
7224 #error
7225 return x(y);
7226 #endif
7229 return 0;
7231 _ACEOF
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; }
7235 else
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
7249 else
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
7256 #endif
7257 typedef int dummy;
7259 _ACEOF
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.
7264 ac_arch=
7265 ac_prev=
7266 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7267 if test -n "$ac_prev"; then
7268 case $ac_word in
7269 i?86 | x86_64 | ppc | ppc64)
7270 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7271 ac_arch=$ac_word
7272 else
7273 ac_cv_c_bigendian=universal
7274 break
7277 esac
7278 ac_prev=
7279 elif test "x$ac_word" = "x-arch"; then
7280 ac_prev=arch
7282 done
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>
7293 main ()
7295 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7296 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7297 && LITTLE_ENDIAN)
7298 bogus endian macros
7299 #endif
7302 return 0;
7304 _ACEOF
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>
7313 main ()
7315 #if BYTE_ORDER != BIG_ENDIAN
7316 not big endian
7317 #endif
7320 return 0;
7322 _ACEOF
7323 if ac_fn_c_try_compile "$LINENO"; then :
7324 ac_cv_c_bigendian=yes
7325 else
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. */
7336 #include <limits.h>
7339 main ()
7341 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7342 bogus endian macros
7343 #endif
7346 return 0;
7348 _ACEOF
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. */
7353 #include <limits.h>
7356 main ()
7358 #ifndef _BIG_ENDIAN
7359 not big endian
7360 #endif
7363 return 0;
7365 _ACEOF
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 ac_cv_c_bigendian=yes
7368 else
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];
7395 extern int foo;
7398 main ()
7400 return use_ascii (foo) == use_ebcdic (foo);
7402 return 0;
7404 _ACEOF
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
7412 else
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
7419 else
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 $ac_includes_default
7424 main ()
7427 /* Are we little or big endian? From Harbison&Steele. */
7428 union
7430 long int l;
7431 char c[sizeof (long int)];
7432 } u;
7433 u.l = 1;
7434 return u.c[sizeof (long int) - 1] == 1;
7437 return 0;
7439 _ACEOF
7440 if ac_fn_c_try_run "$LINENO"; then :
7441 ac_cv_c_bigendian=no
7442 else
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 #(
7454 yes)
7455 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7456 ;; #(
7458 ;; #(
7459 universal)
7461 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7463 ;; #(
7465 as_fn_error $? "unknown endianness
7466 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7467 esac
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
7474 else
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. */
7482 #ifdef __cplusplus
7483 extern "C"
7484 #endif
7485 char socket ();
7487 main ()
7489 return socket ();
7491 return 0;
7493 _ACEOF
7494 for ac_lib in '' socket network; do
7495 if test -z "$ac_lib"; then
7496 ac_res="none required"
7497 else
7498 ac_res=-l$ac_lib
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 \
7505 conftest$ac_exeext
7506 if ${ac_cv_search_socket+:} false; then :
7507 break
7509 done
7510 if ${ac_cv_search_socket+:} false; then :
7512 else
7513 ac_cv_search_socket=no
7515 rm conftest.$ac_ext
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
7530 else
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. */
7538 #ifdef __cplusplus
7539 extern "C"
7540 #endif
7541 char gethostbyname ();
7543 main ()
7545 return gethostbyname ();
7547 return 0;
7549 _ACEOF
7550 for ac_lib in '' nsl; do
7551 if test -z "$ac_lib"; then
7552 ac_res="none required"
7553 else
7554 ac_res=-l$ac_lib
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 \
7561 conftest$ac_exeext
7562 if ${ac_cv_search_gethostbyname+:} false; then :
7563 break
7565 done
7566 if ${ac_cv_search_gethostbyname+:} false; then :
7568 else
7569 ac_cv_search_gethostbyname=no
7571 rm conftest.$ac_ext
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
7586 else
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. */
7594 #ifdef __cplusplus
7595 extern "C"
7596 #endif
7597 char dlopen ();
7599 main ()
7601 return dlopen ();
7603 return 0;
7605 _ACEOF
7606 for ac_lib in '' dl; do
7607 if test -z "$ac_lib"; then
7608 ac_res="none required"
7609 else
7610 ac_res=-l$ac_lib
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 \
7617 conftest$ac_exeext
7618 if ${ac_cv_search_dlopen+:} false; then :
7619 break
7621 done
7622 if ${ac_cv_search_dlopen+:} false; then :
7624 else
7625 ac_cv_search_dlopen=no
7627 rm conftest.$ac_ext
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
7642 else
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. */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 char inet_aton ();
7655 main ()
7657 return inet_aton ();
7659 return 0;
7661 _ACEOF
7662 for ac_lib in '' resolv; do
7663 if test -z "$ac_lib"; then
7664 ac_res="none required"
7665 else
7666 ac_res=-l$ac_lib
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 \
7673 conftest$ac_exeext
7674 if ${ac_cv_search_inet_aton+:} false; then :
7675 break
7677 done
7678 if ${ac_cv_search_inet_aton+:} false; then :
7680 else
7681 ac_cv_search_inet_aton=no
7683 rm conftest.$ac_ext
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
7698 else
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. */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 char backtrace ();
7711 main ()
7713 return backtrace ();
7715 return 0;
7717 _ACEOF
7718 for ac_lib in '' execinfo; do
7719 if test -z "$ac_lib"; then
7720 ac_res="none required"
7721 else
7722 ac_res=-l$ac_lib
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 \
7729 conftest$ac_exeext
7730 if ${ac_cv_search_backtrace+:} false; then :
7731 break
7733 done
7734 if ${ac_cv_search_backtrace+:} false; then :
7736 else
7737 ac_cv_search_backtrace=no
7739 rm conftest.$ac_ext
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"
7750 saved_LIBS="$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
7755 else
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. */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 char clock_gettime ();
7768 main ()
7770 return clock_gettime ();
7772 return 0;
7774 _ACEOF
7775 for ac_lib in '' rt; do
7776 if test -z "$ac_lib"; then
7777 ac_res="none required"
7778 else
7779 ac_res=-l$ac_lib
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 \
7786 conftest$ac_exeext
7787 if ${ac_cv_search_clock_gettime+:} false; then :
7788 break
7790 done
7791 if ${ac_cv_search_clock_gettime+:} false; then :
7793 else
7794 ac_cv_search_clock_gettime=no
7796 rm conftest.$ac_ext
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().
7809 have_rt=yes
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
7816 else
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. */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 char pthread_create ();
7829 main ()
7831 return pthread_create ();
7833 return 0;
7835 _ACEOF
7836 for ac_lib in '' pthread; do
7837 if test -z "$ac_lib"; then
7838 ac_res="none required"
7839 else
7840 ac_res=-l$ac_lib
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 \
7847 conftest$ac_exeext
7848 if ${ac_cv_search_pthread_create+:} false; then :
7849 break
7851 done
7852 if ${ac_cv_search_pthread_create+:} false; then :
7854 else
7855 ac_cv_search_pthread_create=no
7857 rm conftest.$ac_ext
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
7872 else
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. */
7880 #ifdef __cplusplus
7881 extern "C"
7882 #endif
7883 char pthread_detach ();
7885 main ()
7887 return pthread_detach ();
7889 return 0;
7891 _ACEOF
7892 for ac_lib in '' pthread; do
7893 if test -z "$ac_lib"; then
7894 ac_res="none required"
7895 else
7896 ac_res=-l$ac_lib
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 \
7903 conftest$ac_exeext
7904 if ${ac_cv_search_pthread_detach+:} false; then :
7905 break
7907 done
7908 if ${ac_cv_search_pthread_detach+:} false; then :
7910 else
7911 ac_cv_search_pthread_detach=no
7913 rm conftest.$ac_ext
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
7926 THREADS_WIN32_TRUE=
7927 THREADS_WIN32_FALSE='#'
7928 else
7929 THREADS_WIN32_TRUE='#'
7930 THREADS_WIN32_FALSE=
7933 if test "$bwin32" = "false"; then
7934 THREADS_PTHREADS_TRUE=
7935 THREADS_PTHREADS_FALSE='#'
7936 else
7937 THREADS_PTHREADS_TRUE='#'
7938 THREADS_PTHREADS_FALSE=
7942 for ac_func in _NSGetEnviron \
7943 RtlSecureZeroMemory \
7944 SecureZeroMemory \
7945 accept4 \
7946 backtrace \
7947 backtrace_symbols_fd \
7948 eventfd \
7949 explicit_bzero \
7950 timingsafe_memcmp \
7951 flock \
7952 ftime \
7953 getaddrinfo \
7954 getifaddrs \
7955 getpass \
7956 getrlimit \
7957 gettimeofday \
7958 gmtime_r \
7959 htonll \
7960 inet_aton \
7961 ioctl \
7962 issetugid \
7963 llround \
7964 localtime_r \
7965 lround \
7966 memmem \
7967 memset_s \
7968 pipe \
7969 pipe2 \
7970 prctl \
7971 readpassphrase \
7972 rint \
7973 sigaction \
7974 socketpair \
7975 statvfs \
7976 strlcat \
7977 strlcpy \
7978 strnlen \
7979 strptime \
7980 strtok_r \
7981 strtoull \
7982 sysconf \
7983 sysctl \
7984 truncate \
7985 uname \
7986 usleep \
7987 vasprintf \
7988 _vscprintf
7990 do :
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
7996 _ACEOF
7999 done
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. */
8011 #ifdef __APPLE__
8012 # include <AvailabilityMacros.h>
8013 # ifndef MAC_OS_X_VERSION_10_12
8014 # define MAC_OS_X_VERSION_10_12 101200
8015 # endif
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"
8019 # endif
8020 # endif
8021 #endif
8024 main ()
8028 return 0;
8030 _ACEOF
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; }
8034 else
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 \
8042 getentropy \
8044 do :
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
8050 _ACEOF
8053 done
8057 if test "$bwin32" != "true"; then
8058 for ac_header in pthread.h
8059 do :
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
8064 _ACEOF
8068 done
8070 for ac_func in pthread_create
8071 do :
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
8076 _ACEOF
8079 done
8081 for ac_func in pthread_condattr_setclock
8082 do :
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
8087 _ACEOF
8090 done
8094 if test "$bwin32" = "true"; then
8095 ac_fn_c_check_decl "$LINENO" "SecureZeroMemory" "ac_cv_have_decl_SecureZeroMemory" "
8096 #include <windows.h>
8097 #include <conio.h>
8098 #include <wchar.h>
8101 if test "x$ac_cv_have_decl_SecureZeroMemory" = xyes; then :
8102 ac_have_decl=1
8103 else
8104 ac_have_decl=0
8107 cat >>confdefs.h <<_ACEOF
8108 #define HAVE_DECL_SECUREZEROMEMORY $ac_have_decl
8109 _ACEOF
8110 ac_fn_c_check_decl "$LINENO" "_getwch" "ac_cv_have_decl__getwch" "
8111 #include <windows.h>
8112 #include <conio.h>
8113 #include <wchar.h>
8116 if test "x$ac_cv_have_decl__getwch" = xyes; then :
8117 ac_have_decl=1
8118 else
8119 ac_have_decl=0
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_DECL__GETWCH $ac_have_decl
8124 _ACEOF
8128 if test "x$ac_cv_func_readpassphrase" = "xno" && test "$bwin32" = "false"; then
8129 BUILD_READPASSPHRASE_C_TRUE=
8130 BUILD_READPASSPHRASE_C_FALSE='#'
8131 else
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.
8143 TOR_LIB_GDI=-lgdi32
8144 else
8145 TOR_LIB_WS32=
8146 TOR_LIB_GDI=
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 "
8165 trylibeventdir=""
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
8187 else
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
8198 continue;
8201 # Skip the directory if it isn't there.
8202 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
8203 continue;
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"
8212 else
8213 LDFLAGS="-L$tor_trydir $LDFLAGS"
8215 if test -d "$tor_trydir/include"; then
8216 CPPFLAGS="-I$tor_trydir/include $CPPFLAGS"
8217 else
8218 CPPFLAGS="-I$tor_trydir $CPPFLAGS"
8223 # Can we link against (but not necessarily run, or find the headers for)
8224 # the binary?
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8228 #ifdef _WIN32
8229 #include <winsock2.h>
8230 #endif
8231 struct event_base;
8232 struct event_base *event_base_new(void);
8234 main ()
8237 #ifdef _WIN32
8238 {WSADATA d; WSAStartup(0x101,&d); }
8239 #endif
8240 event_base_new();
8243 return 0;
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"; then :
8247 linkable=yes
8248 else
8249 linkable=no
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. */
8260 #ifdef _WIN32
8261 #include <winsock2.h>
8262 #endif
8263 #include <sys/time.h>
8264 #include <sys/types.h>
8265 #include <event2/event.h>
8267 main ()
8270 #ifdef _WIN32
8271 {WSADATA d; WSAStartup(0x101,&d); }
8272 #endif
8273 event_base_new();
8276 return 0;
8278 _ACEOF
8279 if ac_fn_c_try_compile "$LINENO"; then :
8280 buildable=yes
8281 else
8282 buildable=no
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
8288 break
8291 done
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;}
8298 h=""
8299 if test xpkg = xdevpkg; then
8300 h=" headers for"
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;}
8317 else
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
8329 else
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;}
8333 h=""
8334 if test xdevpkg = xdevpkg; then
8335 h=" headers for"
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;}
8352 else
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"
8379 else
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"
8384 else
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=""
8394 else
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"
8398 else
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"
8404 else
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
8417 else
8419 orig_LDFLAGS="$LDFLAGS"
8420 runs=no
8421 linked_with=nothing
8422 if test -d "$tor_cv_library_libevent_dir/lib"; then
8423 tor_trydir="$tor_cv_library_libevent_dir/lib"
8424 else
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"
8431 else
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; }
8439 else
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8443 #ifdef _WIN32
8444 #include <winsock2.h>
8445 #endif
8446 struct event_base;
8447 struct event_base *event_base_new(void);
8449 main ()
8452 #ifdef _WIN32
8453 {WSADATA d; WSAStartup(0x101,&d); }
8454 #endif
8455 event_base_new();
8458 return 0;
8460 _ACEOF
8461 if ac_fn_c_try_run "$LINENO"; then :
8462 runnable=yes
8463 else
8464 runnable=no
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
8472 break
8474 done
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"
8487 fi # cross-compile
8489 LIBS="$tor_saved_LIBS"
8490 LDFLAGS="$tor_saved_LDFLAGS"
8491 CPPFLAGS="$tor_saved_CPPFLAGS"
8495 save_LIBS="$LIBS"
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 event2/event.h event2/dns.h event2/bufferevent_ssl.h
8504 do :
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
8510 _ACEOF
8514 done
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
8520 else
8521 TOR_LIBEVENT_LIBS="$TOR_LIBDIR_libevent/libevent.a $STATIC_LIBEVENT_FLAGS"
8523 else
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
8529 else
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. */
8537 #ifdef __cplusplus
8538 extern "C"
8539 #endif
8540 char event_new ();
8542 main ()
8544 return event_new ();
8546 return 0;
8548 _ACEOF
8549 for ac_lib in '' event event_core; do
8550 if test -z "$ac_lib"; then
8551 ac_res="none required"
8552 else
8553 ac_res=-l$ac_lib
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 \
8560 conftest$ac_exeext
8561 if ${ac_cv_search_event_new+:} false; then :
8562 break
8564 done
8565 if ${ac_cv_search_event_new+:} false; then :
8567 else
8568 ac_cv_search_event_new=no
8570 rm conftest.$ac_ext
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"
8579 else
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
8587 else
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. */
8595 #ifdef __cplusplus
8596 extern "C"
8597 #endif
8598 char evdns_base_new ();
8600 main ()
8602 return evdns_base_new ();
8604 return 0;
8606 _ACEOF
8607 for ac_lib in '' event event_extra; do
8608 if test -z "$ac_lib"; then
8609 ac_res="none required"
8610 else
8611 ac_res=-l$ac_lib
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 \
8618 conftest$ac_exeext
8619 if ${ac_cv_search_evdns_base_new+:} false; then :
8620 break
8622 done
8623 if ${ac_cv_search_evdns_base_new+:} false; then :
8625 else
8626 ac_cv_search_evdns_base_new=no
8628 rm conftest.$ac_ext
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"
8637 else
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"
8648 else
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 \
8656 do :
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
8662 _ACEOF
8665 done
8668 LIBS="$save_LIBS"
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
8680 #error
8681 int x = y(zz);
8682 #else
8683 int x = 1;
8684 #endif
8686 _ACEOF
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; }
8690 else
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
8697 LIBS="$save_LIBS"
8698 LDFLAGS="$save_LDFLAGS"
8699 CPPFLAGS="$save_CPPFLAGS"
8704 TOR_LIB_MATH=""
8705 save_LIBS="$LIBS"
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
8710 else
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. */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 char pow ();
8723 main ()
8725 return pow ();
8727 return 0;
8729 _ACEOF
8730 for ac_lib in '' m; do
8731 if test -z "$ac_lib"; then
8732 ac_res="none required"
8733 else
8734 ac_res=-l$ac_lib
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 \
8741 conftest$ac_exeext
8742 if ${ac_cv_search_pow+:} false; then :
8743 break
8745 done
8746 if ${ac_cv_search_pow+:} false; then :
8748 else
8749 ac_cv_search_pow=no
8751 rm conftest.$ac_ext
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"
8760 else
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"
8767 LIBS="$save_LIBS"
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"
8789 tryopenssldir=""
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
8811 else
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
8822 continue;
8825 # Skip the directory if it isn't there.
8826 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
8827 continue;
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"
8836 else
8837 LDFLAGS="-L$tor_trydir $LDFLAGS"
8839 if test -d "$tor_trydir/include"; then
8840 CPPFLAGS="-I$tor_trydir/include $CPPFLAGS"
8841 else
8842 CPPFLAGS="-I$tor_trydir $CPPFLAGS"
8847 # Can we link against (but not necessarily run, or find the headers for)
8848 # the binary?
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 void RAND_add(const void *buf, int num, double entropy);
8853 main ()
8855 RAND_add((void*)0,0,0);
8857 return 0;
8859 _ACEOF
8860 if ac_fn_c_try_link "$LINENO"; then :
8861 linkable=yes
8862 else
8863 linkable=no
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>
8875 main ()
8877 RAND_add((void*)0,0,0);
8879 return 0;
8881 _ACEOF
8882 if ac_fn_c_try_compile "$LINENO"; then :
8883 buildable=yes
8884 else
8885 buildable=no
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
8891 break
8894 done
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;}
8901 h=""
8902 if test xpkg = xdevpkg; then
8903 h=" headers for"
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;}
8920 else
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
8932 else
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;}
8936 h=""
8937 if test xdevpkg = xdevpkg; then
8938 h=" headers for"
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;}
8955 else
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"
8982 else
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"
8987 else
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=""
8997 else
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"
9001 else
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"
9007 else
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
9020 else
9022 orig_LDFLAGS="$LDFLAGS"
9023 runs=no
9024 linked_with=nothing
9025 if test -d "$tor_cv_library_openssl_dir/lib"; then
9026 tor_trydir="$tor_cv_library_openssl_dir/lib"
9027 else
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"
9034 else
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; }
9042 else
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 void RAND_add(const void *buf, int num, double entropy);
9047 main ()
9049 RAND_add((void*)0,0,0);
9051 return 0;
9053 _ACEOF
9054 if ac_fn_c_try_run "$LINENO"; then :
9055 runnable=yes
9056 else
9057 runnable=no
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
9065 break
9067 done
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"
9080 fi # cross-compile
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
9092 else
9093 TOR_OPENSSL_LIBS="$TOR_LIBDIR_openssl/libssl.a $TOR_LIBDIR_openssl/libcrypto.a"
9095 else
9096 TOR_OPENSSL_LIBS="-lssl -lcrypto"
9100 save_LIBS="$LIBS"
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
9112 #error "too old"
9113 #endif
9116 main ()
9120 return 0;
9122 _ACEOF
9123 if ac_fn_c_try_compile "$LINENO"; then :
9125 else
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)
9136 #error "no ECC"
9137 #endif
9138 #if !defined(NID_X9_62_prime256v1) || !defined(NID_secp224r1)
9139 #error "curves unavailable"
9140 #endif
9143 main ()
9147 return 0;
9149 _ACEOF
9150 if ac_fn_c_try_compile "$LINENO"; then :
9152 else
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
9164 _ACEOF
9170 for ac_func in \
9171 SSL_SESSION_get_master_key \
9172 SSL_get_server_random \
9173 SSL_get_client_ciphers \
9174 SSL_get_client_random \
9175 SSL_CIPHER_find \
9176 TLS_method
9178 do :
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
9184 _ACEOF
9187 done
9190 for ac_func in EVP_PBE_scrypt
9191 do :
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
9197 _ACEOF
9200 done
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
9210 _ACEOF
9216 LIBS="$save_LIBS"
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"
9227 tryzlibdir=""
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
9249 else
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
9260 continue;
9263 # Skip the directory if it isn't there.
9264 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
9265 continue;
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"
9274 else
9275 LDFLAGS="-L$tor_trydir $LDFLAGS"
9277 if test -d "$tor_trydir/include"; then
9278 CPPFLAGS="-I$tor_trydir/include $CPPFLAGS"
9279 else
9280 CPPFLAGS="-I$tor_trydir $CPPFLAGS"
9285 # Can we link against (but not necessarily run, or find the headers for)
9286 # the binary?
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 const char * zlibVersion(void);
9291 main ()
9293 zlibVersion();
9295 return 0;
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 linkable=yes
9300 else
9301 linkable=no
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. */
9311 #include <zlib.h>
9313 main ()
9315 zlibVersion();
9317 return 0;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"; then :
9321 buildable=yes
9322 else
9323 buildable=no
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
9329 break
9332 done
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;}
9339 h=""
9340 if test xpkg = xdevpkg; then
9341 h=" headers for"
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;}
9358 else
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
9370 else
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;}
9374 h=""
9375 if test xdevpkg = xdevpkg; then
9376 h=" headers for"
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;}
9393 else
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; }
9415 LIBS="$LIBS -lz"
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"
9420 else
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"
9425 else
9426 CPPFLAGS="-I$tor_cv_library_zlib_dir $CPPFLAGS"
9432 if test x$tor_cv_library_zlib_dir = "x(system)"; then
9433 TOR_LDFLAGS_zlib=""
9434 TOR_CPPFLAGS_zlib=""
9435 else
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"
9439 else
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"
9445 else
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
9458 else
9460 orig_LDFLAGS="$LDFLAGS"
9461 runs=no
9462 linked_with=nothing
9463 if test -d "$tor_cv_library_zlib_dir/lib"; then
9464 tor_trydir="$tor_cv_library_zlib_dir/lib"
9465 else
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"
9472 else
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; }
9480 else
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 const char * zlibVersion(void);
9485 main ()
9487 zlibVersion();
9489 return 0;
9491 _ACEOF
9492 if ac_fn_c_try_run "$LINENO"; then :
9493 runnable=yes
9494 else
9495 runnable=no
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
9503 break
9505 done
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"
9518 fi # cross-compile
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
9530 else
9531 TOR_ZLIB_LIBS="$TOR_LIBDIR_zlib/libz.a"
9533 else
9534 TOR_ZLIB_LIBS="-lz"
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
9548 else
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lcap $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. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char cap_init ();
9562 main ()
9564 return cap_init ();
9566 return 0;
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570 ac_cv_lib_cap_cap_init=yes
9571 else
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
9583 _ACEOF
9585 LIBS="-lcap $LIBS"
9587 else
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
9594 do :
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
9599 _ACEOF
9602 done
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"
9609 CFLAGS_FTRAPV=
9610 CFLAGS_FWRAPV=
9611 CFLAGS_ASAN=
9612 CFLAGS_UBSAN=
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9618 main ()
9621 #if !defined(__clang__)
9622 #error
9623 #endif
9625 return 0;
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"; then :
9629 have_clang=yes
9630 else
9631 have_clang=no
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
9645 else
9647 tor_saved_CFLAGS="$CFLAGS"
9648 CFLAGS="$CFLAGS -pedantic -Werror -Qunused-arguments"
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9653 main ()
9655 return 0;
9657 return 0;
9659 _ACEOF
9660 if ac_fn_c_try_compile "$LINENO"; then :
9661 tor_cv_cflags__Qunused_arguments=yes
9662 else
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. */
9672 main ()
9674 return 0;
9676 return 0;
9678 _ACEOF
9679 if ac_fn_c_try_link "$LINENO"; then :
9680 tor_can_link__Qunused_arguments=yes
9681 else
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"
9695 else
9696 true
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
9709 else
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. */
9717 main ()
9719 return 0;
9721 return 0;
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"; then :
9725 tor_cv_cflags__fstack_protector_all=yes
9726 else
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. */
9736 main ()
9738 return 0;
9740 return 0;
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744 tor_can_link__fstack_protector_all=yes
9745 else
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"
9759 else
9760 true
9768 if test "x$tor_cv_cflags__fstack_protector_all" = xyes; then :
9769 if test "x$tor_can_link__fstack_protector_all" = xyes; then :
9771 else
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
9785 else
9787 tor_saved_CFLAGS="$CFLAGS"
9788 CFLAGS="$CFLAGS -pedantic -Werror -Wstack-protector"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9793 main ()
9795 return 0;
9797 return 0;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"; then :
9801 tor_cv_cflags__Wstack_protector=yes
9802 else
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. */
9812 main ()
9814 return 0;
9816 return 0;
9818 _ACEOF
9819 if ac_fn_c_try_link "$LINENO"; then :
9820 tor_can_link__Wstack_protector=yes
9821 else
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"
9835 else
9836 true
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
9848 else
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. */
9856 main ()
9858 return 0;
9860 return 0;
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 tor_cv_cflags___param_ssp_buffer_size_1=yes
9865 else
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. */
9875 main ()
9877 return 0;
9879 return 0;
9881 _ACEOF
9882 if ac_fn_c_try_link "$LINENO"; then :
9883 tor_can_link___param_ssp_buffer_size_1=yes
9884 else
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"
9898 else
9899 true
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
9912 else
9914 tor_saved_CFLAGS="$CFLAGS"
9915 CFLAGS="$CFLAGS -pedantic -Werror -fPIE"
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9920 main ()
9922 return 0;
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_compile "$LINENO"; then :
9928 tor_cv_cflags__fPIE=yes
9929 else
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. */
9939 main ()
9941 return 0;
9943 return 0;
9945 _ACEOF
9946 if ac_fn_c_try_link "$LINENO"; then :
9947 tor_can_link__fPIE=yes
9948 else
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"
9962 else
9963 true
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
9974 else
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. */
9987 main ()
9989 return 0;
9991 return 0;
9993 _ACEOF
9994 if ac_fn_c_try_link "$LINENO"; then :
9995 tor_cv_ldflags__pie=yes
9996 else
9997 tor_cv_ldflags__pie=no
9999 rm -f core conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 else
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 #include <stdio.h>
10006 main ()
10008 fputs("", stdout)
10010 return 0;
10012 _ACEOF
10013 if ac_fn_c_try_run "$LINENO"; then :
10014 tor_cv_ldflags__pie=yes
10015 else
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
10041 else
10043 tor_saved_CFLAGS="$CFLAGS"
10044 CFLAGS="$CFLAGS -pedantic -Werror -fwrapv"
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10049 main ()
10051 return 0;
10053 return 0;
10055 _ACEOF
10056 if ac_fn_c_try_compile "$LINENO"; then :
10057 tor_cv_cflags__fwrapv=yes
10058 else
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. */
10068 main ()
10070 return 0;
10072 return 0;
10074 _ACEOF
10075 if ac_fn_c_try_link "$LINENO"; then :
10076 tor_can_link__fwrapv=yes
10077 else
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"
10091 else
10092 true
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
10105 else
10107 tor_saved_CFLAGS="$CFLAGS"
10108 CFLAGS="$CFLAGS -pedantic -Werror -ftrapv"
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10113 main ()
10115 return 0;
10117 return 0;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"; then :
10121 tor_cv_cflags__ftrapv=yes
10122 else
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. */
10132 main ()
10134 return 0;
10136 return 0;
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140 tor_can_link__ftrapv=yes
10141 else
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"
10155 else
10156 true
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
10175 else
10177 tor_saved_CFLAGS="$CFLAGS"
10178 CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=address"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10183 main ()
10185 return 0;
10187 return 0;
10189 _ACEOF
10190 if ac_fn_c_try_compile "$LINENO"; then :
10191 tor_cv_cflags__fsanitize_address=yes
10192 else
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. */
10202 main ()
10204 return 0;
10206 return 0;
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210 tor_can_link__fsanitize_address=yes
10211 else
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"
10225 else
10226 true
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
10240 else
10242 tor_saved_CFLAGS="$CFLAGS"
10243 CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=undefined"
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10248 main ()
10250 return 0;
10252 return 0;
10254 _ACEOF
10255 if ac_fn_c_try_compile "$LINENO"; then :
10256 tor_cv_cflags__fsanitize_undefined=yes
10257 else
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. */
10267 main ()
10269 return 0;
10271 return 0;
10273 _ACEOF
10274 if ac_fn_c_try_link "$LINENO"; then :
10275 tor_can_link__fsanitize_undefined=yes
10276 else
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"
10290 else
10291 true
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
10306 else
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. */
10314 main ()
10316 return 0;
10318 return 0;
10320 _ACEOF
10321 if ac_fn_c_try_compile "$LINENO"; then :
10322 tor_cv_cflags__fno_omit_frame_pointer=yes
10323 else
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. */
10333 main ()
10335 return 0;
10337 return 0;
10339 _ACEOF
10340 if ac_fn_c_try_link "$LINENO"; then :
10341 tor_can_link__fno_omit_frame_pointer=yes
10342 else
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"
10356 else
10357 true
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]);
10383 return x == 9;
10385 _ACEOF
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; }
10389 else
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) {
10405 *overflow=0;
10406 return a;
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]);
10412 return x == 9;
10414 _ACEOF
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; }
10418 else
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
10429 ADD_MULODI4_TRUE=
10430 ADD_MULODI4_FALSE='#'
10431 else
10432 ADD_MULODI4_TRUE='#'
10433 ADD_MULODI4_FALSE=
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
10447 else
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. */
10460 main ()
10462 return 0;
10464 return 0;
10466 _ACEOF
10467 if ac_fn_c_try_link "$LINENO"; then :
10468 tor_cv_ldflags__z_relro__z_now=yes
10469 else
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
10474 else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477 #include <stdio.h>
10479 main ()
10481 fputs("", stdout)
10483 return 0;
10485 _ACEOF
10486 if ac_fn_c_try_run "$LINENO"; then :
10487 tor_cv_ldflags__z_relro__z_now=yes
10488 else
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
10516 else
10518 tor_saved_CFLAGS="$CFLAGS"
10519 tor_saved_LDFLAGS="$LDFLAGS"
10520 tor_saved_LIBS="$LIBS"
10521 CFLAGS="$CFLAGS -pedantic -Werror"
10522 LDFLAGS="$LDFLAGS -rdynamic"
10523 LIBS="$LIBS "
10524 if test "$cross_compiling" = yes; then :
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10529 main ()
10531 return 0;
10533 return 0;
10535 _ACEOF
10536 if ac_fn_c_try_link "$LINENO"; then :
10537 tor_cv_ldflags__rdynamic=yes
10538 else
10539 tor_cv_ldflags__rdynamic=no
10541 rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #include <stdio.h>
10548 main ()
10550 fputs("", stdout)
10552 return 0;
10554 _ACEOF
10555 if ac_fn_c_try_run "$LINENO"; then :
10556 tor_cv_ldflags__rdynamic=yes
10557 else
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
10586 else
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. */
10594 main ()
10596 return 0;
10598 return 0;
10600 _ACEOF
10601 if ac_fn_c_try_compile "$LINENO"; then :
10602 tor_cv_cflags__fomit_frame_pointer=yes
10603 else
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. */
10613 main ()
10615 return 0;
10617 return 0;
10619 _ACEOF
10620 if ac_fn_c_try_link "$LINENO"; then :
10621 tor_can_link__fomit_frame_pointer=yes
10622 else
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"
10636 else
10637 true
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
10658 else
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. */
10666 main ()
10668 return 0;
10670 return 0;
10672 _ACEOF
10673 if ac_fn_c_try_compile "$LINENO"; then :
10674 tor_cv_cflags__fasynchronous_unwind_tables=yes
10675 else
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. */
10685 main ()
10687 return 0;
10689 return 0;
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 tor_can_link__fasynchronous_unwind_tables=yes
10694 else
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"
10708 else
10709 true
10716 if test "x$enable_seccomp" != "xno"; then
10717 for ac_header in seccomp.h
10718 do :
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
10723 _ACEOF
10727 done
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
10733 else
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. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char seccomp_init ();
10746 main ()
10748 return seccomp_init ();
10750 return 0;
10752 _ACEOF
10753 for ac_lib in '' seccomp; do
10754 if test -z "$ac_lib"; then
10755 ac_res="none required"
10756 else
10757 ac_res=-l$ac_lib
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 \
10764 conftest$ac_exeext
10765 if ${ac_cv_search_seccomp_init+:} false; then :
10766 break
10768 done
10769 if ${ac_cv_search_seccomp_init+:} false; then :
10771 else
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
10790 do :
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
10795 _ACEOF
10799 done
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
10805 else
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. */
10813 #ifdef __cplusplus
10814 extern "C"
10815 #endif
10816 char libscrypt_scrypt ();
10818 main ()
10820 return libscrypt_scrypt ();
10822 return 0;
10824 _ACEOF
10825 for ac_lib in '' scrypt; do
10826 if test -z "$ac_lib"; then
10827 ac_res="none required"
10828 else
10829 ac_res=-l$ac_lib
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 \
10836 conftest$ac_exeext
10837 if ${ac_cv_search_libscrypt_scrypt+:} false; then :
10838 break
10840 done
10841 if ${ac_cv_search_libscrypt_scrypt+:} false; then :
10843 else
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
10858 do :
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
10863 _ACEOF
10866 done
10871 build_curve25519_donna=no
10872 build_curve25519_donna_c64=no
10873 use_curve25519_donna=no
10874 use_curve25519_nacl=no
10875 CURVE25519_LIBS=
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
10881 else
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;
10893 return ok;
10897 main ()
10899 int ok = func( ((uint64_t)2000000000) * 1000000000,
10900 ((uint64_t)1234567890) << 24);
10901 return !ok;
10904 return 0;
10906 _ACEOF
10907 if ac_fn_c_try_link "$LINENO"; then :
10908 tor_cv_can_use_curve25519_donna_c64=cross
10909 else
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
10914 else
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;
10925 return ok;
10929 main ()
10931 int ok = func( ((uint64_t)2000000000) * 1000000000,
10932 ((uint64_t)1234567890) << 24);
10933 return !ok;
10936 return 0;
10938 _ACEOF
10939 if ac_fn_c_try_run "$LINENO"; then :
10940 tor_cv_can_use_curve25519_donna_c64=yes
10941 else
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
10954 do :
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
10960 _ACEOF
10964 done
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
10971 else
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>
10980 #endif
10981 #ifdef crypto_scalarmult_curve25519_ref_BYTES
10982 #error Hey, this is the reference implementation! That's not fast.
10983 #endif
10986 main ()
10989 unsigned char *a, *b, *c; crypto_scalarmult_curve25519(a,b,c);
10992 return 0;
10994 _ACEOF
10995 if ac_fn_c_try_link "$LINENO"; then :
10996 tor_cv_can_use_curve25519_nacl=yes
10997 else
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
11014 else
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='#'
11032 else
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='#'
11040 else
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
11058 else
11059 ac_cv_sys_largefile_CC=no
11060 if test "$GCC" != yes; then
11061 ac_save_CC=$CC
11062 while :; do
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)
11075 ? 1 : -1];
11077 main ()
11081 return 0;
11083 _ACEOF
11084 if ac_fn_c_try_compile "$LINENO"; then :
11085 break
11087 rm -f core conftest.err conftest.$ac_objext
11088 CC="$CC -n32"
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
11093 break
11094 done
11095 CC=$ac_save_CC
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
11109 else
11110 while :; do
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)
11121 ? 1 : -1];
11123 main ()
11127 return 0;
11129 _ACEOF
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)
11145 ? 1 : -1];
11147 main ()
11151 return 0;
11153 _ACEOF
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
11159 break
11160 done
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 #(
11165 no | unknown) ;;
11167 cat >>confdefs.h <<_ACEOF
11168 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11169 _ACEOF
11171 esac
11172 rm -rf conftest*
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
11178 else
11179 while :; do
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)
11190 ? 1 : -1];
11192 main ()
11196 return 0;
11198 _ACEOF
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)
11214 ? 1 : -1];
11216 main ()
11220 return 0;
11222 _ACEOF
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
11228 break
11229 done
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 #(
11234 no | unknown) ;;
11236 cat >>confdefs.h <<_ACEOF
11237 #define _LARGE_FILES $ac_cv_sys_large_files
11238 _ACEOF
11240 esac
11241 rm -rf conftest*
11248 for ac_header in assert.h \
11249 errno.h \
11250 fcntl.h \
11251 signal.h \
11252 string.h \
11253 sys/capability.h \
11254 sys/fcntl.h \
11255 sys/stat.h \
11256 sys/time.h \
11257 sys/types.h \
11258 time.h \
11259 unistd.h \
11260 arpa/inet.h \
11261 crt_externs.h \
11262 execinfo.h \
11263 grp.h \
11264 ifaddrs.h \
11265 inttypes.h \
11266 limits.h \
11267 linux/types.h \
11268 machine/limits.h \
11269 malloc.h \
11270 malloc/malloc.h \
11271 malloc_np.h \
11272 netdb.h \
11273 netinet/in.h \
11274 netinet/in6.h \
11275 pwd.h \
11276 readpassphrase.h \
11277 stdint.h \
11278 sys/eventfd.h \
11279 sys/file.h \
11280 sys/ioctl.h \
11281 sys/limits.h \
11282 sys/mman.h \
11283 sys/param.h \
11284 sys/prctl.h \
11285 sys/random.h \
11286 sys/resource.h \
11287 sys/select.h \
11288 sys/socket.h \
11289 sys/statvfs.h \
11290 sys/syscall.h \
11291 sys/sysctl.h \
11292 sys/syslimits.h \
11293 sys/time.h \
11294 sys/types.h \
11295 sys/un.h \
11296 sys/utime.h \
11297 sys/wait.h \
11298 syslog.h \
11299 utime.h
11300 do :
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
11306 _ACEOF
11310 done
11313 for ac_header in sys/param.h
11314 do :
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
11319 _ACEOF
11323 done
11326 for ac_header in net/if.h
11327 do :
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>
11330 #endif
11331 #ifdef HAVE_SYS_SOCKET_H
11332 #include <sys/socket.h>
11333 #endif
11335 if test "x$ac_cv_header_net_if_h" = xyes; then :
11336 cat >>confdefs.h <<_ACEOF
11337 #define HAVE_NET_IF_H 1
11338 _ACEOF
11339 net_if_found=1
11340 else
11341 net_if_found=0
11344 done
11346 for ac_header in net/pfvar.h
11347 do :
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>
11350 #endif
11351 #ifdef HAVE_SYS_SOCKET_H
11352 #include <sys/socket.h>
11353 #endif
11354 #ifdef HAVE_NET_IF_H
11355 #include <net/if.h>
11356 #endif
11357 #ifdef HAVE_NETINET_IN_H
11358 #include <netinet/in.h>
11359 #endif
11361 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
11362 cat >>confdefs.h <<_ACEOF
11363 #define HAVE_NET_PFVAR_H 1
11364 _ACEOF
11365 net_pfvar_found=1
11366 else
11367 net_pfvar_found=0
11370 done
11373 for ac_header in linux/if.h
11374 do :
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>
11378 #endif
11381 if test "x$ac_cv_header_linux_if_h" = xyes; then :
11382 cat >>confdefs.h <<_ACEOF
11383 #define HAVE_LINUX_IF_H 1
11384 _ACEOF
11388 done
11391 for ac_header in linux/netfilter_ipv4.h
11392 do :
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>
11395 #endif
11396 #ifdef HAVE_SYS_SOCKET_H
11397 #include <sys/socket.h>
11398 #endif
11399 #ifdef HAVE_LIMITS_H
11400 #include <limits.h>
11401 #endif
11402 #ifdef HAVE_LINUX_TYPES_H
11403 #include <linux/types.h>
11404 #endif
11405 #ifdef HAVE_NETINET_IN6_H
11406 #include <netinet/in6.h>
11407 #endif
11408 #ifdef HAVE_NETINET_IN_H
11409 #include <netinet/in.h>
11410 #endif
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
11415 _ACEOF
11416 linux_netfilter_ipv4=1
11417 else
11418 linux_netfilter_ipv4=0
11421 done
11424 for ac_header in linux/netfilter_ipv6/ip6_tables.h
11425 do :
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>
11428 #endif
11429 #ifdef HAVE_SYS_SOCKET_H
11430 #include <sys/socket.h>
11431 #endif
11432 #ifdef HAVE_LIMITS_H
11433 #include <limits.h>
11434 #endif
11435 #ifdef HAVE_LINUX_TYPES_H
11436 #include <linux/types.h>
11437 #endif
11438 #ifdef HAVE_NETINET_IN6_H
11439 #include <netinet/in6.h>
11440 #endif
11441 #ifdef HAVE_NETINET_IN_H
11442 #include <netinet/in.h>
11443 #endif
11444 #ifdef HAVE_LINUX_IF_H
11445 #include <linux/if.h>
11446 #endif
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
11451 _ACEOF
11452 linux_netfilter_ipv6_ip6_tables=1
11453 else
11454 linux_netfilter_ipv6_ip6_tables=0
11457 done
11460 transparent_ok=0
11461 if test "x$net_if_found" = "x1" && test "x$net_pfvar_found" = "x1"; then
11462 transparent_ok=1
11464 if test "x$linux_netfilter_ipv4" = "x1"; then
11465 transparent_ok=1
11467 if test "x$linux_netfilter_ipv6_ip6_tables" = "x1"; then
11468 transparent_ok=1
11470 if test "x$transparent_ok" = "x1"; then
11472 $as_echo "#define USE_TRANSPARENT 1" >>confdefs.h
11474 case "$host" in
11475 *-*-openbsd* | *-*-bitrig*)
11477 $as_echo "#define OPENBSD 1" >>confdefs.h
11479 esac
11480 else
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>
11487 #endif
11488 #ifdef HAVE_SYS_TIME_H
11489 #include <sys/time.h>
11490 #endif
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
11496 _ACEOF
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
11511 else
11512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int8_t))" "ac_cv_sizeof_int8_t" "$ac_includes_default"; then :
11514 else
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; }
11520 else
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
11533 _ACEOF
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
11544 else
11545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
11547 else
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; }
11553 else
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
11566 _ACEOF
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
11577 else
11578 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
11580 else
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; }
11586 else
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
11599 _ACEOF
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
11610 else
11611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
11613 else
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; }
11619 else
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
11632 _ACEOF
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
11643 else
11644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint8_t))" "ac_cv_sizeof_uint8_t" "$ac_includes_default"; then :
11646 else
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; }
11652 else
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
11665 _ACEOF
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
11676 else
11677 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
11679 else
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; }
11685 else
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
11698 _ACEOF
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
11709 else
11710 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
11712 else
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; }
11718 else
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
11731 _ACEOF
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
11742 else
11743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"; then :
11745 else
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; }
11751 else
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
11764 _ACEOF
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
11775 else
11776 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default"; then :
11778 else
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; }
11784 else
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
11797 _ACEOF
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
11808 else
11809 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
11811 else
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; }
11817 else
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
11830 _ACEOF
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
11843 else
11844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11846 else
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; }
11852 else
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
11865 _ACEOF
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
11876 else
11877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11879 else
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; }
11885 else
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
11898 _ACEOF
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
11909 else
11910 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11912 else
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; }
11918 else
11919 ac_cv_sizeof_int=0
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
11931 _ACEOF
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
11942 else
11943 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11945 else
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; }
11951 else
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
11964 _ACEOF
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
11975 else
11976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11978 else
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; }
11984 else
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
11997 _ACEOF
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
12008 else
12009 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
12011 else
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; }
12017 else
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
12030 _ACEOF
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
12041 else
12042 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12044 else
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; }
12050 else
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
12063 _ACEOF
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
12074 else
12075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12077 else
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; }
12083 else
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
12096 _ACEOF
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
12107 else
12108 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
12110 else
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; }
12116 else
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
12129 _ACEOF
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
12140 else
12141 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
12143 else
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; }
12149 else
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
12162 _ACEOF
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
12171 _ACEOF
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
12180 _ACEOF
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
12189 _ACEOF
12195 for ac_header in ucontext.h
12196 do :
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
12201 _ACEOF
12205 done
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
12214 else
12215 for ac_header in sys/ucontext.h
12216 do :
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
12221 _ACEOF
12225 done
12226 # ucontext on OS X 10.6 (at least)
12228 for ac_header in cygwin/signal.h
12229 do :
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
12234 _ACEOF
12238 done
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>
12269 main ()
12271 ucontext_t u; return u.$pc_field == 0;
12273 return 0;
12275 _ACEOF
12276 if ac_fn_c_try_compile "$LINENO"; then :
12278 cat >>confdefs.h <<_ACEOF
12279 #define PC_FROM_UCONTEXT $pc_field
12280 _ACEOF
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>
12292 main ()
12294 ucontext_t u; return u.$pc_field == 0;
12296 return 0;
12298 _ACEOF
12299 if ac_fn_c_try_compile "$LINENO"; then :
12301 cat >>confdefs.h <<_ACEOF
12302 #define PC_FROM_UCONTEXT $pc_field
12303 _ACEOF
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>
12315 main ()
12317 ucontext_t u; return u.$pc_field == 0;
12319 return 0;
12321 _ACEOF
12322 if ac_fn_c_try_compile "$LINENO"; then :
12324 cat >>confdefs.h <<_ACEOF
12325 #define PC_FROM_UCONTEXT $pc_field
12326 _ACEOF
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. */
12338 main ()
12340 ucontext_t u; return u.$pc_field == 0;
12342 return 0;
12344 _ACEOF
12345 if ac_fn_c_try_compile "$LINENO"; then :
12347 cat >>confdefs.h <<_ACEOF
12348 #define PC_FROM_UCONTEXT $pc_field
12349 _ACEOF
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
12358 done
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>
12368 main ()
12370 ucontext_t u; return u.$pc_field == 0;
12372 return 0;
12374 _ACEOF
12375 if ac_fn_c_try_compile "$LINENO"; then :
12377 cat >>confdefs.h <<_ACEOF
12378 #define PC_FROM_UCONTEXT $pc_field
12379 _ACEOF
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
12387 done
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>
12395 #endif
12396 #ifdef HAVE_NETINET_IN_H
12397 #include <netinet/in.h>
12398 #endif
12399 #ifdef HAVE_NETINET_IN6_H
12400 #include <netinet/in6.h>
12401 #endif
12402 #ifdef HAVE_SYS_SOCKET_H
12403 #include <sys/socket.h>
12404 #endif
12405 #ifdef _WIN32
12406 #define _WIN32_WINNT 0x0501
12407 #define WIN32_LEAN_AND_MEAN
12408 #include <winsock2.h>
12409 #include <ws2tcpip.h>
12410 #endif
12413 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
12415 cat >>confdefs.h <<_ACEOF
12416 #define HAVE_STRUCT_IN6_ADDR 1
12417 _ACEOF
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>
12423 #endif
12424 #ifdef HAVE_NETINET_IN_H
12425 #include <netinet/in.h>
12426 #endif
12427 #ifdef HAVE_NETINET_IN6_H
12428 #include <netinet/in6.h>
12429 #endif
12430 #ifdef HAVE_SYS_SOCKET_H
12431 #include <sys/socket.h>
12432 #endif
12433 #ifdef _WIN32
12434 #define _WIN32_WINNT 0x0501
12435 #define WIN32_LEAN_AND_MEAN
12436 #include <winsock2.h>
12437 #include <ws2tcpip.h>
12438 #endif
12441 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_STRUCT_SOCKADDR_IN6 1
12445 _ACEOF
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>
12451 #endif
12452 #ifdef HAVE_NETINET_IN_H
12453 #include <netinet/in.h>
12454 #endif
12455 #ifdef HAVE_NETINET_IN6_H
12456 #include <netinet/in6.h>
12457 #endif
12458 #ifdef HAVE_SYS_SOCKET_H
12459 #include <sys/socket.h>
12460 #endif
12461 #ifdef _WIN32
12462 #define _WIN32_WINNT 0x0501
12463 #define WIN32_LEAN_AND_MEAN
12464 #include <winsock2.h>
12465 #include <ws2tcpip.h>
12466 #endif
12469 if test "x$ac_cv_type_sa_family_t" = xyes; then :
12471 cat >>confdefs.h <<_ACEOF
12472 #define HAVE_SA_FAMILY_T 1
12473 _ACEOF
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>
12480 #endif
12481 #ifdef HAVE_NETINET_IN_H
12482 #include <netinet/in.h>
12483 #endif
12484 #ifdef HAVE_NETINET_IN6_H
12485 #include <netinet/in6.h>
12486 #endif
12487 #ifdef HAVE_SYS_SOCKET_H
12488 #include <sys/socket.h>
12489 #endif
12490 #ifdef _WIN32
12491 #define _WIN32_WINNT 0x0501
12492 #define WIN32_LEAN_AND_MEAN
12493 #include <winsock2.h>
12494 #include <ws2tcpip.h>
12495 #endif
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
12502 _ACEOF
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>
12508 #endif
12509 #ifdef HAVE_NETINET_IN_H
12510 #include <netinet/in.h>
12511 #endif
12512 #ifdef HAVE_NETINET_IN6_H
12513 #include <netinet/in6.h>
12514 #endif
12515 #ifdef HAVE_SYS_SOCKET_H
12516 #include <sys/socket.h>
12517 #endif
12518 #ifdef _WIN32
12519 #define _WIN32_WINNT 0x0501
12520 #define WIN32_LEAN_AND_MEAN
12521 #include <winsock2.h>
12522 #include <ws2tcpip.h>
12523 #endif
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
12530 _ACEOF
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>
12536 #endif
12537 #ifdef HAVE_NETINET_IN_H
12538 #include <netinet/in.h>
12539 #endif
12540 #ifdef HAVE_NETINET_IN6_H
12541 #include <netinet/in6.h>
12542 #endif
12543 #ifdef HAVE_SYS_SOCKET_H
12544 #include <sys/socket.h>
12545 #endif
12546 #ifdef _WIN32
12547 #define _WIN32_WINNT 0x0501
12548 #define WIN32_LEAN_AND_MEAN
12549 #include <winsock2.h>
12550 #include <ws2tcpip.h>
12551 #endif
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
12558 _ACEOF
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>
12564 #endif
12565 #ifdef HAVE_NETINET_IN_H
12566 #include <netinet/in.h>
12567 #endif
12568 #ifdef HAVE_NETINET_IN6_H
12569 #include <netinet/in6.h>
12570 #endif
12571 #ifdef HAVE_SYS_SOCKET_H
12572 #include <sys/socket.h>
12573 #endif
12574 #ifdef _WIN32
12575 #define _WIN32_WINNT 0x0501
12576 #define WIN32_LEAN_AND_MEAN
12577 #include <winsock2.h>
12578 #include <ws2tcpip.h>
12579 #endif
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
12586 _ACEOF
12592 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "#ifdef HAVE_SYS_TYPES_H
12593 #include <sys/types.h>
12594 #endif
12595 #ifdef HAVE_SYS_TIME_H
12596 #include <sys/time.h>
12597 #endif
12598 #ifdef HAVE_SYS_RESOURCE_H
12599 #include <sys/resource.h>
12600 #endif
12603 if test "x$ac_cv_type_rlim_t" = xyes; then :
12605 cat >>confdefs.h <<_ACEOF
12606 #define HAVE_RLIM_T 1
12607 _ACEOF
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
12619 else
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12624 #ifdef HAVE_SYS_TYPES_H
12625 #include <sys/types.h>
12626 #endif
12627 #ifdef HAVE_SYS_TIME_H
12628 #include <sys/time.h>
12629 #endif
12630 #ifdef HAVE_TIME_H
12631 #include <time.h>
12632 #endif
12635 main ()
12637 int foo [ 1 - 2 * !(((time_t) -1) < 0) ]
12639 return 0;
12641 _ACEOF
12642 if ac_fn_c_try_compile "$LINENO"; then :
12643 eval "ax_cv_decl_${typename}_signed=\"yes\""
12644 else
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
12670 else
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12675 #ifdef HAVE_SYS_TYPES_H
12676 #include <sys/types.h>
12677 #endif
12680 main ()
12682 int foo [ 1 - 2 * !(((size_t) -1) < 0) ]
12684 return 0;
12686 _ACEOF
12687 if ac_fn_c_try_compile "$LINENO"; then :
12688 eval "ax_cv_decl_${typename}_signed=\"yes\""
12689 else
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
12715 else
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12720 enum always { AAA, BBB, CCC };
12723 main ()
12725 int foo [ 1 - 2 * !(((enum always) -1) < 0) ]
12727 return 0;
12729 _ACEOF
12730 if ac_fn_c_try_compile "$LINENO"; then :
12731 eval "ax_cv_decl_${typename}_signed=\"yes\""
12732 else
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
12758 else
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>
12762 #endif
12764 "; then :
12766 else
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; }
12772 else
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
12785 _ACEOF
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
12799 else
12800 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (cell_t))" "ac_cv_sizeof_cell_t" "$ac_includes_default"; then :
12802 else
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; }
12808 else
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
12821 _ACEOF
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
12830 else
12831 if test "$cross_compiling" = yes; then :
12832 tor_cv_null_is_zero=cross
12833 else
12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12836 #include <stdlib.h>
12837 #include <string.h>
12838 #include <stdio.h>
12839 #ifdef HAVE_STDDEF_H
12840 #include <stddef.h>
12841 #endif
12842 int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
12843 return memcmp(&p1,&p2,sizeof(char*))?1:0; }
12844 _ACEOF
12845 if ac_fn_c_try_run "$LINENO"; then :
12846 tor_cv_null_is_zero=yes
12847 else
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
12874 else
12875 if test "$cross_compiling" = yes; then :
12876 tor_cv_dbl0_is_zero=cross
12877 else
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #include <stdlib.h>
12881 #include <string.h>
12882 #include <stdio.h>
12883 #ifdef HAVE_STDDEF_H
12884 #include <stddef.h>
12885 #endif
12886 int main () { double d1,d2; d1=0; memset(&d2,0,sizeof(d2));
12887 return memcmp(&d1,&d2,sizeof(d1))?1:0; }
12888 _ACEOF
12889 if ac_fn_c_try_run "$LINENO"; then :
12890 tor_cv_dbl0_is_zero=yes
12891 else
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
12919 else
12920 if test "$cross_compiling" = yes; then :
12921 tor_cv_malloc_zero_works=cross
12922 else
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925 #include <stdlib.h>
12926 #include <string.h>
12927 #include <stdio.h>
12928 #ifdef HAVE_STDDEF_H
12929 #include <stddef.h>
12930 #endif
12931 int main () { return malloc(0)?0:1; }
12932 _ACEOF
12933 if ac_fn_c_try_run "$LINENO"; then :
12934 tor_cv_malloc_zero_works=yes
12935 else
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
12963 else
12964 if test "$cross_compiling" = yes; then :
12965 tor_cv_twos_complement=cross
12966 else
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; }
12971 _ACEOF
12972 if ac_fn_c_try_run "$LINENO"; then :
12973 tor_cv_twos_complement=yes
12974 else
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
13002 else
13003 if test "$cross_compiling" = yes; then :
13004 tor_cv_sign_extend=cross
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 int main () { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }
13009 _ACEOF
13010 if ac_fn_c_try_run "$LINENO"; then :
13011 tor_cv_sign_extend=yes
13012 else
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
13042 dmalloc=1
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13044 $as_echo "yes" >&6; }
13045 else
13046 dmalloc=1
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13050 else
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
13059 do :
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
13064 _ACEOF
13066 else
13067 as_fn_error $? "dmalloc header file not found. Do you have the development files for dmalloc installed?" "$LINENO" 5
13070 done
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
13076 else
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. */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char dmalloc_malloc ();
13089 main ()
13091 return dmalloc_malloc ();
13093 return 0;
13095 _ACEOF
13096 for ac_lib in '' dmallocth dmalloc; do
13097 if test -z "$ac_lib"; then
13098 ac_res="none required"
13099 else
13100 ac_res=-l$ac_lib
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 \
13107 conftest$ac_exeext
13108 if ${ac_cv_search_dmalloc_malloc+:} false; then :
13109 break
13111 done
13112 if ${ac_cv_search_dmalloc_malloc+:} false; then :
13114 else
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"
13126 else
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
13134 do :
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
13140 _ACEOF
13143 done
13148 # Check whether --with-tcmalloc was given.
13149 if test "${with_tcmalloc+set}" = set; then :
13150 withval=$with_tcmalloc; tcmalloc=yes
13151 else
13152 tcmalloc=no
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
13169 do :
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
13174 _ACEOF
13177 done
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
13186 do :
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
13191 _ACEOF
13194 done
13196 ac_fn_c_check_decl "$LINENO" "mlockall" "ac_cv_have_decl_mlockall" "
13197 #ifdef HAVE_SYS_MMAN_H
13198 #include <sys/mman.h>
13199 #endif
13201 if test "x$ac_cv_have_decl_mlockall" = xyes; then :
13202 ac_have_decl=1
13203 else
13204 ac_have_decl=0
13207 cat >>confdefs.h <<_ACEOF
13208 #define HAVE_DECL_MLOCKALL $ac_have_decl
13209 _ACEOF
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"
13217 else
13218 syslog_facility="LOG_DAEMON"
13222 cat >>confdefs.h <<_ACEOF
13223 #define LOGFACILITY $syslog_facility
13224 _ACEOF
13228 # Check if we have getresuid and getresgid
13229 for ac_func in getresuid getresgid
13230 do :
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
13236 _ACEOF
13239 done
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; }
13251 OLD_CFLAGS=$CFLAGS
13252 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 #include <netdb.h>
13259 main ()
13262 char *cp1, *cp2;
13263 struct hostent *h1, *h2;
13264 int i1, i2;
13265 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13268 return 0;
13270 _ACEOF
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; }
13281 else
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13286 #include <netdb.h>
13289 main ()
13292 char *cp1, *cp2;
13293 struct hostent *h1;
13294 int i1, i2;
13295 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13298 return 0;
13300 _ACEOF
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; }
13311 else
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13316 #include <netdb.h>
13319 main ()
13322 char *cp1;
13323 struct hostent *h1;
13324 struct hostent_data hd;
13325 (void) gethostbyname_r(cp1,h1,&hd);
13328 return 0;
13330 _ACEOF
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; }
13341 else
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
13354 CFLAGS=$OLD_CFLAGS
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
13363 else
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13367 #include <stdio.h>
13368 int main(int c, char **v) { puts(__func__); }
13369 _ACEOF
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371 tor_cv_have_func_macro=yes
13372 else
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
13384 else
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13388 #include <stdio.h>
13389 int main(int c, char **v) { puts(__FUNC__); }
13390 _ACEOF
13391 if ac_fn_c_try_compile "$LINENO"; then :
13392 tor_cv_have_FUNC_macro=yes
13393 else
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
13405 else
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13409 #include <stdio.h>
13410 int main(int c, char **v) { puts(__FUNCTION__); }
13411 _ACEOF
13412 if ac_fn_c_try_compile "$LINENO"; then :
13413 tor_cv_have_FUNCTION_macro=yes
13414 else
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
13426 else
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 #ifdef HAVE_UNISTD_H
13431 #include <unistd.h>
13432 #endif
13433 #include <stdlib.h>
13434 int main(int c, char **v) { char **t = environ; }
13435 _ACEOF
13436 if ac_fn_c_try_compile "$LINENO"; then :
13437 tor_cv_have_environ_declared=yes
13438 else
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
13483 BUILDDIR=`pwd`
13487 cat >>confdefs.h <<_ACEOF
13488 #define BUILDDIR "$BUILDDIR"
13489 _ACEOF
13492 if test "x$CONFDIR" = "x"; then
13493 CONFDIR=`eval echo $sysconfdir/tor`
13497 cat >>confdefs.h <<_ACEOF
13498 #define CONFDIR "$CONFDIR"
13499 _ACEOF
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
13509 # for Windows
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. */
13518 main ()
13522 return 0;
13524 _ACEOF
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"
13529 else
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"
13545 else
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.
13561 case "$host_os" in
13563 darwin*)
13564 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
13565 LDFLAGS="$LDFLAGS -dead_strip" ;;
13566 esac
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
13576 case "$host" in
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" ;;
13583 esac
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
13600 else
13602 tor_saved_CFLAGS="$CFLAGS"
13603 CFLAGS="$CFLAGS -pedantic -Werror -Waddress"
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13608 main ()
13610 return 0;
13612 return 0;
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616 tor_cv_cflags__Waddress=yes
13617 else
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. */
13627 main ()
13629 return 0;
13631 return 0;
13633 _ACEOF
13634 if ac_fn_c_try_link "$LINENO"; then :
13635 tor_can_link__Waddress=yes
13636 else
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"
13650 else
13651 true
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
13662 else
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. */
13670 main ()
13672 return 0;
13674 return 0;
13676 _ACEOF
13677 if ac_fn_c_try_compile "$LINENO"; then :
13678 tor_cv_cflags__Waddress_of_array_temporary=yes
13679 else
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. */
13689 main ()
13691 return 0;
13693 return 0;
13695 _ACEOF
13696 if ac_fn_c_try_link "$LINENO"; then :
13697 tor_can_link__Waddress_of_array_temporary=yes
13698 else
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"
13712 else
13713 true
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
13724 else
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. */
13732 main ()
13734 return 0;
13736 return 0;
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 tor_cv_cflags__Waddress_of_temporary=yes
13741 else
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. */
13751 main ()
13753 return 0;
13755 return 0;
13757 _ACEOF
13758 if ac_fn_c_try_link "$LINENO"; then :
13759 tor_can_link__Waddress_of_temporary=yes
13760 else
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"
13774 else
13775 true
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
13786 else
13788 tor_saved_CFLAGS="$CFLAGS"
13789 CFLAGS="$CFLAGS -pedantic -Werror -Wambiguous-macro"
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13794 main ()
13796 return 0;
13798 return 0;
13800 _ACEOF
13801 if ac_fn_c_try_compile "$LINENO"; then :
13802 tor_cv_cflags__Wambiguous_macro=yes
13803 else
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. */
13813 main ()
13815 return 0;
13817 return 0;
13819 _ACEOF
13820 if ac_fn_c_try_link "$LINENO"; then :
13821 tor_can_link__Wambiguous_macro=yes
13822 else
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"
13836 else
13837 true
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
13848 else
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. */
13856 main ()
13858 return 0;
13860 return 0;
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864 tor_cv_cflags__Wanonymous_pack_parens=yes
13865 else
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. */
13875 main ()
13877 return 0;
13879 return 0;
13881 _ACEOF
13882 if ac_fn_c_try_link "$LINENO"; then :
13883 tor_can_link__Wanonymous_pack_parens=yes
13884 else
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"
13898 else
13899 true
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
13910 else
13912 tor_saved_CFLAGS="$CFLAGS"
13913 CFLAGS="$CFLAGS -pedantic -Werror -Warc"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13918 main ()
13920 return 0;
13922 return 0;
13924 _ACEOF
13925 if ac_fn_c_try_compile "$LINENO"; then :
13926 tor_cv_cflags__Warc=yes
13927 else
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. */
13937 main ()
13939 return 0;
13941 return 0;
13943 _ACEOF
13944 if ac_fn_c_try_link "$LINENO"; then :
13945 tor_can_link__Warc=yes
13946 else
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"
13960 else
13961 true
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
13972 else
13974 tor_saved_CFLAGS="$CFLAGS"
13975 CFLAGS="$CFLAGS -pedantic -Werror -Warc-abi"
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13980 main ()
13982 return 0;
13984 return 0;
13986 _ACEOF
13987 if ac_fn_c_try_compile "$LINENO"; then :
13988 tor_cv_cflags__Warc_abi=yes
13989 else
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. */
13999 main ()
14001 return 0;
14003 return 0;
14005 _ACEOF
14006 if ac_fn_c_try_link "$LINENO"; then :
14007 tor_can_link__Warc_abi=yes
14008 else
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"
14022 else
14023 true
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
14034 else
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. */
14042 main ()
14044 return 0;
14046 return 0;
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050 tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc=yes
14051 else
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. */
14061 main ()
14063 return 0;
14065 return 0;
14067 _ACEOF
14068 if ac_fn_c_try_link "$LINENO"; then :
14069 tor_can_link__Warc_bridge_casts_disallowed_in_nonarc=yes
14070 else
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"
14084 else
14085 true
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
14096 else
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. */
14104 main ()
14106 return 0;
14108 return 0;
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 tor_cv_cflags__Warc_maybe_repeated_use_of_weak=yes
14113 else
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. */
14123 main ()
14125 return 0;
14127 return 0;
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 tor_can_link__Warc_maybe_repeated_use_of_weak=yes
14132 else
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"
14146 else
14147 true
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
14158 else
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. */
14166 main ()
14168 return 0;
14170 return 0;
14172 _ACEOF
14173 if ac_fn_c_try_compile "$LINENO"; then :
14174 tor_cv_cflags__Warc_performSelector_leaks=yes
14175 else
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. */
14185 main ()
14187 return 0;
14189 return 0;
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 tor_can_link__Warc_performSelector_leaks=yes
14194 else
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"
14208 else
14209 true
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
14220 else
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. */
14228 main ()
14230 return 0;
14232 return 0;
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 tor_cv_cflags__Warc_repeated_use_of_weak=yes
14237 else
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. */
14247 main ()
14249 return 0;
14251 return 0;
14253 _ACEOF
14254 if ac_fn_c_try_link "$LINENO"; then :
14255 tor_can_link__Warc_repeated_use_of_weak=yes
14256 else
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"
14270 else
14271 true
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
14282 else
14284 tor_saved_CFLAGS="$CFLAGS"
14285 CFLAGS="$CFLAGS -pedantic -Werror -Warray-bounds"
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14290 main ()
14292 return 0;
14294 return 0;
14296 _ACEOF
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298 tor_cv_cflags__Warray_bounds=yes
14299 else
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. */
14309 main ()
14311 return 0;
14313 return 0;
14315 _ACEOF
14316 if ac_fn_c_try_link "$LINENO"; then :
14317 tor_can_link__Warray_bounds=yes
14318 else
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"
14332 else
14333 true
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
14344 else
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. */
14352 main ()
14354 return 0;
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"; then :
14360 tor_cv_cflags__Warray_bounds_pointer_arithmetic=yes
14361 else
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. */
14371 main ()
14373 return 0;
14375 return 0;
14377 _ACEOF
14378 if ac_fn_c_try_link "$LINENO"; then :
14379 tor_can_link__Warray_bounds_pointer_arithmetic=yes
14380 else
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"
14394 else
14395 true
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
14406 else
14408 tor_saved_CFLAGS="$CFLAGS"
14409 CFLAGS="$CFLAGS -pedantic -Werror -Wasm"
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14414 main ()
14416 return 0;
14418 return 0;
14420 _ACEOF
14421 if ac_fn_c_try_compile "$LINENO"; then :
14422 tor_cv_cflags__Wasm=yes
14423 else
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. */
14433 main ()
14435 return 0;
14437 return 0;
14439 _ACEOF
14440 if ac_fn_c_try_link "$LINENO"; then :
14441 tor_can_link__Wasm=yes
14442 else
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"
14456 else
14457 true
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
14468 else
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. */
14476 main ()
14478 return 0;
14480 return 0;
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 tor_cv_cflags__Wasm_operand_widths=yes
14485 else
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. */
14495 main ()
14497 return 0;
14499 return 0;
14501 _ACEOF
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 tor_can_link__Wasm_operand_widths=yes
14504 else
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"
14518 else
14519 true
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
14530 else
14532 tor_saved_CFLAGS="$CFLAGS"
14533 CFLAGS="$CFLAGS -pedantic -Werror -Watomic-properties"
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14538 main ()
14540 return 0;
14542 return 0;
14544 _ACEOF
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546 tor_cv_cflags__Watomic_properties=yes
14547 else
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. */
14557 main ()
14559 return 0;
14561 return 0;
14563 _ACEOF
14564 if ac_fn_c_try_link "$LINENO"; then :
14565 tor_can_link__Watomic_properties=yes
14566 else
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"
14580 else
14581 true
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
14592 else
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. */
14600 main ()
14602 return 0;
14604 return 0;
14606 _ACEOF
14607 if ac_fn_c_try_compile "$LINENO"; then :
14608 tor_cv_cflags__Watomic_property_with_user_defined_accessor=yes
14609 else
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. */
14619 main ()
14621 return 0;
14623 return 0;
14625 _ACEOF
14626 if ac_fn_c_try_link "$LINENO"; then :
14627 tor_can_link__Watomic_property_with_user_defined_accessor=yes
14628 else
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"
14642 else
14643 true
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
14654 else
14656 tor_saved_CFLAGS="$CFLAGS"
14657 CFLAGS="$CFLAGS -pedantic -Werror -Wauto-import"
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14662 main ()
14664 return 0;
14666 return 0;
14668 _ACEOF
14669 if ac_fn_c_try_compile "$LINENO"; then :
14670 tor_cv_cflags__Wauto_import=yes
14671 else
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. */
14681 main ()
14683 return 0;
14685 return 0;
14687 _ACEOF
14688 if ac_fn_c_try_link "$LINENO"; then :
14689 tor_can_link__Wauto_import=yes
14690 else
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"
14704 else
14705 true
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
14716 else
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. */
14724 main ()
14726 return 0;
14728 return 0;
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"; then :
14732 tor_cv_cflags__Wauto_storage_class=yes
14733 else
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. */
14743 main ()
14745 return 0;
14747 return 0;
14749 _ACEOF
14750 if ac_fn_c_try_link "$LINENO"; then :
14751 tor_can_link__Wauto_storage_class=yes
14752 else
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"
14766 else
14767 true
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
14778 else
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. */
14786 main ()
14788 return 0;
14790 return 0;
14792 _ACEOF
14793 if ac_fn_c_try_compile "$LINENO"; then :
14794 tor_cv_cflags__Wauto_var_id=yes
14795 else
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. */
14805 main ()
14807 return 0;
14809 return 0;
14811 _ACEOF
14812 if ac_fn_c_try_link "$LINENO"; then :
14813 tor_can_link__Wauto_var_id=yes
14814 else
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"
14828 else
14829 true
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
14840 else
14842 tor_saved_CFLAGS="$CFLAGS"
14843 CFLAGS="$CFLAGS -pedantic -Werror -Wavailability"
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14848 main ()
14850 return 0;
14852 return 0;
14854 _ACEOF
14855 if ac_fn_c_try_compile "$LINENO"; then :
14856 tor_cv_cflags__Wavailability=yes
14857 else
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. */
14867 main ()
14869 return 0;
14871 return 0;
14873 _ACEOF
14874 if ac_fn_c_try_link "$LINENO"; then :
14875 tor_can_link__Wavailability=yes
14876 else
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"
14890 else
14891 true
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
14902 else
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. */
14910 main ()
14912 return 0;
14914 return 0;
14916 _ACEOF
14917 if ac_fn_c_try_compile "$LINENO"; then :
14918 tor_cv_cflags__Wbackslash_newline_escape=yes
14919 else
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. */
14929 main ()
14931 return 0;
14933 return 0;
14935 _ACEOF
14936 if ac_fn_c_try_link "$LINENO"; then :
14937 tor_can_link__Wbackslash_newline_escape=yes
14938 else
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"
14952 else
14953 true
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
14964 else
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. */
14972 main ()
14974 return 0;
14976 return 0;
14978 _ACEOF
14979 if ac_fn_c_try_compile "$LINENO"; then :
14980 tor_cv_cflags__Wbad_array_new_length=yes
14981 else
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. */
14991 main ()
14993 return 0;
14995 return 0;
14997 _ACEOF
14998 if ac_fn_c_try_link "$LINENO"; then :
14999 tor_can_link__Wbad_array_new_length=yes
15000 else
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"
15014 else
15015 true
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
15026 else
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. */
15034 main ()
15036 return 0;
15038 return 0;
15040 _ACEOF
15041 if ac_fn_c_try_compile "$LINENO"; then :
15042 tor_cv_cflags__Wbind_to_temporary_copy=yes
15043 else
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. */
15053 main ()
15055 return 0;
15057 return 0;
15059 _ACEOF
15060 if ac_fn_c_try_link "$LINENO"; then :
15061 tor_can_link__Wbind_to_temporary_copy=yes
15062 else
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"
15076 else
15077 true
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
15088 else
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. */
15096 main ()
15098 return 0;
15100 return 0;
15102 _ACEOF
15103 if ac_fn_c_try_compile "$LINENO"; then :
15104 tor_cv_cflags__Wbitfield_constant_conversion=yes
15105 else
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. */
15115 main ()
15117 return 0;
15119 return 0;
15121 _ACEOF
15122 if ac_fn_c_try_link "$LINENO"; then :
15123 tor_can_link__Wbitfield_constant_conversion=yes
15124 else
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"
15138 else
15139 true
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
15150 else
15152 tor_saved_CFLAGS="$CFLAGS"
15153 CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversion"
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15158 main ()
15160 return 0;
15162 return 0;
15164 _ACEOF
15165 if ac_fn_c_try_compile "$LINENO"; then :
15166 tor_cv_cflags__Wbool_conversion=yes
15167 else
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. */
15177 main ()
15179 return 0;
15181 return 0;
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"; then :
15185 tor_can_link__Wbool_conversion=yes
15186 else
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"
15200 else
15201 true
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
15212 else
15214 tor_saved_CFLAGS="$CFLAGS"
15215 CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversions"
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15220 main ()
15222 return 0;
15224 return 0;
15226 _ACEOF
15227 if ac_fn_c_try_compile "$LINENO"; then :
15228 tor_cv_cflags__Wbool_conversions=yes
15229 else
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. */
15239 main ()
15241 return 0;
15243 return 0;
15245 _ACEOF
15246 if ac_fn_c_try_link "$LINENO"; then :
15247 tor_can_link__Wbool_conversions=yes
15248 else
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"
15262 else
15263 true
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
15274 else
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. */
15282 main ()
15284 return 0;
15286 return 0;
15288 _ACEOF
15289 if ac_fn_c_try_compile "$LINENO"; then :
15290 tor_cv_cflags__Wbuiltin_requires_header=yes
15291 else
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. */
15301 main ()
15303 return 0;
15305 return 0;
15307 _ACEOF
15308 if ac_fn_c_try_link "$LINENO"; then :
15309 tor_can_link__Wbuiltin_requires_header=yes
15310 else
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"
15324 else
15325 true
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
15336 else
15338 tor_saved_CFLAGS="$CFLAGS"
15339 CFLAGS="$CFLAGS -pedantic -Werror -Wchar-align"
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15344 main ()
15346 return 0;
15348 return 0;
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"; then :
15352 tor_cv_cflags__Wchar_align=yes
15353 else
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. */
15363 main ()
15365 return 0;
15367 return 0;
15369 _ACEOF
15370 if ac_fn_c_try_link "$LINENO"; then :
15371 tor_can_link__Wchar_align=yes
15372 else
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"
15386 else
15387 true
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
15398 else
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. */
15406 main ()
15408 return 0;
15410 return 0;
15412 _ACEOF
15413 if ac_fn_c_try_compile "$LINENO"; then :
15414 tor_cv_cflags__Wcompare_distinct_pointer_types=yes
15415 else
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. */
15425 main ()
15427 return 0;
15429 return 0;
15431 _ACEOF
15432 if ac_fn_c_try_link "$LINENO"; then :
15433 tor_can_link__Wcompare_distinct_pointer_types=yes
15434 else
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"
15448 else
15449 true
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
15460 else
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. */
15468 main ()
15470 return 0;
15472 return 0;
15474 _ACEOF
15475 if ac_fn_c_try_compile "$LINENO"; then :
15476 tor_cv_cflags__Wcomplex_component_init=yes
15477 else
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. */
15487 main ()
15489 return 0;
15491 return 0;
15493 _ACEOF
15494 if ac_fn_c_try_link "$LINENO"; then :
15495 tor_can_link__Wcomplex_component_init=yes
15496 else
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"
15510 else
15511 true
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
15522 else
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. */
15530 main ()
15532 return 0;
15534 return 0;
15536 _ACEOF
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538 tor_cv_cflags__Wconditional_type_mismatch=yes
15539 else
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. */
15549 main ()
15551 return 0;
15553 return 0;
15555 _ACEOF
15556 if ac_fn_c_try_link "$LINENO"; then :
15557 tor_can_link__Wconditional_type_mismatch=yes
15558 else
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"
15572 else
15573 true
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
15584 else
15586 tor_saved_CFLAGS="$CFLAGS"
15587 CFLAGS="$CFLAGS -pedantic -Werror -Wconfig-macros"
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15592 main ()
15594 return 0;
15596 return 0;
15598 _ACEOF
15599 if ac_fn_c_try_compile "$LINENO"; then :
15600 tor_cv_cflags__Wconfig_macros=yes
15601 else
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. */
15611 main ()
15613 return 0;
15615 return 0;
15617 _ACEOF
15618 if ac_fn_c_try_link "$LINENO"; then :
15619 tor_can_link__Wconfig_macros=yes
15620 else
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"
15634 else
15635 true
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
15646 else
15648 tor_saved_CFLAGS="$CFLAGS"
15649 CFLAGS="$CFLAGS -pedantic -Werror -Wconstant-conversion"
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15654 main ()
15656 return 0;
15658 return 0;
15660 _ACEOF
15661 if ac_fn_c_try_compile "$LINENO"; then :
15662 tor_cv_cflags__Wconstant_conversion=yes
15663 else
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. */
15673 main ()
15675 return 0;
15677 return 0;
15679 _ACEOF
15680 if ac_fn_c_try_link "$LINENO"; then :
15681 tor_can_link__Wconstant_conversion=yes
15682 else
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"
15696 else
15697 true
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
15708 else
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. */
15716 main ()
15718 return 0;
15720 return 0;
15722 _ACEOF
15723 if ac_fn_c_try_compile "$LINENO"; then :
15724 tor_cv_cflags__Wconstant_logical_operand=yes
15725 else
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. */
15735 main ()
15737 return 0;
15739 return 0;
15741 _ACEOF
15742 if ac_fn_c_try_link "$LINENO"; then :
15743 tor_can_link__Wconstant_logical_operand=yes
15744 else
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"
15758 else
15759 true
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
15770 else
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. */
15778 main ()
15780 return 0;
15782 return 0;
15784 _ACEOF
15785 if ac_fn_c_try_compile "$LINENO"; then :
15786 tor_cv_cflags__Wconstexpr_not_const=yes
15787 else
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. */
15797 main ()
15799 return 0;
15801 return 0;
15803 _ACEOF
15804 if ac_fn_c_try_link "$LINENO"; then :
15805 tor_can_link__Wconstexpr_not_const=yes
15806 else
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"
15820 else
15821 true
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
15832 else
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. */
15840 main ()
15842 return 0;
15844 return 0;
15846 _ACEOF
15847 if ac_fn_c_try_compile "$LINENO"; then :
15848 tor_cv_cflags__Wcustom_atomic_properties=yes
15849 else
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. */
15859 main ()
15861 return 0;
15863 return 0;
15865 _ACEOF
15866 if ac_fn_c_try_link "$LINENO"; then :
15867 tor_can_link__Wcustom_atomic_properties=yes
15868 else
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"
15882 else
15883 true
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
15894 else
15896 tor_saved_CFLAGS="$CFLAGS"
15897 CFLAGS="$CFLAGS -pedantic -Werror -Wdangling-field"
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15902 main ()
15904 return 0;
15906 return 0;
15908 _ACEOF
15909 if ac_fn_c_try_compile "$LINENO"; then :
15910 tor_cv_cflags__Wdangling_field=yes
15911 else
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. */
15921 main ()
15923 return 0;
15925 return 0;
15927 _ACEOF
15928 if ac_fn_c_try_link "$LINENO"; then :
15929 tor_can_link__Wdangling_field=yes
15930 else
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"
15944 else
15945 true
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
15956 else
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. */
15964 main ()
15966 return 0;
15968 return 0;
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"; then :
15972 tor_cv_cflags__Wdangling_initializer_list=yes
15973 else
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. */
15983 main ()
15985 return 0;
15987 return 0;
15989 _ACEOF
15990 if ac_fn_c_try_link "$LINENO"; then :
15991 tor_can_link__Wdangling_initializer_list=yes
15992 else
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"
16006 else
16007 true
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
16018 else
16020 tor_saved_CFLAGS="$CFLAGS"
16021 CFLAGS="$CFLAGS -pedantic -Werror -Wdate-time"
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16026 main ()
16028 return 0;
16030 return 0;
16032 _ACEOF
16033 if ac_fn_c_try_compile "$LINENO"; then :
16034 tor_cv_cflags__Wdate_time=yes
16035 else
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. */
16045 main ()
16047 return 0;
16049 return 0;
16051 _ACEOF
16052 if ac_fn_c_try_link "$LINENO"; then :
16053 tor_can_link__Wdate_time=yes
16054 else
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"
16068 else
16069 true
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
16080 else
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. */
16088 main ()
16090 return 0;
16092 return 0;
16094 _ACEOF
16095 if ac_fn_c_try_compile "$LINENO"; then :
16096 tor_cv_cflags__Wdelegating_ctor_cycles=yes
16097 else
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. */
16107 main ()
16109 return 0;
16111 return 0;
16113 _ACEOF
16114 if ac_fn_c_try_link "$LINENO"; then :
16115 tor_can_link__Wdelegating_ctor_cycles=yes
16116 else
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"
16130 else
16131 true
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
16142 else
16144 tor_saved_CFLAGS="$CFLAGS"
16145 CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-implementations"
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16150 main ()
16152 return 0;
16154 return 0;
16156 _ACEOF
16157 if ac_fn_c_try_compile "$LINENO"; then :
16158 tor_cv_cflags__Wdeprecated_implementations=yes
16159 else
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. */
16169 main ()
16171 return 0;
16173 return 0;
16175 _ACEOF
16176 if ac_fn_c_try_link "$LINENO"; then :
16177 tor_can_link__Wdeprecated_implementations=yes
16178 else
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"
16192 else
16193 true
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
16204 else
16206 tor_saved_CFLAGS="$CFLAGS"
16207 CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-register"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16212 main ()
16214 return 0;
16216 return 0;
16218 _ACEOF
16219 if ac_fn_c_try_compile "$LINENO"; then :
16220 tor_cv_cflags__Wdeprecated_register=yes
16221 else
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. */
16231 main ()
16233 return 0;
16235 return 0;
16237 _ACEOF
16238 if ac_fn_c_try_link "$LINENO"; then :
16239 tor_can_link__Wdeprecated_register=yes
16240 else
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"
16254 else
16255 true
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
16266 else
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. */
16274 main ()
16276 return 0;
16278 return 0;
16280 _ACEOF
16281 if ac_fn_c_try_compile "$LINENO"; then :
16282 tor_cv_cflags__Wdirect_ivar_access=yes
16283 else
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. */
16293 main ()
16295 return 0;
16297 return 0;
16299 _ACEOF
16300 if ac_fn_c_try_link "$LINENO"; then :
16301 tor_can_link__Wdirect_ivar_access=yes
16302 else
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"
16316 else
16317 true
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
16328 else
16330 tor_saved_CFLAGS="$CFLAGS"
16331 CFLAGS="$CFLAGS -pedantic -Werror -Wdiscard-qual"
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16336 main ()
16338 return 0;
16340 return 0;
16342 _ACEOF
16343 if ac_fn_c_try_compile "$LINENO"; then :
16344 tor_cv_cflags__Wdiscard_qual=yes
16345 else
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. */
16355 main ()
16357 return 0;
16359 return 0;
16361 _ACEOF
16362 if ac_fn_c_try_link "$LINENO"; then :
16363 tor_can_link__Wdiscard_qual=yes
16364 else
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"
16378 else
16379 true
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
16390 else
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. */
16398 main ()
16400 return 0;
16402 return 0;
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 tor_cv_cflags__Wdistributed_object_modifiers=yes
16407 else
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. */
16417 main ()
16419 return 0;
16421 return 0;
16423 _ACEOF
16424 if ac_fn_c_try_link "$LINENO"; then :
16425 tor_can_link__Wdistributed_object_modifiers=yes
16426 else
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"
16440 else
16441 true
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
16452 else
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. */
16460 main ()
16462 return 0;
16464 return 0;
16466 _ACEOF
16467 if ac_fn_c_try_compile "$LINENO"; then :
16468 tor_cv_cflags__Wdivision_by_zero=yes
16469 else
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. */
16479 main ()
16481 return 0;
16483 return 0;
16485 _ACEOF
16486 if ac_fn_c_try_link "$LINENO"; then :
16487 tor_can_link__Wdivision_by_zero=yes
16488 else
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"
16502 else
16503 true
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
16514 else
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. */
16522 main ()
16524 return 0;
16526 return 0;
16528 _ACEOF
16529 if ac_fn_c_try_compile "$LINENO"; then :
16530 tor_cv_cflags__Wdollar_in_identifier_extension=yes
16531 else
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. */
16541 main ()
16543 return 0;
16545 return 0;
16547 _ACEOF
16548 if ac_fn_c_try_link "$LINENO"; then :
16549 tor_can_link__Wdollar_in_identifier_extension=yes
16550 else
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"
16564 else
16565 true
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
16576 else
16578 tor_saved_CFLAGS="$CFLAGS"
16579 CFLAGS="$CFLAGS -pedantic -Werror -Wdouble-promotion"
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16584 main ()
16586 return 0;
16588 return 0;
16590 _ACEOF
16591 if ac_fn_c_try_compile "$LINENO"; then :
16592 tor_cv_cflags__Wdouble_promotion=yes
16593 else
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. */
16603 main ()
16605 return 0;
16607 return 0;
16609 _ACEOF
16610 if ac_fn_c_try_link "$LINENO"; then :
16611 tor_can_link__Wdouble_promotion=yes
16612 else
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"
16626 else
16627 true
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
16638 else
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. */
16646 main ()
16648 return 0;
16650 return 0;
16652 _ACEOF
16653 if ac_fn_c_try_compile "$LINENO"; then :
16654 tor_cv_cflags__Wduplicate_decl_specifier=yes
16655 else
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. */
16665 main ()
16667 return 0;
16669 return 0;
16671 _ACEOF
16672 if ac_fn_c_try_link "$LINENO"; then :
16673 tor_can_link__Wduplicate_decl_specifier=yes
16674 else
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"
16688 else
16689 true
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
16700 else
16702 tor_saved_CFLAGS="$CFLAGS"
16703 CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-enum"
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16708 main ()
16710 return 0;
16712 return 0;
16714 _ACEOF
16715 if ac_fn_c_try_compile "$LINENO"; then :
16716 tor_cv_cflags__Wduplicate_enum=yes
16717 else
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. */
16727 main ()
16729 return 0;
16731 return 0;
16733 _ACEOF
16734 if ac_fn_c_try_link "$LINENO"; then :
16735 tor_can_link__Wduplicate_enum=yes
16736 else
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"
16750 else
16751 true
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
16762 else
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. */
16770 main ()
16772 return 0;
16774 return 0;
16776 _ACEOF
16777 if ac_fn_c_try_compile "$LINENO"; then :
16778 tor_cv_cflags__Wduplicate_method_arg=yes
16779 else
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. */
16789 main ()
16791 return 0;
16793 return 0;
16795 _ACEOF
16796 if ac_fn_c_try_link "$LINENO"; then :
16797 tor_can_link__Wduplicate_method_arg=yes
16798 else
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"
16812 else
16813 true
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
16824 else
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. */
16832 main ()
16834 return 0;
16836 return 0;
16838 _ACEOF
16839 if ac_fn_c_try_compile "$LINENO"; then :
16840 tor_cv_cflags__Wduplicate_method_match=yes
16841 else
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. */
16851 main ()
16853 return 0;
16855 return 0;
16857 _ACEOF
16858 if ac_fn_c_try_link "$LINENO"; then :
16859 tor_can_link__Wduplicate_method_match=yes
16860 else
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"
16874 else
16875 true
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
16886 else
16888 tor_saved_CFLAGS="$CFLAGS"
16889 CFLAGS="$CFLAGS -pedantic -Werror -Wduplicated-cond"
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16894 main ()
16896 return 0;
16898 return 0;
16900 _ACEOF
16901 if ac_fn_c_try_compile "$LINENO"; then :
16902 tor_cv_cflags__Wduplicated_cond=yes
16903 else
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. */
16913 main ()
16915 return 0;
16917 return 0;
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 tor_can_link__Wduplicated_cond=yes
16922 else
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"
16936 else
16937 true
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
16948 else
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. */
16956 main ()
16958 return 0;
16960 return 0;
16962 _ACEOF
16963 if ac_fn_c_try_compile "$LINENO"; then :
16964 tor_cv_cflags__Wdynamic_class_memaccess=yes
16965 else
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. */
16975 main ()
16977 return 0;
16979 return 0;
16981 _ACEOF
16982 if ac_fn_c_try_link "$LINENO"; then :
16983 tor_can_link__Wdynamic_class_memaccess=yes
16984 else
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"
16998 else
16999 true
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
17010 else
17012 tor_saved_CFLAGS="$CFLAGS"
17013 CFLAGS="$CFLAGS -pedantic -Werror -Wembedded-directive"
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17018 main ()
17020 return 0;
17022 return 0;
17024 _ACEOF
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026 tor_cv_cflags__Wembedded_directive=yes
17027 else
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. */
17037 main ()
17039 return 0;
17041 return 0;
17043 _ACEOF
17044 if ac_fn_c_try_link "$LINENO"; then :
17045 tor_can_link__Wembedded_directive=yes
17046 else
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"
17060 else
17061 true
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
17072 else
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. */
17080 main ()
17082 return 0;
17084 return 0;
17086 _ACEOF
17087 if ac_fn_c_try_compile "$LINENO"; then :
17088 tor_cv_cflags__Wempty_translation_unit=yes
17089 else
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. */
17099 main ()
17101 return 0;
17103 return 0;
17105 _ACEOF
17106 if ac_fn_c_try_link "$LINENO"; then :
17107 tor_can_link__Wempty_translation_unit=yes
17108 else
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"
17122 else
17123 true
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
17134 else
17136 tor_saved_CFLAGS="$CFLAGS"
17137 CFLAGS="$CFLAGS -pedantic -Werror -Wenum-conversion"
17138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139 /* end confdefs.h. */
17142 main ()
17144 return 0;
17146 return 0;
17148 _ACEOF
17149 if ac_fn_c_try_compile "$LINENO"; then :
17150 tor_cv_cflags__Wenum_conversion=yes
17151 else
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. */
17161 main ()
17163 return 0;
17165 return 0;
17167 _ACEOF
17168 if ac_fn_c_try_link "$LINENO"; then :
17169 tor_can_link__Wenum_conversion=yes
17170 else
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"
17184 else
17185 true
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
17196 else
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. */
17204 main ()
17206 return 0;
17208 return 0;
17210 _ACEOF
17211 if ac_fn_c_try_compile "$LINENO"; then :
17212 tor_cv_cflags__Wexit_time_destructors=yes
17213 else
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. */
17223 main ()
17225 return 0;
17227 return 0;
17229 _ACEOF
17230 if ac_fn_c_try_link "$LINENO"; then :
17231 tor_can_link__Wexit_time_destructors=yes
17232 else
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"
17246 else
17247 true
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
17258 else
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. */
17266 main ()
17268 return 0;
17270 return 0;
17272 _ACEOF
17273 if ac_fn_c_try_compile "$LINENO"; then :
17274 tor_cv_cflags__Wexplicit_ownership_type=yes
17275 else
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. */
17285 main ()
17287 return 0;
17289 return 0;
17291 _ACEOF
17292 if ac_fn_c_try_link "$LINENO"; then :
17293 tor_can_link__Wexplicit_ownership_type=yes
17294 else
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"
17308 else
17309 true
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
17320 else
17322 tor_saved_CFLAGS="$CFLAGS"
17323 CFLAGS="$CFLAGS -pedantic -Werror -Wextern-initializer"
17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h. */
17328 main ()
17330 return 0;
17332 return 0;
17334 _ACEOF
17335 if ac_fn_c_try_compile "$LINENO"; then :
17336 tor_cv_cflags__Wextern_initializer=yes
17337 else
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. */
17347 main ()
17349 return 0;
17351 return 0;
17353 _ACEOF
17354 if ac_fn_c_try_link "$LINENO"; then :
17355 tor_can_link__Wextern_initializer=yes
17356 else
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"
17370 else
17371 true
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
17382 else
17384 tor_saved_CFLAGS="$CFLAGS"
17385 CFLAGS="$CFLAGS -pedantic -Werror -Wextra"
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17390 main ()
17392 return 0;
17394 return 0;
17396 _ACEOF
17397 if ac_fn_c_try_compile "$LINENO"; then :
17398 tor_cv_cflags__Wextra=yes
17399 else
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. */
17409 main ()
17411 return 0;
17413 return 0;
17415 _ACEOF
17416 if ac_fn_c_try_link "$LINENO"; then :
17417 tor_can_link__Wextra=yes
17418 else
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"
17432 else
17433 true
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
17444 else
17446 tor_saved_CFLAGS="$CFLAGS"
17447 CFLAGS="$CFLAGS -pedantic -Werror -Wextra-semi"
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17452 main ()
17454 return 0;
17456 return 0;
17458 _ACEOF
17459 if ac_fn_c_try_compile "$LINENO"; then :
17460 tor_cv_cflags__Wextra_semi=yes
17461 else
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. */
17471 main ()
17473 return 0;
17475 return 0;
17477 _ACEOF
17478 if ac_fn_c_try_link "$LINENO"; then :
17479 tor_can_link__Wextra_semi=yes
17480 else
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"
17494 else
17495 true
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
17506 else
17508 tor_saved_CFLAGS="$CFLAGS"
17509 CFLAGS="$CFLAGS -pedantic -Werror -Wextra-tokens"
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17514 main ()
17516 return 0;
17518 return 0;
17520 _ACEOF
17521 if ac_fn_c_try_compile "$LINENO"; then :
17522 tor_cv_cflags__Wextra_tokens=yes
17523 else
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. */
17533 main ()
17535 return 0;
17537 return 0;
17539 _ACEOF
17540 if ac_fn_c_try_link "$LINENO"; then :
17541 tor_can_link__Wextra_tokens=yes
17542 else
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"
17556 else
17557 true
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
17568 else
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. */
17576 main ()
17578 return 0;
17580 return 0;
17582 _ACEOF
17583 if ac_fn_c_try_compile "$LINENO"; then :
17584 tor_cv_cflags__Wflexible_array_extensions=yes
17585 else
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. */
17595 main ()
17597 return 0;
17599 return 0;
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"; then :
17603 tor_can_link__Wflexible_array_extensions=yes
17604 else
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"
17618 else
17619 true
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
17630 else
17632 tor_saved_CFLAGS="$CFLAGS"
17633 CFLAGS="$CFLAGS -pedantic -Werror -Wfloat-conversion"
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17638 main ()
17640 return 0;
17642 return 0;
17644 _ACEOF
17645 if ac_fn_c_try_compile "$LINENO"; then :
17646 tor_cv_cflags__Wfloat_conversion=yes
17647 else
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. */
17657 main ()
17659 return 0;
17661 return 0;
17663 _ACEOF
17664 if ac_fn_c_try_link "$LINENO"; then :
17665 tor_can_link__Wfloat_conversion=yes
17666 else
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"
17680 else
17681 true
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
17692 else
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. */
17700 main ()
17702 return 0;
17704 return 0;
17706 _ACEOF
17707 if ac_fn_c_try_compile "$LINENO"; then :
17708 tor_cv_cflags__Wformat_non_iso=yes
17709 else
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. */
17719 main ()
17721 return 0;
17723 return 0;
17725 _ACEOF
17726 if ac_fn_c_try_link "$LINENO"; then :
17727 tor_can_link__Wformat_non_iso=yes
17728 else
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"
17742 else
17743 true
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
17754 else
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. */
17762 main ()
17764 return 0;
17766 return 0;
17768 _ACEOF
17769 if ac_fn_c_try_compile "$LINENO"; then :
17770 tor_cv_cflags__Wfour_char_constants=yes
17771 else
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. */
17781 main ()
17783 return 0;
17785 return 0;
17787 _ACEOF
17788 if ac_fn_c_try_link "$LINENO"; then :
17789 tor_can_link__Wfour_char_constants=yes
17790 else
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"
17804 else
17805 true
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
17816 else
17818 tor_saved_CFLAGS="$CFLAGS"
17819 CFLAGS="$CFLAGS -pedantic -Werror -Wgcc-compat"
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17824 main ()
17826 return 0;
17828 return 0;
17830 _ACEOF
17831 if ac_fn_c_try_compile "$LINENO"; then :
17832 tor_cv_cflags__Wgcc_compat=yes
17833 else
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. */
17843 main ()
17845 return 0;
17847 return 0;
17849 _ACEOF
17850 if ac_fn_c_try_link "$LINENO"; then :
17851 tor_can_link__Wgcc_compat=yes
17852 else
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"
17866 else
17867 true
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
17878 else
17880 tor_saved_CFLAGS="$CFLAGS"
17881 CFLAGS="$CFLAGS -pedantic -Werror -Wglobal-constructors"
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17886 main ()
17888 return 0;
17890 return 0;
17892 _ACEOF
17893 if ac_fn_c_try_compile "$LINENO"; then :
17894 tor_cv_cflags__Wglobal_constructors=yes
17895 else
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. */
17905 main ()
17907 return 0;
17909 return 0;
17911 _ACEOF
17912 if ac_fn_c_try_link "$LINENO"; then :
17913 tor_can_link__Wglobal_constructors=yes
17914 else
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"
17928 else
17929 true
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
17940 else
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. */
17948 main ()
17950 return 0;
17952 return 0;
17954 _ACEOF
17955 if ac_fn_c_try_compile "$LINENO"; then :
17956 tor_cv_cflags__Wgnu_array_member_paren_init=yes
17957 else
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. */
17967 main ()
17969 return 0;
17971 return 0;
17973 _ACEOF
17974 if ac_fn_c_try_link "$LINENO"; then :
17975 tor_can_link__Wgnu_array_member_paren_init=yes
17976 else
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"
17990 else
17991 true
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
18002 else
18004 tor_saved_CFLAGS="$CFLAGS"
18005 CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-designator"
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18010 main ()
18012 return 0;
18014 return 0;
18016 _ACEOF
18017 if ac_fn_c_try_compile "$LINENO"; then :
18018 tor_cv_cflags__Wgnu_designator=yes
18019 else
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. */
18029 main ()
18031 return 0;
18033 return 0;
18035 _ACEOF
18036 if ac_fn_c_try_link "$LINENO"; then :
18037 tor_can_link__Wgnu_designator=yes
18038 else
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"
18052 else
18053 true
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
18064 else
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. */
18072 main ()
18074 return 0;
18076 return 0;
18078 _ACEOF
18079 if ac_fn_c_try_compile "$LINENO"; then :
18080 tor_cv_cflags__Wgnu_static_float_init=yes
18081 else
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. */
18091 main ()
18093 return 0;
18095 return 0;
18097 _ACEOF
18098 if ac_fn_c_try_link "$LINENO"; then :
18099 tor_can_link__Wgnu_static_float_init=yes
18100 else
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"
18114 else
18115 true
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
18126 else
18128 tor_saved_CFLAGS="$CFLAGS"
18129 CFLAGS="$CFLAGS -pedantic -Werror -Wheader-guard"
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18134 main ()
18136 return 0;
18138 return 0;
18140 _ACEOF
18141 if ac_fn_c_try_compile "$LINENO"; then :
18142 tor_cv_cflags__Wheader_guard=yes
18143 else
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. */
18153 main ()
18155 return 0;
18157 return 0;
18159 _ACEOF
18160 if ac_fn_c_try_link "$LINENO"; then :
18161 tor_can_link__Wheader_guard=yes
18162 else
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"
18176 else
18177 true
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
18188 else
18190 tor_saved_CFLAGS="$CFLAGS"
18191 CFLAGS="$CFLAGS -pedantic -Werror -Wheader-hygiene"
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18196 main ()
18198 return 0;
18200 return 0;
18202 _ACEOF
18203 if ac_fn_c_try_compile "$LINENO"; then :
18204 tor_cv_cflags__Wheader_hygiene=yes
18205 else
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. */
18215 main ()
18217 return 0;
18219 return 0;
18221 _ACEOF
18222 if ac_fn_c_try_link "$LINENO"; then :
18223 tor_can_link__Wheader_hygiene=yes
18224 else
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"
18238 else
18239 true
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
18250 else
18252 tor_saved_CFLAGS="$CFLAGS"
18253 CFLAGS="$CFLAGS -pedantic -Werror -Widiomatic-parentheses"
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18258 main ()
18260 return 0;
18262 return 0;
18264 _ACEOF
18265 if ac_fn_c_try_compile "$LINENO"; then :
18266 tor_cv_cflags__Widiomatic_parentheses=yes
18267 else
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. */
18277 main ()
18279 return 0;
18281 return 0;
18283 _ACEOF
18284 if ac_fn_c_try_link "$LINENO"; then :
18285 tor_can_link__Widiomatic_parentheses=yes
18286 else
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"
18300 else
18301 true
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
18312 else
18314 tor_saved_CFLAGS="$CFLAGS"
18315 CFLAGS="$CFLAGS -pedantic -Werror -Wignored-attributes"
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18320 main ()
18322 return 0;
18324 return 0;
18326 _ACEOF
18327 if ac_fn_c_try_compile "$LINENO"; then :
18328 tor_cv_cflags__Wignored_attributes=yes
18329 else
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. */
18339 main ()
18341 return 0;
18343 return 0;
18345 _ACEOF
18346 if ac_fn_c_try_link "$LINENO"; then :
18347 tor_can_link__Wignored_attributes=yes
18348 else
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"
18362 else
18363 true
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
18374 else
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. */
18382 main ()
18384 return 0;
18386 return 0;
18388 _ACEOF
18389 if ac_fn_c_try_compile "$LINENO"; then :
18390 tor_cv_cflags__Wimplicit_atomic_properties=yes
18391 else
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. */
18401 main ()
18403 return 0;
18405 return 0;
18407 _ACEOF
18408 if ac_fn_c_try_link "$LINENO"; then :
18409 tor_can_link__Wimplicit_atomic_properties=yes
18410 else
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"
18424 else
18425 true
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
18436 else
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. */
18444 main ()
18446 return 0;
18448 return 0;
18450 _ACEOF
18451 if ac_fn_c_try_compile "$LINENO"; then :
18452 tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool=yes
18453 else
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. */
18463 main ()
18465 return 0;
18467 return 0;
18469 _ACEOF
18470 if ac_fn_c_try_link "$LINENO"; then :
18471 tor_can_link__Wimplicit_conversion_floating_point_to_bool=yes
18472 else
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"
18486 else
18487 true
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
18498 else
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. */
18506 main ()
18508 return 0;
18510 return 0;
18512 _ACEOF
18513 if ac_fn_c_try_compile "$LINENO"; then :
18514 tor_cv_cflags__Wimplicit_exception_spec_mismatch=yes
18515 else
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. */
18525 main ()
18527 return 0;
18529 return 0;
18531 _ACEOF
18532 if ac_fn_c_try_link "$LINENO"; then :
18533 tor_can_link__Wimplicit_exception_spec_mismatch=yes
18534 else
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"
18548 else
18549 true
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
18560 else
18562 tor_saved_CFLAGS="$CFLAGS"
18563 CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough"
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18568 main ()
18570 return 0;
18572 return 0;
18574 _ACEOF
18575 if ac_fn_c_try_compile "$LINENO"; then :
18576 tor_cv_cflags__Wimplicit_fallthrough=yes
18577 else
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. */
18587 main ()
18589 return 0;
18591 return 0;
18593 _ACEOF
18594 if ac_fn_c_try_link "$LINENO"; then :
18595 tor_can_link__Wimplicit_fallthrough=yes
18596 else
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"
18610 else
18611 true
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
18622 else
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. */
18630 main ()
18632 return 0;
18634 return 0;
18636 _ACEOF
18637 if ac_fn_c_try_compile "$LINENO"; then :
18638 tor_cv_cflags__Wimplicit_fallthrough_per_function=yes
18639 else
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. */
18649 main ()
18651 return 0;
18653 return 0;
18655 _ACEOF
18656 if ac_fn_c_try_link "$LINENO"; then :
18657 tor_can_link__Wimplicit_fallthrough_per_function=yes
18658 else
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"
18672 else
18673 true
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
18684 else
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. */
18692 main ()
18694 return 0;
18696 return 0;
18698 _ACEOF
18699 if ac_fn_c_try_compile "$LINENO"; then :
18700 tor_cv_cflags__Wimplicit_retain_self=yes
18701 else
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. */
18711 main ()
18713 return 0;
18715 return 0;
18717 _ACEOF
18718 if ac_fn_c_try_link "$LINENO"; then :
18719 tor_can_link__Wimplicit_retain_self=yes
18720 else
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"
18734 else
18735 true
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
18746 else
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. */
18754 main ()
18756 return 0;
18758 return 0;
18760 _ACEOF
18761 if ac_fn_c_try_compile "$LINENO"; then :
18762 tor_cv_cflags__Wimport_preprocessor_directive_pedantic=yes
18763 else
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. */
18773 main ()
18775 return 0;
18777 return 0;
18779 _ACEOF
18780 if ac_fn_c_try_link "$LINENO"; then :
18781 tor_can_link__Wimport_preprocessor_directive_pedantic=yes
18782 else
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"
18796 else
18797 true
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
18808 else
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. */
18816 main ()
18818 return 0;
18820 return 0;
18822 _ACEOF
18823 if ac_fn_c_try_compile "$LINENO"; then :
18824 tor_cv_cflags__Wincompatible_library_redeclaration=yes
18825 else
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. */
18835 main ()
18837 return 0;
18839 return 0;
18841 _ACEOF
18842 if ac_fn_c_try_link "$LINENO"; then :
18843 tor_can_link__Wincompatible_library_redeclaration=yes
18844 else
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"
18858 else
18859 true
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
18870 else
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. */
18878 main ()
18880 return 0;
18882 return 0;
18884 _ACEOF
18885 if ac_fn_c_try_compile "$LINENO"; then :
18886 tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers=yes
18887 else
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. */
18897 main ()
18899 return 0;
18901 return 0;
18903 _ACEOF
18904 if ac_fn_c_try_link "$LINENO"; then :
18905 tor_can_link__Wincompatible_pointer_types_discards_qualifiers=yes
18906 else
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"
18920 else
18921 true
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
18932 else
18934 tor_saved_CFLAGS="$CFLAGS"
18935 CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-implementation"
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18940 main ()
18942 return 0;
18944 return 0;
18946 _ACEOF
18947 if ac_fn_c_try_compile "$LINENO"; then :
18948 tor_cv_cflags__Wincomplete_implementation=yes
18949 else
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. */
18959 main ()
18961 return 0;
18963 return 0;
18965 _ACEOF
18966 if ac_fn_c_try_link "$LINENO"; then :
18967 tor_can_link__Wincomplete_implementation=yes
18968 else
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"
18982 else
18983 true
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
18994 else
18996 tor_saved_CFLAGS="$CFLAGS"
18997 CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-module"
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19002 main ()
19004 return 0;
19006 return 0;
19008 _ACEOF
19009 if ac_fn_c_try_compile "$LINENO"; then :
19010 tor_cv_cflags__Wincomplete_module=yes
19011 else
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. */
19021 main ()
19023 return 0;
19025 return 0;
19027 _ACEOF
19028 if ac_fn_c_try_link "$LINENO"; then :
19029 tor_can_link__Wincomplete_module=yes
19030 else
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"
19044 else
19045 true
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
19056 else
19058 tor_saved_CFLAGS="$CFLAGS"
19059 CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-umbrella"
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19064 main ()
19066 return 0;
19068 return 0;
19070 _ACEOF
19071 if ac_fn_c_try_compile "$LINENO"; then :
19072 tor_cv_cflags__Wincomplete_umbrella=yes
19073 else
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. */
19083 main ()
19085 return 0;
19087 return 0;
19089 _ACEOF
19090 if ac_fn_c_try_link "$LINENO"; then :
19091 tor_can_link__Wincomplete_umbrella=yes
19092 else
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"
19106 else
19107 true
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
19118 else
19120 tor_saved_CFLAGS="$CFLAGS"
19121 CFLAGS="$CFLAGS -pedantic -Werror -Winit-self"
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19126 main ()
19128 return 0;
19130 return 0;
19132 _ACEOF
19133 if ac_fn_c_try_compile "$LINENO"; then :
19134 tor_cv_cflags__Winit_self=yes
19135 else
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. */
19145 main ()
19147 return 0;
19149 return 0;
19151 _ACEOF
19152 if ac_fn_c_try_link "$LINENO"; then :
19153 tor_can_link__Winit_self=yes
19154 else
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"
19168 else
19169 true
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
19180 else
19182 tor_saved_CFLAGS="$CFLAGS"
19183 CFLAGS="$CFLAGS -pedantic -Werror -Wint-conversions"
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19188 main ()
19190 return 0;
19192 return 0;
19194 _ACEOF
19195 if ac_fn_c_try_compile "$LINENO"; then :
19196 tor_cv_cflags__Wint_conversions=yes
19197 else
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. */
19207 main ()
19209 return 0;
19211 return 0;
19213 _ACEOF
19214 if ac_fn_c_try_link "$LINENO"; then :
19215 tor_can_link__Wint_conversions=yes
19216 else
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"
19230 else
19231 true
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
19242 else
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. */
19250 main ()
19252 return 0;
19254 return 0;
19256 _ACEOF
19257 if ac_fn_c_try_compile "$LINENO"; then :
19258 tor_cv_cflags__Wint_to_void_pointer_cast=yes
19259 else
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. */
19269 main ()
19271 return 0;
19273 return 0;
19275 _ACEOF
19276 if ac_fn_c_try_link "$LINENO"; then :
19277 tor_can_link__Wint_to_void_pointer_cast=yes
19278 else
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"
19292 else
19293 true
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
19304 else
19306 tor_saved_CFLAGS="$CFLAGS"
19307 CFLAGS="$CFLAGS -pedantic -Werror -Winteger-overflow"
19308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19312 main ()
19314 return 0;
19316 return 0;
19318 _ACEOF
19319 if ac_fn_c_try_compile "$LINENO"; then :
19320 tor_cv_cflags__Winteger_overflow=yes
19321 else
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. */
19331 main ()
19333 return 0;
19335 return 0;
19337 _ACEOF
19338 if ac_fn_c_try_link "$LINENO"; then :
19339 tor_can_link__Winteger_overflow=yes
19340 else
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"
19354 else
19355 true
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
19366 else
19368 tor_saved_CFLAGS="$CFLAGS"
19369 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-constexpr"
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19374 main ()
19376 return 0;
19378 return 0;
19380 _ACEOF
19381 if ac_fn_c_try_compile "$LINENO"; then :
19382 tor_cv_cflags__Winvalid_constexpr=yes
19383 else
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. */
19393 main ()
19395 return 0;
19397 return 0;
19399 _ACEOF
19400 if ac_fn_c_try_link "$LINENO"; then :
19401 tor_can_link__Winvalid_constexpr=yes
19402 else
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"
19416 else
19417 true
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
19428 else
19430 tor_saved_CFLAGS="$CFLAGS"
19431 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-iboutlet"
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19436 main ()
19438 return 0;
19440 return 0;
19442 _ACEOF
19443 if ac_fn_c_try_compile "$LINENO"; then :
19444 tor_cv_cflags__Winvalid_iboutlet=yes
19445 else
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. */
19455 main ()
19457 return 0;
19459 return 0;
19461 _ACEOF
19462 if ac_fn_c_try_link "$LINENO"; then :
19463 tor_can_link__Winvalid_iboutlet=yes
19464 else
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"
19478 else
19479 true
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
19490 else
19492 tor_saved_CFLAGS="$CFLAGS"
19493 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-noreturn"
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19498 main ()
19500 return 0;
19502 return 0;
19504 _ACEOF
19505 if ac_fn_c_try_compile "$LINENO"; then :
19506 tor_cv_cflags__Winvalid_noreturn=yes
19507 else
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. */
19517 main ()
19519 return 0;
19521 return 0;
19523 _ACEOF
19524 if ac_fn_c_try_link "$LINENO"; then :
19525 tor_can_link__Winvalid_noreturn=yes
19526 else
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"
19540 else
19541 true
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
19552 else
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. */
19560 main ()
19562 return 0;
19564 return 0;
19566 _ACEOF
19567 if ac_fn_c_try_compile "$LINENO"; then :
19568 tor_cv_cflags__Winvalid_pp_token=yes
19569 else
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. */
19579 main ()
19581 return 0;
19583 return 0;
19585 _ACEOF
19586 if ac_fn_c_try_link "$LINENO"; then :
19587 tor_can_link__Winvalid_pp_token=yes
19588 else
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"
19602 else
19603 true
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
19614 else
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. */
19622 main ()
19624 return 0;
19626 return 0;
19628 _ACEOF
19629 if ac_fn_c_try_compile "$LINENO"; then :
19630 tor_cv_cflags__Winvalid_source_encoding=yes
19631 else
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. */
19641 main ()
19643 return 0;
19645 return 0;
19647 _ACEOF
19648 if ac_fn_c_try_link "$LINENO"; then :
19649 tor_can_link__Winvalid_source_encoding=yes
19650 else
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"
19664 else
19665 true
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
19676 else
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. */
19684 main ()
19686 return 0;
19688 return 0;
19690 _ACEOF
19691 if ac_fn_c_try_compile "$LINENO"; then :
19692 tor_cv_cflags__Winvalid_token_paste=yes
19693 else
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. */
19703 main ()
19705 return 0;
19707 return 0;
19709 _ACEOF
19710 if ac_fn_c_try_link "$LINENO"; then :
19711 tor_can_link__Winvalid_token_paste=yes
19712 else
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"
19726 else
19727 true
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
19738 else
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. */
19746 main ()
19748 return 0;
19750 return 0;
19752 _ACEOF
19753 if ac_fn_c_try_compile "$LINENO"; then :
19754 tor_cv_cflags__Wknr_promoted_parameter=yes
19755 else
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. */
19765 main ()
19767 return 0;
19769 return 0;
19771 _ACEOF
19772 if ac_fn_c_try_link "$LINENO"; then :
19773 tor_can_link__Wknr_promoted_parameter=yes
19774 else
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"
19788 else
19789 true
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
19800 else
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. */
19808 main ()
19810 return 0;
19812 return 0;
19814 _ACEOF
19815 if ac_fn_c_try_compile "$LINENO"; then :
19816 tor_cv_cflags__Wlanguage_extension_token=yes
19817 else
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. */
19827 main ()
19829 return 0;
19831 return 0;
19833 _ACEOF
19834 if ac_fn_c_try_link "$LINENO"; then :
19835 tor_can_link__Wlanguage_extension_token=yes
19836 else
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"
19850 else
19851 true
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
19862 else
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. */
19870 main ()
19872 return 0;
19874 return 0;
19876 _ACEOF
19877 if ac_fn_c_try_compile "$LINENO"; then :
19878 tor_cv_cflags__Wlarge_by_value_copy=yes
19879 else
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. */
19889 main ()
19891 return 0;
19893 return 0;
19895 _ACEOF
19896 if ac_fn_c_try_link "$LINENO"; then :
19897 tor_can_link__Wlarge_by_value_copy=yes
19898 else
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"
19912 else
19913 true
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
19924 else
19926 tor_saved_CFLAGS="$CFLAGS"
19927 CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-conversion"
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19932 main ()
19934 return 0;
19936 return 0;
19938 _ACEOF
19939 if ac_fn_c_try_compile "$LINENO"; then :
19940 tor_cv_cflags__Wliteral_conversion=yes
19941 else
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. */
19951 main ()
19953 return 0;
19955 return 0;
19957 _ACEOF
19958 if ac_fn_c_try_link "$LINENO"; then :
19959 tor_can_link__Wliteral_conversion=yes
19960 else
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"
19974 else
19975 true
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
19986 else
19988 tor_saved_CFLAGS="$CFLAGS"
19989 CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-range"
19990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19991 /* end confdefs.h. */
19994 main ()
19996 return 0;
19998 return 0;
20000 _ACEOF
20001 if ac_fn_c_try_compile "$LINENO"; then :
20002 tor_cv_cflags__Wliteral_range=yes
20003 else
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. */
20013 main ()
20015 return 0;
20017 return 0;
20019 _ACEOF
20020 if ac_fn_c_try_link "$LINENO"; then :
20021 tor_can_link__Wliteral_range=yes
20022 else
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"
20036 else
20037 true
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
20048 else
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. */
20056 main ()
20058 return 0;
20060 return 0;
20062 _ACEOF
20063 if ac_fn_c_try_compile "$LINENO"; then :
20064 tor_cv_cflags__Wlocal_type_template_args=yes
20065 else
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. */
20075 main ()
20077 return 0;
20079 return 0;
20081 _ACEOF
20082 if ac_fn_c_try_link "$LINENO"; then :
20083 tor_can_link__Wlocal_type_template_args=yes
20084 else
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"
20098 else
20099 true
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
20110 else
20112 tor_saved_CFLAGS="$CFLAGS"
20113 CFLAGS="$CFLAGS -pedantic -Werror -Wlogical-op"
20114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20115 /* end confdefs.h. */
20118 main ()
20120 return 0;
20122 return 0;
20124 _ACEOF
20125 if ac_fn_c_try_compile "$LINENO"; then :
20126 tor_cv_cflags__Wlogical_op=yes
20127 else
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. */
20137 main ()
20139 return 0;
20141 return 0;
20143 _ACEOF
20144 if ac_fn_c_try_link "$LINENO"; then :
20145 tor_can_link__Wlogical_op=yes
20146 else
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"
20160 else
20161 true
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
20172 else
20174 tor_saved_CFLAGS="$CFLAGS"
20175 CFLAGS="$CFLAGS -pedantic -Werror -Wloop-analysis"
20176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h. */
20180 main ()
20182 return 0;
20184 return 0;
20186 _ACEOF
20187 if ac_fn_c_try_compile "$LINENO"; then :
20188 tor_cv_cflags__Wloop_analysis=yes
20189 else
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. */
20199 main ()
20201 return 0;
20203 return 0;
20205 _ACEOF
20206 if ac_fn_c_try_link "$LINENO"; then :
20207 tor_can_link__Wloop_analysis=yes
20208 else
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"
20222 else
20223 true
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
20234 else
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. */
20242 main ()
20244 return 0;
20246 return 0;
20248 _ACEOF
20249 if ac_fn_c_try_compile "$LINENO"; then :
20250 tor_cv_cflags__Wmain_return_type=yes
20251 else
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. */
20261 main ()
20263 return 0;
20265 return 0;
20267 _ACEOF
20268 if ac_fn_c_try_link "$LINENO"; then :
20269 tor_can_link__Wmain_return_type=yes
20270 else
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"
20284 else
20285 true
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
20296 else
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. */
20304 main ()
20306 return 0;
20308 return 0;
20310 _ACEOF
20311 if ac_fn_c_try_compile "$LINENO"; then :
20312 tor_cv_cflags__Wmalformed_warning_check=yes
20313 else
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. */
20323 main ()
20325 return 0;
20327 return 0;
20329 _ACEOF
20330 if ac_fn_c_try_link "$LINENO"; then :
20331 tor_can_link__Wmalformed_warning_check=yes
20332 else
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"
20346 else
20347 true
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
20358 else
20360 tor_saved_CFLAGS="$CFLAGS"
20361 CFLAGS="$CFLAGS -pedantic -Werror -Wmethod-signatures"
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20366 main ()
20368 return 0;
20370 return 0;
20372 _ACEOF
20373 if ac_fn_c_try_compile "$LINENO"; then :
20374 tor_cv_cflags__Wmethod_signatures=yes
20375 else
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. */
20385 main ()
20387 return 0;
20389 return 0;
20391 _ACEOF
20392 if ac_fn_c_try_link "$LINENO"; then :
20393 tor_can_link__Wmethod_signatures=yes
20394 else
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"
20408 else
20409 true
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
20420 else
20422 tor_saved_CFLAGS="$CFLAGS"
20423 CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft"
20424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h. */
20428 main ()
20430 return 0;
20432 return 0;
20434 _ACEOF
20435 if ac_fn_c_try_compile "$LINENO"; then :
20436 tor_cv_cflags__Wmicrosoft=yes
20437 else
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. */
20447 main ()
20449 return 0;
20451 return 0;
20453 _ACEOF
20454 if ac_fn_c_try_link "$LINENO"; then :
20455 tor_can_link__Wmicrosoft=yes
20456 else
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"
20470 else
20471 true
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
20482 else
20484 tor_saved_CFLAGS="$CFLAGS"
20485 CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft-exists"
20486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h. */
20490 main ()
20492 return 0;
20494 return 0;
20496 _ACEOF
20497 if ac_fn_c_try_compile "$LINENO"; then :
20498 tor_cv_cflags__Wmicrosoft_exists=yes
20499 else
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. */
20509 main ()
20511 return 0;
20513 return 0;
20515 _ACEOF
20516 if ac_fn_c_try_link "$LINENO"; then :
20517 tor_can_link__Wmicrosoft_exists=yes
20518 else
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"
20532 else
20533 true
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
20544 else
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. */
20552 main ()
20554 return 0;
20556 return 0;
20558 _ACEOF
20559 if ac_fn_c_try_compile "$LINENO"; then :
20560 tor_cv_cflags__Wmismatched_parameter_types=yes
20561 else
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. */
20571 main ()
20573 return 0;
20575 return 0;
20577 _ACEOF
20578 if ac_fn_c_try_link "$LINENO"; then :
20579 tor_can_link__Wmismatched_parameter_types=yes
20580 else
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"
20594 else
20595 true
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
20606 else
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. */
20614 main ()
20616 return 0;
20618 return 0;
20620 _ACEOF
20621 if ac_fn_c_try_compile "$LINENO"; then :
20622 tor_cv_cflags__Wmismatched_return_types=yes
20623 else
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. */
20633 main ()
20635 return 0;
20637 return 0;
20639 _ACEOF
20640 if ac_fn_c_try_link "$LINENO"; then :
20641 tor_can_link__Wmismatched_return_types=yes
20642 else
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"
20656 else
20657 true
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
20668 else
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. */
20676 main ()
20678 return 0;
20680 return 0;
20682 _ACEOF
20683 if ac_fn_c_try_compile "$LINENO"; then :
20684 tor_cv_cflags__Wmissing_field_initializers=yes
20685 else
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. */
20695 main ()
20697 return 0;
20699 return 0;
20701 _ACEOF
20702 if ac_fn_c_try_link "$LINENO"; then :
20703 tor_can_link__Wmissing_field_initializers=yes
20704 else
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"
20718 else
20719 true
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
20730 else
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. */
20738 main ()
20740 return 0;
20742 return 0;
20744 _ACEOF
20745 if ac_fn_c_try_compile "$LINENO"; then :
20746 tor_cv_cflags__Wmissing_format_attribute=yes
20747 else
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. */
20757 main ()
20759 return 0;
20761 return 0;
20763 _ACEOF
20764 if ac_fn_c_try_link "$LINENO"; then :
20765 tor_can_link__Wmissing_format_attribute=yes
20766 else
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"
20780 else
20781 true
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
20792 else
20794 tor_saved_CFLAGS="$CFLAGS"
20795 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-noreturn"
20796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797 /* end confdefs.h. */
20800 main ()
20802 return 0;
20804 return 0;
20806 _ACEOF
20807 if ac_fn_c_try_compile "$LINENO"; then :
20808 tor_cv_cflags__Wmissing_noreturn=yes
20809 else
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. */
20819 main ()
20821 return 0;
20823 return 0;
20825 _ACEOF
20826 if ac_fn_c_try_link "$LINENO"; then :
20827 tor_can_link__Wmissing_noreturn=yes
20828 else
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"
20842 else
20843 true
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
20854 else
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. */
20862 main ()
20864 return 0;
20866 return 0;
20868 _ACEOF
20869 if ac_fn_c_try_compile "$LINENO"; then :
20870 tor_cv_cflags__Wmissing_selector_name=yes
20871 else
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. */
20881 main ()
20883 return 0;
20885 return 0;
20887 _ACEOF
20888 if ac_fn_c_try_link "$LINENO"; then :
20889 tor_can_link__Wmissing_selector_name=yes
20890 else
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"
20904 else
20905 true
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
20916 else
20918 tor_saved_CFLAGS="$CFLAGS"
20919 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-sysroot"
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20924 main ()
20926 return 0;
20928 return 0;
20930 _ACEOF
20931 if ac_fn_c_try_compile "$LINENO"; then :
20932 tor_cv_cflags__Wmissing_sysroot=yes
20933 else
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. */
20943 main ()
20945 return 0;
20947 return 0;
20949 _ACEOF
20950 if ac_fn_c_try_link "$LINENO"; then :
20951 tor_can_link__Wmissing_sysroot=yes
20952 else
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"
20966 else
20967 true
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
20978 else
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. */
20986 main ()
20988 return 0;
20990 return 0;
20992 _ACEOF
20993 if ac_fn_c_try_compile "$LINENO"; then :
20994 tor_cv_cflags__Wmissing_variable_declarations=yes
20995 else
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. */
21005 main ()
21007 return 0;
21009 return 0;
21011 _ACEOF
21012 if ac_fn_c_try_link "$LINENO"; then :
21013 tor_can_link__Wmissing_variable_declarations=yes
21014 else
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"
21028 else
21029 true
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
21040 else
21042 tor_saved_CFLAGS="$CFLAGS"
21043 CFLAGS="$CFLAGS -pedantic -Werror -Wmodule-conflict"
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21048 main ()
21050 return 0;
21052 return 0;
21054 _ACEOF
21055 if ac_fn_c_try_compile "$LINENO"; then :
21056 tor_cv_cflags__Wmodule_conflict=yes
21057 else
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. */
21067 main ()
21069 return 0;
21071 return 0;
21073 _ACEOF
21074 if ac_fn_c_try_link "$LINENO"; then :
21075 tor_can_link__Wmodule_conflict=yes
21076 else
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"
21090 else
21091 true
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
21102 else
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. */
21110 main ()
21112 return 0;
21114 return 0;
21116 _ACEOF
21117 if ac_fn_c_try_compile "$LINENO"; then :
21118 tor_cv_cflags__Wnested_anon_types=yes
21119 else
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. */
21129 main ()
21131 return 0;
21133 return 0;
21135 _ACEOF
21136 if ac_fn_c_try_link "$LINENO"; then :
21137 tor_can_link__Wnested_anon_types=yes
21138 else
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"
21152 else
21153 true
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
21164 else
21166 tor_saved_CFLAGS="$CFLAGS"
21167 CFLAGS="$CFLAGS -pedantic -Werror -Wnewline-eof"
21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h. */
21172 main ()
21174 return 0;
21176 return 0;
21178 _ACEOF
21179 if ac_fn_c_try_compile "$LINENO"; then :
21180 tor_cv_cflags__Wnewline_eof=yes
21181 else
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. */
21191 main ()
21193 return 0;
21195 return 0;
21197 _ACEOF
21198 if ac_fn_c_try_link "$LINENO"; then :
21199 tor_can_link__Wnewline_eof=yes
21200 else
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"
21214 else
21215 true
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
21226 else
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. */
21234 main ()
21236 return 0;
21238 return 0;
21240 _ACEOF
21241 if ac_fn_c_try_compile "$LINENO"; then :
21242 tor_cv_cflags__Wnon_literal_null_conversion=yes
21243 else
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. */
21253 main ()
21255 return 0;
21257 return 0;
21259 _ACEOF
21260 if ac_fn_c_try_link "$LINENO"; then :
21261 tor_can_link__Wnon_literal_null_conversion=yes
21262 else
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"
21276 else
21277 true
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
21288 else
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. */
21296 main ()
21298 return 0;
21300 return 0;
21302 _ACEOF
21303 if ac_fn_c_try_compile "$LINENO"; then :
21304 tor_cv_cflags__Wnon_pod_varargs=yes
21305 else
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. */
21315 main ()
21317 return 0;
21319 return 0;
21321 _ACEOF
21322 if ac_fn_c_try_link "$LINENO"; then :
21323 tor_can_link__Wnon_pod_varargs=yes
21324 else
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"
21338 else
21339 true
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
21350 else
21352 tor_saved_CFLAGS="$CFLAGS"
21353 CFLAGS="$CFLAGS -pedantic -Werror -Wnonportable-cfstrings"
21354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355 /* end confdefs.h. */
21358 main ()
21360 return 0;
21362 return 0;
21364 _ACEOF
21365 if ac_fn_c_try_compile "$LINENO"; then :
21366 tor_cv_cflags__Wnonportable_cfstrings=yes
21367 else
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. */
21377 main ()
21379 return 0;
21381 return 0;
21383 _ACEOF
21384 if ac_fn_c_try_link "$LINENO"; then :
21385 tor_can_link__Wnonportable_cfstrings=yes
21386 else
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"
21400 else
21401 true
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
21412 else
21414 tor_saved_CFLAGS="$CFLAGS"
21415 CFLAGS="$CFLAGS -pedantic -Werror -Wnormalized=id"
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21420 main ()
21422 return 0;
21424 return 0;
21426 _ACEOF
21427 if ac_fn_c_try_compile "$LINENO"; then :
21428 tor_cv_cflags__Wnormalized_id=yes
21429 else
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. */
21439 main ()
21441 return 0;
21443 return 0;
21445 _ACEOF
21446 if ac_fn_c_try_link "$LINENO"; then :
21447 tor_can_link__Wnormalized_id=yes
21448 else
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"
21462 else
21463 true
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
21474 else
21476 tor_saved_CFLAGS="$CFLAGS"
21477 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-arithmetic"
21478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21482 main ()
21484 return 0;
21486 return 0;
21488 _ACEOF
21489 if ac_fn_c_try_compile "$LINENO"; then :
21490 tor_cv_cflags__Wnull_arithmetic=yes
21491 else
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. */
21501 main ()
21503 return 0;
21505 return 0;
21507 _ACEOF
21508 if ac_fn_c_try_link "$LINENO"; then :
21509 tor_can_link__Wnull_arithmetic=yes
21510 else
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"
21524 else
21525 true
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
21536 else
21538 tor_saved_CFLAGS="$CFLAGS"
21539 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-character"
21540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541 /* end confdefs.h. */
21544 main ()
21546 return 0;
21548 return 0;
21550 _ACEOF
21551 if ac_fn_c_try_compile "$LINENO"; then :
21552 tor_cv_cflags__Wnull_character=yes
21553 else
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. */
21563 main ()
21565 return 0;
21567 return 0;
21569 _ACEOF
21570 if ac_fn_c_try_link "$LINENO"; then :
21571 tor_can_link__Wnull_character=yes
21572 else
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"
21586 else
21587 true
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
21598 else
21600 tor_saved_CFLAGS="$CFLAGS"
21601 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-conversion"
21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h. */
21606 main ()
21608 return 0;
21610 return 0;
21612 _ACEOF
21613 if ac_fn_c_try_compile "$LINENO"; then :
21614 tor_cv_cflags__Wnull_conversion=yes
21615 else
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. */
21625 main ()
21627 return 0;
21629 return 0;
21631 _ACEOF
21632 if ac_fn_c_try_link "$LINENO"; then :
21633 tor_can_link__Wnull_conversion=yes
21634 else
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"
21648 else
21649 true
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
21660 else
21662 tor_saved_CFLAGS="$CFLAGS"
21663 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-dereference"
21664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21665 /* end confdefs.h. */
21668 main ()
21670 return 0;
21672 return 0;
21674 _ACEOF
21675 if ac_fn_c_try_compile "$LINENO"; then :
21676 tor_cv_cflags__Wnull_dereference=yes
21677 else
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. */
21687 main ()
21689 return 0;
21691 return 0;
21693 _ACEOF
21694 if ac_fn_c_try_link "$LINENO"; then :
21695 tor_can_link__Wnull_dereference=yes
21696 else
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"
21710 else
21711 true
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
21722 else
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. */
21730 main ()
21732 return 0;
21734 return 0;
21736 _ACEOF
21737 if ac_fn_c_try_compile "$LINENO"; then :
21738 tor_cv_cflags__Wout_of_line_declaration=yes
21739 else
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. */
21749 main ()
21751 return 0;
21753 return 0;
21755 _ACEOF
21756 if ac_fn_c_try_link "$LINENO"; then :
21757 tor_can_link__Wout_of_line_declaration=yes
21758 else
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"
21772 else
21773 true
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
21784 else
21786 tor_saved_CFLAGS="$CFLAGS"
21787 CFLAGS="$CFLAGS -pedantic -Werror -Wover-aligned"
21788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21789 /* end confdefs.h. */
21792 main ()
21794 return 0;
21796 return 0;
21798 _ACEOF
21799 if ac_fn_c_try_compile "$LINENO"; then :
21800 tor_cv_cflags__Wover_aligned=yes
21801 else
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. */
21811 main ()
21813 return 0;
21815 return 0;
21817 _ACEOF
21818 if ac_fn_c_try_link "$LINENO"; then :
21819 tor_can_link__Wover_aligned=yes
21820 else
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"
21834 else
21835 true
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
21846 else
21848 tor_saved_CFLAGS="$CFLAGS"
21849 CFLAGS="$CFLAGS -pedantic -Werror -Woverlength-strings"
21850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21851 /* end confdefs.h. */
21854 main ()
21856 return 0;
21858 return 0;
21860 _ACEOF
21861 if ac_fn_c_try_compile "$LINENO"; then :
21862 tor_cv_cflags__Woverlength_strings=yes
21863 else
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. */
21873 main ()
21875 return 0;
21877 return 0;
21879 _ACEOF
21880 if ac_fn_c_try_link "$LINENO"; then :
21881 tor_can_link__Woverlength_strings=yes
21882 else
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"
21896 else
21897 true
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
21908 else
21910 tor_saved_CFLAGS="$CFLAGS"
21911 CFLAGS="$CFLAGS -pedantic -Werror -Woverride-init"
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21916 main ()
21918 return 0;
21920 return 0;
21922 _ACEOF
21923 if ac_fn_c_try_compile "$LINENO"; then :
21924 tor_cv_cflags__Woverride_init=yes
21925 else
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. */
21935 main ()
21937 return 0;
21939 return 0;
21941 _ACEOF
21942 if ac_fn_c_try_link "$LINENO"; then :
21943 tor_can_link__Woverride_init=yes
21944 else
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"
21958 else
21959 true
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
21970 else
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. */
21978 main ()
21980 return 0;
21982 return 0;
21984 _ACEOF
21985 if ac_fn_c_try_compile "$LINENO"; then :
21986 tor_cv_cflags__Woverriding_method_mismatch=yes
21987 else
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. */
21997 main ()
21999 return 0;
22001 return 0;
22003 _ACEOF
22004 if ac_fn_c_try_link "$LINENO"; then :
22005 tor_can_link__Woverriding_method_mismatch=yes
22006 else
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"
22020 else
22021 true
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
22032 else
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. */
22040 main ()
22042 return 0;
22044 return 0;
22046 _ACEOF
22047 if ac_fn_c_try_compile "$LINENO"; then :
22048 tor_cv_cflags__Wpointer_type_mismatch=yes
22049 else
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. */
22059 main ()
22061 return 0;
22063 return 0;
22065 _ACEOF
22066 if ac_fn_c_try_link "$LINENO"; then :
22067 tor_can_link__Wpointer_type_mismatch=yes
22068 else
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"
22082 else
22083 true
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
22094 else
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. */
22102 main ()
22104 return 0;
22106 return 0;
22108 _ACEOF
22109 if ac_fn_c_try_compile "$LINENO"; then :
22110 tor_cv_cflags__Wpredefined_identifier_outside_function=yes
22111 else
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. */
22121 main ()
22123 return 0;
22125 return 0;
22127 _ACEOF
22128 if ac_fn_c_try_link "$LINENO"; then :
22129 tor_can_link__Wpredefined_identifier_outside_function=yes
22130 else
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"
22144 else
22145 true
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
22156 else
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. */
22164 main ()
22166 return 0;
22168 return 0;
22170 _ACEOF
22171 if ac_fn_c_try_compile "$LINENO"; then :
22172 tor_cv_cflags__Wprotocol_property_synthesis_ambiguity=yes
22173 else
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. */
22183 main ()
22185 return 0;
22187 return 0;
22189 _ACEOF
22190 if ac_fn_c_try_link "$LINENO"; then :
22191 tor_can_link__Wprotocol_property_synthesis_ambiguity=yes
22192 else
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"
22206 else
22207 true
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
22218 else
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. */
22226 main ()
22228 return 0;
22230 return 0;
22232 _ACEOF
22233 if ac_fn_c_try_compile "$LINENO"; then :
22234 tor_cv_cflags__Wreadonly_iboutlet_property=yes
22235 else
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. */
22245 main ()
22247 return 0;
22249 return 0;
22251 _ACEOF
22252 if ac_fn_c_try_link "$LINENO"; then :
22253 tor_can_link__Wreadonly_iboutlet_property=yes
22254 else
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"
22268 else
22269 true
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
22280 else
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. */
22288 main ()
22290 return 0;
22292 return 0;
22294 _ACEOF
22295 if ac_fn_c_try_compile "$LINENO"; then :
22296 tor_cv_cflags__Wreadonly_setter_attrs=yes
22297 else
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. */
22307 main ()
22309 return 0;
22311 return 0;
22313 _ACEOF
22314 if ac_fn_c_try_link "$LINENO"; then :
22315 tor_can_link__Wreadonly_setter_attrs=yes
22316 else
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"
22330 else
22331 true
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
22342 else
22344 tor_saved_CFLAGS="$CFLAGS"
22345 CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-expr"
22346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22347 /* end confdefs.h. */
22350 main ()
22352 return 0;
22354 return 0;
22356 _ACEOF
22357 if ac_fn_c_try_compile "$LINENO"; then :
22358 tor_cv_cflags__Wreceiver_expr=yes
22359 else
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. */
22369 main ()
22371 return 0;
22373 return 0;
22375 _ACEOF
22376 if ac_fn_c_try_link "$LINENO"; then :
22377 tor_can_link__Wreceiver_expr=yes
22378 else
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"
22392 else
22393 true
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
22404 else
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. */
22412 main ()
22414 return 0;
22416 return 0;
22418 _ACEOF
22419 if ac_fn_c_try_compile "$LINENO"; then :
22420 tor_cv_cflags__Wreceiver_forward_class=yes
22421 else
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. */
22431 main ()
22433 return 0;
22435 return 0;
22437 _ACEOF
22438 if ac_fn_c_try_link "$LINENO"; then :
22439 tor_can_link__Wreceiver_forward_class=yes
22440 else
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"
22454 else
22455 true
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
22466 else
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. */
22474 main ()
22476 return 0;
22478 return 0;
22480 _ACEOF
22481 if ac_fn_c_try_compile "$LINENO"; then :
22482 tor_cv_cflags__Wreceiver_is_weak=yes
22483 else
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. */
22493 main ()
22495 return 0;
22497 return 0;
22499 _ACEOF
22500 if ac_fn_c_try_link "$LINENO"; then :
22501 tor_can_link__Wreceiver_is_weak=yes
22502 else
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"
22516 else
22517 true
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
22528 else
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. */
22536 main ()
22538 return 0;
22540 return 0;
22542 _ACEOF
22543 if ac_fn_c_try_compile "$LINENO"; then :
22544 tor_cv_cflags__Wreinterpret_base_class=yes
22545 else
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. */
22555 main ()
22557 return 0;
22559 return 0;
22561 _ACEOF
22562 if ac_fn_c_try_link "$LINENO"; then :
22563 tor_can_link__Wreinterpret_base_class=yes
22564 else
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"
22578 else
22579 true
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
22590 else
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. */
22598 main ()
22600 return 0;
22602 return 0;
22604 _ACEOF
22605 if ac_fn_c_try_compile "$LINENO"; then :
22606 tor_cv_cflags__Wrequires_super_attribute=yes
22607 else
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. */
22617 main ()
22619 return 0;
22621 return 0;
22623 _ACEOF
22624 if ac_fn_c_try_link "$LINENO"; then :
22625 tor_can_link__Wrequires_super_attribute=yes
22626 else
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"
22640 else
22641 true
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
22652 else
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. */
22660 main ()
22662 return 0;
22664 return 0;
22666 _ACEOF
22667 if ac_fn_c_try_compile "$LINENO"; then :
22668 tor_cv_cflags__Wreserved_user_defined_literal=yes
22669 else
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. */
22679 main ()
22681 return 0;
22683 return 0;
22685 _ACEOF
22686 if ac_fn_c_try_link "$LINENO"; then :
22687 tor_can_link__Wreserved_user_defined_literal=yes
22688 else
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"
22702 else
22703 true
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
22714 else
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. */
22722 main ()
22724 return 0;
22726 return 0;
22728 _ACEOF
22729 if ac_fn_c_try_compile "$LINENO"; then :
22730 tor_cv_cflags__Wreturn_stack_address=yes
22731 else
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. */
22741 main ()
22743 return 0;
22745 return 0;
22747 _ACEOF
22748 if ac_fn_c_try_link "$LINENO"; then :
22749 tor_can_link__Wreturn_stack_address=yes
22750 else
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"
22764 else
22765 true
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
22776 else
22778 tor_saved_CFLAGS="$CFLAGS"
22779 CFLAGS="$CFLAGS -pedantic -Werror -Wsection"
22780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22781 /* end confdefs.h. */
22784 main ()
22786 return 0;
22788 return 0;
22790 _ACEOF
22791 if ac_fn_c_try_compile "$LINENO"; then :
22792 tor_cv_cflags__Wsection=yes
22793 else
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. */
22803 main ()
22805 return 0;
22807 return 0;
22809 _ACEOF
22810 if ac_fn_c_try_link "$LINENO"; then :
22811 tor_can_link__Wsection=yes
22812 else
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"
22826 else
22827 true
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
22838 else
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. */
22846 main ()
22848 return 0;
22850 return 0;
22852 _ACEOF
22853 if ac_fn_c_try_compile "$LINENO"; then :
22854 tor_cv_cflags__Wselector_type_mismatch=yes
22855 else
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. */
22865 main ()
22867 return 0;
22869 return 0;
22871 _ACEOF
22872 if ac_fn_c_try_link "$LINENO"; then :
22873 tor_can_link__Wselector_type_mismatch=yes
22874 else
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"
22888 else
22889 true
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
22900 else
22902 tor_saved_CFLAGS="$CFLAGS"
22903 CFLAGS="$CFLAGS -pedantic -Werror -Wsentinel"
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h. */
22908 main ()
22910 return 0;
22912 return 0;
22914 _ACEOF
22915 if ac_fn_c_try_compile "$LINENO"; then :
22916 tor_cv_cflags__Wsentinel=yes
22917 else
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. */
22927 main ()
22929 return 0;
22931 return 0;
22933 _ACEOF
22934 if ac_fn_c_try_link "$LINENO"; then :
22935 tor_can_link__Wsentinel=yes
22936 else
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"
22950 else
22951 true
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
22962 else
22964 tor_saved_CFLAGS="$CFLAGS"
22965 CFLAGS="$CFLAGS -pedantic -Werror -Wserialized-diagnostics"
22966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22967 /* end confdefs.h. */
22970 main ()
22972 return 0;
22974 return 0;
22976 _ACEOF
22977 if ac_fn_c_try_compile "$LINENO"; then :
22978 tor_cv_cflags__Wserialized_diagnostics=yes
22979 else
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. */
22989 main ()
22991 return 0;
22993 return 0;
22995 _ACEOF
22996 if ac_fn_c_try_link "$LINENO"; then :
22997 tor_can_link__Wserialized_diagnostics=yes
22998 else
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"
23012 else
23013 true
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
23024 else
23026 tor_saved_CFLAGS="$CFLAGS"
23027 CFLAGS="$CFLAGS -pedantic -Werror -Wshadow"
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23032 main ()
23034 return 0;
23036 return 0;
23038 _ACEOF
23039 if ac_fn_c_try_compile "$LINENO"; then :
23040 tor_cv_cflags__Wshadow=yes
23041 else
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. */
23051 main ()
23053 return 0;
23055 return 0;
23057 _ACEOF
23058 if ac_fn_c_try_link "$LINENO"; then :
23059 tor_can_link__Wshadow=yes
23060 else
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"
23074 else
23075 true
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
23086 else
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. */
23094 main ()
23096 return 0;
23098 return 0;
23100 _ACEOF
23101 if ac_fn_c_try_compile "$LINENO"; then :
23102 tor_cv_cflags__Wshift_count_negative=yes
23103 else
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. */
23113 main ()
23115 return 0;
23117 return 0;
23119 _ACEOF
23120 if ac_fn_c_try_link "$LINENO"; then :
23121 tor_can_link__Wshift_count_negative=yes
23122 else
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"
23136 else
23137 true
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
23148 else
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. */
23156 main ()
23158 return 0;
23160 return 0;
23162 _ACEOF
23163 if ac_fn_c_try_compile "$LINENO"; then :
23164 tor_cv_cflags__Wshift_count_overflow=yes
23165 else
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. */
23175 main ()
23177 return 0;
23179 return 0;
23181 _ACEOF
23182 if ac_fn_c_try_link "$LINENO"; then :
23183 tor_can_link__Wshift_count_overflow=yes
23184 else
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"
23198 else
23199 true
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
23210 else
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. */
23218 main ()
23220 return 0;
23222 return 0;
23224 _ACEOF
23225 if ac_fn_c_try_compile "$LINENO"; then :
23226 tor_cv_cflags__Wshift_negative_value=yes
23227 else
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. */
23237 main ()
23239 return 0;
23241 return 0;
23243 _ACEOF
23244 if ac_fn_c_try_link "$LINENO"; then :
23245 tor_can_link__Wshift_negative_value=yes
23246 else
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"
23260 else
23261 true
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
23272 else
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. */
23280 main ()
23282 return 0;
23284 return 0;
23286 _ACEOF
23287 if ac_fn_c_try_compile "$LINENO"; then :
23288 tor_cv_cflags__Wshift_overflow_2=yes
23289 else
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. */
23299 main ()
23301 return 0;
23303 return 0;
23305 _ACEOF
23306 if ac_fn_c_try_link "$LINENO"; then :
23307 tor_can_link__Wshift_overflow_2=yes
23308 else
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"
23322 else
23323 true
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
23334 else
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. */
23342 main ()
23344 return 0;
23346 return 0;
23348 _ACEOF
23349 if ac_fn_c_try_compile "$LINENO"; then :
23350 tor_cv_cflags__Wshift_sign_overflow=yes
23351 else
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. */
23361 main ()
23363 return 0;
23365 return 0;
23367 _ACEOF
23368 if ac_fn_c_try_link "$LINENO"; then :
23369 tor_can_link__Wshift_sign_overflow=yes
23370 else
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"
23384 else
23385 true
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
23396 else
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. */
23404 main ()
23406 return 0;
23408 return 0;
23410 _ACEOF
23411 if ac_fn_c_try_compile "$LINENO"; then :
23412 tor_cv_cflags__Wshorten_64_to_32=yes
23413 else
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. */
23423 main ()
23425 return 0;
23427 return 0;
23429 _ACEOF
23430 if ac_fn_c_try_link "$LINENO"; then :
23431 tor_can_link__Wshorten_64_to_32=yes
23432 else
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"
23446 else
23447 true
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
23458 else
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. */
23466 main ()
23468 return 0;
23470 return 0;
23472 _ACEOF
23473 if ac_fn_c_try_compile "$LINENO"; then :
23474 tor_cv_cflags__Wsizeof_array_argument=yes
23475 else
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. */
23485 main ()
23487 return 0;
23489 return 0;
23491 _ACEOF
23492 if ac_fn_c_try_link "$LINENO"; then :
23493 tor_can_link__Wsizeof_array_argument=yes
23494 else
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"
23508 else
23509 true
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
23520 else
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. */
23528 main ()
23530 return 0;
23532 return 0;
23534 _ACEOF
23535 if ac_fn_c_try_compile "$LINENO"; then :
23536 tor_cv_cflags__Wsource_uses_openmp=yes
23537 else
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. */
23547 main ()
23549 return 0;
23551 return 0;
23553 _ACEOF
23554 if ac_fn_c_try_link "$LINENO"; then :
23555 tor_can_link__Wsource_uses_openmp=yes
23556 else
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"
23570 else
23571 true
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
23582 else
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. */
23590 main ()
23592 return 0;
23594 return 0;
23596 _ACEOF
23597 if ac_fn_c_try_compile "$LINENO"; then :
23598 tor_cv_cflags__Wstatic_float_init=yes
23599 else
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. */
23609 main ()
23611 return 0;
23613 return 0;
23615 _ACEOF
23616 if ac_fn_c_try_link "$LINENO"; then :
23617 tor_can_link__Wstatic_float_init=yes
23618 else
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"
23632 else
23633 true
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
23644 else
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. */
23652 main ()
23654 return 0;
23656 return 0;
23658 _ACEOF
23659 if ac_fn_c_try_compile "$LINENO"; then :
23660 tor_cv_cflags__Wstatic_in_inline=yes
23661 else
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. */
23671 main ()
23673 return 0;
23675 return 0;
23677 _ACEOF
23678 if ac_fn_c_try_link "$LINENO"; then :
23679 tor_can_link__Wstatic_in_inline=yes
23680 else
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"
23694 else
23695 true
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
23706 else
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. */
23714 main ()
23716 return 0;
23718 return 0;
23720 _ACEOF
23721 if ac_fn_c_try_compile "$LINENO"; then :
23722 tor_cv_cflags__Wstatic_local_in_inline=yes
23723 else
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. */
23733 main ()
23735 return 0;
23737 return 0;
23739 _ACEOF
23740 if ac_fn_c_try_link "$LINENO"; then :
23741 tor_can_link__Wstatic_local_in_inline=yes
23742 else
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"
23756 else
23757 true
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
23768 else
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. */
23776 main ()
23778 return 0;
23780 return 0;
23782 _ACEOF
23783 if ac_fn_c_try_compile "$LINENO"; then :
23784 tor_cv_cflags__Wstrict_overflow_1=yes
23785 else
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. */
23795 main ()
23797 return 0;
23799 return 0;
23801 _ACEOF
23802 if ac_fn_c_try_link "$LINENO"; then :
23803 tor_can_link__Wstrict_overflow_1=yes
23804 else
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"
23818 else
23819 true
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
23830 else
23832 tor_saved_CFLAGS="$CFLAGS"
23833 CFLAGS="$CFLAGS -pedantic -Werror -Wstring-compare"
23834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23835 /* end confdefs.h. */
23838 main ()
23840 return 0;
23842 return 0;
23844 _ACEOF
23845 if ac_fn_c_try_compile "$LINENO"; then :
23846 tor_cv_cflags__Wstring_compare=yes
23847 else
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. */
23857 main ()
23859 return 0;
23861 return 0;
23863 _ACEOF
23864 if ac_fn_c_try_link "$LINENO"; then :
23865 tor_can_link__Wstring_compare=yes
23866 else
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"
23880 else
23881 true
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
23892 else
23894 tor_saved_CFLAGS="$CFLAGS"
23895 CFLAGS="$CFLAGS -pedantic -Werror -Wstring-conversion"
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23900 main ()
23902 return 0;
23904 return 0;
23906 _ACEOF
23907 if ac_fn_c_try_compile "$LINENO"; then :
23908 tor_cv_cflags__Wstring_conversion=yes
23909 else
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. */
23919 main ()
23921 return 0;
23923 return 0;
23925 _ACEOF
23926 if ac_fn_c_try_link "$LINENO"; then :
23927 tor_can_link__Wstring_conversion=yes
23928 else
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"
23942 else
23943 true
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
23954 else
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. */
23962 main ()
23964 return 0;
23966 return 0;
23968 _ACEOF
23969 if ac_fn_c_try_compile "$LINENO"; then :
23970 tor_cv_cflags__Wstrlcpy_strlcat_size=yes
23971 else
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. */
23981 main ()
23983 return 0;
23985 return 0;
23987 _ACEOF
23988 if ac_fn_c_try_link "$LINENO"; then :
23989 tor_can_link__Wstrlcpy_strlcat_size=yes
23990 else
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"
24004 else
24005 true
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
24016 else
24018 tor_saved_CFLAGS="$CFLAGS"
24019 CFLAGS="$CFLAGS -pedantic -Werror -Wstrncat-size"
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24024 main ()
24026 return 0;
24028 return 0;
24030 _ACEOF
24031 if ac_fn_c_try_compile "$LINENO"; then :
24032 tor_cv_cflags__Wstrncat_size=yes
24033 else
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. */
24043 main ()
24045 return 0;
24047 return 0;
24049 _ACEOF
24050 if ac_fn_c_try_link "$LINENO"; then :
24051 tor_can_link__Wstrncat_size=yes
24052 else
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"
24066 else
24067 true
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
24078 else
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. */
24086 main ()
24088 return 0;
24090 return 0;
24092 _ACEOF
24093 if ac_fn_c_try_compile "$LINENO"; then :
24094 tor_cv_cflags__Wsuggest_attribute_format=yes
24095 else
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. */
24105 main ()
24107 return 0;
24109 return 0;
24111 _ACEOF
24112 if ac_fn_c_try_link "$LINENO"; then :
24113 tor_can_link__Wsuggest_attribute_format=yes
24114 else
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"
24128 else
24129 true
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
24140 else
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. */
24148 main ()
24150 return 0;
24152 return 0;
24154 _ACEOF
24155 if ac_fn_c_try_compile "$LINENO"; then :
24156 tor_cv_cflags__Wsuggest_attribute_noreturn=yes
24157 else
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. */
24167 main ()
24169 return 0;
24171 return 0;
24173 _ACEOF
24174 if ac_fn_c_try_link "$LINENO"; then :
24175 tor_can_link__Wsuggest_attribute_noreturn=yes
24176 else
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"
24190 else
24191 true
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
24202 else
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. */
24210 main ()
24212 return 0;
24214 return 0;
24216 _ACEOF
24217 if ac_fn_c_try_compile "$LINENO"; then :
24218 tor_cv_cflags__Wsuper_class_method_mismatch=yes
24219 else
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. */
24229 main ()
24231 return 0;
24233 return 0;
24235 _ACEOF
24236 if ac_fn_c_try_link "$LINENO"; then :
24237 tor_can_link__Wsuper_class_method_mismatch=yes
24238 else
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"
24252 else
24253 true
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
24264 else
24266 tor_saved_CFLAGS="$CFLAGS"
24267 CFLAGS="$CFLAGS -pedantic -Werror -Wswitch-bool"
24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24272 main ()
24274 return 0;
24276 return 0;
24278 _ACEOF
24279 if ac_fn_c_try_compile "$LINENO"; then :
24280 tor_cv_cflags__Wswitch_bool=yes
24281 else
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. */
24291 main ()
24293 return 0;
24295 return 0;
24297 _ACEOF
24298 if ac_fn_c_try_link "$LINENO"; then :
24299 tor_can_link__Wswitch_bool=yes
24300 else
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"
24314 else
24315 true
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
24326 else
24328 tor_saved_CFLAGS="$CFLAGS"
24329 CFLAGS="$CFLAGS -pedantic -Werror -Wsync-nand"
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24334 main ()
24336 return 0;
24338 return 0;
24340 _ACEOF
24341 if ac_fn_c_try_compile "$LINENO"; then :
24342 tor_cv_cflags__Wsync_nand=yes
24343 else
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. */
24353 main ()
24355 return 0;
24357 return 0;
24359 _ACEOF
24360 if ac_fn_c_try_link "$LINENO"; then :
24361 tor_can_link__Wsync_nand=yes
24362 else
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"
24376 else
24377 true
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
24388 else
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. */
24396 main ()
24398 return 0;
24400 return 0;
24402 _ACEOF
24403 if ac_fn_c_try_compile "$LINENO"; then :
24404 tor_cv_cflags__Wtautological_constant_out_of_range_compare=yes
24405 else
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. */
24415 main ()
24417 return 0;
24419 return 0;
24421 _ACEOF
24422 if ac_fn_c_try_link "$LINENO"; then :
24423 tor_can_link__Wtautological_constant_out_of_range_compare=yes
24424 else
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"
24438 else
24439 true
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
24450 else
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. */
24458 main ()
24460 return 0;
24462 return 0;
24464 _ACEOF
24465 if ac_fn_c_try_compile "$LINENO"; then :
24466 tor_cv_cflags__Wtentative_definition_incomplete_type=yes
24467 else
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. */
24477 main ()
24479 return 0;
24481 return 0;
24483 _ACEOF
24484 if ac_fn_c_try_link "$LINENO"; then :
24485 tor_can_link__Wtentative_definition_incomplete_type=yes
24486 else
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"
24500 else
24501 true
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
24512 else
24514 tor_saved_CFLAGS="$CFLAGS"
24515 CFLAGS="$CFLAGS -pedantic -Werror -Wtrampolines"
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24520 main ()
24522 return 0;
24524 return 0;
24526 _ACEOF
24527 if ac_fn_c_try_compile "$LINENO"; then :
24528 tor_cv_cflags__Wtrampolines=yes
24529 else
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. */
24539 main ()
24541 return 0;
24543 return 0;
24545 _ACEOF
24546 if ac_fn_c_try_link "$LINENO"; then :
24547 tor_can_link__Wtrampolines=yes
24548 else
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"
24562 else
24563 true
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
24574 else
24576 tor_saved_CFLAGS="$CFLAGS"
24577 CFLAGS="$CFLAGS -pedantic -Werror -Wtype-safety"
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24582 main ()
24584 return 0;
24586 return 0;
24588 _ACEOF
24589 if ac_fn_c_try_compile "$LINENO"; then :
24590 tor_cv_cflags__Wtype_safety=yes
24591 else
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. */
24601 main ()
24603 return 0;
24605 return 0;
24607 _ACEOF
24608 if ac_fn_c_try_link "$LINENO"; then :
24609 tor_can_link__Wtype_safety=yes
24610 else
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"
24624 else
24625 true
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
24636 else
24638 tor_saved_CFLAGS="$CFLAGS"
24639 CFLAGS="$CFLAGS -pedantic -Werror -Wtypedef-redefinition"
24640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24641 /* end confdefs.h. */
24644 main ()
24646 return 0;
24648 return 0;
24650 _ACEOF
24651 if ac_fn_c_try_compile "$LINENO"; then :
24652 tor_cv_cflags__Wtypedef_redefinition=yes
24653 else
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. */
24663 main ()
24665 return 0;
24667 return 0;
24669 _ACEOF
24670 if ac_fn_c_try_link "$LINENO"; then :
24671 tor_can_link__Wtypedef_redefinition=yes
24672 else
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"
24686 else
24687 true
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
24698 else
24700 tor_saved_CFLAGS="$CFLAGS"
24701 CFLAGS="$CFLAGS -pedantic -Werror -Wtypename-missing"
24702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24703 /* end confdefs.h. */
24706 main ()
24708 return 0;
24710 return 0;
24712 _ACEOF
24713 if ac_fn_c_try_compile "$LINENO"; then :
24714 tor_cv_cflags__Wtypename_missing=yes
24715 else
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. */
24725 main ()
24727 return 0;
24729 return 0;
24731 _ACEOF
24732 if ac_fn_c_try_link "$LINENO"; then :
24733 tor_can_link__Wtypename_missing=yes
24734 else
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"
24748 else
24749 true
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
24760 else
24762 tor_saved_CFLAGS="$CFLAGS"
24763 CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-inline"
24764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h. */
24768 main ()
24770 return 0;
24772 return 0;
24774 _ACEOF
24775 if ac_fn_c_try_compile "$LINENO"; then :
24776 tor_cv_cflags__Wundefined_inline=yes
24777 else
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. */
24787 main ()
24789 return 0;
24791 return 0;
24793 _ACEOF
24794 if ac_fn_c_try_link "$LINENO"; then :
24795 tor_can_link__Wundefined_inline=yes
24796 else
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"
24810 else
24811 true
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
24822 else
24824 tor_saved_CFLAGS="$CFLAGS"
24825 CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-internal"
24826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24827 /* end confdefs.h. */
24830 main ()
24832 return 0;
24834 return 0;
24836 _ACEOF
24837 if ac_fn_c_try_compile "$LINENO"; then :
24838 tor_cv_cflags__Wundefined_internal=yes
24839 else
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. */
24849 main ()
24851 return 0;
24853 return 0;
24855 _ACEOF
24856 if ac_fn_c_try_link "$LINENO"; then :
24857 tor_can_link__Wundefined_internal=yes
24858 else
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"
24872 else
24873 true
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
24884 else
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. */
24892 main ()
24894 return 0;
24896 return 0;
24898 _ACEOF
24899 if ac_fn_c_try_compile "$LINENO"; then :
24900 tor_cv_cflags__Wundefined_reinterpret_cast=yes
24901 else
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. */
24911 main ()
24913 return 0;
24915 return 0;
24917 _ACEOF
24918 if ac_fn_c_try_link "$LINENO"; then :
24919 tor_can_link__Wundefined_reinterpret_cast=yes
24920 else
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"
24934 else
24935 true
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
24946 else
24948 tor_saved_CFLAGS="$CFLAGS"
24949 CFLAGS="$CFLAGS -pedantic -Werror -Wunicode"
24950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24951 /* end confdefs.h. */
24954 main ()
24956 return 0;
24958 return 0;
24960 _ACEOF
24961 if ac_fn_c_try_compile "$LINENO"; then :
24962 tor_cv_cflags__Wunicode=yes
24963 else
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. */
24973 main ()
24975 return 0;
24977 return 0;
24979 _ACEOF
24980 if ac_fn_c_try_link "$LINENO"; then :
24981 tor_can_link__Wunicode=yes
24982 else
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"
24996 else
24997 true
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
25008 else
25010 tor_saved_CFLAGS="$CFLAGS"
25011 CFLAGS="$CFLAGS -pedantic -Werror -Wunicode-whitespace"
25012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h. */
25016 main ()
25018 return 0;
25020 return 0;
25022 _ACEOF
25023 if ac_fn_c_try_compile "$LINENO"; then :
25024 tor_cv_cflags__Wunicode_whitespace=yes
25025 else
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. */
25035 main ()
25037 return 0;
25039 return 0;
25041 _ACEOF
25042 if ac_fn_c_try_link "$LINENO"; then :
25043 tor_can_link__Wunicode_whitespace=yes
25044 else
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"
25058 else
25059 true
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
25070 else
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. */
25078 main ()
25080 return 0;
25082 return 0;
25084 _ACEOF
25085 if ac_fn_c_try_compile "$LINENO"; then :
25086 tor_cv_cflags__Wunknown_warning_option=yes
25087 else
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. */
25097 main ()
25099 return 0;
25101 return 0;
25103 _ACEOF
25104 if ac_fn_c_try_link "$LINENO"; then :
25105 tor_can_link__Wunknown_warning_option=yes
25106 else
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"
25120 else
25121 true
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
25132 else
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. */
25140 main ()
25142 return 0;
25144 return 0;
25146 _ACEOF
25147 if ac_fn_c_try_compile "$LINENO"; then :
25148 tor_cv_cflags__Wunnamed_type_template_args=yes
25149 else
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. */
25159 main ()
25161 return 0;
25163 return 0;
25165 _ACEOF
25166 if ac_fn_c_try_link "$LINENO"; then :
25167 tor_can_link__Wunnamed_type_template_args=yes
25168 else
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"
25182 else
25183 true
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
25194 else
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. */
25202 main ()
25204 return 0;
25206 return 0;
25208 _ACEOF
25209 if ac_fn_c_try_compile "$LINENO"; then :
25210 tor_cv_cflags__Wunneeded_member_function=yes
25211 else
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. */
25221 main ()
25223 return 0;
25225 return 0;
25227 _ACEOF
25228 if ac_fn_c_try_link "$LINENO"; then :
25229 tor_can_link__Wunneeded_member_function=yes
25230 else
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"
25244 else
25245 true
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
25256 else
25258 tor_saved_CFLAGS="$CFLAGS"
25259 CFLAGS="$CFLAGS -pedantic -Werror -Wunsequenced"
25260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h. */
25264 main ()
25266 return 0;
25268 return 0;
25270 _ACEOF
25271 if ac_fn_c_try_compile "$LINENO"; then :
25272 tor_cv_cflags__Wunsequenced=yes
25273 else
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. */
25283 main ()
25285 return 0;
25287 return 0;
25289 _ACEOF
25290 if ac_fn_c_try_link "$LINENO"; then :
25291 tor_can_link__Wunsequenced=yes
25292 else
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"
25306 else
25307 true
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
25318 else
25320 tor_saved_CFLAGS="$CFLAGS"
25321 CFLAGS="$CFLAGS -pedantic -Werror -Wunsupported-visibility"
25322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25323 /* end confdefs.h. */
25326 main ()
25328 return 0;
25330 return 0;
25332 _ACEOF
25333 if ac_fn_c_try_compile "$LINENO"; then :
25334 tor_cv_cflags__Wunsupported_visibility=yes
25335 else
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. */
25345 main ()
25347 return 0;
25349 return 0;
25351 _ACEOF
25352 if ac_fn_c_try_link "$LINENO"; then :
25353 tor_can_link__Wunsupported_visibility=yes
25354 else
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"
25368 else
25369 true
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
25380 else
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. */
25388 main ()
25390 return 0;
25392 return 0;
25394 _ACEOF
25395 if ac_fn_c_try_compile "$LINENO"; then :
25396 tor_cv_cflags__Wunused_but_set_parameter=yes
25397 else
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. */
25407 main ()
25409 return 0;
25411 return 0;
25413 _ACEOF
25414 if ac_fn_c_try_link "$LINENO"; then :
25415 tor_can_link__Wunused_but_set_parameter=yes
25416 else
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"
25430 else
25431 true
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
25442 else
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. */
25450 main ()
25452 return 0;
25454 return 0;
25456 _ACEOF
25457 if ac_fn_c_try_compile "$LINENO"; then :
25458 tor_cv_cflags__Wunused_but_set_variable=yes
25459 else
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. */
25469 main ()
25471 return 0;
25473 return 0;
25475 _ACEOF
25476 if ac_fn_c_try_link "$LINENO"; then :
25477 tor_can_link__Wunused_but_set_variable=yes
25478 else
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"
25492 else
25493 true
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
25504 else
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. */
25512 main ()
25514 return 0;
25516 return 0;
25518 _ACEOF
25519 if ac_fn_c_try_compile "$LINENO"; then :
25520 tor_cv_cflags__Wunused_command_line_argument=yes
25521 else
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. */
25531 main ()
25533 return 0;
25535 return 0;
25537 _ACEOF
25538 if ac_fn_c_try_link "$LINENO"; then :
25539 tor_can_link__Wunused_command_line_argument=yes
25540 else
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"
25554 else
25555 true
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
25566 else
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. */
25574 main ()
25576 return 0;
25578 return 0;
25580 _ACEOF
25581 if ac_fn_c_try_compile "$LINENO"; then :
25582 tor_cv_cflags__Wunused_const_variable_2=yes
25583 else
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. */
25593 main ()
25595 return 0;
25597 return 0;
25599 _ACEOF
25600 if ac_fn_c_try_link "$LINENO"; then :
25601 tor_can_link__Wunused_const_variable_2=yes
25602 else
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"
25616 else
25617 true
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
25628 else
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. */
25636 main ()
25638 return 0;
25640 return 0;
25642 _ACEOF
25643 if ac_fn_c_try_compile "$LINENO"; then :
25644 tor_cv_cflags__Wunused_exception_parameter=yes
25645 else
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. */
25655 main ()
25657 return 0;
25659 return 0;
25661 _ACEOF
25662 if ac_fn_c_try_link "$LINENO"; then :
25663 tor_can_link__Wunused_exception_parameter=yes
25664 else
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"
25678 else
25679 true
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
25690 else
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. */
25698 main ()
25700 return 0;
25702 return 0;
25704 _ACEOF
25705 if ac_fn_c_try_compile "$LINENO"; then :
25706 tor_cv_cflags__Wunused_local_typedefs=yes
25707 else
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. */
25717 main ()
25719 return 0;
25721 return 0;
25723 _ACEOF
25724 if ac_fn_c_try_link "$LINENO"; then :
25725 tor_can_link__Wunused_local_typedefs=yes
25726 else
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"
25740 else
25741 true
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
25752 else
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. */
25760 main ()
25762 return 0;
25764 return 0;
25766 _ACEOF
25767 if ac_fn_c_try_compile "$LINENO"; then :
25768 tor_cv_cflags__Wunused_member_function=yes
25769 else
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. */
25779 main ()
25781 return 0;
25783 return 0;
25785 _ACEOF
25786 if ac_fn_c_try_link "$LINENO"; then :
25787 tor_can_link__Wunused_member_function=yes
25788 else
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"
25802 else
25803 true
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
25814 else
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. */
25822 main ()
25824 return 0;
25826 return 0;
25828 _ACEOF
25829 if ac_fn_c_try_compile "$LINENO"; then :
25830 tor_cv_cflags__Wunused_sanitize_argument=yes
25831 else
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. */
25841 main ()
25843 return 0;
25845 return 0;
25847 _ACEOF
25848 if ac_fn_c_try_link "$LINENO"; then :
25849 tor_can_link__Wunused_sanitize_argument=yes
25850 else
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"
25864 else
25865 true
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
25876 else
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. */
25884 main ()
25886 return 0;
25888 return 0;
25890 _ACEOF
25891 if ac_fn_c_try_compile "$LINENO"; then :
25892 tor_cv_cflags__Wunused_volatile_lvalue=yes
25893 else
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. */
25903 main ()
25905 return 0;
25907 return 0;
25909 _ACEOF
25910 if ac_fn_c_try_link "$LINENO"; then :
25911 tor_can_link__Wunused_volatile_lvalue=yes
25912 else
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"
25926 else
25927 true
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
25938 else
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. */
25946 main ()
25948 return 0;
25950 return 0;
25952 _ACEOF
25953 if ac_fn_c_try_compile "$LINENO"; then :
25954 tor_cv_cflags__Wuser_defined_literals=yes
25955 else
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. */
25965 main ()
25967 return 0;
25969 return 0;
25971 _ACEOF
25972 if ac_fn_c_try_link "$LINENO"; then :
25973 tor_can_link__Wuser_defined_literals=yes
25974 else
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"
25988 else
25989 true
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
26000 else
26002 tor_saved_CFLAGS="$CFLAGS"
26003 CFLAGS="$CFLAGS -pedantic -Werror -Wvariadic-macros"
26004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h. */
26008 main ()
26010 return 0;
26012 return 0;
26014 _ACEOF
26015 if ac_fn_c_try_compile "$LINENO"; then :
26016 tor_cv_cflags__Wvariadic_macros=yes
26017 else
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. */
26027 main ()
26029 return 0;
26031 return 0;
26033 _ACEOF
26034 if ac_fn_c_try_link "$LINENO"; then :
26035 tor_can_link__Wvariadic_macros=yes
26036 else
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"
26050 else
26051 true
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
26062 else
26064 tor_saved_CFLAGS="$CFLAGS"
26065 CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversion"
26066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26067 /* end confdefs.h. */
26070 main ()
26072 return 0;
26074 return 0;
26076 _ACEOF
26077 if ac_fn_c_try_compile "$LINENO"; then :
26078 tor_cv_cflags__Wvector_conversion=yes
26079 else
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. */
26089 main ()
26091 return 0;
26093 return 0;
26095 _ACEOF
26096 if ac_fn_c_try_link "$LINENO"; then :
26097 tor_can_link__Wvector_conversion=yes
26098 else
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"
26112 else
26113 true
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
26124 else
26126 tor_saved_CFLAGS="$CFLAGS"
26127 CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversions"
26128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h. */
26132 main ()
26134 return 0;
26136 return 0;
26138 _ACEOF
26139 if ac_fn_c_try_compile "$LINENO"; then :
26140 tor_cv_cflags__Wvector_conversions=yes
26141 else
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. */
26151 main ()
26153 return 0;
26155 return 0;
26157 _ACEOF
26158 if ac_fn_c_try_link "$LINENO"; then :
26159 tor_can_link__Wvector_conversions=yes
26160 else
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"
26174 else
26175 true
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
26186 else
26188 tor_saved_CFLAGS="$CFLAGS"
26189 CFLAGS="$CFLAGS -pedantic -Werror -Wvexing-parse"
26190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26191 /* end confdefs.h. */
26194 main ()
26196 return 0;
26198 return 0;
26200 _ACEOF
26201 if ac_fn_c_try_compile "$LINENO"; then :
26202 tor_cv_cflags__Wvexing_parse=yes
26203 else
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. */
26213 main ()
26215 return 0;
26217 return 0;
26219 _ACEOF
26220 if ac_fn_c_try_link "$LINENO"; then :
26221 tor_can_link__Wvexing_parse=yes
26222 else
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"
26236 else
26237 true
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
26248 else
26250 tor_saved_CFLAGS="$CFLAGS"
26251 CFLAGS="$CFLAGS -pedantic -Werror -Wvisibility"
26252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26256 main ()
26258 return 0;
26260 return 0;
26262 _ACEOF
26263 if ac_fn_c_try_compile "$LINENO"; then :
26264 tor_cv_cflags__Wvisibility=yes
26265 else
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. */
26275 main ()
26277 return 0;
26279 return 0;
26281 _ACEOF
26282 if ac_fn_c_try_link "$LINENO"; then :
26283 tor_can_link__Wvisibility=yes
26284 else
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"
26298 else
26299 true
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
26310 else
26312 tor_saved_CFLAGS="$CFLAGS"
26313 CFLAGS="$CFLAGS -pedantic -Werror -Wvla-extension"
26314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h. */
26318 main ()
26320 return 0;
26322 return 0;
26324 _ACEOF
26325 if ac_fn_c_try_compile "$LINENO"; then :
26326 tor_cv_cflags__Wvla_extension=yes
26327 else
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. */
26337 main ()
26339 return 0;
26341 return 0;
26343 _ACEOF
26344 if ac_fn_c_try_link "$LINENO"; then :
26345 tor_can_link__Wvla_extension=yes
26346 else
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"
26360 else
26361 true
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
26372 else
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. */
26380 main ()
26382 return 0;
26384 return 0;
26386 _ACEOF
26387 if ac_fn_c_try_compile "$LINENO"; then :
26388 tor_cv_cflags__Wzero_length_array=yes
26389 else
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. */
26399 main ()
26401 return 0;
26403 return 0;
26405 _ACEOF
26406 if ac_fn_c_try_link "$LINENO"; then :
26407 tor_can_link__Wzero_length_array=yes
26408 else
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"
26422 else
26423 true
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
26462 case "$host_os" in
26463 darwin*)
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;}
26466 esac
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 "==================================";
26479 echo;
26480 echo "Building Tor has failed since manpages cannot be built.";
26481 echo;
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.";
26485 echo;
26486 echo "==================================";
26487 exit 1;
26489 done
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.
26506 _ACEOF
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
26516 case $ac_val in #(
26517 *${as_nl}*)
26518 case $ac_var in #(
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;} ;;
26521 esac
26522 case $ac_var in #(
26523 _ | IFS | as_nl) ;; #(
26524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26525 *) { eval $ac_var=; unset $ac_var;} ;;
26526 esac ;;
26527 esac
26528 done
26530 (set) 2>&1 |
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 \.
26535 sed -n \
26536 "s/'/'\\\\''/g;
26537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26538 ;; #(
26540 # `set' quotes correctly as required by POSIX, so do not add quotes.
26541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26543 esac |
26544 sort
26546 sed '
26547 /^ac_cv_env_/b end
26548 t clear
26549 :clear
26550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26551 t end
26552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26553 :end' >>confcache
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"
26561 else
26562 case $cache_file in #(
26563 */* | ?:*)
26564 mv -f confcache "$cache_file"$$ &&
26565 mv -f "$cache_file"$$ "$cache_file" ;; #(
26567 mv -f confcache "$cache_file" ;;
26568 esac
26571 else
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;}
26576 rm -f confcache
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
26584 ac_libobjs=
26585 ac_ltlibobjs=
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'
26595 done
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
26610 am__EXEEXT_TRUE=
26611 am__EXEEXT_FALSE='#'
26612 else
26613 am__EXEEXT_TRUE='#'
26614 am__EXEEXT_FALSE=
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}"
26696 ac_write_fail=0
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;}
26701 as_write_fail=0
26702 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26703 #! $SHELL
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.
26709 debug=false
26710 ac_cs_recheck=false
26711 ac_cs_silent=false
26713 SHELL=\${CONFIG_SHELL-$SHELL}
26714 export SHELL
26715 _ASEOF
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 :
26724 emulate sh
26725 NULLCMD=:
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
26730 else
26731 case `(set -o) 2>/dev/null` in #(
26732 *posix*) :
26733 set -o posix ;; #(
26734 *) :
26736 esac
26740 as_nl='
26742 export as_nl
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'
26756 else
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'
26760 else
26761 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26762 as_echo_n_body='eval
26763 arg=$1;
26764 case $arg in #(
26765 *"$as_nl"*)
26766 expr "X$arg" : "X\\(.*\\)$as_nl";
26767 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26768 esac;
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
26780 PATH_SEPARATOR=:
26781 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26782 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26783 PATH_SEPARATOR=';'
26788 # IFS
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.)
26793 IFS=" "" $as_nl"
26795 # Find who we are. Look in the path if we contain no directory separator.
26796 as_myself=
26797 case $0 in #((
26798 *[\\/]* ) as_myself=$0 ;;
26799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26800 for as_dir in $PATH
26802 IFS=$as_save_IFS
26803 test -z "$as_dir" && as_dir=.
26804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26805 done
26806 IFS=$as_save_IFS
26809 esac
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
26813 as_myself=$0
26815 if test ! -f "$as_myself"; then
26816 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26817 exit 1
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 || :
26827 done
26828 PS1='$ '
26829 PS2='> '
26830 PS4='+ '
26832 # NLS nuisances.
26833 LC_ALL=C
26834 export LC_ALL
26835 LANGUAGE=C
26836 export LANGUAGE
26838 # CDPATH.
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.
26847 as_fn_error ()
26849 as_status=$1; test $as_status -eq 0 && as_status=1
26850 if test "$4"; then
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
26856 } # as_fn_error
26859 # as_fn_set_status STATUS
26860 # -----------------------
26861 # Set $? to STATUS, without forking.
26862 as_fn_set_status ()
26864 return $1
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.
26870 as_fn_exit ()
26872 set +e
26873 as_fn_set_status $1
26874 exit $1
26875 } # as_fn_exit
26877 # as_fn_unset VAR
26878 # ---------------
26879 # Portably unset VAR.
26880 as_fn_unset ()
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
26890 # implementations.
26891 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26892 eval 'as_fn_append ()
26894 eval $1+=\$2
26896 else
26897 as_fn_append ()
26899 eval $1=\$$1\$2
26901 fi # 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 ()
26911 as_val=$(( $* ))
26913 else
26914 as_fn_arith ()
26916 as_val=`expr "$@" || test $? -eq 1`
26918 fi # as_fn_arith
26921 if expr a : '\(a\)' >/dev/null 2>&1 &&
26922 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26923 as_expr=expr
26924 else
26925 as_expr=false
26928 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26929 as_basename=basename
26930 else
26931 as_basename=false
26934 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26935 as_dirname=dirname
26936 else
26937 as_dirname=false
26940 as_me=`$as_basename -- "$0" ||
26941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26942 X"$0" : 'X\(//\)$' \| \
26943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26944 $as_echo X/"$0" |
26945 sed '/^.*\/\([^/][^/]*\)\/*$/{
26946 s//\1/
26949 /^X\/\(\/\/\)$/{
26950 s//\1/
26953 /^X\/\(\/\).*/{
26954 s//\1/
26957 s/.*/./; q'`
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 #(((((
26968 -n*)
26969 case `echo 'xy\c'` in
26970 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26971 xy) ECHO_C='\c';;
26972 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26973 ECHO_T=' ';;
26974 esac;;
26976 ECHO_N='-n';;
26977 esac
26979 rm -f conf$$ conf$$.exe conf$$.file
26980 if test -d conf$$.dir; then
26981 rm -f conf$$.dir/conf$$.file
26982 else
26983 rm -f conf$$.dir
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
26988 as_ln_s='ln -s'
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 ||
26994 as_ln_s='cp -pR'
26995 elif ln conf$$.file conf$$ 2>/dev/null; then
26996 as_ln_s=ln
26997 else
26998 as_ln_s='cp -pR'
27000 else
27001 as_ln_s='cp -pR'
27003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27004 rmdir conf$$.dir 2>/dev/null
27007 # as_fn_mkdir_p
27008 # -------------
27009 # Create "$as_dir" as a directory, including parents if necessary.
27010 as_fn_mkdir_p ()
27013 case $as_dir in #(
27014 -*) as_dir=./$as_dir;;
27015 esac
27016 test -d "$as_dir" || eval $as_mkdir_p || {
27017 as_dirs=
27018 while :; do
27019 case $as_dir in #(
27020 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27021 *) as_qdir=$as_dir;;
27022 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27031 s//\1/
27034 /^X\(\/\/\)[^/].*/{
27035 s//\1/
27038 /^X\(\/\/\)$/{
27039 s//\1/
27042 /^X\(\/\).*/{
27043 s//\1/
27046 s/.*/./; q'`
27047 test -d "$as_dir" && break
27048 done
27049 test -z "$as_dirs" || eval "mkdir $as_dirs"
27050 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27053 } # as_fn_mkdir_p
27054 if mkdir -p . 2>/dev/null; then
27055 as_mkdir_p='mkdir -p "$as_dir"'
27056 else
27057 test -d ./-p && rmdir ./-p
27058 as_mkdir_p=false
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'"
27079 exec 6>&1
27080 ## ----------------------------------- ##
27081 ## Main body of $CONFIG_STATUS script. ##
27082 ## ----------------------------------- ##
27083 _ASEOF
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.
27090 ac_log="
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
27098 $ $0 $@
27100 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27103 _ACEOF
27105 case $ac_config_files in *"
27106 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27107 esac
27109 case $ac_config_headers in *"
27110 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27111 esac
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"
27120 _ACEOF
27122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27123 ac_cs_usage="\
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:
27143 $config_files
27145 Configuration headers:
27146 $config_headers
27148 Configuration commands:
27149 $config_commands
27151 Report bugs to the package provider."
27153 _ACEOF
27154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27155 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27156 ac_cs_version="\\
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."
27165 ac_pwd='$ac_pwd'
27166 srcdir='$srcdir'
27167 INSTALL='$INSTALL'
27168 MKDIR_P='$MKDIR_P'
27169 AWK='$AWK'
27170 test -n "\$AWK" || AWK=awk
27171 _ACEOF
27173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27174 # The default lists apply if the user does not specify any file.
27175 ac_need_defaults=:
27176 while test $# != 0
27178 case $1 in
27179 --*=?*)
27180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27182 ac_shift=:
27184 --*=)
27185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27186 ac_optarg=
27187 ac_shift=:
27190 ac_option=$1
27191 ac_optarg=$2
27192 ac_shift=shift
27194 esac
27196 case $ac_option in
27197 # Handling of the options.
27198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27199 ac_cs_recheck=: ;;
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 )
27205 debug=: ;;
27206 --file | --fil | --fi | --f )
27207 $ac_shift
27208 case $ac_optarg in
27209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27210 '') as_fn_error $? "missing file argument" ;;
27211 esac
27212 as_fn_append CONFIG_FILES " '$ac_optarg'"
27213 ac_need_defaults=false;;
27214 --header | --heade | --head | --hea )
27215 $ac_shift
27216 case $ac_optarg in
27217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27218 esac
27219 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27220 ac_need_defaults=false;;
27221 --he | --h)
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)
27229 ac_cs_silent=: ;;
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 ;;
27238 esac
27239 shift
27240 done
27242 ac_configure_extra_args=
27244 if $ac_cs_silent; then
27245 exec 6>/dev/null
27246 ac_configure_extra_args="$ac_configure_extra_args --silent"
27249 _ACEOF
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
27253 shift
27254 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27255 CONFIG_SHELL='$SHELL'
27256 export CONFIG_SHELL
27257 exec "\$@"
27260 _ACEOF
27261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27262 exec 5>>config.log
27264 echo
27265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27266 ## Running $as_me. ##
27267 _ASBOX
27268 $as_echo "$ac_log"
27269 } >&5
27271 _ACEOF
27272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27274 # INIT-COMMANDS
27276 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27278 _ACEOF
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;;
27301 esac
27302 done
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'.
27321 $debug ||
27323 tmp= ac_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` &&
27334 test -d "$tmp"
27335 } ||
27337 tmp=./conf$$-$RANDOM
27338 (umask 077 && mkdir "$tmp")
27339 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27340 ac_tmp=$tmp
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
27357 ac_cs_awk_cr='\\r'
27358 else
27359 ac_cs_awk_cr=$ac_cr
27362 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27363 _ACEOF
27367 echo "cat >conf$$subs.awk <<_ACEOF" &&
27368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27369 echo "_ACEOF"
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 '^'`
27373 ac_delim='%!_!# '
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
27380 break
27381 elif $ac_last_try; then
27382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27383 else
27384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27386 done
27387 rm -f conf$$subs.sh
27389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27390 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27391 _ACEOF
27392 sed -n '
27394 s/^/S["/; s/!.*/"]=/
27397 s/^[^!]*!//
27398 :repl
27399 t repl
27400 s/'"$ac_delim"'$//
27401 t delim
27404 s/\(.\{148\}\)..*/\1/
27405 t more1
27406 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27409 b repl
27410 :more1
27411 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27414 s/.\{148\}//
27415 t nl
27416 :delim
27418 s/\(.\{148\}\)..*/\1/
27419 t more2
27420 s/["\\]/\\&/g; s/^/"/; s/$/"/
27423 :more2
27424 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27427 s/.\{148\}//
27428 t delim
27429 ' <conf$$subs.awk | sed '
27430 /^[^""]/{
27432 s/\n//
27434 ' >>$CONFIG_STATUS || ac_write_fail=1
27435 rm -f conf$$subs.awk
27436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27437 _ACAWK
27438 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27439 for (key in S) S_is_set[key] = 1
27440 FS = "\a"
27444 line = $ 0
27445 nfields = split(line, field, "@")
27446 substed = 0
27447 len = length(field[1])
27448 for (i = 2; i < nfields; i++) {
27449 key = field[i]
27450 keylen = length(key)
27451 if (S_is_set[key]) {
27452 value = S[key]
27453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27454 len += length(value) + length(field[++i])
27455 substed = 1
27456 } else
27457 len += 1 + keylen
27460 print line
27463 _ACAWK
27464 _ACEOF
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"
27468 else
27470 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27471 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27472 _ACEOF
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[ ]*=[ ]*/{
27481 s///
27482 s/^/:/
27483 s/[ ]*$/:/
27484 s/:\$(srcdir):/:/g
27485 s/:\${srcdir}:/:/g
27486 s/:@srcdir@:/:/g
27487 s/^:*//
27488 s/:*$//
27490 s/\(=[ ]*\).*/\1/
27492 s/\n//
27493 s/^[^=]*=[ ]*$//
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 ||
27505 BEGIN {
27506 _ACEOF
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.
27514 ac_delim='%!_!# '
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
27518 break
27519 elif $ac_last_try; then
27520 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27521 else
27522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27524 done
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]*
27531 sed -n '
27532 s/.\{148\}/&'"$ac_delim"'/g
27533 t rset
27534 :rset
27535 s/^[ ]*#[ ]*define[ ][ ]*/ /
27536 t def
27538 :def
27539 s/\\$//
27540 t bsnl
27541 s/["\\]/\\&/g
27542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27543 D["\1"]=" \3"/p
27544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27546 :bsnl
27547 s/["\\]/\\&/g
27548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27549 D["\1"]=" \3\\\\\\n"\\/p
27550 t cont
27551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27552 t cont
27554 :cont
27556 s/.\{148\}/&'"$ac_delim"'/g
27557 t clear
27558 :clear
27559 s/\\$//
27560 t bsnlc
27561 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27563 :bsnlc
27564 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27565 b cont
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
27572 FS = "\a"
27574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27575 line = \$ 0
27576 split(line, arg, " ")
27577 if (arg[1] == "#") {
27578 defundef = arg[2]
27579 mac1 = arg[3]
27580 } else {
27581 defundef = substr(arg[1], 2)
27582 mac1 = arg[2]
27584 split(mac1, mac2, "(") #)
27585 macro = mac2[1]
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]
27590 next
27591 } else {
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, "*/"
27597 next
27601 { print }
27602 _ACAWK
27603 _ACEOF
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"
27610 shift
27611 for ac_tag
27613 case $ac_tag in
27614 :[FHLC]) ac_mode=$ac_tag; continue;;
27615 esac
27616 case $ac_mode$ac_tag in
27617 :[FHL]*:*);;
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;;
27621 esac
27622 ac_save_IFS=$IFS
27623 IFS=:
27624 set x $ac_tag
27625 IFS=$ac_save_IFS
27626 shift
27627 ac_file=$1
27628 shift
27630 case $ac_mode in
27631 :L) ac_source=$1;;
27632 :[FH])
27633 ac_file_inputs=
27634 for ac_f
27636 case $ac_f 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 `:'.
27641 test -f "$ac_f" ||
27642 case $ac_f in
27643 [\\/$]*) false;;
27644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27645 esac ||
27646 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27647 esac
27648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27649 as_fn_append ac_file_inputs " '$ac_f'"
27650 done
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'
27657 `' by configure.'
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;;
27669 esac
27671 case $ac_tag in
27672 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27674 esac
27676 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27685 s//\1/
27688 /^X\(\/\/\)[^/].*/{
27689 s//\1/
27692 /^X\(\/\/\)$/{
27693 s//\1/
27696 /^X\(\/\).*/{
27697 s//\1/
27700 s/.*/./; q'`
27701 as_dir="$ac_dir"; as_fn_mkdir_p
27702 ac_builddir=.
27704 case "$ac_dir" in
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/ ;;
27713 esac ;;
27714 esac
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
27720 case $srcdir in
27721 .) # We are building in place.
27722 ac_srcdir=.
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 ;;
27733 esac
27734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27737 case $ac_mode in
27740 # CONFIG_FILE
27743 case $INSTALL in
27744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27746 esac
27747 ac_MKDIR_P=$MKDIR_P
27748 case $MKDIR_P in
27749 [\\/$]* | ?:[\\/]* ) ;;
27750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27751 esac
27752 _ACEOF
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=
27758 ac_sed_dataroot='
27759 /datarootdir/ {
27763 /@datadir@/p
27764 /@docdir@/p
27765 /@infodir@/p
27766 /@localedir@/p
27767 /@mandir@/p'
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;}
27773 _ACEOF
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' ;;
27782 esac
27783 _ACEOF
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
27790 $extrasub
27791 _ACEOF
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"
27822 case $ac_file in
27823 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27824 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27825 esac \
27826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27830 # CONFIG_HEADER
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;}
27841 else
27842 rm -f "$ac_file"
27843 mv "$ac_tmp/config.h" "$ac_file" \
27844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27846 else
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.
27852 _am_arg="$ac_file"
27853 _am_stamp_count=1
27854 for _am_header in $config_headers :; do
27855 case $_am_header in
27856 $_am_arg | $_am_arg:* )
27857 break ;;
27859 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27860 esac
27861 done
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27869 s//\1/
27872 /^X\(\/\/\)[^/].*/{
27873 s//\1/
27876 /^X\(\/\/\)$/{
27877 s//\1/
27880 /^X\(\/\).*/{
27881 s//\1/
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;}
27890 esac
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 ;;
27901 esac
27902 shift
27903 for mf
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 ||
27920 $as_echo X"$mf" |
27921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27922 s//\1/
27925 /^X\(\/\/\)[^/].*/{
27926 s//\1/
27929 /^X\(\/\/\)$/{
27930 s//\1/
27933 /^X\(\/\).*/{
27934 s//\1/
27937 s/.*/./; q'`
27938 else
27939 continue
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
27951 # expansion.
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27964 s//\1/
27967 /^X\(\/\/\)[^/].*/{
27968 s//\1/
27971 /^X\(\/\/\)$/{
27972 s//\1/
27975 /^X\(\/\).*/{
27976 s//\1/
27979 s/.*/./; q'`
27980 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27981 # echo "creating $dirpart/$file"
27982 echo '# dummy' > "$dirpart/$file"
27983 done
27984 done
27988 esac
27989 done # for ac_tag
27992 as_fn_exit 0
27993 _ACEOF
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
28009 ac_cs_success=:
28010 ac_config_status_args=
28011 test "$silent" = yes &&
28012 ac_config_status_args="$ac_config_status_args --quiet"
28013 exec 5>/dev/null
28014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28015 exec 5>>config.log
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;}